Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

SYN Flood

Direct answer

A SYN flood sends many TCP SYN packets without completing the handshake, filling the server's connection table. SYN cookies, firewalls with SYN protection and upstream filtering defend against it.

When to use this

Use this when TCP SYN floods fill connection tables.

First 30 seconds

1. SYN flood fills half-open connection queues.

2. SYN cookies on servers.

3. Firewall/load balancer SYN protection.

4. Upstream filtering.

5. Monitor SYN-RECV.

Operational verification

SYN flood → backlog → SYN cookies keep service up

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics
Key commandss -s
Scope / prerequisiteUse this when TCP SYN floods fill connection tables.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Detection Verify boundary
ss -s
ss -tan state syn-recv | wc -l
netstat -s | grep -i "SYNs to LISTEN"

On firewalls, embryonic connection counters and SYN flood protection thresholds show attacks; many SYN_RECV entries from many sources with no completed handshakes is the classic sign.

Step 2 Common mistakes Narrow the fault
  • No SYN cookies or upstream DDoS protection.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • SYN cookies avoid storing half-open connections.
  • Firewalls can proxy SYNs.
  • Large floods need upstream help.
Key checks
  • netstat -s | grep -i -e 'SYNs to LISTEN' -e overflow — SYN queue drops
  • sysctl net.ipv4.tcp_syncookies — SYN cookies
  • ss -s — SYN-RECV counts
ReferenceWhy it matters1 section · depth on demand

Defences

  • SYN cookies (Linux net.ipv4.tcp_syncookies = 1, on by default).
  • Firewall or load balancer SYN proxy / TCP intercept.
  • Larger backlog and shorter SYN-RECEIVED timeouts.

Check with ss -n state syn-recv | wc -l on Linux; thousands of half-open connections indicate a flood.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

A SYN flood sends large numbers of TCP SYN packets (often with spoofed sources) to fill the target's half-open connection table, so legitimate connections cannot be established.

Mitigations:

ControlHow it helps
SYN cookiesServer encodes state in the SYN-ACK; no table entry until the handshake completes
Firewall/load-balancer SYN proxyDevice completes handshake before passing to server
Rate limiting per sourceReduces single-source floods
Upstream scrubbingHandles large distributed floods
Anti-spoofing (BCP 38)Reduces spoofed traffic globally
sysctl net.ipv4.tcp_syncookies           # 1 = enabled (default on modern Linux)
ss -s | grep -i synrecv

SYN cookies

With SYN cookies the server does not store state for half-open connections; it encodes the state in the initial sequence number and only creates state when a valid ACK returns. Linux: sysctl net.ipv4.tcp_syncookies=1 (default). Check for floods with netstat -an | grep -c SYN_RECV or ss -s.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

Authoritative/upstream documentation reviewed for bounded claims in Common Attacks → SYN Flood. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%
Confirmation

Confirm action

Continue?