🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Cybersecurity › Cybersecurity Threats: Attack Types, Threat Actors, and Vulnerability Analysis › Lesson 4
TEC-CYBE44-02 · Lesson 4 · 14 clock hours · demo

Network-Based Attacks: DoS, DDoS, Man-in-the-Middle, and Replay Attacks

Objective. Students will explain the mechanism, traffic characteristics, and defensive countermeasures for denial-of-service, distributed denial-of-service, man-in-the-middle, and replay attack types.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Network-Based Attacks: DoS, DDoS, Man-in-the-Middle, and Replay Attacks

Understanding how network-based attacks work at the packet level is a core skill for any cybersecurity professional. This lesson covers four attack types that appear on the CompTIA Security+, CompTIA CySA+, and ISC2 CC exams and that you will encounter in real defensive work.

Denial-of-Service (DoS) Attacks

A denial-of-service (DoS) attack sends so much traffic or so many requests to a target system that it can no longer serve legitimate users. The attacker uses a single source. The most common technique is the SYN flood.

In a normal TCP handshake, the client sends a SYN packet, the server replies with SYN-ACK and reserves memory for the connection, and the client completes the handshake with an ACK. In a SYN flood, the attacker sends thousands of SYN packets with spoofed or unreachable source addresses. The server sends SYN-ACKs and waits for ACKs that never arrive. Its connection table fills up, and it refuses new legitimate connections.

Traffic characteristics to recognize in Wireshark:

Countermeasures: SYN cookies allow the server to avoid reserving memory until the handshake completes. Rate limiting and firewall rules can drop excessive SYN packets from a single source. Ingress filtering blocks packets with obviously spoofed source addresses.

Distributed Denial-of-Service (DDoS) Attacks

A DDoS attack scales the DoS concept by using many compromised machines — a botnet — controlled by a command-and-control (C2) server. The attacker (bot herder) sends instructions to the C2, which relays commands to thousands of bots (infected endpoints). All bots flood the target simultaneously, making the attack volume far larger and the source harder to block.

A volumetric DDoS may use amplification reflectors — publicly reachable servers (such as open DNS resolvers or NTP servers) that respond to a small spoofed request with a much larger reply directed at the victim. This multiplies the traffic without increasing botnet size.

Botnet architecture components:

1. Attacker / bot herder

2. C2 server

3. Bots (compromised endpoints)

4. Amplification reflectors (in amplification attacks)

5. Target

Countermeasures: Cloud-based DDoS scrubbing services absorb volumetric traffic upstream. ISP-level blackhole routing drops attack traffic before it reaches the target network. Disabling or rate-limiting open recursive DNS and NTP servers reduces amplification potential.

Man-in-the-Middle (MitM) Attacks

In a man-in-the-middle attack, an adversary secretly positions themselves between two communicating parties, intercepting and potentially altering traffic. Neither party realizes a third party is present.

ARP Poisoning is a common LAN-layer technique. ARP (Address Resolution Protocol) maps IP addresses to MAC addresses on a local network. ARP has no authentication. An attacker broadcasts fake ARP replies telling other hosts that the attacker's MAC address corresponds to the gateway's IP address. Victim machines update their ARP cache with the false mapping and send traffic to the attacker instead of the real gateway. The attacker forwards traffic onward so communication continues — victims notice nothing.

What to look for in a .pcap file:

Countermeasures: Dynamic ARP Inspection (DAI) on managed switches validates ARP packets against a DHCP snooping binding table and drops invalid ARP replies. Static ARP entries for critical hosts prevent ARP cache poisoning. Encrypting traffic with TLS limits the value of intercepted data even if MitM succeeds.

Replay Attacks

A replay attack captures valid authentication data — such as a session token, a Kerberos ticket, or a hashed credential — transmitted over a network, then retransmits it later to impersonate the legitimate user. The attacker does not need to decrypt the data; they simply reuse it.

Example scenario: An attacker captures a valid session cookie from an unencrypted HTTP session. Hours later, they inject that cookie into their own HTTP request and the server accepts it as if the original user were present.

Countermeasures: Using timestamps and short expiration windows in authentication tokens means a replayed token is rejected once it expires. Nonces (numbers used once) embedded in authentication exchanges ensure each authentication is unique. TLS encryption prevents the attacker from capturing usable tokens in the first place. Mutual authentication verifies both ends of the connection.

Lab Safety and Responsible Use

All packet capture and attack simulation work in this course is performed only on isolated lab virtual machines and closed lab networks. Never run packet captures, flood tools, or ARP spoofing tools on any production network, public network, or network you do not own and have explicit authorization to test. Unauthorized interception of network traffic may violate federal law under the Electronic Communications Privacy Act and similar statutes. Always confirm the lab environment is properly isolated before beginning any exercise. Follow your instructor's directions exactly.

