Started getting this error once i switched from 4.18 to 5.03.
25/6/2020 – 15:07:51 - - [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - rule 900000 mixes keywords with conflicting directions
I found where the error message (suricata/src/detect-parse.c at 79681bf655bc8039c246ec8a647eb1859666fac9 · OISF/suricata · GitHub) is coming from and it seems like it has to do with my flow option, but I’m not totally sure why it’s throwing the error now.
Rule:
alert http $EXTERNAL_NET $HTTP_PORTS → $HOME_NET any (msg:“Suspicious Pastebin ‘raw’ Paste Javascript Response”; flow:established, from_server; content:“pastebin.com”; http_host; content:“document.write”; http_server_body; tag:session,5,packets; sid:900000; rev:1;)