Sample captures, Scans, tunnels and evasion

TCP SYN scan

One host sends SYNs to 40 ports in 40 milliseconds; three answer.

Packets
83
Duration
0.039 s
Size
5.7 KB
Protocols
TCP
License
CC0

What it shows

A SYN scan: 203.0.113.50 sends a single SYN to each of 40 common ports on 198.51.100.20. Ports 22, 80 and 443 answer SYN-ACK (and the scanner resets them), the others answer RST.

For threshold rules. A single SYN is normal, so the rule counts them per source. Suricata's threshold of type both fires once; Snort 3's detection_filter fires on every SYN past the count.

Rules for this capture

Suricata 8 and 7

Try these rules
alert tcp any any -> any any (msg:"SYN scan: 20 SYNs in 10 seconds"; flow:stateless; flags:S; threshold:type both, track by_src, count 20, seconds 10; sid:1000001; rev:1;)
alert tcp any any -> any any (msg:"SYN scan: more than 20 SYNs in 10 seconds"; flags:S; detection_filter:track by_src, count 20, seconds 10; sid:1000001; rev:1;)

Packets

The first 60 of 83 packets.

No.TimeSourceDestinationProtocolInfo
10.000203.0.113.50:61822198.51.100.20:21TCPSYN
20.000198.51.100.20:21203.0.113.50:61822TCPRST ACK
30.001203.0.113.50:61822198.51.100.20:22TCPSYN
40.001198.51.100.20:22203.0.113.50:61822TCPSYN ACK
50.002203.0.113.50:61822198.51.100.20:22TCPRST
60.002203.0.113.50:61822198.51.100.20:23TCPSYN
70.002198.51.100.20:23203.0.113.50:61822TCPRST ACK
80.003203.0.113.50:61822198.51.100.20:25TCPSYN
90.003198.51.100.20:25203.0.113.50:61822TCPRST ACK
100.004203.0.113.50:61822198.51.100.20:53TCPSYN
110.004198.51.100.20:53203.0.113.50:61822TCPRST ACK
120.005203.0.113.50:61822198.51.100.20:80TCPSYN
130.005198.51.100.20:80203.0.113.50:61822TCPSYN ACK
140.006203.0.113.50:61822198.51.100.20:80TCPRST
150.006203.0.113.50:61822198.51.100.20:88TCPSYN
160.006198.51.100.20:88203.0.113.50:61822TCPRST ACK
170.007203.0.113.50:61822198.51.100.20:110TCPSYN
180.007198.51.100.20:110203.0.113.50:61822TCPRST ACK
190.008203.0.113.50:61822198.51.100.20:111TCPSYN
200.008198.51.100.20:111203.0.113.50:61822TCPRST ACK
210.009203.0.113.50:61822198.51.100.20:113TCPSYN
220.009198.51.100.20:113203.0.113.50:61822TCPRST ACK
230.010203.0.113.50:61822198.51.100.20:135TCPSYN
240.010198.51.100.20:135203.0.113.50:61822TCPRST ACK
250.011203.0.113.50:61822198.51.100.20:139TCPSYN
260.011198.51.100.20:139203.0.113.50:61822TCPRST ACK
270.012203.0.113.50:61822198.51.100.20:143TCPSYN
280.012198.51.100.20:143203.0.113.50:61822TCPRST ACK
290.013203.0.113.50:61822198.51.100.20:199TCPSYN
300.013198.51.100.20:199203.0.113.50:61822TCPRST ACK
310.014203.0.113.50:61822198.51.100.20:389TCPSYN
320.014198.51.100.20:389203.0.113.50:61822TCPRST ACK
330.015203.0.113.50:61822198.51.100.20:443TCPSYN
340.015198.51.100.20:443203.0.113.50:61822TCPSYN ACK
350.016203.0.113.50:61822198.51.100.20:443TCPRST
360.016203.0.113.50:61822198.51.100.20:445TCPSYN
370.016198.51.100.20:445203.0.113.50:61822TCPRST ACK
380.017203.0.113.50:61822198.51.100.20:554TCPSYN
390.017198.51.100.20:554203.0.113.50:61822TCPRST ACK
400.018203.0.113.50:61822198.51.100.20:587TCPSYN
410.018198.51.100.20:587203.0.113.50:61822TCPRST ACK
420.019203.0.113.50:61822198.51.100.20:636TCPSYN
430.019198.51.100.20:636203.0.113.50:61822TCPRST ACK
440.020203.0.113.50:61822198.51.100.20:993TCPSYN
450.020198.51.100.20:993203.0.113.50:61822TCPRST ACK
460.021203.0.113.50:61822198.51.100.20:995TCPSYN
470.021198.51.100.20:995203.0.113.50:61822TCPRST ACK
480.022203.0.113.50:61822198.51.100.20:1025TCPSYN
490.022198.51.100.20:1025203.0.113.50:61822TCPRST ACK
500.023203.0.113.50:61822198.51.100.20:1433TCPSYN
510.023198.51.100.20:1433203.0.113.50:61822TCPRST ACK
520.024203.0.113.50:61822198.51.100.20:1720TCPSYN
530.024198.51.100.20:1720203.0.113.50:61822TCPRST ACK
540.025203.0.113.50:61822198.51.100.20:1723TCPSYN
550.025198.51.100.20:1723203.0.113.50:61822TCPRST ACK
560.026203.0.113.50:61822198.51.100.20:3128TCPSYN
570.026198.51.100.20:3128203.0.113.50:61822TCPRST ACK
580.027203.0.113.50:61822198.51.100.20:3306TCPSYN
590.027198.51.100.20:3306203.0.113.50:61822TCPRST ACK
600.028203.0.113.50:61822198.51.100.20:3389TCPSYN

More Scans, tunnels and evasion samples