Connecting to Exam Domains

These attack types are tested across CompTIA Security+ (Threats, Attacks, and Vulnerabilities domain), CompTIA CySA+ (Threat and Vulnerability Management), and ISC2 CC (Network Security). Being able to recognize attack traffic in a packet capture and recommend a matching countermeasure is a skill tested in scenario-based exam questions.

Key terms10

SYN floodA DoS attack that sends a high volume of TCP SYN packets with spoofed or unreachable source addresses, exhausting a server's connection table so it cannot accept legitimate connections.
Denial-of-Service (DoS)An attack from a single source intended to make a system or service unavailable to legitimate users by overwhelming it with requests or traffic.
Distributed Denial-of-Service (DDoS)A DoS attack that uses a botnet — many compromised machines controlled by a C2 server — to flood a target from numerous sources simultaneously.
BotnetA network of compromised computers (bots) controlled remotely by an attacker through a command-and-control server and used to carry out coordinated attacks.
Man-in-the-Middle (MitM)An attack in which an adversary secretly intercepts and potentially alters communications between two parties who believe they are communicating directly with each other.
ARP poisoningA MitM technique that sends fake ARP replies to associate the attacker's MAC address with a legitimate IP address (such as the default gateway), redirecting LAN traffic through the attacker.
Replay attackAn attack in which valid authentication data captured from a network — such as a session token or ticket — is retransmitted by an attacker to impersonate the legitimate user.
Amplification reflectorA publicly reachable server (such as an open DNS resolver) that an attacker exploits to amplify DDoS traffic by sending small spoofed requests that generate large responses directed at the victim.
Dynamic ARP Inspection (DAI)A managed-switch security feature that validates ARP packets against a trusted binding table and drops ARP replies that do not match, preventing ARP poisoning.
NonceA number used only once in an authentication exchange, ensuring that each session or request is unique and that captured data cannot be replayed successfully.
In class: Instructor demonstrates packet captures of a simulated SYN flood in Wireshark on a closed lab network; students annotate a printed packet diagram identifying source/destination, flag values, and volume anomalies. · Students use Wireshark (installed on isolated lab VMs) to open a pre-captured .pcap file containing an ARP poisoning sequence and answer a guided question sheet identifying attacker MAC, victim IP, and the point of interception. · Instructor-led diagram walkthrough of a DDoS botnet architecture on the whiteboard; students reproduce the diagram from memory and label each component (C2 server, bot, amplification reflector, target) in their lab notebooks.
Materials: Wireshark (open-source, installed on isolated lab VMs), pre-captured .pcap files (instructor-created on isolated network), printed packet diagram handouts, lab notebook, CompTIA Security+ SY0-701 study guide — network attacks chapter
Check: Graded guided question sheet from the ARP poisoning .pcap exercise; students must correctly identify attacker MAC, victim IP, interception point, and recommend one countermeasure — pass mark 75%. Diagram from memory checked against instructor key — all five labeled components required to pass.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA Security+ — Threats, Attacks, and Vulnerabilities
1. During a SYN flood attack, which TCP flag combination is most characteristic of the malicious packets?
CompTIA CySA+ — Threat and Vulnerability Management
2. An analyst opens a .pcap file and notices that two different MAC addresses are both claiming ownership of the IP address 10.0.0.1 via ARP replies. What attack does this most likely indicate?
CompTIA Security+ — Threats, Attacks, and Vulnerabilities
3. Which component of a DDoS botnet relays attack instructions from the attacker to the compromised endpoint machines?
ISC2 CC — Network Security
4. A threat actor captures a valid Kerberos ticket from a network session and uses it hours later to authenticate to a file server without cracking any passwords. Which attack type best describes this?
CompTIA Security+ — Threats, Attacks, and Vulnerabilities
5. Which countermeasure specifically addresses SYN flood attacks by allowing the server to avoid allocating connection-table memory until the three-way handshake is complete?
CompTIA CySA+ — Threat and Vulnerability Management
6. An organization wants to prevent ARP poisoning on its switched LAN. Which technology should be enabled on the managed switches?
CompTIA Security+ — Threats, Attacks, and Vulnerabilities
7. A DDoS attack uses open DNS resolvers to send large DNS responses to a victim after the attacker sends small spoofed queries. Which term describes the DNS resolvers in this scenario?
CompTIA CySA+ — Threat and Vulnerability Management
8. Which combination of controls BEST reduces the risk of a successful replay attack against a web application?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.