What is a DDoS attack?
A DDoS attack, short for distributed denial of service, is an attempt to make a website or online service unavailable by sending it more traffic or work than it can handle, from many sources at once. Nothing is stolen and nothing is broken into: the damage is that real users cannot get through while the attack lasts.
Quick facts
- Stands for
- Distributed denial of service
- Goal
- Make a service unavailable to its real users
- Why distributed
- Traffic comes from many sources at once, usually compromised devices in a botnet
- Three families
- Volumetric, protocol and application-layer attacks
- What it is not
- Not a breach: no data is taken, and the service recovers when the traffic stops
The Internet Engineering Task Force describes the problem in RFC 4732, and a joint guide from CISA, the FBI and MS-ISAC, Understanding and Responding to DDoS Attacks, covers how organisations prepare and respond.
What DDoS means
Denial of service is the outcome: a service that should answer does not. Distributed describes how it is achieved: instead of one machine sending everything, thousands of machines each send a share, so no single source looks large and blocking one address changes nothing. Spreading the target side as well, across many addresses at once, is called carpet bombing.
The sources are usually devices their owners do not know are involved: routers, cameras and servers infected with malware and controlled together as a botnet; Mirai is the best-known botnet built from such devices. Some attacks also borrow innocent servers on the internet as reflectors, which answer a small forged request with a much larger reply aimed at the victim.
In everyday use the word is also a verb. Saying a site was ddosed, or that somebody is ddosing it, means its service was overwhelmed by traffic, not that it was hacked.
How a DDoS attack works
Every service has a limit somewhere: the bandwidth of the link in front of it, the number of connections a device can track, or the work a server can do per second. A DDoS attack is aimed at one of those limits.
- Gather capacity. The attacker controls or rents a botnet, or finds reflectors that will amplify traffic.
- Choose a limit to exhaust. A link, a connection table, or an expensive page or API call.
- Send traffic at the target. From many sources at once, often shifting between techniques when one is blocked.
- Hold the pressure. Attacks last from minutes to days; the service is degraded or offline for as long as the traffic exceeds its limit.
Which limit is targeted decides which defence helps, and that is the reason attacks are grouped by layer on attack layers.
DoS vs DDoS: what the difference is
A DoS attack, plain denial of service, comes from one source or a few. A DDoS attack comes from many. The goal is identical; the difference is in how hard it is to stop.
Traffic from one source can be refused by refusing that source. Traffic from thousands of sources cannot, because each source sends little and blocking them one by one is slower than the attack. That is why the distributed form dominates, and why defences rely on capacity and on judging behaviour rather than on lists of addresses.
Some denial of service needs no flood at all. A single request that triggers a crash, or a slow connection that holds a server resource open, can deny service from one machine; the low-and-slow techniques are examples.
Denial of service attack: the two common kinds
The two common denial of service attacks are floods, which use up capacity, and flaw or hold-open attacks, which need little traffic. So what is DDoS next to plain DoS? It is the flood kind, sent from many sources instead of one.
| Kind | What it uses up | Sources | Where the defence sits |
|---|---|---|---|
| Flood | Link bandwidth, connection tables, or the work a server does per request | One in a DoS attack, many in a DDoS attack | Network capacity and filtering upstream; rate limits for request floods |
| Flaw or hold-open | A crash from one malformed request, or a connection kept open | One is enough | Patching, timeouts and request inspection |
The IETF document cited above calls poor software quality the simplest route to denial of service on an end-system, because the software simply crashes.
An amplified DNS attack is a flood variant. The attacker sends a small DNS query with the victim's address forged as the source, and the resolver sends the larger answer to the victim. The same document calls such helpers attack amplifiers.
How to mitigate a DDoS attack starts from the table: find which limit is under pressure, then match the layer. How to mitigate DDoS that arrives as ordinary requests: set per-domain rate limits and a request filter, and try them in monitor mode first, where matches are recorded and every request is still served. Floods that fill the link are stopped upstream, before requests exist.
The main types of DDoS attack
- Volumetric attacks. Fill the link with traffic, often amplified through reflectors; volumetric attacks covers UDP and ICMP floods and amplification.
- Protocol attacks. Exhaust the state that devices keep for connections; protocol attacks covers SYN and ACK floods.
- Application-layer attacks. Send requests that are valid but expensive, so the server runs out of capacity; application-layer attacks covers HTTP floods, Slowloris and API abuse.
Common DDoS attacks by name
The various types of DDoS attack are easiest to recognise by the best-known examples inside those families. Whatever the name, the primary goal of a DDoS attack is the same: make the service unavailable.
- TCP SYN flood. A flood of TCP SYN packets, which may carry a forged sender address. Each one is handled like a connection request, so the server spawns a half-open connection for every packet.
- Teardrop. Mangled IP fragments with overlapping, oversized payloads are sent to the target, which can crash various operating systems.
- Ping of death and ICMP flood. The ping of death is a malformed ping larger than the 65535 bytes an IPv4 packet allows; it became widely known in 1996. An ICMP flood is the rate-based way to use ping.
- LAND. A LAND attack belongs to the banana kind of denial of service, which redirects a client's outgoing messages back onto the client.
- Slowloris (Slow Loris) and RUDY. Application-level attacks that need little traffic. Slowloris establishes pending connections with the victim; RUDY starves the web server of available sessions.
The full map, with every vector on its own page, is on DDoS attack types.
Signs that a DDoS attack is under way
The symptoms of a DDoS attack look first like an ordinary outage, which is why the cause can be found late.
- A sudden rise in traffic or connections that does not match a launch, a campaign or the time of day.
- Slowness or errors across a whole service, not one feature, while the code and the hosts look healthy.
- Traffic concentrated in an unusual way: one URL, one country, one network range, or one type of packet.
- Your provider reports saturation on the link in front of you, sometimes before you notice anything.
None of these proves an attack on its own. A popular post or a misbehaving integration produces the same graphs, and the first step is to rule out your own changes.
Whether an attack is ongoing right now is answered by your own graphs and your provider. Current or active attacks elsewhere, and attacks reported today, are not tracked here.
Who launches DDoS attacks, and why
Motives range from extortion, where the attacker demands payment to stop (see ransom DDoS), to protest, competition, revenge, and the distraction of a security team while something else happens.
Attacks are cheap to start because capacity can be rented. That changes who is a target: a small site can be attacked by someone with a grudge and a little money, not only large companies by organised groups.
Famous DDoS attacks, and what the biggest means
Two famous DDoS attacks are named again and again. On 27 April 2007 a series of cyberattacks began against Estonian organisations, among them the parliament and banks, and the attackers used botnets. In October 2016 a Mirai botnet attacked Dyn, a provider to sites such as Twitter and Netflix, and those sites were unreachable for several hours.
The biggest DDoS attack on record depends on the unit. HTTP attacks are counted in requests per second, other attacks in packets or bits per second, so a major or massive attack by one count says little about another. A record is true only on the date it was published.
What happens after an attack
When the traffic stops, the service usually returns on its own; nothing was installed that has to be removed. What remains is the work of understanding it: which limit was reached first, how long detection took, who was called and how quickly the provider acted.
That review is what makes the next attack shorter. Keep the timeline, the graphs and the logs, write down which changes were made during the attack, and reverse the emergency ones deliberately. Attackers often return to a target that went down once, so the gaps found the first time are the ones to close first.
Report the attack if it came with a demand or caused real harm. Law enforcement and national cyber agencies collect these reports, and in some sectors a report is required.
How DDoS protection works, in short
Protection is layered because the attacks are. Network capacity and filtering in front of you absorb floods that fill links. Devices and services that track connections are hardened against state exhaustion. A request filter and rate limits handle application-layer attacks, which arrive as valid requests.
No single component covers all three, and a web application firewall covers only the last. The guide from CISA and its partners puts preparation first: know your critical services, know who carries your traffic, and agree with them in advance what happens when an attack starts.
To protect yourself from DDoS attacks, the UK National Cyber Security Centre sets out four essential practices: understand your service, understand your defences, create a response plan and test your response. That is also how to deal with a DDoS attack: the plan exists before the first request of the attack arrives.
Two related entries explain parts of this. IP spoofing covers the floods that depend on forged sources, and the web application firewall entry covers the layer that handles application-layer attacks. Requests built to reach a known flaw rather than to exhaust capacity are the subject of virtual patching.
Questions
What does DDoS stand for?
DDoS stands for distributed denial of service: an attack that makes a service unavailable by overwhelming it with traffic or work from many sources at once.
What is the difference between DoS and DDoS?
A DoS attack comes from one source or a few, and a DDoS attack comes from many. The goal is the same; a distributed attack is harder to stop because blocking individual sources does not keep up.
Is a DDoS attack illegal?
In most countries launching one is a crime, because it deliberately disrupts a service without permission. The exact law and penalties depend on the jurisdiction.
Can a DDoS attack steal data?
No. A DDoS attack makes a service unavailable; it does not by itself give access to data. It can be used as a distraction while a separate attack takes place, which is why the security team should not assume it is the only thing happening.
Does a WAF stop DDoS attacks?
Partly. A WAF handles application-layer attacks, which arrive as requests. Floods that fill a network link or exhaust connection tables are stopped before requests exist, by network capacity and filtering in front of the WAF.
What are the main types of DDoS attack?
Volumetric attacks fill the link, protocol attacks exhaust the state devices keep for connections, and application-layer attacks send valid but expensive requests. SYN floods, teardrop and ping of death are protocol-level examples; Slowloris and RUDY work at the application level.
What is the biggest DDoS attack?
There is no single answer, because size is counted in different units: requests per second for HTTP attacks, packets or bits per second for others.
How do you protect yourself from a DDoS attack?
Follow the four practices the UK National Cyber Security Centre sets out: understand your service, understand your defences, create a response plan and test your response.