suricata-verify
suricata-verify copied to clipboard
tests: add tests for negated protocol matching
Ticket
https://redmine.openinfosecfoundation.org/issues/4921
#1012 with rewritten rule to match suricata incoming PR
Considering the README description and the docs for this, could we have a rule with something like
app-layer-protocol:failed; app-layer-protocol:toserver
?
Do you mean rather app-layer-protocol:failed,toserver;
?
Changed the pcap to not use SUBSCRIBE
SIP method
Considering the README description and the docs for this, could we have a rule with something like
app-layer-protocol:failed; app-layer-protocol:toserver
?Do you mean rather
app-layer-protocol:failed,toserver;
?
Yes, that, sorry.
But this rule would not match :
Here, we have a pcap with one flow, where do not recognize protocol to server, but we recognize http toclient, and we thus classify the whole as http...
Maybe you are on to something about protocol detection, rather than the keyword... So, what do you expect ?
But this rule would not match :
Here, we have a pcap with one flow, where do not recognize protocol to server, but we recognize http toclient, and we thus classify the whole as http...
Maybe you are on to something about protocol detection, rather than the keyword... So, what do you expect ?
It was more about trying to understand how the keyword works and what is allowed or not with it...
Do you want unit tests for keyword parser ?
Do you want unit tests for keyword parser ?
You're right, maybe this isn't the right test for those. XD
Continued in https://github.com/OISF/suricata-verify/pull/1823