-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analysis: report rule state altered by other rule - v3 #12515
base: master
Are you sure you want to change the base?
Conversation
For setting s->init_data for flowbit rules impacted by `set`, we can first check whether this will be needed, and *then* walk over the flowbits array.
Flowbits can make a rule such as a packet rule be treated as a stateful rule, without actually changing the rule type. Add a flag to allow reporting such cases via engine analysis. Task OISF#7456
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12515 +/- ##
==========================================
- Coverage 80.68% 80.68% -0.01%
==========================================
Files 925 925
Lines 258916 258993 +77
==========================================
+ Hits 208914 208976 +62
- Misses 50002 50017 +15
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 24463 |
I ran Suricata locally against an ET open ruleset (with and without this branch). Simple results:
|
What does upstream mean here? Are there any other possible values here? Downstream? |
Yes, sorry, I should have linked a related ticket: https://redmine.openinfosecfoundation.org/issues/7484 This is the idea of what it could look like: dependencies: {
flowbits: {
downstream: { (sids that depend on us)},
upstream: { (we depend on),
state_modifying_rules: {
sids: [...]
names: [...]
}
}
}
} |
Makes sense. Is the idea just for direct dependencies? Or transitive as well? By that I mean if |
Previous PR: #12311
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7456
Related to https://redmine.openinfosecfoundation.org/issues/7484
Describe changes:
isset
sids array if there are signatures that must be flagged as statefuldependencies
won't be presentOutput sample:
A rule with a flowbit dependency will have the
dependencies
object. Otherwise, nothing is logged.Provide values to any of the below to override the defaults.
SV_BRANCH=OISF/suricata-verify#2270