Network & Internet Security

Chapter 3
Threats, Vulnerabilities, and Attack Methods

Certificate in Cybersecurity
Network & Internet Security   •   Certificate

Threats, Vulnerabilities, and Attack Methods

Introduction

Network and Internet security is concerned not only with protecting devices and data, but also with understanding how attacks occur. A security professional must be able to distinguish a threat from a vulnerability, recognize common attack methods, interpret evidence, and select proportionate controls.

A threat is a potential cause of harm. A vulnerability is a weakness that can be exploited. An attack is an attempt to exploit a vulnerability, while risk is the possibility and potential impact of that exploitation. These concepts are related but not interchangeable. For example, a criminal group is a threat actor, an unpatched web server is a vulnerability, exploitation of that server is an attack, and the resulting service outage represents risk and impact.

Modern attacks frequently combine several methods. A phishing message may deliver malware; malware may steal passwords; stolen credentials may enable lateral movement; and the attacker may then use denial-of-service activity as a distraction. Effective security therefore requires an integrated view of people, processes, technology, and information.

Learning Objectives

After studying this chapter, you should be able to:

  • distinguish threats, vulnerabilities, attacks, exploits, and risks;
  • identify major forms of malware and explain their effects;
  • recognize phishing, spoofing, sniffing, scanning, and password attacks;
  • explain denial-of-service, man-in-the-middle, and session-hijacking attacks;
  • describe insider threats, social engineering, and advanced persistent threats;
  • relate attack methods to security objectives and controls;
  • analyze a realistic incident and recommend appropriate defensive actions.

A Framework for Understanding Attacks

The confidentiality, integrity, and availability (CIA) triad provides a basic way to analyze consequences.

  • Confidentiality means that information is available only to authorized parties.
  • Integrity means that information remains accurate, complete, and unaltered without authorization.
  • Availability means that systems and information are accessible when required.

An attack can affect one or more objectives. Packet sniffing primarily threatens confidentiality. Web-page tampering threatens integrity. A distributed denial-of-service attack threatens availability. A ransomware incident may threaten all three.

A useful analytical sequence is:

  1. Identify the asset and its business value.
  2. Identify the threat actor and likely motivation.
  3. Identify weaknesses that could be exploited.
  4. Identify the attack vector and technique.
  5. Assess consequences to confidentiality, integrity, and availability.
  6. Select preventive, detective, and corrective controls.

Controls should be layered. Firewalls, secure configuration, authentication, encryption, backups, monitoring, staff awareness, and incident response each address different stages of an attack.

Malware

Malware is malicious software designed to disrupt operations, damage systems, gain unauthorized access, or steal information. Its classification is based on behavior; categories may overlap.

TypeMain characteristicTypical consequence
VirusAttaches to a file and spreads when the host is executedFile corruption or disruption
WormSelf-propagates across networks or systemsRapid compromise and congestion
TrojanAppears legitimate but performs malicious actionsUnauthorized access or data theft
RansomwareDenies access, commonly through encryption, for extortionOperational outage and data loss
SpywareSecretly monitors activity or collects informationCredential and privacy compromise
KeyloggerRecords keystrokesPassword and message theft
RootkitConceals privileged malicious activityPersistent, difficult-to-detect compromise
Bot or botnet agentPlaces a device under remote controlDDoS, spam, fraud, or further attacks
Fileless malwareUses legitimate tools or memory rather than a conventional fileReduced visibility for traditional scanners

Malware commonly enters through malicious attachments, compromised websites, removable media, vulnerable services, software supply chains, or stolen credentials. Defenses include timely patching, endpoint protection, application allow-listing, least privilege, email filtering, backups, network segmentation, and user education.

Backups are particularly important against ransomware, but a backup is useful only if it is protected from unauthorized deletion or encryption and if restoration has been tested. A sound backup strategy includes multiple copies, different media or locations, and at least one copy that is offline or otherwise isolated.

Phishing and Social Engineering

Phishing is the use of deceptive electronic communication to persuade a victim to reveal information, open a malicious resource, transfer funds, or perform another unsafe action. Variants include:

  • Spear phishing: targeted at a particular person or organization;
  • Whaling: directed at senior executives or high-value individuals;
  • Smishing: delivered through text messaging;
  • Vishing: conducted through voice calls;
  • Business email compromise: impersonation or compromise of business accounts to redirect payments or obtain sensitive data.

