Sample captures, Scans, tunnels and evasion

HTTP request in 8-byte TCP segments

An HTTP request sent 8 bytes per packet.

Packets
22
Duration
0.084 s
Size
1.7 KB
Protocols
TCP, HTTP
License
CC0

What it shows

The client sends GET /admin/config.php?action=export eight bytes at a time, so the request is spread over a dozen packets.

Rules on the reassembled stream or on HTTP buffers fire. A rule that needs the match inside one packet, here with dsize, doesn't.

Rules for this capture

Suricata 8 and 7

Try these rules
alert http any any -> any any (msg:"config.php export"; flow:established,to_server; http.uri; content:"/admin/config.php"; sid:1000001; rev:1;)
alert tcp any any -> any 80 (msg:"config.php in one large packet"; flow:established,to_server; dsize:>40; content:"config.php"; 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:"config.php export"; flow:established,to_server; http_uri; content:"/admin/config.php"; sid:1000001; rev:1;)
alert tcp any any -> any 80 (msg:"config.php in one large packet"; flow:established,to_server; dsize:>40; content:"config.php"; 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.000203.0.113.50:54100198.51.100.20:80TCPSYN
20.004198.51.100.20:80203.0.113.50:54100TCPSYN ACK
30.008203.0.113.50:54100198.51.100.20:80TCPACK
40.012203.0.113.50:54100198.51.100.20:80TCPPSH ACK, GET /adm
50.016203.0.113.50:54100198.51.100.20:80TCPPSH ACK, in/confi
60.020203.0.113.50:54100198.51.100.20:80TCPPSH ACK, g.php?ac
70.024203.0.113.50:54100198.51.100.20:80TCPPSH ACK, tion=exp
80.028203.0.113.50:54100198.51.100.20:80TCPPSH ACK, ort HTTP
90.032203.0.113.50:54100198.51.100.20:80TCPPSH ACK, /1.1
100.036203.0.113.50:54100198.51.100.20:80TCPPSH ACK, st: intr
110.040203.0.113.50:54100198.51.100.20:80TCPPSH ACK, anet.exa
120.044203.0.113.50:54100198.51.100.20:80TCPPSH ACK, mple.com
130.048203.0.113.50:54100198.51.100.20:80TCPPSH ACK, 8 bytes
140.052203.0.113.50:54100198.51.100.20:80TCPPSH ACK, gent: Mo
150.056203.0.113.50:54100198.51.100.20:80TCPPSH ACK, zilla/5.
160.060203.0.113.50:54100198.51.100.20:80TCPPSH ACK, 5 bytes
170.064198.51.100.20:80203.0.113.50:54100TCPACK
180.068198.51.100.20:80203.0.113.50:54100TCPPSH ACK, HTTP/1.1 403 Forbidden
190.072203.0.113.50:54100198.51.100.20:80TCPACK
200.076203.0.113.50:54100198.51.100.20:80TCPFIN ACK
210.080198.51.100.20:80203.0.113.50:54100TCPFIN ACK
220.084203.0.113.50:54100198.51.100.20:80TCPACK

More Scans, tunnels and evasion samples