Learning Centre

SYN Flood DDoS Attack

Why the TCP handshake matters

A SYN flood DDoS attack targets the early stage of a TCP connection. TCP is designed to establish a reliable session before an application protocol, such as HTTP, exchanges meaningful data. That setup process requires network devices and servers to track connection state. A SYN flood creates pressure by making large numbers of connection attempts that do not progress normally, consuming capacity in connection queues, state tables, or upstream devices before the application can do useful work.

For defenders, the key lesson is that a SYN flood may degrade a web service without producing a matching spike in completed HTTP requests. Users see connection timeouts or intermittent failures. Load balancers may report backend connection errors. Firewalls or routers may show state table pressure. Application logs can be quiet because many attempts never become full application requests. A useful investigation starts at the transport layer, not only at the web framework.

Where the pressure appears

SYN floods can stress several parts of the delivery path. An origin server has limits for pending connections. A load balancer has listener capacity and health-check behavior. A firewall may track connection state. A cloud interface or provider edge may enforce limits before traffic reaches customer-managed systems. The weakest point determines the visible outage.

The same service can also behave differently by architecture. A site fronted by a TCP proxy, CDN, anycast network, or DDoS scrubbing provider may absorb or normalize connection attempts before they reach origin. A directly exposed server has less room for error. Internal services behind private load balancers still need protection, especially if a public dependency can forward large volumes of connection attempts into a smaller private tier.

Indicators defenders should collect

Useful signals include spikes in new TCP connection attempts, a high ratio of incomplete handshakes, backlog saturation, retransmission increases, connection reset patterns, dropped packets, and listener-level errors. Load balancers may report connection failures or target health changes. Firewalls may show state exhaustion or aggressive cleanup. Synthetic monitoring may fail at the connection phase rather than after an HTTP response.

Context matters. A legitimate flash crowd can also create many new connections, especially after a cache purge, mobile app launch, ticket release, or marketing event. The distinction comes from completion behavior, source distribution, protocol mix, and service outcomes. If many connections complete and users progress through normal journeys, the problem may be capacity planning. If attempts remain incomplete and application traffic drops, a transport-layer flood becomes more likely.

Defensive controls

Effective SYN flood defense usually combines TCP stack hardening, edge filtering, capacity planning, and upstream mitigation. Operating systems and load balancers commonly support protections that avoid holding excessive state for untrusted early connection attempts. Network devices can enforce connection-rate limits or separate suspicious connection behavior from established traffic. Providers and scrubbing services can absorb large floods before they saturate the path to the protected service.

These controls should be tested against the service's real connection profile. Some applications legitimately create bursts of short-lived connections. Others rely on long-lived connections, WebSockets, or mobile clients that reconnect frequently. A blanket policy may protect one workload and damage another. Defenders should record baselines for connection attempts, completed handshakes, established connections, resets, and per-client concurrency so that mitigation thresholds have operational meaning.

Why application-only response falls short

A SYN flood is not primarily an application bug. Patching application code, adding database replicas, or changing cache keys may not help if clients cannot establish TCP connections in the first place. Application autoscaling can also be misleading: adding more workers behind a congested load balancer does not restore capacity at the listener or network edge. The first useful response is to locate the bottleneck in the connection path.

That does not mean application teams are uninvolved. They need to explain which services are critical, how users are affected, and whether partial degradation is acceptable. They can also reduce avoidable connection churn through sensible keepalive behavior, caching, connection reuse in API clients, and resilience testing. But during an active SYN flood, transport and network controls carry the main mitigation burden.

Misconceptions that cause bad calls

One misconception is that a SYN flood must be huge to matter. In some environments, relatively modest connection-state pressure can exhaust a poorly tuned listener, firewall, or small origin tier. Another is that blocking a list of visible IP addresses will solve the incident. Source addresses may be distributed, spoofed, or short lived. Source filtering can be useful, but it should be driven by evidence and applied at a point that can handle the volume.

A third misconception is that TLS or a web application firewall automatically handles the problem. TLS negotiation and HTTP inspection happen after earlier connection work. If the service is failing before that point, controls that depend on full application requests may never see enough context to act. Layered defense means placing each control where it can actually observe and influence the traffic.

Planning for the next flood

Prepared teams know which metrics show connection pressure, which providers can filter upstream, and which service addresses need priority protection. They have runbooks for escalating DDoS mitigation, changing listener policy, checking false positives, and communicating the difference between network reachability and application health. They also know what evidence to preserve for review: time window, destination addresses, traffic rates, incomplete handshake ratios, provider actions, and customer impact.

After recovery, review the path end to end. Were alerts tied to connection health or only to application errors? Did the load balancer fail open, fail closed, or shed traffic predictably? Did provider mitigation start quickly enough? Were legitimate users restored before the attack ended? SYN flood resilience is not just a kernel setting. It is an operational discipline around connection state, capacity limits, and fast coordination across the network and application teams.

Related Articles

AI Crawler User Agents

A practical reference for common AI crawler user agents, operators, purposes, and recommended Peakhour bot-management actions.

AI For Cybersecurity

AI For Cybersecurity explains the concept in the context of AI security, with practical checks and mitigation considerations for site operators.

AI Image Generation

AI Image Generation explains the concept in the context of AI security, with practical checks and mitigation considerations for site operators.

© PEAKHOUR.IO PTY LTD 2026   ABN 76 619 930 826    All rights reserved.