Social engineering is broader than phishing. It exploits human trust, authority, fear, urgency, curiosity, or helpfulness. An attacker may impersonate technical support, a manager, a supplier, or a government official.

Warning signs include unexpected urgency, requests to bypass normal procedures, unusual payment instructions, mismatched domains, suspicious attachments, requests for passwords or multifactor authentication codes, and messages that discourage independent verification. However, grammar and spelling are no longer reliable indicators because attackers can produce convincing text and images.

Effective controls include phishing-resistant multifactor authentication, secure email gateways, domain authentication mechanisms, payment verification procedures, staff training, reporting channels, and a culture that does not punish people for reporting mistakes promptly. Security awareness should be continuous and scenario-based rather than limited to an annual presentation.

Spoofing and Impersonation

Spoofing occurs when an attacker falsifies an identity, address, message source, or technical attribute. Examples include:

  • IP spoofing: falsifying the source address in network packets;
  • Email spoofing: forging the apparent sender of an email;
  • DNS spoofing: providing false domain-resolution information;
  • Website spoofing: creating a fraudulent site resembling a legitimate one;
  • Caller-ID spoofing: falsifying the displayed telephone number;
  • ARP spoofing: associating the attacker’s hardware address with another device’s network address on a local network.

Spoofing does not always mean that the attacker has compromised the impersonated system. It may instead exploit weak trust assumptions. Email authentication technologies such as SPF, DKIM, and DMARC can reduce some forms of domain impersonation, although configuration and organizational adoption are essential. Users and systems should not treat an apparent identity as proof of authenticity; independent verification and cryptographic authentication are stronger safeguards.

Sniffing and Eavesdropping

Sniffing is the capture and examination of network traffic. In a properly secured switched network, an ordinary endpoint generally receives traffic intended for itself, but attackers may still capture local traffic through wireless access, compromised devices, switch misconfiguration, rogue access points, ARP spoofing, or privileged access.

Unencrypted protocols can expose credentials, messages, cookies, and business data. Encryption changes what a sniffer can learn, but it does not eliminate all metadata. An observer may still infer communicating parties, timing, volume, and patterns. Transport encryption such as TLS helps protect data in transit, while secure wireless configuration protects the local radio network.

Defensive practices include using HTTPS and secure administrative protocols, avoiding insecure legacy services, validating certificates, segmenting networks, protecting wireless infrastructure, monitoring for rogue devices, and using virtual private networks where appropriate. A VPN does not make an endpoint trustworthy; malware on the endpoint can still access information before encryption or after decryption.

Scanning and Reconnaissance

Scanning is the systematic examination of systems, addresses, ports, services, or vulnerabilities. It is often preceded by passive reconnaissance, such as studying public websites, job advertisements, domain records, and leaked information. Active scanning may identify live hosts, open ports, operating systems, software versions, and configuration weaknesses.

Scanning can be legitimate when performed with authorization, such as vulnerability assessment or asset discovery. The same tools can be used offensively. Organizations should maintain an accurate asset inventory, minimize unnecessary exposure, remove obsolete services, patch vulnerabilities, filter traffic, and monitor unusual probing patterns.

A scan does not prove compromise. It produces evidence about exposure. Analysts must validate findings because automated tools can generate false positives and may not understand business context. Scanning without authorization may violate policy or law, even if no system is damaged.

Password and Credential Attacks

Passwords are attacked through several methods:

  • Brute force: trying many possible passwords;
  • Dictionary attack: trying words and common variations;
  • Password spraying: trying a small number of common passwords against many accounts;
  • Credential stuffing: testing usernames and passwords exposed in earlier breaches;
  • Phishing: persuading users to disclose credentials;
  • Keylogging: recording credentials as they are typed;
  • Offline cracking: analyzing stolen password hashes without contacting the original service.

Password security depends on both secrecy and resistance to guessing. Long, unique passwords or passphrases are generally preferable to short complex passwords that users must frequently change. Password managers help generate and store unique credentials. Multifactor authentication reduces the value of a stolen password, although attackers may attempt to capture or socially engineer the second factor.

Systems should store passwords using a slow, adaptive password-hashing function with a unique salt for each password. Hashing is not encryption: a properly designed password hash is intended to be computationally difficult to reverse. Account lockout must be designed carefully because excessive lockout can itself enable denial-of-service against users. Rate limiting, risk-based detection, breached-password screening, and phishing-resistant authentication provide additional protection.

