Sub topic 13
DoS, DDoS, On-Path, Evil Twin and Spoofing
This chapter covers the network attacks listed in the A+ Core 2 (220-1102) security objectives. It assumes you know what an IP address, a MAC address, DNS and a Wi-Fi access point (AP) are, and that you have read the earlier chapters on the threat vocabulary and social engineering. The goal is to recognize each attack from a short scenario, explain how it works, and choose the technician's best response.
Why network attacks are different
Social engineering targets people. Malware targets a single device. Network attacks target the communication between devices, or the availability of a service. Three properties of data are at risk:
- Confidentiality: only the right people can read the data. On-path and evil twin attacks threaten it.
- Integrity: the data has not been altered. On-path and spoofing attacks threaten it.
- Availability: the service works when needed. DoS and DDoS attacks threaten it.
Knowing which property is under attack is a fast way to narrow down the answer on an exam question.
Denial of service (DoS)
A denial of service (DoS) attack tries to make a system, service or network unavailable to its legitimate users. The attacker usually floods the target with more traffic or requests than it can handle. The target's CPU, memory, bandwidth or connection table fills up, and real users get slow responses or no response.
Typical symptoms:
- A web site or server becomes very slow or stops responding.
- Network bandwidth is fully used, even though normal users are not generating that load.
- A single source address sends a very large number of requests.
- Services fail or the device reboots under load.
A DoS attack does not steal data. Its aim is disruption. Because it comes from one source, a defender can often block that source at the firewall.
Distributed denial of service (DDoS)
A distributed denial of service (DDoS) attack is a DoS attack launched from many systems at once. The attacker controls those systems through malware. A group of infected machines under one attacker's control is a botnet, and each infected machine is a bot (sometimes called a zombie).
The key difference from DoS is the number of sources. Blocking one IP address does not help, because thousands of addresses are sending traffic. Home routers, cameras and other Internet of Things (IoT) devices with weak or default passwords are common bot targets.
| Feature | DoS | DDoS |
|---|---|---|
| Sources of traffic | One system | Many systems (botnet) |
| Blocking one source | Often effective | Not effective |
| Goal | Make a service unavailable | Make a service unavailable |
| Typical defense | Firewall rule, rate limiting | Upstream filtering, traffic scrubbing, CDN or provider mitigation |
A technician's role at the A+ level is mostly recognition and prevention. You can keep your own devices from joining a botnet: change default passwords, patch firmware, and run anti-malware. If your organization is the target, you escalate to the network team or the internet service provider.
On-path attack
An on-path attack places the attacker between two parties who believe they are talking directly to each other. The attacker can read the traffic, and may also change it before passing it on. Older materials call this a man-in-the-middle (MITM) attack. CompTIA's current objectives use the term on-path, but you should recognize both names.
Common ways an attacker gets in the path:
- Running a rogue Wi-Fi network (see evil twin below).
- ARP poisoning on a local network, which tricks devices into sending traffic to the attacker's MAC address.
- DNS spoofing, which sends users to an attacker-controlled address.
- Controlling a compromised router or switch.
Warning signs include browser certificate warnings, unexpected redirects, and logins that suddenly fail or behave oddly on public networks.
The main defense is encryption. HTTPS and VPNs protect data even if someone intercepts it. Users should never click through a certificate warning to continue.
Evil twin
An evil twin is a rogue wireless access point that imitates a legitimate one. The attacker copies the network name (SSID), and often boosts the signal so devices prefer it. Users connect to it thinking it is the real network, such as the coffee shop's Wi-Fi. The attacker then performs an on-path attack, capturing traffic, harvesting credentials, or redirecting users to fake login pages.
Scenario clue: a user at an airport sees two networks with nearly identical names, connects to the wrong one, and later finds that their accounts were accessed.
Defenses:
- Verify the exact network name with staff before connecting.
- Avoid public Wi-Fi for sensitive tasks, or use a VPN.
- Turn off auto-connect to open networks.
- On corporate networks, use WPA2-Enterprise or WPA3 with certificate validation, and scan regularly for rogue access points.
Spoofing
Spoofing means pretending to be someone or something else by faking identifying information. The attacker forges data so that a system or person trusts it. Spoofing is a technique used inside many other attacks. Common types:
| Type | What is faked | Example |
|---|---|---|
| IP spoofing | Source IP address | Attack packets appear to come from a trusted host |
| MAC spoofing | Hardware address | A device copies an allowed MAC to bypass a MAC filter |
| ARP spoofing | ARP replies | The attacker maps their MAC to the gateway's IP |
| DNS spoofing | DNS answers | A real domain name resolves to a malicious IP |
| Email spoofing | Sender address | A message appears to come from the CEO or the bank |
| Caller ID spoofing | Phone number | A vishing call appears to come from the help desk |
Spoofing links back to the social engineering chapters. Spoofed email supports phishing, and spoofed caller ID supports vishing.
Defenses depend on the type:
- Email: SPF, DKIM and DMARC records help receiving servers reject forged senders, and users should check the real sender address.
- MAC filtering is weak protection, because MAC addresses are easy to copy. Use strong authentication instead.
- Use DNSSEC and trusted DNS servers where available.
- Use switches with features that detect ARP abuse.
Comparing the attacks
| Attack | Main goal | Property attacked | Key clue in a scenario |
|---|---|---|---|
| DoS | Disrupt a service | Availability | One source floods a server |
| DDoS | Disrupt a service | Availability | Traffic from thousands of addresses, botnet |
| On-path | Read or alter traffic | Confidentiality and integrity | Attacker sits between two parties |
| Evil twin | Lure users onto a fake AP | Confidentiality | Familiar SSID, odd connection, stolen logins |
| Spoofing | Impersonate a trusted source | Integrity and trust | Forged address, sender or identity |
Responding as a technician
If you suspect one of these attacks, follow your organization's incident process. General steps are:
- Identify the symptoms and gather facts: when it started, which devices, which network.
- Contain the problem. For example, disconnect an affected device from the network, or disable a rogue AP's connection.
- Report to your security team or supervisor and document what you saw.
- Apply the fix, such as updating firmware, changing credentials, or blocking traffic.
- Educate the user about what happened and how to avoid it.
Common mistakes
- Treating DoS and DDoS as the same. The difference is the number of attacking sources, and it changes the defense.
- Thinking HTTPS stops all on-path attacks. It protects the content, but users who ignore certificate warnings can still be tricked.
- Relying on MAC filtering to stop spoofing. It only slows down a determined attacker.
- Assuming a slow site always means an attack. Check for ordinary causes first, such as a failed link or a misconfigured device.
Exercise
A user at a hotel connects to a Wi-Fi network named "Hotel_Guest" and later reports that their email account was accessed from another country. The front desk says the real network is "HotelGuest". Which attack most likely occurred, and what is one countermeasure?
Show answer
An evil twin attack. The attacker created a fake access point with a near-identical name and captured the user's credentials, which is an on-path attack. Countermeasures include confirming the exact SSID with staff, using a VPN on public Wi-Fi, and not auto-connecting to open networks.
Exercise
A company web server is overwhelmed by requests from thousands of different IP addresses, many of them from home routers and cameras. Blocking a single address did not help. Name the attack and explain why the block failed.
Show answer
This is a DDoS attack. The traffic comes from a botnet of many infected devices, so blocking one source address removes only a tiny part of the flood. Mitigation needs upstream filtering or a provider's DDoS protection.
Exercise
An employee receives an email that appears to come from the CEO's address, but the message headers show it was sent from an unrelated server. Which term describes the forged sender, and which email records help prevent it?
Show answer
Email spoofing. SPF, DKIM and DMARC records let receiving servers check whether the sending server is allowed to send for that domain.