Showing raw Markdown: the renderer could not load.
A distributed denial-of-service (DDoS) attack doesn't steal anything: it floods a service until real users can't reach it. Attacks are cheap to launch and can cost a business hours of downtime, so every online service needs a plan before one arrives. This module explains how the main kinds of DDoS attack work, why they are hard to block, which defences work at each layer, and how to prepare and respond. ## Learning objectives By the end of this module you will be able to: 1. Explain what denial-of-service (DoS) and distributed denial-of-service (DDoS) attacks are, and why attacks from botnets are hard to block. 2. Classify DDoS attacks as volumetric, protocol or application-layer attacks, and give an example of each. 3. Explain how reflection and amplification attacks work and why source address spoofing makes them possible. 4. Compare DDoS defences (overprovisioning, rate limiting, SYN cookies, web application firewalls, anycast and CDNs, scrubbing services, blackholing) and choose the right one for each attack type. 5. Plan a DDoS response: traffic baseline, detection, runbook and escalation to the provider. ## Prerequisites - [Networking 08 — Transport Layer: TCP, UDP and Ports](../../networking/08-tcp-udp/README.md) and [Networking 11 — DNS](../../networking/11-dns/README.md). - [06 — Network Security: Firewalls and Segmentation](../06-network-security/README.md). - For the lab: a Linux machine with Podman 4 or later. Cost: free. ## Contents | Type | Duration | |---|---| | [Theory](lesson.md) | 55 min | | [Hands-on lab: rate limiting a web server under a simulated flood](lab.md) | 50 min | | [Assessment (10 questions)](quiz.md) | 15 min | ## Further reading - [RFC 4987](https://www.rfc-editor.org/rfc/rfc4987) — TCP SYN Flooding Attacks and Common Mitigations - [RFC 2827 (BCP 38)](https://www.rfc-editor.org/rfc/rfc2827) — Network Ingress Filtering: Defeating Denial of Service Attacks which employ IP Source Address Spoofing - [RFC 7999](https://www.rfc-editor.org/rfc/rfc7999) — BLACKHOLE Community - [CISA: Understanding and Responding to DDoS Attacks](https://www.cisa.gov/resources-tools/resources/understanding-and-responding-distributed-denial-service-attacks)