I need to write a rule that captures the SYN-scanning.
I tried this: alert tcp any any -> any any (flags:S,12; msg:"SYN"; sid: 1231213;)
then try to scan: nmap -sS myIP but this does not output “SYN”
How to write a correct rule? Thanks.
I need to write a rule that captures the SYN-scanning. I tried this: alert
Share
Try to change
flags:S,12toflags:Sas the Snort manual states:So
12will check if the two reserved bits are set which is probably not what you want. Also as I understand the documentationflags:Swill match packets with only SYN set which should be correct in your case I guess. If you want to match some flags regardless of other flags you can use*.