Denial-of-Service Attacks

A denial-of-service (DoS) attack attempts to make a service unavailable. A distributed denial-of-service (DDoS) attack uses many sources, often compromised devices in a botnet. Attacks may exhaust bandwidth, connection tables, CPU, memory, application resources, or database capacity.

Common forms include volumetric floods, protocol exhaustion, and application-layer requests that are individually valid but collectively overwhelming. DDoS mitigation can include upstream filtering, content delivery networks, rate limiting, autoscaling, traffic scrubbing, redundant architecture, and a tested incident plan. Organizations should identify critical services and define acceptable degradation before an incident occurs.

A DDoS attack is not necessarily a data breach. Nevertheless, it may be used to distract defenders while another intrusion occurs, or it may cause secondary effects such as emergency changes that weaken security.

Man-in-the-Middle Attacks

A man-in-the-middle (MitM) attack occurs when an attacker positions themselves between two communicating parties and intercepts or alters their exchange. Examples include rogue wireless access points, compromised routers, DNS manipulation, and attacks against poorly validated encryption.

The central defense is authenticated encryption: parties must verify not only that communication is encrypted, but also whom they are communicating with. Certificate validation, secure protocols, mutual authentication where appropriate, network access controls, and careful wireless configuration reduce risk. Users should avoid accepting unexplained certificate warnings. A warning may indicate an attack, a configuration error, or an expired certificate, but ignoring it removes an important security signal.

Session Hijacking

A session is the ongoing authenticated relationship between a client and a service. In session hijacking, an attacker obtains or predicts a session identifier and uses it to act as the victim without necessarily knowing the password. Session identifiers can be stolen through malware, cross-site scripting, insecure transport, malicious browser extensions, or exposed logs.

Important defenses include TLS, secure and HttpOnly cookie attributes, appropriate SameSite settings, session rotation after authentication or privilege changes, short and risk-appropriate lifetimes, logout invalidation, reauthentication for sensitive actions, and protection against cross-site scripting. Multifactor authentication may not stop hijacking after a legitimate session has already been established, so session management remains essential.

Insider Threats

An insider threat involves a person with legitimate access who intentionally or unintentionally causes harm. Insiders may be employees, contractors, partners, or administrators. Malicious insiders may steal data, sabotage systems, or assist an external actor. Negligent insiders may mishandle information, reuse passwords, misdirect email, or install unauthorized software.

Controls should not assume that insiders are either trusted or untrusted in absolute terms. Least privilege, separation of duties, access reviews, data-loss prevention, logging, behavior monitoring, secure offboarding, and clear acceptable-use policies reduce risk. Monitoring must be proportionate and transparent. Privacy, labor law, and due-process requirements may restrict how employee data is collected and used.

Advanced Persistent Threats

An advanced persistent threat (APT) is a sustained campaign in which a capable, motivated adversary seeks continued access to a target. The term describes a pattern of activity rather than a single tool. An APT may conduct reconnaissance, gain initial access through phishing or exploitation, establish persistence, escalate privileges, move laterally, collect information, and exfiltrate it while attempting to remain undetected.

APT defense requires more than a perimeter firewall. Useful measures include identity-centric access control, segmentation, endpoint detection and response, centralized logging, threat intelligence, secure administration, vulnerability management, application control, and rehearsed incident response. Detection should focus on behavior and relationships, such as unusual authentication locations, abnormal privilege use, unexpected service creation, or large transfers to unfamiliar destinations.

The concept has limitations. “Advanced” does not always mean technically sophisticated, and many campaigns combine simple techniques with patience and stolen credentials. Attribution is also difficult; technical indicators can be copied, rented, or deliberately falsified. Organizations should prioritize observable behavior and defensible evidence rather than assumptions about identity.

Applied Case: Illustrative Regional Health Network Incident

Background

A fictional regional health network operates clinics, a central records system, and a patient portal. Staff use email, cloud applications, and remote access. The organization has basic antivirus protection but inconsistent multifactor authentication and limited network segmentation.

Problem

A finance employee receives a convincing message appearing to come from a supplier. The message links to a false login page. The employee enters credentials and approves an unexpected multifactor prompt after receiving a telephone call from the attacker. The attacker accesses email, discovers administrative contacts, and uses a stolen session token to enter a cloud service. Malware is later installed on a workstation through a remote-management account. The attacker begins copying documents while a small DDoS attack disrupts the public portal.

