Add payload-only-classtypes filtering to suricata conf to filter payl…#14726
Add payload-only-classtypes filtering to suricata conf to filter payl…#14726Aboussejra wants to merge 1 commit intoOISF:mainfrom
Conversation
…oad dump by classtype if needed
|
|
||
| typedef struct ClasstypeFilter_ { | ||
| char **classtype_names; | ||
| uint32_t count; |
There was a problem hiding this comment.
I wonder if we should use a hashtable here... What do you think ?
There was a problem hiding this comment.
I suppose that is doable, do you think it is mandatory ? As we are not in a particular hot code path for alert logging I am not sure if that is needed. I could do it if you think that is necessary.
|
This looks like an interesting feature. Thoughts ? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14726 +/- ##
==========================================
- Coverage 82.17% 82.15% -0.02%
==========================================
Files 1008 1008
Lines 263916 263978 +62
==========================================
+ Hits 216868 216872 +4
- Misses 47048 47106 +58
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Indeed something more generic could have been envisionned. Our use case was in an environment where we did not control the rule but did control the suricata configuration. Thus we could add this parameter to filter payload logging. But as we could not easely rewrite the rule, the path of a dedicated keyword was not considered. (Even if I think some specific flag on |
|
Fixed clang-format problem in v4 of branch here: |
Thanks for this insight, should be in the commit message ;-) |
…oad dump by classtype if needed
Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
https://redmine.openinfosecfoundation.org/projects/suricata/issues
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
Describe changes:
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCHvariable.SV_REPO=
SV_BRANCH=OISF/suricata-verify#2895
SU_REPO=
SU_BRANCH=