@da_667 chapter request: tcp keywords documentation (and prefiltering). I litera...
K. Reid Wightman :verified: 🌻 :donor: :clippy: @reverseics@infosec.exchange
@da_667 chapter request: tcp keywords documentation (and prefiltering).
I literally just read through the source to learn why tcp.flags allows numeric assignments like 1 for ECE and 2 for CWR ( https://github.com/OISF/suricata/blob/18f742fdbd4f260777402f5a3f8912524272d86c/rust/src/detect/tcp.rs#L43 ).
I guess this was a holdover from legacy snort, but current snort documentation doesn't mention it and neither does suricata documentation, I thought it was pretty funny to figure out 'why'.
Also not very well documented is when/why/how suricata makes the decision to turn fields like this into a prefilter selector (I think it does? If there is no content check anyway that defines a fast_pattern, at least my limited performance testing of rules seems to suggest that this is the case).