Common Types of Attacks

CompTIA Network+ • Chapter 21

Common Types of Attacks

A network exists to provide access, and every form of access creates exposure. This chapter explains how technology-based, human, environmental, and physical attacks work—and connects each threat to practical hardening, segmentation, access-control, and monitoring defenses.

DoS & DDoSSpoofingRogue ServicesMalwareSocial EngineeringHardeningSegmentation
ATTACKStechnical • humanDEFENSEharden • segmentASSETSsystems • data
21.1 • Security Perspective

Understand the Attack Before Choosing the Defense

Networks are inherently exposed because they share resources with users and devices that are not physically beside the system. Installing a network interface creates a path for legitimate communication—but potentially also for reconnaissance, deception, interception, disruption, or unauthorized access.

Technology-based

Exploits protocols, software, firmware, devices, or configurations. Examples include DDoS, DNS poisoning, VLAN hopping, ARP spoofing, and malware.

Human-based

Manipulates trust, urgency, fear, curiosity, or authority. Phishing and other social-engineering techniques target decision-making rather than code.

Physical/environmental

Targets facilities, equipment, media, or physical access. Theft, tampering, tailgating, shoulder surfing, heat, water, and power events can all affect security.

Exam approach: Identify what the attacker changes or abuses—availability, name resolution, Layer 2 forwarding, addressing, identity, wireless association, user trust, or physical access—then select the control closest to that mechanism.
21.2.1 • Service Disruption

DoS, DDoS, Reflection, and Amplification

A denial-of-service (DoS) attack exhausts bandwidth, CPU, memory, connection tables, or another limited resource so legitimate users cannot obtain service. A distributed DoS (DDoS) uses many compromised devices—often a botnet coordinated through command-and-control infrastructure—making source filtering and response more difficult.

ATTACKERspoofs victim IPDNS / NTPreflectorsDNS / NTPamplifiersDNS / NTPrespondersVICTIMlarge response flood
Attack formHow it worksKey distinction
Reflective DoSThird-party systems reply to requests carrying the victim's spoofed source addressThe response is reflected toward the victim
Amplified DoSA small query produces a much larger response, commonly through exposed DNS or NTP servicesResponse volume is larger than request volume
Friendly/unintentional DoSLegitimate demand unexpectedly exceeds capacityNo malicious traffic is required
Physical DoSDamage, disconnection, or theft makes equipment unavailableThe service fails through physical loss
Permanent DoS / phlashingFirmware is deliberately corruptedThe device may become unusable until repaired or replaced
21.2.2–21.2.5 • Interception and Redirection

On-Path, DNS Poisoning, VLAN Hopping, and ARP Spoofing

On-path attack

The attacker positions between communicating parties to eavesdrop, intercept, relay, or modify traffic while each party believes it is communicating directly with the other.

DNS poisoning/spoofing

False DNS information maps a trusted name to an attacker-controlled address. The victim may reach a convincing fake service and disclose credentials.

VLAN hopping

Double-tagged Ethernet frames exploit native-VLAN handling to reach a different VLAN. Avoid using the native VLAN for users and harden trunk configurations.

ARP spoofing/poisoning

Forged ARP messages associate the attacker's MAC address with another host's IP address, often the default gateway, enabling interception or disruption on the local segment.

Do not merge these terms: DNS poisoning changes name-to-address resolution. ARP spoofing changes local IP-to-MAC resolution. VLAN hopping crosses Layer 2 segmentation. Each abuses a different mechanism.
21.2.6 • Unauthorized Devices and Services

Rogue DHCP, Rogue AP, Evil Twin, and Deauthentication

ThreatWhat the attacker controlsLikely effectUseful defenses
Rogue DHCPUnauthorized DHCP repliesVictims receive a malicious gateway, DNS server, or other configurationDHCP snooping, switch-port controls, monitoring
Rogue APUnauthorized access point connected to the wired networkCreates an unmanaged wireless entry pointWireless scanning, NAC, switch-port security
Evil twinFraudulent AP imitating a trusted SSIDUsers connect to the attacker's wireless service802.1X/EAP certificate validation, user awareness, WIDS/WIPS
DeauthenticationForged 802.11 management framesClients are disconnected, sometimes to push them toward an evil twinProtected management frames, wireless monitoring

