Skip to content
Cybersecurity

DDoS

DDoS (Distributed Denial of Service) is a type of cyberattack that overloads a system or network service by flooding it with an enormous amount of fake traffic, leading to resource unavailability for legitimate users.

TL;DR — what is DDoS and how to protect against it

DDoS (Distributed Denial of Service) is a distributed attack that floods a service with traffic from thousands of sources (botnets, amplifiers) until resources (bandwidth, CPU, RAM, connection pool) are exhausted. Effective defense is multi-layered (network + transport + application + CDN scrubbing) — no single product “solves DDoS”.

  • Scale 2024-2026: record attacks exceeded 5.6 Tbps (Cloudflare, October 2024, UDP flood); HTTP/2 Rapid Reset reached 398 million requests per second (CVE-2023-44487).
  • Main vectors: SYN flood (L4), UDP amplification (DNS, NTP, Memcached, CLDAP), HTTP flood (L7), Slowloris (L7), HTTP/2 Rapid Reset.
  • Defense stack: Anycast CDN (Cloudflare, Fastly, Akamai), scrubbing service (Cloudflare Magic Transit, Akamai Prolexic, AWS Shield Advanced, NETSCOUT Arbor), rate limiting (WAF, Nginx limit_req), traffic engineering (BGP blackhole), resilient architecture (auto-scaling, multi-region failover).
  • Defense goal: not zero attacks — but mitigation in <60 seconds from detection.

What is DDoS?

DDoS (Distributed Denial of Service) is a type of cyberattack that overloads a system or network service by flooding it with an enormous amount of fake traffic, leading to resource unavailability for legitimate users.

DDoS Attack Definition

A DDoS attack (Distributed Denial of Service attack) is a coordinated attack on the availability of a system or network service, conducted simultaneously from multiple sources. The goal is to overload the attacked target’s resources and prevent it from functioning normally.

How Does a DDoS Attack Work?

  • The attacker takes control of a large number of computers (botnet)

  • Computers in the botnet receive commands to send an enormous number of requests to the attack target

  • The attack target is flooded with fake traffic that exhausts its resources

  • Legitimate users cannot use the service due to overload

Types of DDoS Attacks

  • Volumetric Attacks: Flood the network link with an enormous amount of traffic.

  • Protocol Attacks: Exploit vulnerabilities in network protocols.

  • Application Layer Attacks: Target specific services or applications.

DDoS vs DoS vs botnet — attack vector comparison

VectorOSI layerGoalExampleDefense
SYN FloodL4 (Transport)Exhaust connection tableBooter services, MiraiSYN cookies, rate limit, scrubbing
UDP Amplification (DNS/NTP/Memcached)L3-4Bandwidth saturation via reflectionGitHub 1.35 Tbps (Memcached, 2018), AWS 2.3 Tbps (CLDAP, 2020)UDP blackhole, BCP38, scrubbing
HTTP Flood (L7)L7 (Application)Exhaust CPU / app connection poolMirai HTTP, BlackNurseWAF, JS challenge, CAPTCHA, Bot Fight
Slowloris / Slow ReadL7Exhaust connection pool with slow requestsApache pre-2.2 vulnerableConnection timeout, mod_reqtimeout, reverse proxy
HTTP/2 Rapid ResetL7Stream multiplexing abuse — 398M rpsCloudflare/Google/AWS 2023 (CVE-2023-44487)Patch HTTP/2 servers, rate limit streams
Ransom DDoS (RDoS)L3-7 mixedExtort ransom (note before or during attack)Fancy Bear, REvil RDoS, NoName057(16)Scrubbing + DON’T pay + report to CSIRT/CERT
DoS (single source)anyOne attacker machine hitting one victimLOIC, HOIC (legacy)Trivial IP block, firewall
Botnet (infrastructure)underlyingNetwork of compromised devices (zombies) used as a toolMirai (IoT), Mēris, MyKingsBotnet takedown (LE ops), ISP-level filtering

Key DDoS vs DoS difference: DoS comes from one source — trivial to block (single IP in firewall). DDoS is distributed (thousands of IPs simultaneously, typically a botnet) — impossible to stop by blocking individual IPs, requires distributed scrubbing infrastructure. A botnet is not an attack type — it is the infrastructure attackers use to launch DDoS (or other operations: spam, crypto theft, credential stuffing).

