Overview Attack Types Attack Chain Attack Tools Statistics Demo Detection Mitigation Incident Response Legal Resources

DDoS Attack Guide

What is a DDoS Attack?

A Distributed Denial-of-Service (DDoS) attack is a malicious attempt to disrupt normal traffic of a targeted server, service, network, or application by overwhelming it with a flood of internet traffic from multiple compromised sources. Attackers use networks of compromised computer systems (botnets) to generate massive volumes of requests, exhausting target resources such as bandwidth, CPU, memory, or connection tables. Unlike a DoS (Denial-of-Service) attack from a single source, DDoS attacks are "distributed" across thousands or millions of devices, making mitigation significantly more challenging and requiring specialized DDoS protection services.

Global Impact: DDoS attacks cost organizations an average of $2.5 million per incident (up to $100 million for major enterprises). The largest recorded DDoS attack exceeded 3.47 Tbps (gigabits per second) in 2021 (Microsoft mitigated 3.47 Tbps attack). In 2023, the average DDoS attack size was 1.5-2.5 Gbps, but attacks exceeding 1 Tbps increased 400% year-over-year. DDoS attacks increased 150% globally in 2023 (Cloudflare, Akamai). Over 10 million DDoS attacks were detected in 2023 alone.

3.47 Tbps
Largest Recorded Attack (2021)
$2.5M+
Average Cost per Incident
10M+
Attacks Detected in 2023

Common targets of DDoS attacks include:

Types of DDoS Attacks (OSI Layer Classification)

Volume-Based Attacks (Layer 3/4)

UDP floods, ICMP floods, amplification attacks. Aim to saturate bandwidth. Measured in bits per second (bps).

Protocol Attacks (Layer 3/4)

SYN floods, ACK floods, fragmented packet attacks. Exploit protocol weaknesses. Measured in packets per second (pps).

Application Layer Attacks (Layer 7)

HTTP floods (GET/POST), Slowloris, DNS query floods. Target web applications and APIs. Measured in requests per second (rps).

Amplification/Reflection Attacks

DNS, NTP, Memcached, CLDAP, SSDP reflection attacks. Spoof source IP to amplify traffic (10x-50,000x magnification).

UDP Flood (Volume-Based)

Overwhelms random ports with UDP packets (User Datagram Protocol). Target checks for applications on ports, responds with ICMP "Destination Unreachable" when no application found. Exhausts network bandwidth and server resources. Amplification possible with spoofed source IP.

Volume (bps)

SYN Flood (Protocol)

Exploits TCP three-way handshake by sending SYN requests without completing ACK handshake (half-open connections). Exhausts server connection table (listen backlog). Target cannot accept new legitimate connections. Requires spoofed source IPs.

Protocol (pps)

HTTP Flood (Layer 7)

Sends legitimate-looking HTTP GET/POST requests for resource-intensive pages (search, login, database queries). Consumes server CPU, memory, database connections. Hard to filter because requests appear legitimate.

Application (rps)

DNS Amplification (Reflection)

Attackers send small DNS queries (40-60 bytes) with spoofed target IP to open DNS resolvers. DNS responds with large responses (500-4000 bytes) to target IP, amplifying traffic 10x-100x. Historic attack: 1.35 Tbps (2016, Mirai botnet).

Amplification

Slowloris (Layer 7 Slow Rate)

Opens connections to target web server and keeps them open by sending partial HTTP requests (incomplete headers). Exhausts server's concurrent connection pool (MaxClients, worker threads). Affects Apache, Tomcat, other threaded servers.

Application (Connection)

ICMP Flood (Ping Flood)

Sends ICMP echo requests (ping) in large volumes to target, consuming both inbound and outbound bandwidth. Target must process each request and send ICMP echo reply, consuming CPU and bandwidth.

Volume (bps)

NTP Amplification (monlist)

Abuses NTP (Network Time Protocol) monlist command. Small request (8-48 bytes) triggers response up to 468 bytes per peer (often 100-1000 responses). Amplification factor up to 1000x. Attack volume up to 400 Gbps (2015).

Amplification

Memcached Amplification (UDP)

Abuses Memcached (in-memory caching system) UDP protocol. Small request (15-75 bytes) triggers response up to 750 KB (50,000x amplification). Record amplification factor: 51,200x. Attack volume up to 1.7 Tbps (2018).

Amplification

DDoS Attack Infrastructure & Execution Chain

Botnet Recruitment (Phase 1)