A rogue AP and an evil twin can overlap, but they are not identical. Rogue describes unauthorized infrastructure; evil twin describes impersonation of a legitimate wireless identity.

21.2.7–21.2.10 • Credentials and Impersonation

Password Attacks, Spoofing, and MAC Flooding

Dictionary attack

Tries likely passwords from wordlists and known credential patterns. Long, unique passwords and MFA make common guesses less useful.

Brute-force attack

Systematically attempts combinations. Online attacks face rate limits and lockouts; offline attacks against stolen hashes can proceed without contacting the service.

MAC or IP spoofing

Forges a source identity to impersonate a trusted device, bypass weak filters, redirect replies, or conceal the true origin. A source address alone is not strong authentication.

MAC flooding

Overloads a switch's CAM/MAC address table with fabricated source addresses. If entries cannot be learned normally, some traffic may be flooded beyond its intended port.

Port security can limit learned MAC addresses and respond to violations. Ingress/egress filtering helps reject impossible or spoofed IP sources at network boundaries.
21.2.11 • Malicious Software

Malware Changes the Host—and Often the Network

Malware is code intentionally designed to damage, disrupt, spy on, or gain unauthorized access to systems. Network teams may observe command-and-control traffic, unusual DNS requests, lateral movement, bandwidth spikes, scanning, or unexpected encryption even when the initial infection is host-based.

Ransomware

Encrypts or exfiltrates data and demands payment. Segmentation, tested offline backups, least privilege, patching, and detection reduce impact.

Trojan

Disguises malicious functionality as legitimate software. Trusted distribution, application controls, and user awareness reduce installation risk.

Keylogger

Records keystrokes to steal credentials and sensitive data. Endpoint protection and MFA can limit the usefulness of captured passwords.

Rootkit

Hides malicious activity by altering low-level operating-system behaviour. Detection and recovery may require trusted offline tools or rebuilding the system.

Spyware

Collects activity or information without informed consent, often sending the results to an external service.

Cryptominer

Consumes CPU/GPU and electrical resources to mine cryptocurrency, degrading performance and increasing operational cost.

21.3 • Human and Environmental Attacks

Attackers Exploit Trust and Physical Opportunity

TechniqueMeaningPrimary response
Social engineeringManipulates a person into revealing information or performing an unsafe actionSecurity awareness, verification procedures, and low-friction reporting
PhishingUses fraudulent messages or sites to steal credentials or deliver malware; spear phishing targets a specific person or groupEmail/web controls, MFA, awareness, and independent verification
TailgatingAn unauthorized person follows an authorized person into a restricted area without permissionMantraps, badges, guards, and challenge culture
PiggybackingAn authorized person knowingly permits the unauthorized entryPolicy, awareness, enforcement, and access controls
Dumpster divingRetrieves sensitive material from discarded itemsSecure disposal, shredding, and media destruction
Shoulder surfingObserves screens, PINs, passwords, or confidential workPrivacy screens, positioning, vigilance, and protected entry
21.4 • Reduce the Attack Surface

Device and Protocol Hardening

Hardening removes avoidable exposure and makes remaining services more resistant to attack. Begin with an approved secure baseline, then maintain it through configuration control, patching, monitoring, and periodic validation.

Secure the device

Change default credentials, use MFA where supported, patch firmware and software, restrict management access, back up configurations, enable logging, and disable unnecessary accounts and services.

Use secure protocols

Replace Telnet with SSH, HTTP with HTTPS, and insecure file-transfer methods with appropriate protected alternatives such as SCP or SFTP. TFTP has no native authentication or encryption.

Close unused paths

Disable unused TCP/UDP services, switch ports, virtual interfaces, radio functions, and administrative interfaces. Document exceptions rather than leaving them open by habit.

Manage keys