Analysis

This incident combines spear phishing, social engineering, spoofing, credential theft, multifactor-manipulation, session hijacking, malware, data exfiltration, and denial-of-service. Contributing vulnerabilities include inadequate verification of supplier requests, weak authentication coverage, excessive account privileges, insufficient monitoring, and limited segmentation. The DDoS activity may be a distraction rather than the primary objective.

Approach and Solution

The organization should first activate its incident-response plan, preserve logs, isolate affected endpoints, disable or reset compromised accounts, revoke sessions and tokens, and coordinate with relevant service providers. It should determine whether records were accessed or altered and meet applicable breach-reporting obligations.

Longer-term measures include phishing-resistant multifactor authentication, privileged-access management, conditional access, network segmentation, endpoint detection, immutable backups, email authentication, supplier-payment verification, improved logging, and recurring exercises. Staff should be encouraged to report suspicious messages immediately, without fear of blame.

Outcome and Learning Points

The incident is contained, the affected accounts are rebuilt, and no evidence of alteration to patient records is found, although confidential documents were accessed. The main lesson is that no single control was sufficient. Human deception bypassed a password, approval fatigue weakened multifactor authentication, excessive access increased the impact, and limited monitoring delayed detection. Defense in depth and rapid reporting reduce both likelihood and harm.

Ethical, Legal, and Governance Considerations

Security testing must be authorized, scoped, and documented. Scanning external systems without permission can cause disruption and may breach computer misuse laws. Penetration testers should define rules of engagement, protect collected information, avoid unnecessary access, and report findings responsibly.

Organizations also have duties concerning privacy, data protection, records retention, and breach notification. Monitoring should collect information necessary for security, restrict access to monitoring data, and retain it for defensible periods. Automated detection and AI-assisted analysis can improve speed, but they may produce false positives, expose sensitive data to third parties, or encode biased assumptions. Human review, access controls, auditability, and clear accountability remain necessary.

Contemporary Developments and Best Practices

Attackers increasingly use cloud identities, legitimate remote-management tools, stolen session tokens, supply-chain weaknesses, and generative AI to increase scale and credibility. Defensive priorities include:

  • maintain an accurate inventory of assets, identities, software, and data;
  • apply secure defaults, timely patches, and vulnerability prioritization;
  • use phishing-resistant multifactor authentication for important accounts;
  • implement least privilege and separate administrative identities;
  • encrypt sensitive data in transit and at rest;
  • segment networks and restrict east-west movement;
  • centralize logs and synchronize system time;
  • test detection, backup restoration, and incident-response procedures;
  • verify high-risk requests through an independent channel;
  • measure improvement through exercises, incident trends, and remediation rates.

Security is a continuing risk-management process. Absolute prevention is unrealistic; the practical goal is to make attacks more difficult, detect them earlier, limit their spread, recover reliably, and learn from evidence.

Chapter Summary

Threats are potential sources of harm, vulnerabilities are weaknesses, and attacks exploit those weaknesses. The CIA triad helps assess consequences. Malware includes viruses, worms, Trojans, ransomware, spyware, rootkits, bots, and fileless techniques. Phishing and social engineering manipulate people, while spoofing falsifies identity or origin. Sniffing captures traffic, scanning reveals exposure, and password attacks target authentication. DoS and DDoS attacks reduce availability; MitM attacks intercept communications; session hijacking abuses authenticated sessions; insider threats arise from legitimate access; and APTs involve sustained campaigns seeking persistence.

Effective defense uses layered controls: secure configuration, patching, encryption, strong authentication, least privilege, segmentation, monitoring, backups, awareness, governance, and practiced response. Technical controls must be combined with sound procedures and ethical, legal, and privacy-aware decision-making.

Key Terms

Threat: A potential cause of harm to an asset or organization.

Vulnerability: A weakness that may be exploited.

Exploit: A method or code that takes advantage of a vulnerability.

Risk: The possibility and potential impact of harm.

Malware: Software designed to perform unauthorized or harmful actions.

Phishing: Deceptive communication intended to cause an unsafe action.

Social engineering: Manipulation of people to obtain access, information, or action.

Spoofing: Falsifying identity, origin, or technical information.

Sniffing: Capturing and examining network traffic.

Scanning: Systematic examination of systems, ports, services, or vulnerabilities.

Credential stuffing: Testing credentials stolen from another service.