Attackers infect devices (computers, servers, IoT devices, routers, cameras, DVRs) with malware (Mirai, Qbot, TrickBot, Emotet) to build a botnet (army of zombies). Common infection methods: malware distribution (drive-by downloads), phishing emails, exploiting vulnerabilities (Telnet default passwords, EternalBlue), and software bundling.

Command & Control (C2) Infrastructure

The attacker uses C2 servers (command and control) to coordinate botnet activities, issue attack commands (type, target, duration), receive status updates (bot count, availability), and load new attack modules. C2 protocols: IRC, HTTP/HTTPS, custom binary protocols, peer-to-peer (P2P) for resilience.

Traffic Generation & Attack Launch

Bots generate massive traffic toward target using various attack vectors (UDP, SYN, HTTP, amplification). Attack commands include target IP, attack type, duration, packet rate, and spoofing options. Bots may use source IP spoofing (reflection attacks require spoofing).

Target Overwhelm & Service Disruption

The target's resources (bandwidth, CPU, memory, connection tables, database connections, application threads) are exhausted, causing service disruption, timeouts, errors (HTTP 503, 504), or complete unavailability. Impact: lost revenue ($10k-$1M+ per hour), reputational damage, customer churn.

// DDoS attack chain (technical flow) [Attacker] → [C2 Server] → [Botnet of 10,000-1,000,000+ devices] ↓ Launch Attack Command ↓ [Target Server/IP] → Overwhelmed by 100+ Gbps, 50+ Mpps, 1M+ rps ↓ Service Unavailable (Denial of Service) HTTP 503, 504 errors, Connection timeouts ↓ Business Impact: Revenue loss, Customer churn, SLA violations // Common DDoS command structures (botnet C2) // Mirai botnet attack command ATTACK 203.0.113.1 udp 900 1000000 # UDP flood, port 900, 1M pps // HTTP flood attack command (example) ATTACK_TARGET domain.com ATTACK_METHOD HTTP_GET ATTACK_THREADS 1000 ATTACK_DURATION 3600 # 1 hour // DDoS-as-a-Service (Booters/Stressers) pricing $19.99/month - 10 Gbps (booters) $199.99/month - 100+ Gbps (professional stressers) $2000+/month - 500+ Gbps (enterprise-tier, rental botnets)

DDoS Attack Tools & Botnet Malware (Educational Context)

Understanding these tools helps defenders develop detection and mitigation strategies:

LOIC (Low Orbit Ion Cannon)