Use approved algorithms and key sizes, protect private keys, rotate keys according to policy, revoke compromised material, and re-key systems after suspected exposure.

ACL Processing

An access control list (ACL) evaluates ordered permit/deny rules from top to bottom. The first matching rule determines the action, and many ACL designs include an implicit deny after the explicit rules. Place specific rules carefully and test them so legitimate management or business traffic is not accidentally blocked.

Content filtering reduces access to malicious, inappropriate, or non-business destinations through URL, category, reputation, DNS, or content inspection. It complements—not replaces—endpoint security and user awareness.
21.5 • Contain Compromise

VLANs, Firewalls, DMZs, 802.1X, and NAC

INTERNETuntrustedFWDMZpublic servicesFWINTERNALtrusted zones

Layer 2

VLANs separate broadcast domains. Port security and MAC filtering can restrict edge access, though MAC addresses can be spoofed and should not be the only control.

Layer 3–7

ACLs and firewalls control permitted flows between subnets, VLANs, security zones, applications, and external networks.

Screened subnet / DMZ

Places public-facing services between external and internal trust zones so compromise does not provide direct access to the private network.

802.1X provides port-based network authentication using a supplicant, authenticator, and authentication server. Network Access Control (NAC) can additionally assess device identity, posture, antivirus status, patch state, or policy compliance before granting normal access. Noncompliant devices may be denied or placed into a remediation network.

21.6–21.7 • Specialized and Physical Systems

IoT, Industrial Networks, Surveillance, and Locks

IoT and IIoT

Smart devices and industrial sensors often prioritize cost, availability, or long service life. Inventory them, change defaults, patch where possible, restrict Internet access, and isolate them from user and server networks.

ICS and SCADA

Industrial control and supervisory systems monitor or control physical processes in manufacturing and utilities. Safety, deterministic operation, vendor constraints, and downtime risk require carefully planned security changes.

Video surveillance

Fixed and PTZ cameras may use coaxial CCTV or Ethernet/IP networks. IP cameras frequently use PoE, so secure camera VLANs, credentials, storage, management access, and switch power capacity.

Physical locks

Door, cabinet, rack, cable, equipment, and USB locks deter unauthorized access, theft, tampering, and accidental misuse. Locks work best with access records, alarms, guards, and surveillance.

Cyber-physical impact: Compromise of IoT, ICS, or surveillance systems may affect safety, privacy, production, or facility operations—not just data confidentiality.
21.8 • Interactive Written Lab

Identify the Attack from the Evidence

Select an observation to reveal the most precise attack term and the clue that distinguishes it.

Select an observation.
The attack or defensive control will appear here.
21.9 • Exam Check and Summary

Test Your Understanding

1. Which is not primarily a technology-based attack?
2. Which attack commonly uses a botnet and command-and-control infrastructure?
3. Clients receive a malicious default gateway from an unauthorized service. What is the attack?
4. Double tagging is associated with which attack?
5. Which control can verify current antivirus protection before a host receives normal network access?

Essential Takeaways

DoS disrupts one or more resources; DDoS distributes the attack across many sources.
Reflection redirects third-party replies; amplification makes responses much larger than requests.
On-path attacks intercept communication; DNS poisoning redirects names; ARP spoofing redirects local frames.
VLAN hopping abuses tagging; MAC flooding targets the switch address table.
Rogue DHCP supplies malicious configuration; rogue APs create unauthorized wireless access.
An evil twin copies a trusted SSID; deauthentication can force users to reconnect.
Dictionary attacks try likely words; brute force systematically tries combinations.
Ransomware, Trojans, keyloggers, rootkits, spyware, and cryptominers have different behaviours and indicators.
Phishing and social engineering are best reduced through layered controls and user verification habits.
Hardening changes defaults, patches systems, disables unused exposure, secures protocols, and protects keys.
Segmentation, DMZs, 802.1X, NAC, ACLs, and firewalls limit access and attacker movement.
IoT, ICS, surveillance, locks, and facility controls connect cybersecurity to safety and physical protection.