Pcornel
Security · Common Attacks

SYN Flood

Cheat sheet · https://pcornel.dk/topic.php?topic=4958

Back to the Topic

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.

Remember

  • SYN cookies avoid storing half-open connections.
  • Firewalls can proxy SYNs.
  • Large floods need upstream help.

First 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

Commands

ss -s

Verify in this order

SYN flood → backlog → SYN cookies keep service up

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4958

Confirmation

Confirm action

Continue?