Actions
Bug #8010
closed
VJ
PA
fragbits: failure to parse existing rules
Bug #8010:
fragbits: failure to parse existing rules
Affected Versions:
Effort:
Difficulty:
Label:
Description
Oct 22 02:11:34 c2758 suricata[325876]: Error: uint: Bitflag unexpected value + [suricata::detect::uint::parse_flag_list:uint.rs:366] Oct 22 02:11:34 c2758 suricata[325876]: Error: detect: error parsing signature "alert ip any any -> any any (msg:"POSSBL SCAN FRAG (NMAP -f)"; fragbits:M+D; threshold:type limit, track by_src, count 3, seconds 1210; classtype:attempted-recon; sid:3400006; priority:2; rev:6;)" from file /var/lib/suricata/rules/suricata.rules at line 22802 [DetectLoadSigFile:detect-engine-loader.c:197] Oct 22 02:11:34 c2758 suricata[325876]: Error: uint: Bitflag unexpected value + [suricata::detect::uint::parse_flag_list:uint.rs:366] Oct 22 02:11:34 c2758 suricata[325876]: Error: detect: error parsing signature "alert ip any any -> any any (msg:"POSSBL SCAN FRAG (NMAP -f)"; fragbits:M+D; threshold:type limit, track by_src, count 3, seconds 1210; classtype:attempted-recon; sid:3400006; priority:2; rev:6;)" from file /var/lib/suricata/rules/suricata.rules at line 22802 [DetectLoadSigFile:detect-engine-loader.c:197]
Should probably create some more SV parsing jobs for rulesets we list in our index.
VJ Updated by Victor Julien 10 months ago
Btw I feel the error message is a bit terse too. Should probably include the input it was trying to parse, as well as the keyword name?
PA Updated by Philippe Antoine 10 months ago
Note that this rule fragbits:M+D; is interpreted in 8 like fragbits:M; and what comes next is just garbage, so probably not the rule writer's intention
PA Updated by Philippe Antoine 9 months ago
So, this "error on junk at the end" comes from https://github.com/OISF/suricata/pull/13900/files#r2378982372 ;-)
IIRC, we contacted signature writers when we found "bad" signatures (like the double tls.cert_instance recently)
Should we do that ?
PA Updated by Philippe Antoine 9 months ago
- Status changed from Assigned to Feedback
PA Updated by Philippe Antoine about 2 months ago
- Status changed from Feedback to Closed
Nothing to do on our end : https://github.com/aleksibovellan/opnsense-suricata-nmaps/issues/6 is the follow up
Actions