Actions
Bug #2639
closedAlert for tcp rules with established without 3whs
Description
I am seeing alerts being created when having a rule for tcp with the flow keyword 'established' while processing packets for a "session" without a 3whs.
To reproduce this we can send a few tcp packets with the psh flag and having some content payload. The rst flag to_client will create the flow.
for i in {1..2}; do sudo hping3 127.0.0.1 -c 1 -d 6 -E match -p 1212 -P -A; done
The rule to test should be like this:
alert tcp 127.0.0.1 any -> 127.0.0.1 1212 ( msg:"RULE:to_server,established #1"; content:"MATCH?"; flow:to_server,established; priority:3; sid:2; )
I'm attaching the pcap, eve.json and fast.log
To workaround this, I put only_stream on every rules.
Files
Actions