Sample captures, HTTP

HTTP download, capture started mid-connection

The same download without the TCP handshake, as when a capture starts late.

Packets
7
Duration
0.072 s
Size
864 bytes
Protocols
TCP, HTTP
License
CC0

What it shows

The HTTP download with its first three packets (the handshake) cut off, as happens when a capture starts after the connection opened.

Suricata doesn't pick up connections midway by default, so it never parses the HTTP: rules on HTTP buffers stay silent, while rules on the raw bytes of a single packet still fire. Snort 3 does pick the connection up.

Rules for this capture

Suricata 8 and 7

Try these rules
alert tcp any any -> any 80 (msg:"Request for update.exe in one packet"; content:"GET /download/update.exe"; sid:1000001; rev:1;)
alert http any any -> any any (msg:"curl User-Agent"; flow:established,to_server; http.user_agent; content:"curl/"; startswith; sid:1000002; rev:1;)

Rule 1000002 stays silent on purpose. Run the rules to see the tester's note on why.

alert tcp any any -> any 80 (msg:"Request for update.exe in one packet"; content:"GET /download/update.exe"; sid:1000001; rev:1;)
alert http any any -> any any (msg:"curl User-Agent"; flow:established,to_server; http_header:field user-agent; content:"curl/", depth 5; sid:1000002; rev:1;)

Packets

No.TimeSourceDestinationProtocolInfo
10.000192.0.2.10:51514198.51.100.20:80TCPPSH ACK, GET /download/update.exe HTTP/1.1
20.012198.51.100.20:80192.0.2.10:51514TCPACK
30.024198.51.100.20:80192.0.2.10:51514TCPPSH ACK, HTTP/1.1 200 OK
40.036192.0.2.10:51514198.51.100.20:80TCPACK
50.048192.0.2.10:51514198.51.100.20:80TCPFIN ACK
60.060198.51.100.20:80192.0.2.10:51514TCPFIN ACK
70.072192.0.2.10:51514198.51.100.20:80TCPACK

More HTTP samples