Sample captures, HTTP

HTTP beacon every 30 seconds

A client checks in with the same request six times, 30 seconds apart.

Packets
60
Duration
150.108 s
Size
5.8 KB
Protocols
TCP, HTTP
License
CC0

What it shows

Six connections to cdn-update.badexample.net, 30 seconds apart, each with the same GET /api/v1/status?id=7f3a9c21, an old Internet Explorer User-Agent and a base64 cookie: the rhythm of a command-and-control beacon.

For counting rules. A plain rule fires on every request; one with threshold (Suricata) or detection_filter (Snort 3) fires once the count is reached.

Rules for this capture

Suricata 8 and 7

Try these rules
alert http any any -> any any (msg:"Beacon request"; flow:established,to_server; http.uri; content:"/api/v1/status?id="; sid:1000001; rev:1;)
alert http any any -> any any (msg:"Beacon: 5 requests in 5 minutes"; flow:established,to_server; http.uri; content:"/api/v1/status?id="; threshold:type threshold, track by_src, count 5, seconds 300; sid:1000002; rev:1;)
alert http any any -> any any (msg:"Beacon request"; flow:established,to_server; http_uri; content:"/api/v1/status?id="; sid:1000001; rev:1;)
alert http any any -> any any (msg:"Beacon: more than 5 requests in 5 minutes"; flow:established,to_server; http_uri; content:"/api/v1/status?id="; detection_filter:track by_src, count 5, seconds 300; sid:1000002; rev:1;)

Packets

No.TimeSourceDestinationProtocolInfo
10.000192.0.2.10:49710203.0.113.66:80TCPSYN
20.012203.0.113.66:80192.0.2.10:49710TCPSYN ACK
30.024192.0.2.10:49710203.0.113.66:80TCPACK
40.036192.0.2.10:49710203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
50.048203.0.113.66:80192.0.2.10:49710TCPACK
60.060203.0.113.66:80192.0.2.10:49710TCPPSH ACK, HTTP/1.1 200 OK
70.072192.0.2.10:49710203.0.113.66:80TCPACK
80.084192.0.2.10:49710203.0.113.66:80TCPFIN ACK
90.096203.0.113.66:80192.0.2.10:49710TCPFIN ACK
100.108192.0.2.10:49710203.0.113.66:80TCPACK
1130.000192.0.2.10:49711203.0.113.66:80TCPSYN
1230.012203.0.113.66:80192.0.2.10:49711TCPSYN ACK
1330.024192.0.2.10:49711203.0.113.66:80TCPACK
1430.036192.0.2.10:49711203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
1530.048203.0.113.66:80192.0.2.10:49711TCPACK
1630.060203.0.113.66:80192.0.2.10:49711TCPPSH ACK, HTTP/1.1 200 OK
1730.072192.0.2.10:49711203.0.113.66:80TCPACK
1830.084192.0.2.10:49711203.0.113.66:80TCPFIN ACK
1930.096203.0.113.66:80192.0.2.10:49711TCPFIN ACK
2030.108192.0.2.10:49711203.0.113.66:80TCPACK
2160.000192.0.2.10:49712203.0.113.66:80TCPSYN
2260.012203.0.113.66:80192.0.2.10:49712TCPSYN ACK
2360.024192.0.2.10:49712203.0.113.66:80TCPACK
2460.036192.0.2.10:49712203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
2560.048203.0.113.66:80192.0.2.10:49712TCPACK
2660.060203.0.113.66:80192.0.2.10:49712TCPPSH ACK, HTTP/1.1 200 OK
2760.072192.0.2.10:49712203.0.113.66:80TCPACK
2860.084192.0.2.10:49712203.0.113.66:80TCPFIN ACK
2960.096203.0.113.66:80192.0.2.10:49712TCPFIN ACK
3060.108192.0.2.10:49712203.0.113.66:80TCPACK
3190.000192.0.2.10:49713203.0.113.66:80TCPSYN
3290.012203.0.113.66:80192.0.2.10:49713TCPSYN ACK
3390.024192.0.2.10:49713203.0.113.66:80TCPACK
3490.036192.0.2.10:49713203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
3590.048203.0.113.66:80192.0.2.10:49713TCPACK
3690.060203.0.113.66:80192.0.2.10:49713TCPPSH ACK, HTTP/1.1 200 OK
3790.072192.0.2.10:49713203.0.113.66:80TCPACK
3890.084192.0.2.10:49713203.0.113.66:80TCPFIN ACK
3990.096203.0.113.66:80192.0.2.10:49713TCPFIN ACK
4090.108192.0.2.10:49713203.0.113.66:80TCPACK
41120.000192.0.2.10:49714203.0.113.66:80TCPSYN
42120.012203.0.113.66:80192.0.2.10:49714TCPSYN ACK
43120.024192.0.2.10:49714203.0.113.66:80TCPACK
44120.036192.0.2.10:49714203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
45120.048203.0.113.66:80192.0.2.10:49714TCPACK
46120.060203.0.113.66:80192.0.2.10:49714TCPPSH ACK, HTTP/1.1 200 OK
47120.072192.0.2.10:49714203.0.113.66:80TCPACK
48120.084192.0.2.10:49714203.0.113.66:80TCPFIN ACK
49120.096203.0.113.66:80192.0.2.10:49714TCPFIN ACK
50120.108192.0.2.10:49714203.0.113.66:80TCPACK
51150.000192.0.2.10:49715203.0.113.66:80TCPSYN
52150.012203.0.113.66:80192.0.2.10:49715TCPSYN ACK
53150.024192.0.2.10:49715203.0.113.66:80TCPACK
54150.036192.0.2.10:49715203.0.113.66:80TCPPSH ACK, GET /api/v1/status?id=7f3a9c21 HTTP/1.1
55150.048203.0.113.66:80192.0.2.10:49715TCPACK
56150.060203.0.113.66:80192.0.2.10:49715TCPPSH ACK, HTTP/1.1 200 OK
57150.072192.0.2.10:49715203.0.113.66:80TCPACK
58150.084192.0.2.10:49715203.0.113.66:80TCPFIN ACK
59150.096203.0.113.66:80192.0.2.10:49715TCPFIN ACK
60150.108192.0.2.10:49715203.0.113.66:80TCPACK

More HTTP samples