Goals and Motivations of DDoS Attacks

  • Disrupting competitor operations

  • Extortion (ransom demands)

  • Protest or activism (hacktivism)

  • Diverting attention from other attacks

  • Demonstrating power or skills

Threats Associated with DDoS Attacks

  • Service downtime and financial losses

  • Loss of reputation and customer trust

  • Costs related to protection and system repair

  • Possibility of data leaks during the attack

  • Disruptions in supply chain and business processes

Examples of Famous DDoS Attacks

  • Attack on Dyn DNS in 2016

  • Attacks on banks and cryptocurrency exchanges

  • Attacks on government services and critical infrastructure

How to Detect DDoS Attacks?

  • Network traffic monitoring

  • Traffic pattern and anomaly analysis

  • Using intrusion detection systems (IDS/IPS)

  • Monitoring server and application performance

Methods of Protection Against DDoS Attacks

  • Increasing bandwidth and infrastructure redundancy

  • Using CDN (Content Delivery Network) services

  • Implementing web application firewalls (WAF)

  • Using specialized anti-DDoS services

  • Traffic filtering at the internet service provider level

What to ask your internet provider and what to prepare on the company side is covered in our article on what the DDoS recommendation for ISPs means for companies.

How to protect against DDoS — step-by-step playbook

Effective DDoS defense is not a single technology, but a three-layer program: prevention (before the attack), detection (in the first minutes), mitigation (during), and postmortem (after). Each layer has its own concrete actions and tools.

Prevention — what to do before the attack

The cheapest defense is preparing infrastructure before the first attack. In practice this takes 1-4 weeks of implementation and drastically reduces impact when an attack actually arrives.

  • Hosting/CDN with native anti-DDoS protection — choose a provider with native scrubbing capacity: Cloudflare (Free/Pro/Business/Enterprise/Magic Transit), AWS Shield Standard/Advanced, Akamai Prolexic, Imperva, Radware DefensePro, NETSCOUT Arbor Edge Defense, Azure DDoS Protection, GCP Cloud Armor. Rule of thumb: provider scrubbing capacity must be at least 10× larger than the largest recent attack in your industry (2026: >50 Tbps total capacity).
  • DDoS-resilient architecture:
    • Anycast routing — single IP distributed geographically; traffic routes to the nearest PoP (Cloudflare has >300 PoPs globally, Fastly ~80).
    • Multi-region failover — active instances across 2-3 regions (eu-central, eu-west, us-east), auto-cutover when one is overloaded.
    • Auto-scaling with circuit breakers — Kubernetes HPA, AWS Auto Scaling Groups, Azure VMSS; with circuit breakers so you do not scale infinitely under attack (cost runaway).
    • Static assets cached aggressively — Cache-Control: max-age=31536000 immutable, push to CDN edge for everything that does not need personalization.
  • Rate limiting at every layer:
    • Nginx: limit_req_zone + limit_conn_zone — typically 10-50 req/s per IP, 50-200 connections per IP.
    • Cloudflare WAF Rate Limiting Rules (Pro+) — 100 req/min default per IP, custom thresholds per endpoint.
    • AWS WAF rate-based rules — 2,000 req per 5 min per IP, integrates with Shield Advanced.
  • Infrastructure hardening:
    • Close unused UDP ports — especially 11211 (Memcached), 1900 (SSDP/UPnP), 53 (DNS) only on internal resolvers, 123 (NTP) egress-only.
    • Hide origin IP behind CDN — the origin server must not be directly reachable. Cloudflare Authenticated Origin Pulls enforces that only Cloudflare traffic reaches origin.
    • Origin allow-list — origin firewall accepts traffic only from CDN provider ASNs (Cloudflare ASN 13335, Fastly ASN 54113).
    • SYN cookies enabled — net.ipv4.tcp_syncookies = 1 on Linux, defends against SYN flood exhausting the connection table.
  • Provisioning — bandwidth overprovisioning 5-10× baseline (if baseline is 100 Mbps, link should be 1 Gbps), CPU/RAM headroom min. 40% at peak hours.
  • DNS protection — choose a second, independent DNS provider (primary Cloudflare + backup AWS Route 53 or Google Cloud DNS); a DDoS on primary DNS should not kill the entire domain.
  • Monitoring + anomaly detection — Datadog, Grafana with Prometheus, AWS CloudWatch, Cloudflare Analytics; baseline traffic per hour/day of week + alert on >3-sigma deviation.

Detection during the attack — first 5 minutes

