Glossary · D

DDoS Attack

Attack that overwhelms a service, network or server with traffic from many distributed sources so that legitimate users can no longer reach it.

By Obseria TeamUpdated

Definition

A distributed denial-of-service (DDoS) attack tries to make a service unavailable by overwhelming it with traffic or requests from many sources at once, typically a botnet of compromised devices. Attacks target network bandwidth, protocol state such as TCP connections, or application resources such as expensive HTTP endpoints. Because the traffic comes from many addresses, simple IP blocking is not enough. Mitigation usually relies on upstream scrubbing, CDNs, rate limiting and capacity, while monitoring shows when and how a service is affected.

What is a DDoS attack?

A denial-of-service (DoS) attack aims to exhaust a resource so that a service can no longer answer legitimate requests. In a distributed attack the traffic comes from many machines at the same time, often thousands of compromised servers, routers, cameras or other connected devices organized in a botnet. A well-known example is the Mirai botnet, which in 2016 used large numbers of insecure IoT devices to attack the DNS provider Dyn and made many popular websites hard to reach.

The motivation varies: extortion, protest, competition, distraction from another attack or simply testing capacity. In MITRE ATT&CK, these attacks fall under the impact tactic as Network Denial of Service (T1498) and Endpoint Denial of Service (T1499).

Types of DDoS attacks

  • Volumetric attacks: saturate network bandwidth with large amounts of traffic, measured in bits per second. Amplification attacks abuse protocols such as DNS, NTP or memcached, where a small spoofed request triggers a much larger response to the victim.
  • Protocol attacks: exhaust state in servers, firewalls or load balancers, for example with SYN floods that leave many half-open TCP connections. They are often measured in packets per second.
  • Application-layer attacks (layer 7): send requests that look legitimate to expensive endpoints such as search, login or checkout. They need far less bandwidth, are measured in requests per second and are the hardest to distinguish from real traffic.
  • Multi-vector attacks: combine several methods or switch between them to work around defenses.

Impact

The direct effect is unavailability: timeouts, errors and pages that do not load. Indirect effects matter too. Autoscaling may add capacity and costs during an attack, shared infrastructure can affect unrelated services, and on-call teams lose time on a problem that does not originate in their code. An attack can also serve as a smokescreen while attackers attempt something else, such as a brute-force attack on logins.

DDoS mitigation

  • Upstream protection: volumetric attacks have to be absorbed before they reach your network, by a DDoS mitigation service, your cloud provider or a CDN with scrubbing capacity.
  • Anycast and CDNs: distributing traffic across many locations and serving cached content close to users reduces the load on origin servers.
  • Rate limiting: limits per client, per token or per endpoint protect expensive operations from application-layer floods.
  • Hardening: SYN cookies, connection limits, timeouts and closing unused ports and services reduce the attack surface.
  • Capacity and graceful degradation: headroom, caching and the ability to switch off non-critical features help a service stay partly available.
  • A response plan: know who to call at your provider, how to enable stricter rules and how to communicate with users.

Example of a simple request limit in NGINX for a login endpoint:

limit_req_zone $binary_remote_addr zone=login:10m rate=10r/s;

location /login {
    limit_req zone=login burst=20 nodelay;
}

Detecting a DDoS attack

A DDoS attack and a legitimate traffic spike, for example from a marketing campaign, can look similar at first. Useful signals are a sudden rise in request rate or throughput compared to a baseline, a rising error rate and latency, traffic concentrated on one endpoint, unusual distributions of source networks, countries, user agents or request paths, and many connections that never complete. External checks from several locations show whether users can still reach the service at all.

The observability perspective

For operations teams, a DDoS attack is first of all an incident affecting the golden signals: traffic, latency, errors and saturation. Observability helps to answer the important questions quickly: is this an attack or a deployment problem, which services and dependencies are affected, are upstream defenses working, and is the service recovering. Logs from load balancers, CDNs and WAFs add the details about sources and patterns that metrics alone cannot show.

How Obseria helps

Obseria is not a DDoS mitigation service and does not filter or block traffic; mitigation stays with your provider, CDN, WAF or load balancer. Obseria makes the attack and its impact visible. Anomaly detection flags unusual request rates, errors and latency without fixed thresholds, and synthetic monitoring checks availability from outside. Access and WAF logs analyzed with app and API threat detection show patterns such as scans and server errors under attack traffic. Alerts and incident management help your team coordinate the response and see whether countermeasures work.

Frequently asked questions

A DoS attack comes from a single source or a small number of sources. A DDoS attack uses many distributed sources at once, which makes it harder to block by IP address and allows much higher volumes.

Rate limiting helps against application-layer floods and protects expensive endpoints. It cannot stop volumetric attacks that saturate the network before requests reach your application; those need upstream protection.

Look at the composition of the traffic: source networks, user agents, request paths and session behavior. Legitimate spikes usually follow a known cause and show normal user journeys, while attacks often concentrate on one endpoint with unusual patterns.

Autoscaling can absorb some application-layer load, but it also raises costs and does not help against network saturation. Set limits on scaling and combine it with upstream protection and rate limiting.

Put these concepts into practice

Try Obseria free for 14 days, with OpenTelemetry and no proprietary agents.