Sample captures, HTTP

HTTP on port 8080

The same download to a server on port 8080 instead of 80.

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

What it shows

The HTTP download again, this time to a server listening on port 8080, as proxies and development servers often do.

Both engines recognize HTTP by its content, not its port, so rules with the http protocol in the header still fire. A rule written for port 80 doesn't.

Rules for this capture

Suricata 8 and 7

Try these rules
alert http any any -> any any (msg:"Executable requested over HTTP, any port"; flow:established,to_server; http.uri; content:".exe"; endswith; sid:1000001; rev:1;)
alert tcp any any -> any 80 (msg:"Request for update.exe on port 80"; flow:established,to_server; content:"GET /download/update.exe"; sid:1000002; rev:1;)

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

alert http any any -> any any (msg:"Executable requested over HTTP, any port"; flow:established,to_server; http_uri; content:".exe"; sid:1000001; rev:1;)
alert tcp any any -> any 80 (msg:"Request for update.exe on port 80"; flow:established,to_server; content:"GET /download/update.exe"; sid:1000002; rev:1;)

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

Packets

No.TimeSourceDestinationProtocolInfo
10.000192.0.2.10:51514198.51.100.20:8080TCPSYN
20.012198.51.100.20:8080192.0.2.10:51514TCPSYN ACK
30.024192.0.2.10:51514198.51.100.20:8080TCPACK
40.036192.0.2.10:51514198.51.100.20:8080TCPPSH ACK, GET /download/update.exe HTTP/1.1
50.048198.51.100.20:8080192.0.2.10:51514TCPACK
60.060198.51.100.20:8080192.0.2.10:51514TCPPSH ACK, HTTP/1.1 200 OK
70.072192.0.2.10:51514198.51.100.20:8080TCPACK
80.084192.0.2.10:51514198.51.100.20:8080TCPFIN ACK
90.096198.51.100.20:8080192.0.2.10:51514TCPFIN ACK
100.108192.0.2.10:51514198.51.100.20:8080TCPACK

More HTTP samples