01 / 20

Network Attack
Patterns

Understand how attackers exploit networks using spoofing, man-in-the-middle, and DDoS techniques: and learn the high-level mitigations that defend against them.

Cyber Security

What Is a Network Attack?

A network attack is any deliberate action designed to disrupt, intercept, or gain unauthorized access to data traveling across a computer network. Attackers exploit weaknesses in protocols, configurations, and human behavior to compromise systems.

Three Core Attack Families

Spoofing
Impersonating a trusted device or identity to trick a target into accepting malicious data.
Man-in-the-Middle
Secretly intercepting and potentially altering communication between two parties who believe they are talking directly.
DDoS
Flooding a server or network with massive traffic from many sources to make it unavailable to legitimate users.

Why Attacks Succeed

Vulnerability Implicit Trust Weak Authentication No Encryption Finite Resources

Spoofing: Faking Identity

Real Server Victim Attacker Expected path Spoofed reply Pretends to be server

The attacker sends packets with a forged source address (IP, MAC, or DNS), making the victim believe the data comes from a trusted source. Common types include IP spoofing, ARP spoofing, and DNS spoofing.

Man-in-the-Middle: Secret Relay

Alice Bob Eve (Attacker) intercepts + relays perceived direct link reads / modifies Neither party knows Eve exists

DDoS: Overwhelming the Target

Target Server Bot 1 Bot 2 Bot 3 Bot N ... Controller Service unavailable for legitimate users

A Distributed Denial-of-Service attack uses a botnet (network of compromised devices) controlled by an attacker. Thousands of bots send requests simultaneously, exhausting the target's resources (bandwidth, CPU, memory).

Key Distinctions

Spoofing MITM DDoS
Goal Impersonate Intercept / Alter Deny service
Position Outside the path Between two parties Many sources
Data stolen? Sometimes Yes No
Service disrupted? Rarely Rarely Yes
Requires botnet? No No Yes

Attacks vs. the CIA Triad

Confidentiality Integrity Availability MITM (breaks both) Spoofing (breaks integrity) DDoS (breaks availability)

How to Identify an Attack Pattern

1
Observe the symptom. Is it service outage, suspicious redirects, or unauthorized data access?
2
Check the source. Is the packet source address legitimate, or does it conflict with known records (ARP table, DNS cache)?
3
Examine traffic volume. A sudden spike from many IPs suggests DDoS. Normal volume with wrong source suggests spoofing.
4
Inspect encryption status. Unexpected certificate warnings or plaintext data may indicate a MITM intercepting connections.
5
Classify and respond. Map the attack to Spoofing, MITM, or DDoS and apply the appropriate mitigation strategy.

High-Level Mitigations

Anti-Spoofing
Ingress filtering, DNSSEC, Dynamic ARP Inspection (DAI), and source address validation ensure packets come from genuine sources.
Anti-MITM
End-to-end encryption (TLS/HTTPS), certificate pinning, VPNs, and mutual authentication prevent interception.
Anti-DDoS
Rate limiting, traffic scrubbing centers, CDNs, anycast routing, and over-provisioning absorb or deflect flood traffic.

Example 1: ARP Spoofing

Router IP: 192.168.1.1 Victim PC Attacker Fake ARP: "I am 192.168.1.1" Traffic now goes to attacker Mitigation: Dynamic ARP Inspection (DAI)

Example 2: HTTPS Downgrade

User Attacker (SSL Strip) Bank HTTP HTTPS Plaintext: passwords visible Encrypted: bank sees HTTPS Mitigation: HSTS + Certificate Pinning

Example 3: SYN Flood DDoS

Web Server connection table full SYN SYN SYN ... SYN-ACK sent but no ACK returns Half-open connections pile up Mitigation: SYN cookies + rate limiting

In a SYN flood, the attacker sends thousands of TCP SYN requests with spoofed source IPs. The server responds with SYN-ACK but never receives the final ACK, filling its connection table. SYN cookies let the server avoid storing half-open connections.

Common Mistakes

✕ Confusing DDoS with DoS
DoS is from a single source. DDoS is distributed across many sources (botnet). The "distributed" part is what makes DDoS harder to block.
✕ Thinking MITM requires physical access
MITM can happen remotely via ARP spoofing on a LAN, rogue Wi-Fi hotspots, or DNS hijacking. Physical wire tapping is not required.
✕ Assuming encryption stops all attacks
Encryption prevents MITM eavesdropping but does nothing against DDoS. A fully encrypted server can still be overwhelmed by flood traffic.

Attack Pattern Summary

Feature Spoofing MITM DDoS
Technique Forge source address Intercept + relay Flood with traffic
CIA Pillar Integrity Confidentiality + Integrity Availability
Key Mitigation Ingress filtering, DNSSEC TLS/HTTPS, HSTS Rate limiting, CDN
Detection Signal ARP table conflicts Certificate warnings Traffic spike
Can chain with others? Yes (enables MITM) Uses spoofing Uses spoofed IPs

Question 1 of 5

An attacker sends fake ARP replies to redirect a victim's traffic through their own machine. Which attack pattern does this represent?

Question 2 of 5

In a man-in-the-middle attack, which two pillars of the CIA Triad are most directly threatened?

Question 3 of 5

A website enables HSTS (HTTP Strict Transport Security). Which attack does this primarily mitigate?

Question 4 of 5

What distinguishes a DDoS attack from a simple DoS attack?

Question 5 of 5

A server receives thousands of TCP SYN requests per second with spoofed source IPs. Its connection table fills up. Which mitigation is most appropriate?