Network Attacks and Mitigations
You cannot defend a network you do not understand. This lesson names the canonical attack categories, the network-theft techniques that abuse Layer 2 and Layer 3, and the controls that stop them — segmentation, firewalls, IDS/IPS, ACLs, port security, DHCP snooping, DAI, and 802.1X.
Threat agents and the language of risk
A threat agent is anyone or anything that can attack a vulnerability. Knowing who attacks and why hints at the method used.
| Threat agent | Motivation | Typical method |
|---|---|---|
| Script kiddie | Thrill, notoriety | Ready-made tools, automated scans |
| Organised crime | Financial gain | Ransomware, data theft, extortion |
| Hacktivist | Ideology or protest | Website defacement, DDoS |
| State-sponsored / nation-state | Espionage, disruption | Long-term, stealthy intrusion, supply chain |
| Insider | Revenge, profit, carelessness | Misuse of valid access, data exfiltration |
Reconnaissance and access attacks
Reconnaissance (also footprinting and scanning) is information gathering before an attack — it maps the target so the real attack can be aimed.
- Passive — collecting information without touching the target:
whoisand DNS records, job postings, social media, packet sniffing. - Active — probing the target directly:
- Ping sweep — ICMP echo requests across a range of addresses to find live hosts.
- Port scan — probes TCP/UDP ports to find listening services; every open port is a potential way in.
Access attacks exploit a weakness to gain entry to a system, a service, or the data on it:
- Password attacks — guessing, dictionary and brute-force attacks, and rainbow-table lookups of captured hashes.
- Man-in-the-middle (MITM) — secretly relaying (and possibly altering) traffic between two parties who believe they talk directly. On a LAN this usually needs ARP spoofing (Part 5).
- Buffer overflow — overfilling a fixed-size buffer to overwrite adjacent memory and possibly run attacker code.
- Trust exploitation — abusing a relationship (for example, a firewall that trusts an internal subnet) to reach protected systems.
Denial-of-service attacks
A denial-of-service (DoS) attack makes a service unavailable to legitimate users. From many hosts at once it is a distributed denial-of-service (DDoS), typically launched from a botnet of compromised devices.
| Type | Mechanism | Effect |
|---|---|---|
| Volumetric | Flood the link with raw traffic (UDP or ICMP flood, amplification). | Consumes all bandwidth. |
| Protocol (including SYN flood) | Abuse a protocol state machine to exhaust a resource. | Consumes connection tables or memory. |
| Application layer | Send costly requests (complex searches, slow HTTP). | Ties up the application itself. |
In a reflected or amplification attack the attacker spoofs the victim’s address, sends a small request to a public UDP service (DNS, NTP), and the service sends a large reply to the victim — turning a little attack traffic into a big flood.
Malware classes
Malware is malicious software. Distinguish the categories by how they spread and what they do.
| Class | How it works | Spreads by itself? |
|---|---|---|
| Virus | Attaches to a host file or program and runs when the user executes it. | No — needs a host and user action. |
| Worm | Self-replicating program that exploits network services to spread. | Yes — no user action needed. |
| Trojan | Disguised as legitimate software; often installs a remote-access back door (RAT). | No — user is tricked into running it. |
| Ransomware | Encrypts files (or locks the system) and demands payment for the key. | Varies; often delivered by phishing or a worm. |
| Spyware | Secretly gathers information; keyloggers capture credentials and keystrokes. | No — piggybacks on installs or bundles. |
Social engineering and network theft
Social engineering attacks the human, not the machine — often the easiest way past every technical control.
- Phishing — fraudulent email impersonating a trusted party to steal credentials or deliver malware (via SMS it is smishing; by phone, vishing).
- Spear-phishing — a targeted phishing message written for one person or team; targeting a senior executive is whaling.
- Vishing — voice phishing: a call posing as tech support, a bank, or a colleague.
- Baiting — leaving a malware-laden USB drive for a curious victim to plug in.
- Pretexting — inventing a scenario (a fake audit) to extract information or an action.
- Tailgating — following an authorised person through a secure door.
Network-theft techniques
These attacks target the network itself, especially the trust built into Layer 2 and Layer 3.
- MAC spoofing — the attacker changes a NIC’s MAC address in software to match a trusted device, defeating naive MAC filtering and impersonating a legitimate host.
- ARP spoofing (ARP poisoning) — ARP has no authentication, so forged replies can claim the attacker’s MAC belongs to the default gateway. The victim caches the false entry and routes traffic through the attacker — a classic man-in-the-middle. The fix is Dynamic ARP Inspection (DAI) backed by DHCP snooping.
- DHCP starvation and rogue DHCP — DHCP starvation floods DISCOVER messages with forged MAC addresses until the pool is exhausted, denying real clients. A rogue DHCP server then hands victims the attacker’s IP as gateway and DNS. The fix is DHCP snooping.
- VLAN hopping — traffic is made to cross from one VLAN into another, via switch spoofing (the port negotiates a trunk through DTP) or double tagging (nested 802.1Q tags). The fix: disable DTP on access ports, set unused ports to a dead VLAN, and keep the management VLAN off access ports.
- Replay attack — a valid authentication exchange is captured and re-sent to impersonate a user. Mitigation: timestamps, nonces, and encrypted authentication so the captured value is useless next time.
Mitigations and defence in depth
Every attack has a matching control; learn these pairings. Defence in depth layers independent controls so no single failure causes compromise — the perimeter (firewall, VPN), the network (segmentation, ACLs, IDS/IPS), the host (patching, antivirus, port security, 802.1X), the application (authentication, least privilege), and the data (encryption, backups).
| System | Placement | Action |
|---|---|---|
| IDS (Intrusion Detection System) | Out of band: it receives a copy of traffic (SPAN/TAP). | Monitors and alerts — it detects and reports; it does not sit in the traffic path. |
| IPS (Intrusion Prevention System) | In line: traffic physically passes through it. | Blocks/drops malicious traffic in real time (and can reset connections). |
Access control lists, port security, DHCP snooping and DAI
ACLs are ordered permit/deny rules applied to router or switch interfaces that filter traffic by source, destination, protocol, and port. They are the building block for controlling which traffic may cross between segments.
! Permit only HTTPS from the user VLAN to the DMZ web server, deny the rest R1(config)# access-list 110 permit tcp 10.1.10.0 0.0.0.255 host 10.1.99.10 eq 443 R1(config)# access-list 110 deny ip any any R1(config)# interface GigabitEthernet0/0 R1(config-if)# ip access-group 110 in
Port security limits which source MAC addresses may appear on a switch port and how many. Options include maximum (count limit), sticky (learn allowed MACs and keep them), and the violation action — protect (silently drop), restrict (drop and log), or shutdown (err-disable the port). It counters MAC spoofing and MAC-flooding.
- DHCP snooping — marks switch ports as trusted or untrusted. DHCP server replies (OFFER/ACK) arriving on an untrusted port are dropped, which stops rogue DHCP servers. It also builds a binding table of MAC–IP–port–VLAN mappings from legitimate leases.
- Dynamic ARP Inspection (DAI) — validates every ARP packet against the DHCP snooping binding table and drops spoofed ARP replies, stopping ARP poisoning.
802.1X is port-based network access control: a device cannot pass traffic until it authenticates. It is the technical backbone of network admission control (NAC) and is covered in full in Lesson 2.
Hardening and patching
- Change default credentials; enforce strong passwords and multi-factor authentication.
- Disable unused services, protocols, and physical ports.
- Apply patching promptly — most worms exploit known, fixed flaws.
- Use least privilege and keep tested backups (the real defence against ransomware).
- Enable secure management (SSH, HTTPS) and centralised logging for detection.
| Attack | What it does | Primary mitigation |
|---|---|---|
| Reconnaissance (ping sweep / port scan) | Maps live hosts and open services. | IDS/IPS, firewalls, minimise exposed services, logging |
| Password attack | Guesses or cracks credentials. | Strong passwords, MFA, lockout, AAA |
| Buffer overflow | Overwrites memory to run code. | Patching, secure coding, host IPS |
| DoS / DDoS | Exhausts bandwidth, connections, or CPU. | Rate limiting, scrubbing, SYN cookies, IPS |
| Malware (virus, worm, trojan, ransomware, spyware) | Damages, spies, or holds data to ransom. | Antivirus/EDR, patching, user training, backups |
| Social engineering (phishing, baiting, pretexting) | Tricks people into acting. | User awareness training, email filtering, MFA |
| MAC spoofing | Impersonates a trusted MAC. | Port security, 802.1X |
| ARP spoofing | Redirects traffic for MITM. | Dynamic ARP Inspection + DHCP snooping |
| DHCP starvation / rogue DHCP | Exhausts pool or hands out attacker gateway. | DHCP snooping (trusted ports) |
| VLAN hopping | Crosses VLAN boundaries. | Disable DTP, set native VLAN, unused ports to dead VLAN |
| Replay | Reuses captured credentials. | Timestamps/nonces, encrypted authentication |
Review
Check what you have learned with these review questions.
Sources & references
- Cisco. CCNA (200-301) Exam Topics, Security Fundamentals and Network Security. cisco.com.
- Cisco. CyberOps Associate (200-201) Exam Topics, Security Concepts and Network Intrusion Analysis. cisco.com.
- Plummer, D. RFC 826: An Ethernet Address Resolution Protocol (ARP) (1982). rfc-editor.org/rfc/rfc826.
- Scarfone, K. et al. NIST SP 800-115: Technical Guide to Information Security Testing and Assessment (2008) — reconnaissance and scanning. csrc.nist.gov.
- Cichonski, P. et al. NIST SP 800-61 Rev. 2: Computer Security Incident Handling Guide (2012). csrc.nist.gov.
- Cisco. Catalyst Switch Security: DHCP Snooping and Dynamic ARP Inspection. cisco.com.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.