Project

General

Profile

Actions

Bug #4880

open
ZZ SB

detect: hostbits and xbits rules incorrectly ordered

Bug #4880: detect: hostbits and xbits rules incorrectly ordered

Added by zhenjun zhu almost 5 years ago. Updated 3 days ago.

Status:
Assigned
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
low
Label:

Description

The description of hostbits and xbits in the latest document does not match the status quo.
https://suricata.readthedocs.io/en/latest/rules/xbits.html#xbits-keyword

alert ip any any -> any any (msg:"test xbits set fakehost"; xbits:set, fakehost, track ip_dst; sid:1;)
alert ip any any -> any any (msg:"test xbits isset set fakehost and set fakerservice"; xbits:isset, fakehost, track ip_dst; xbits:set, fakeservice, track ip_dst; sid:2;)
alert ip any any -> any any (msg:"test xbits isset set fakeservice"; xbits:isset, fakeservice, track ip_dst; sid:3;)
I can't get an alert triggered by the third rule.

alert ip any any -> any any (msg:"test hostbits set fakehost"; hostbits:set, fakehost, dst; sid:1;)
alert ip any any -> any any (msg:"test hostbits isset hostbits and set fakerservice"; hostbits:isset, fakehost, dst; hostbits:set, fakeservice, dst; sid:2;)
alert ip any any -> any any (msg:"test hostbits isset fakerservice"; hostbits:isset, fakeservice, dst; sid:3;)
I can get an alert triggered by the third rule.


Subtasks 2 (2 open — 0 closed)

Bug #9248: hostbits/xbits: treat hostbits and xbits differently in the rule ordering stage (8.0.x backport)AssignedOISF DevActions
Bug #9340: detect: hostbits and xbits rules incorrectly ordered (8.0.x backport)AssignedShivani BhardwajActions

Related issues 1 (1 open — 0 closed)

Related to Suricata - Bug #1399: flowbits: rules not always evaluated in necessary orderIn ReviewShivani BhardwajActions
Actions

Also available in: PDF Atom