Sample captures, HTTP

HTTP download with offloaded checksums

The same download captured on the client, whose outgoing packets have bad TCP checksums.

Packets
10
Duration
0.108 s
Size
1.0 KB
Protocols
TCP, HTTP
License
CC0

What it shows

The HTTP download as captured on the client with checksum offload: the network card fills in TCP checksums after the capture point, so every packet the client sent has a wrong one.

With checksum validation off (the tester's default) every rule fires. Turn on Validate checksums to see what a sensor that checks them does: Suricata leaves the bad packets out of connection tracking, and Snort 3 doesn't inspect them at all.

Rules for this capture

Suricata 8 and 7

Try these rules
alert http any any -> any any (msg:"Windows executable downloaded over HTTP"; flow:established,to_client; file.data; content:"MZ"; startswith; 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;)
alert http any any -> any any (msg:"Windows executable downloaded over HTTP"; flow:established,to_client; file_data; content:"MZ", depth 2; 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:80TCPSYN
20.012198.51.100.20:80192.0.2.10:51514TCPSYN ACK
30.024192.0.2.10:51514198.51.100.20:80TCPACK
40.036192.0.2.10:51514198.51.100.20:80TCPPSH ACK, GET /download/update.exe HTTP/1.1
50.048198.51.100.20:80192.0.2.10:51514TCPACK
60.060198.51.100.20:80192.0.2.10:51514TCPPSH ACK, HTTP/1.1 200 OK
70.072192.0.2.10:51514198.51.100.20:80TCPACK
80.084192.0.2.10:51514198.51.100.20:80TCPFIN ACK
90.096198.51.100.20:80192.0.2.10:51514TCPFIN ACK
100.108192.0.2.10:51514198.51.100.20:80TCPACK

More HTTP samples