Ransomware: Malware that denies access to data or systems for extortion.

Denial-of-service: An attack intended to reduce service availability.

Man-in-the-middle: Interception or alteration of communication between parties.

Session hijacking: Unauthorized use of a valid authenticated session.

Insider threat: Harm caused by a person with legitimate access.

Advanced persistent threat: A sustained campaign seeking continued access.

Least privilege: Giving a subject only the access necessary for its duties.

Defense in depth: Using multiple complementary security controls.

Incident response: The organized process of detecting, containing, investigating, and recovering from incidents.

Review Questions

5 Short Answer Questions

  1. Distinguish a threat, vulnerability, exploit, and risk.
  2. What is the difference between phishing and social engineering?
  3. Why is encryption useful against sniffing?
  4. Name three defenses against password attacks.
  5. What is the principal objective of a denial-of-service attack?

5 Long Answer Questions

  1. Explain the CIA triad and apply it to ransomware, sniffing, and website defacement.
  2. Compare viruses, worms, Trojans, ransomware, spyware, and rootkits.
  3. Explain how a man-in-the-middle attack can occur and describe appropriate controls.
  4. Discuss the causes and controls of insider threats.
  5. Describe the stages and defensive requirements of an advanced persistent threat.

3 Analytical / Application Questions

  1. An employee receives an urgent payment-change request from a known supplier. Analyze the likely attack methods and design a verification procedure.
  2. A company observes unusual login locations, new administrative accounts, and large outbound transfers. What evidence would you collect, and what immediate actions would you take?
  3. A public website is unavailable during a suspected DDoS attack while administrators receive phishing emails. Explain how the events may be related and propose a coordinated response.

Multiple Choice Questions with Answers

Question 1

Which statement best distinguishes a vulnerability from a threat?

A. A vulnerability is a potential attacker, while a threat is a software weakness.

B. A vulnerability is a weakness, while a threat is a potential cause of harm.

C. A vulnerability is always an attack, while a threat is always an exploit.

D. A vulnerability describes impact, while a threat describes recovery.

Correct Answer: B. A vulnerability is a weakness, while a threat is a potential cause of harm.

Question 2

Which malware type is designed primarily to self-propagate across networks?

A. Worm

B. Trojan

C. Spyware

D. Rootkit

Correct Answer: A. Worm

Question 3

An attacker tries a few common passwords against many accounts. What is this attack called?

A. Credential stuffing

B. Password spraying

C. Session hijacking

D. Offline encryption

Correct Answer: B. Password spraying

Question 4

Which technique primarily threatens confidentiality by capturing network traffic?

A. Sniffing

B. Defacement

C. Rate limiting

D. Backups

Correct Answer: A. Sniffing

Question 5

What is the main purpose of a denial-of-service attack?

A. To improve authentication

B. To make a service unavailable

C. To encrypt a backup

D. To verify a certificate

Correct Answer: B. To make a service unavailable

Question 6

Which control most directly reduces the risk of a stolen password being sufficient for account access?

A. Multifactor authentication

B. Screen brightness controls

C. Printer isolation

D. Longer network cables

Correct Answer: A. Multifactor authentication

Question 7

In a man-in-the-middle attack, the attacker generally attempts to do what?

A. Destroy all backups before communication begins

B. Intercept or alter communication between parties

C. Replace every endpoint with a new device

D. Prevent users from creating passwords

Correct Answer: B. Intercept or alter communication between parties

Question 8

Which statement about session hijacking is correct?

A. It requires the attacker to know the victim’s password in every case.

B. It abuses a valid authenticated session identifier or token.

C. It is limited to physical theft of a server.

D. It can be prevented only by changing a username.

Correct Answer: B. It abuses a valid authenticated session identifier or token.

Question 9

Which characteristic is most associated with an advanced persistent threat?

A. A single accidental misconfiguration

B. A sustained campaign seeking continued access

C. A routine authorized vulnerability scan

D. A temporary loss of wireless signal

Correct Answer: B. A sustained campaign seeking continued access

Question 10

Which practice best addresses a high-risk supplier payment-change request?

A. Reply to the same email asking for confirmation

B. Approve it if the message uses the supplier’s logo

C. Verify it through an independent trusted channel

D. Forward it to all staff for a group decision

Correct Answer: C. Verify it through an independent trusted channel

Network & Internet Security
Chapter 3 of 14