I’m new to Suricata and am trying to create a rule that would detect a word in the header of a packet.
So far the best I’ve managed to come up with is:
drop tcp any any -> any any (content:"bad_word"; nocase; sid:1;)
This works, but my understanding is that this is searching across the entire packet, including the body (effectively doin DPI).
Is that correct? If so, how do I modify the rule to only search for the word in the header?
Thank you!