DDoS attack

Also known as: DDoS · Distributed denial-of-service attack · denial-of-service attack · DoS attack

On this page 6

A DDoS attack (distributed denial-of-service attack) is an attempt to make an online service unavailable by overwhelming it with traffic or requests sent from many sources at once, usually thousands of compromised devices. In cybersecurity, it belongs to the family of malware and attacks that target availability, the third pillar of the confidentiality, integrity and availability triad, rather than stealing or altering data.

A simple denial-of-service attack (DoS attack) comes from a single source and can often be blocked by filtering one address. The distributed form is far harder to stop because the malicious traffic arrives from geographically scattered sources that look similar to legitimate visitors, frequently drawn from a botnet of infected routers, cameras, servers and personal computers.

How a DDoS attack exhausts resources

Every DDoS attack works by exhausting a finite resource faster than the target can replenish it. That resource may be network bandwidth, the state table of a firewall or load balancer, the connection capacity of a server, or the CPU and database time behind an application.

Attackers control the traffic through command-and-control infrastructure that instructs bots when to start, which target to hit and which technique to use. Many campaigns are rented as booter or stresser services, so the operator needs little technical skill, only payment and a target address.

The table below maps the main targeted resources to their typical symptoms during an attack.

Targeted resourceTypical symptomMeasured in
Network bandwidthUpstream links saturated, packet lossGigabits or terabits per second
Connection state tablesFirewalls and load balancers drop new sessionsPackets per second, concurrent sessions
Server sockets and memoryServer stops accepting connectionsOpen connections
Application processingSlow pages, timeouts, database overloadRequests per second
Resources targeted by DDoS attacks

Main types of DDoS attacks

DDoS attacks are usually grouped into three categories according to the network layer they abuse and the resource they consume. Real campaigns increasingly combine several vectors in a multi-vector attack to defeat defenses tuned for a single pattern.

CategoryExample techniquesLayerPrimary goal
Volumetric attacksUDP floods, DNS and NTP amplificationNetwork (layer 3)Saturate bandwidth
Protocol attacksSYN floods, ACK floods, fragmented packetsNetwork and transport (layers 3 and 4)Exhaust state tables and stacks
Application-layer attacksHTTP floods, Slowloris, HTTP/2 Rapid ResetApplication (layer 7)Exhaust server and database capacity
Categories of DDoS attacks

Reflection and amplification deserve special attention. The attacker sends small requests with the victim’s spoofed source address to open services such as DNS resolvers, NTP servers or memcached instances, which reply with much larger responses directed at the victim. The ratio between response and request is the amplification factor.

The following table shows approximate amplification factors for commonly abused protocols; actual values depend on server configuration and the specific query.

ProtocolAbused featureApproximate amplification
DNSLarge responses to ANY or DNSSEC queriesAbout 28 to 54 times
NTPLegacy monlist commandUp to about 550 times
SSDPDiscovery responses from consumer devicesAbout 30 times
MemcachedExposed UDP interfaceUp to tens of thousands of times
Approximate amplification factors of abused protocols

Application-layer attacks are the hardest to detect because each request may be a valid HTTP transaction. A modest flood of expensive search or login requests can bring down a site that would easily survive a far larger volumetric attack.

A DDoS attack differs from most other attacks in the Topic because its objective is disruption, not data access. It is nevertheless often linked to other threats, either as the source of attacking traffic or as a distraction.

  • Botnet: the infrastructure that most often generates DDoS traffic; the botnet is the tool, the DDoS attack is one use of it.
  • Ransomware: some groups add DDoS threats as extortion pressure, a tactic sometimes called triple extortion.
  • Brute-force attack and credential stuffing: high request volumes may resemble an application-layer flood, but the goal is account access.
  • Ransom DDoS: extortion letters demand payment to avoid an attack, sometimes with no real capacity behind the threat.

Security teams also watch for DDoS used as a smokescreen, because a noisy outage can absorb staff attention while a quieter intrusion proceeds elsewhere in the network.

Detecting and mitigating DDoS attacks

Effective DDoS defense relies on layered mitigation that matches the attack type and size. No single device can absorb a large volumetric attack once the upstream link is saturated, so protection must start outside the organization’s own network.

MitigationEffective againstLimitation
Cloud scrubbing serviceLarge volumetric and protocol attacksAdds routing changes or latency
Content delivery networkVolumetric and many layer 7 floodsCovers only proxied web traffic
Rate limiting and WAF rulesApplication-layer floodsNeeds tuning to avoid blocking users
Anycast distributionDistributed volumetric loadRequires global infrastructure
Upstream blackholing (RTBH)Protecting the rest of the networkTakes the target offline completely
DDoS mitigation options

Detection depends on a traffic baseline: flow telemetry such as NetFlow or IPFIX, request rates per endpoint and error ratios reveal deviations within seconds. On the prevention side, network operators that apply source address validation under BCP 38 make spoofing, and therefore reflection attacks, much harder.

Common mistakes include relying solely on an on-premises appliance, leaving origin server addresses exposed behind a CDN, and having no tested runbook that names who contacts the provider and who approves traffic diversion.

In simple terms

Imagine a small shop that suddenly has thousands of fake customers crowding the door. None of them buys anything, but real customers cannot get inside. A DDoS attack does the same to a website or online service.

The fake visitors are usually hijacked computers and gadgets whose owners do not know they are taking part. Because they come from everywhere at once, the shop cannot simply lock out one person. Protection services act like a large filtering entrance that lets genuine customers through and turns the crowd away.

A practical example

An online retailer prepares for a holiday sale. On the first morning, its monitoring shows inbound traffic jumping from a normal 2 Gbps to about 180 Gbps, mostly UDP packets from DNS and NTP servers, while the data center uplink is only 10 Gbps. Checkout pages begin timing out within minutes.

Following its runbook, the operations team activates an always-available cloud scrubbing service by announcing its address prefix through the provider. Within about ten minutes the reflected traffic is filtered at the provider’s edge, and clean traffic reaches the shop. An hour later a smaller HTTP flood against the search endpoint begins, which the team contains with rate limits in the web application firewall. The sale continues with under 20 minutes of degraded service in total.