Detection is critical because every minute of delay means rising costs and lost customers. Signals to check immediately:

  • Traffic spike >5× baseline within <1 minute (legitimate growth is usually gradual; viral traffic has a different user-agent fingerprint).
  • CPU / connection pool saturation — utilization >85% on application servers without matching growth in legitimate transactions.
  • Error rate 5xx > 1% — backend cannot keep up, p99 latency rises from 200ms to >2000ms.
  • TCP retransmits + SYN backlog overflow — netstat -s | grep -i syn shows thousands of pending SYN-ACK.

Detection tools: AWS Shield metrics (DDoSDetected event), Cloudflare Analytics (Under Attack triggers automatically), Datadog DDoS dashboards, NetFlow/sFlow analysis (nfdump, pmacct). First 5 minutes: confirm DDoS (vs legitimate viral traffic, vs misconfiguration), classify (L3-4 volumetric vs L7 application), enable scrubbing (one click in Cloudflare “I’m Under Attack” mode).

Mitigation playbook — during the attack

L3-4 attacks (SYN flood, UDP amplification, ICMP flood):

  • Null-route offending IPs/ASNs — BGP blackhole at ISP (RTBH — Remotely Triggered Black Hole), effective for volumetric.
  • Anycast distribution — automatically spreads the attack across all PoPs; most IoT-botnet attacks lack the capacity to hit every region simultaneously.
  • Scrubbing service — redirect traffic (BGP announce) to a cleaning center (Cloudflare Magic Transit / Akamai Prolexic); “clean traffic” returns to origin via GRE tunnel.

L7 attacks (HTTP flood, Slowloris, HTTP/2 Rapid Reset):

  • WAF rules block fingerprints — Cloudflare Managed Rules, AWS WAF Bot Control, F5 BIG-IP ASM; Mirai and derivative signatures.
  • JS challenge / CAPTCHA — Cloudflare Challenge Page, Google reCAPTCHA v3, hCaptcha; eliminates 99% of bot traffic at the cost of 2-5% conversion rate (acceptable during an attack).
  • Bot Fight Mode / Super Bot Fight Mode — Cloudflare Pro/Business; ML detection of bot vs human.
  • Geo-blocking — if attack originates from a country you do not serve, drop traffic at WAF level (watch business impact!).
  • Session rate limiting per IP/cookie/JA3 — TLS fingerprint blocking for custom implants.

Application-layer hardening on the fly:

  • Aggressive Cache-Control — switch dynamic to a cached fallback during the attack (cache-everything mode in Cloudflare).
  • Connection limits per IP — Nginx limit_conn_zone, HAProxy maxconn.
  • Aggressive request timeout — default 300s in production; lower to 10-30s during an attack to free resources.

Communication:

  • Status page — Statuspage.io, Atlassian Statuspage; “Investigating elevated error rates” beats silence.
  • CSIRT/CERT — report ransom DDoS immediately to CISA (USA), NCSC (UK), CERT Polska (Poland, incydent.cert.pl), or your national CERT; NEVER pay the ransom — CERTs help with scrubbing relationships and may share IOCs across the industry.
  • Enterprise customers — proactive email update (better “we know, we are acting, ETA 30min” than silence).

Postmortem — after the attack

  • IR runbook update — what worked, what did not; lessons learned per NIST SP 800-61 Rev 2 (Detection → Containment → Eradication → Recovery → Lessons Learned).
  • Logs forensics — NetFlow, WAF logs, application logs; archive for 90-365 days (DORA/NIS2 require retention).
  • ASN blocklists update — add attacking ASNs to allow-list/deny-list (caveat: offensive ASNs are often legitimate ISPs with compromised customers — full-ASN geo-blocking is a last resort).
  • Tabletop exercise quarterly — simulate DDoS scenarios, especially ransom DDoS with a 24h ultimatum.
  • Tier-up DDoS protection — if the attack exceeded current capacity, time to upgrade (Cloudflare Pro → Business → Enterprise; AWS Shield Standard → Advanced).

