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 rulesalert 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.
Snort 3
Try these rulesalert 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. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | SYN |
| 2 | 0.012 | 198.51.100.20:8080 | 192.0.2.10:51514 | TCP | SYN ACK |
| 3 | 0.024 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | ACK |
| 4 | 0.036 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | PSH ACK, GET /download/update.exe HTTP/1.1 |
| 5 | 0.048 | 198.51.100.20:8080 | 192.0.2.10:51514 | TCP | ACK |
| 6 | 0.060 | 198.51.100.20:8080 | 192.0.2.10:51514 | TCP | PSH ACK, HTTP/1.1 200 OK |
| 7 | 0.072 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | ACK |
| 8 | 0.084 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | FIN ACK |
| 9 | 0.096 | 198.51.100.20:8080 | 192.0.2.10:51514 | TCP | FIN ACK |
| 10 | 0.108 | 192.0.2.10:51514 | 198.51.100.20:8080 | TCP | ACK |
More HTTP samples
- HTTP download: curl downloads an .exe over plain HTTP: handshake, request, response, close.
- HTTP download, capture started mid-connection: The same download without the TCP handshake, as when a capture starts late.
- HTTP download with offloaded checksums: The same download captured on the client, whose outgoing packets have bad TCP checksums.
- WordPress login form POST: A browser posts a username and password to /wp-login.php and is redirected to /wp-admin/.
- HTTP response, chunked and gzip-compressed: A web page sent gzip-compressed in chunks, with a script that's only visible after decompression.
- PowerShell download cradle: PowerShell fetches a script that decodes base64 and runs it with Invoke-Expression.
- HTTP beacon every 30 seconds: A client checks in with the same request six times, 30 seconds apart.