Popular DDoS tool (C#/.NET) that floods targets with TCP, UDP, or HTTP requests. Used in hacktivist attacks (Anonymous, Project Chanology, Operation Payback). Features: IRC control, multi-threading, HTTP POST/GET floods. Detected via User-Agent "LOIC".

HOIC (High Orbit Ion Cannon)

Upgraded version of LOIC with support for up to 256 simultaneous attack threads and booster scripts. Uses randomized HTTP headers to evade detection. More powerful than LOIC (5-10x traffic). Default User-Agent randomization.

Slowloris (Perl/Python)

Application-layer attack tool that sends partial HTTP requests (incomplete headers) to exhaust server connection pools. Affects Apache 1.x/2.x, Tomcat, dhttpd. Uses multiple sockets, slow data transmission. Detection: incomplete HTTP requests, long connection times.

HULK (HTTP Unbearable Load King)

Python-based HTTP flood tool that generates unique, cache-bypassing requests (randomized User-Agent, Referer, parameters). Bypasses CDN caching (Cloudflare, Akamai). Can generate 50k-100k requests per second (single source).

GoldenEye (Python)

HTTP DoS testing tool that simulates Slowloris and HTTP flood combined. Opens multiple sockets, sends incomplete headers, and floods with GET/POST requests. Used in penetration testing (authorized).

Mirai (IoT Botnet Malware)

IoT botnet malware that infected 600,000+ devices (routers, IP cameras, DVRs) by scanning for Telnet default credentials. Responsible for record DDoS attacks: Krebs on Security (620 Gbps), OVH (1.1 Tbps), Dyn DNS (1.2 Tbps, 2016). Source code leaked in 2016 - still used.

Xerxes (C)

High-performance DDoS tool written in C, capable of 100k+ pps per source. Used in large-scale attacks (Bashlite family). Known for raw packet generation (libnet).

DDoS-Ripper (Python)

Python-based DDoS tool with multiple attack methods (UDP, TCP, HTTP, ICMP). Supports multithreading, proxy support. Used by script kiddies.

Booters / Stressers (DDoS-as-a-Service)

Commercial DDoS-for-hire services: vDos, StressThem, Quantum Stresser, Booter.xyz. Pricing: $5-$500/month for 10-500 Gbps attack capabilities. Accepts Bitcoin/Monero. Often taken down by law enforcement (Operation Power Off, 2022-2023).

DDoS Attack Statistics & Global Trends (2023-2024)

150%
Increase in DDoS Attacks (2023)
15M
Q4 2023 Attacks (Cloudflare)
$2B+
Annual Extortion Payments

DDoS Attack Simulation (Traffic Flood)

This demonstration simulates how DDoS attacks overwhelm network resources and cause service disruption. Click to see traffic impact from a distributed botnet:

Network Bandwidth Utilization (Gbps) 0%
Click "Simulate DDoS Attack" to see distributed botnet traffic overwhelm target infrastructure

This is a simulated demonstration for educational purposes. Real DDoS attacks involve thousands to millions of compromised devices (botnets) generating massive traffic volumes (100+ Gbps, 50+ Mpps). The best defenses are DDoS protection services (Cloudflare, Akamai, AWS Shield, Azure DDoS Protection), rate limiting, web application firewalls (WAF), and network monitoring (NetFlow, sFlow, IPFIX).

Detecting DDoS Attacks (Indicators & Monitoring)

Traffic Anomalies (Volume-based)

Sudden traffic spikes (500%+ increase), unusual protocol distribution (UDP > 80% of traffic), traffic from unexpected geographic regions, and burst patterns (periodic surges). Compare to baseline (normal traffic patterns).

Performance Degradation Metrics

Slow network performance, high latency (RTT > 500ms), connection timeouts, HTTP 503/504 errors, packet loss (5-100%), and server response time spikes (>5 seconds). Application health checks failing.

Resource Exhaustion Indicators

High CPU usage (90-100%), memory exhaustion, connection table overflow (netstat -an | wc -l), file descriptor limits reached, database connection pool exhaustion, and bandwidth saturation (link utilization 100%).

Log & Request Pattern Analysis

Large numbers of requests from same IP ranges (/24 CIDR blocks), unusual User-Agent strings (LOIC, HOIC, Python-Requests), same request patterns (identical URLs, parameters), and high request rates (10k-1M rps).

Network Flow Monitoring (NetFlow/sFlow)

NetFlow/sFlow/IPFIX provides per-flow statistics: source/destination IP, ports, protocol, packet/byte counts. Detects SYN flood (SYN packets with no ACK), UDP flood (high UDP traffic), and amplification attacks.

DNS & NTP Amplification Detection

Monitor DNS servers for ANY queries (amplification vector), NTP monlist requests, Memcached UDP traffic (port 11211), and CLDAP reflection (port 389). Sudden spikes in response traffic indicate amplification attacks.

// DDoS detection thresholds (industry standards) // NetFlow/Sflow monitoring (detect anomalies) - Traffic volume: > 5x normal baseline (past 7 days average) - Packet-per-second (pps) rate: > 500k pps (sustained for > 60 seconds) - SYN half-open connections: > 1000 pending (netstat -an | grep SYN_RECV | wc -l) - HTTP error rate: HTTP 503/504 errors > 20% of total requests - Bandwidth utilization: > 80% of link capacity for > 5 minutes - UDP traffic percentage: > 80% of total traffic (baseline < 10%) - DNS response volume: > 10x normal (indicates DNS amplification) // Detection commands (real-time) # Check SYN_RECV connections (SYN flood detection) netstat -an | grep SYN_RECV | wc -l # Critical threshold: > 1000 SYN_RECV connections # Check established connections per IP (connection flood) netstat -an | grep ESTABLISHED | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head -20 # Check interface bandwidth utilization (Linux) sar -n DEV 1 5 ifstat -i eth0 1 # Monitor HTTP request rate (Nginx logs) tail -f /var/log/nginx/access.log | pv -l -i 1 > /dev/null # Check connection queue overflow (listening backlog) ss -lnt | grep -E ':(80|443)' | awk '{print $2}' # Critical: second column > 1000 (connection backlog limit exceeded) # Check packet drop rate (network congestion) netstat -s | grep -i "packet receive errors" netstat -s | grep "SYNs to LISTEN" // Real-time DDoS detection with Snort/Suricata alert tcp $EXTERNAL_NET any -> $HOME_NET 80 ( msg:"SYN flood detected - high rate SYN traffic"; flow:stateless; threshold: type both, track by_src, count 1000, seconds 10; sid:1000001; rev:1; )

DDoS Mitigation & Prevention Strategies (Defense-in-Depth)

DDoS Protection Services (Cloud-based)

Cloudflare (Magic Transit, Spectrum), Akamai Prolexic, AWS Shield Advanced, Azure DDoS Protection, Google Cloud Armor. Services route traffic through scrubbing centers that filter malicious packets using machine learning, rate limiting, and signature detection. Absorbs large-scale attacks (Tbps+).

Rate Limiting & Connection Throttling

Implement rate limiting per IP address, per user session, or per API key. Use connection rate limiting (SYN cookies, SYNPROXY). Tools: iptables (limit module), Nginx (limit_req_zone), HAProxy (rate-limit), Cloudflare Rate Limiting rules.

Anycast Network Architecture

Distribute traffic across globally distributed servers (Anycast routing). Attacks absorbed by multiple data centers, preventing single point of failure. Used by Cloudflare, Akamai, Google, AWS. Allows 10-100x attack absorption capacity.

Web Application Firewall (WAF)

WAFs (Cloudflare WAF, AWS WAF, Azure WAF, ModSecurity) filter malicious HTTP requests (SQL injection, XSS), block application-layer DDoS attempts (HTTP floods, Slowloris), and enforce rate limiting. Uses signature-based and behavioral detection.

Scrubbing Centers & Traffic Filtering

Traffic is routed through scrubbing centers (BGP redirect) that filter malicious packets using IP reputation, protocol analysis, and anomaly detection. Clean traffic forwarded to origin. On-premises scrubbing: Radware DefensePro, Arbor APS.

Auto-scaling & Redundancy

Auto-scaling infrastructure (AWS Auto Scaling, Kubernetes HPA) to absorb increased traffic during attacks. Use load balancers (ELB/ALB, HAProxy, Nginx) with health checks and failover to redundant servers/regions.

SYN Cookies & TCP Stack Hardening

Enable SYN cookies (net.ipv4.tcp_syncookies=1) to prevent SYN flood connection table exhaustion. Tune TCP stack: net.ipv4.tcp_max_syn_backlog, net.core.netdev_max_backlog, net.ipv4.tcp_syn_retries.

Network ACLs & Blackhole Routing (RTBH)

Remotely Triggered Black Hole (RTBH) routing drops attack traffic at upstream ISP. BGP communities to signal blackhole. Emergency measure for massive attacks (last resort).

Best Practice - Defense-in-Depth for DDoS Protection: Implement multiple mitigation layers: cloud-based DDoS protection (Cloudflare/Akamai/AWS Shield) absorbs large volume attacks (Tbps+), rate limiting (per IP) stops application-layer floods, web application firewall (WAF) filters malicious HTTP requests, and auto-scaling infrastructure handles traffic spikes. No single solution stops all DDoS attacks. Develop and test a DDoS incident response plan (DRP) with escalation procedures, runbooks, and communication templates. Conduct regular tabletop exercises. Maintain relationships with DDoS protection providers and upstream ISPs (BGP communities for RTBH).

DDoS Incident Response Plan (NIST CSF Framework)

If your organization is under DDoS attack, follow this incident response plan in order:

Further DDoS Resources & Information

Cloudflare DDoS Threat Report

Quarterly DDoS threat reports including attack trends, vectors, geographic distribution, and new DDoS techniques (HTTP/2 rapid reset, DNS amplification). Essential for understanding current DDoS landscape.

CISA DDoS Response Guidance

CISA (Cybersecurity and Infrastructure Security Agency) DDoS response framework, mitigation strategies, and incident reporting (cisa.gov/report). Includes DDoS response playbooks.

Akamai State of the Internet Report

Quarterly threat report covering DDoS attacks, application-layer attacks, and API attacks. Includes global attack maps and industry-specific trends.

DDoS Mitigation Tools & Scripts

Community-maintained DDoS mitigation scripts: fail2ban (rate limiting), iptables rules, nginx rate limiting configurations, and failover scripts.

SANS SEC504 (DDoS Response)

Incident response course covering DDoS detection, mitigation strategies, and business continuity planning.

NIST SP 800-61 (Incident Response)

NIST Computer Security Incident Handling Guide (SP 800-61) - DDoS response framework, communication plans, and recovery procedures.

The DFIR Report - DDoS Case Studies

Real DDoS incident case studies, TTPs (Tactics, Techniques, Procedures), network traffic analysis (PCAP), and mitigation lessons from professional incident responders.

US DOJ - DDoS Prosecution Cases

US Department of Justice (DOJ) press releases on DDoS prosecutions (Operation Power Off, booter/stresser takedowns, botnet operators).

← Back to Knowledge Base