Industry-specific guidance

  • E-commerce — Cloudflare Magic Transit or AWS Shield Advanced + emergency provisioning for Black Friday / Cyber Monday (targeted attacks during peak seasons); aggressive cache for product listings, dynamic only for checkout.
  • B2B SaaS — API rate limiting per tenant (50-1,000 req/min/tenant with burst capacity), JWT-based authentication protects against credential-stuffing-driven DDoS.
  • Gaming / streaming — Anycast UDP scrubbing (game traffic is UDP-heavy, classical L7 protection does not apply); partner with a gaming-aware provider (Cloudflare Spectrum, AWS GameLift).
  • Critical infrastructure / utilities — NIS2 and DORA require documented continuity controls, quarterly DR tests; relationships with national CERTs are obligatory for essential entities.
  • Financial sector — DORA (Digital Operational Resilience Act, in force since 17 January 2025) requires resilience testing including DDoS scenarios under Article 8-12 ICT operational resilience, plus reporting of significant incidents to EBA / national regulator (KNF in Poland) within 24h.

Best Practices for DDoS Protection

  • Developing an incident response plan

  • Regular DDoS resilience testing

  • Employee training on recognizing and responding to attacks

  • Cooperation with internet service providers and security specialists

  • Continuous monitoring and updating of protection systems

Explore Our Services

Want to protect your organization against DDoS attacks? Check out:

DDoS attacks pose a serious threat to online organizations. Effective protection requires a comprehensive approach combining technology, processes, and education.

Frequently asked questions

+ What is a DDoS attack in simple terms?

A DDoS attack (Distributed Denial of Service) overloads a server, network, or application with massive amounts of fake traffic to block access for legitimate users. 'Distributed' means traffic comes from many sources simultaneously — typically a botnet (a network of thousands of compromised computers, IoT cameras, routers). DDoS differs from DoS (single-source) in scale and difficulty of mitigation. Attack motives vary: financial extortion (ransom-DDoS), competitive sabotage, hacktivism, distraction during another attack (smokescreen), state-sponsored coercion (Russia vs Ukraine, China vs Taiwan).

+ What are the types of DDoS attacks?

Three main categories by OSI layer: (1) **Volumetric (layer 3-4)** — flooding bandwidth with raw traffic (UDP flood, ICMP flood, DNS amplification); measured in Gbps or pps; record attacks 2024-2026 reached 5.6 Tbps (Cloudflare HTTP/2 Rapid Reset, October 2024), (2) **Protocol attacks (layer 4)** — exploiting network protocol weaknesses (SYN flood, Smurf, Ping of Death, fragmentation); targets state tables in firewalls, load balancers, servers; measured in pps, (3) **Application layer / L7 attacks (layer 7)** — flooding a specific application with seemingly legitimate HTTP/HTTPS requests (HTTP flood, Slowloris); hardest to block because they look like real traffic; measured in rps. Modern attacks combine all three layers simultaneously (multi-vector).

+ What are the largest DDoS attacks in history?

Five record-breaking attacks: (1) **Cloudflare HTTP/2 Rapid Reset (Oct 2024)** — 5.6 Tbps peak, exploited CVE-2023-44487 in HTTP/2 protocol, (2) **Cloudflare 3.8 Tbps (Oct 2024)** — hit a hosting customer, lasted ~65 seconds, (3) **Microsoft Azure 2.4 Tbps (Aug 2021)** — targeted a European customer, (4) **AWS 2.3 Tbps (Feb 2020)** — used CLDAP reflection, (5) **GitHub 1.35 Tbps (Feb 2018)** — Memcached amplification, one of the first attacks above 1 Tbps. Trend: attack sizes grow exponentially — in 2014 a 'large' attack was 100 Gbps, in 2026 it's >1 Tbps. IoT botnets (Mirai and successors) remain the main volumetric source.

+ How do you protect against DDoS?

Layered defence: (1) **CDN/Cloudflare/Akamai** — absorbs L7 and most volumetric traffic before reaching origin, plans from free to enterprise ($0-$5000+/month), (2) **AWS Shield, Azure DDoS Protection, GCP Cloud Armor** — native cloud provider protection with auto-mitigation, (3) **DDoS scrubbing services** — Radware, NETSCOUT Arbor, Imperva, Lumen — redirect traffic through cleaning centres during an attack, (4) **ISP-level filtering** — most carriers offer DDoS protection in business packages, (5) **Resilient architecture** — auto-scaling, geographic distribution, anycast DNS, application-level rate limiting. For most organisations: Cloudflare Pro ($20-$200/month) plus good architecture stops 90%+ of attacks.

+ What is DDoS amplification?

DDoS amplification exploits protocols that generate much larger responses than requests — the attacker spoofs the victim's IP as source, sends a small request, and the server replies with a huge response to the victim. Common vectors: (1) **DNS amplification** — 60-byte DNS request can generate a 4,000-byte response (factor ~70x), (2) **NTP amplification** — factor ~200x, (3) **Memcached amplification** — factor ~50,000x (record GitHub attack 2018), (4) **CLDAP amplification** — factor ~55x, (5) **SSDP/UPnP** — factor ~30x. Defences: blocking IP spoofing at ISP level (BCP38), disabling open public DNS resolvers, closing unused UDP ports, scrubbing services.

+ What should you do during a DDoS attack?

First hour is critical: (1) **Confirm the attack** — check logs, monitoring (Datadog, Grafana), CDN dashboard; verify it's DDoS and not a traffic spike or bug, (2) **Activate DDoS protection** — if using Cloudflare, enable Under Attack Mode; on AWS Shield Advanced — contact the AWS DDoS Response Team, (3) **Scale capacity** — auto-scaling, additional instances, more bandwidth from your ISP (if your contract permits), (4) **Filter traffic** — block by geography (if attack from a specific country), block user agents, rate-limit suspicious IP ranges, (5) **Contact your providers** — ISP, CDN, scrubbing service can help, (6) **Communicate with customers** — status page, social media (if extended attack), (7) **Log everything** — payload, source IP, geo, timing — for law enforcement and analysis. After the attack: post-mortem and harden defences.

+ How much does a DDoS attack cost the victim?

Cost depends on duration, attack size, and business model: (1) **Direct revenue loss** — for an e-commerce site averaging $100K daily revenue, a 6-hour outage costs $25K+ in lost sales plus customer trust damage, (2) **DDoS protection emergency activation** — many vendors charge premium for emergency onboarding ($10K-$100K one-off), (3) **Bandwidth overage from ISP** — peak attacks burn through monthly limits in seconds, (4) **Engineering response** — incident response cost ($5K-$50K), (5) **Long-term reputation** — survey customers, status page transparency. Industry averages: Ponemon estimates $22,000-$100,000 per hour of DDoS-induced downtime depending on industry. Ransom-DDoS demands typically $5K-$100K in cryptocurrency.

+ Is a DDoS attack illegal?

**Yes, a DDoS attack is a criminal offence in virtually every jurisdiction worldwide.** In the **United States**, attackers are prosecuted under the Computer Fraud and Abuse Act (CFAA, 18 U.S.C. § 1030) — up to 10 years for a first offence; in the **United Kingdom**, the Computer Misuse Act 1990 §3 (unauthorised acts impairing operation of a computer) carries up to 10 years; in the **European Union**, Directive 2013/40/EU on attacks against information systems harmonises sanctions (minimum 2 years imprisonment for aggravated cases); in **Poland**, Penal Code Articles 268a and 269a apply, with 3 months to 5 years imprisonment. **Booter/stresser services are also illegal** — FBI Operation PowerOFF (2018-2024) shut down dozens, including webstresser.org, downthem.org, and quantumstress.net. Apparently 'legal' stress tests are permitted **only with written authorisation from the system owner** (Rules of Engagement) performed by certified pentesters (OSCP, CREST, OSWP). Any unauthorised DDoS = crime, regardless of motive (hacktivism is not a mitigating circumstance).

+ Can you prevent a DDoS attack 100%?

**No, 100% prevention is impossible** — every service exposed to the internet is a potential target, and a sufficiently large attack (>10 Tbps from an IoT botnet or compromised cloud workloads) will overwhelm most commercial scrubbing capacity. The realistic goal is not 'zero attacks', but **mitigation in a time shorter than the business-acceptable threshold** — typically <60 seconds from detection to scrubbing activation, <5 minutes total degradation window. This is achievable for 95-99% of attacks with standard controls (Cloudflare + Anycast CDN + resilient architecture). For the remaining 1-5% (most sophisticated targeted attacks) you need: (a) IR plan with concrete playbook, (b) relationship with a scrubbing provider (BGP redirect on demand), (c) bandwidth overprovisioning, (d) graceful degradation capability (cache-only mode, static fallback). Even Google, Cloudflare, and AWS experience incidents — in 2024 Cloudflare faced a 5.6 Tbps attack that briefly affected customers. That is why we measure **MTTR** (Mean Time To Recovery), not **prevention rate**.

Tags:

DDoS cyberattack denial-of-service network-security botnet ddos-protection cloudflare scrubbing anti-ddos

Want to Reduce IT Risk and Costs?

Book a free consultation - we respond within 24h

Response in 24h Free quote No obligations