-
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
File data logging v2 #12080
base: master
Are you sure you want to change the base?
File data logging v2 #12080
Conversation
This patch adds file data to alerts so an analyst can directly understand what is the file. It can also be used to do some detection on the file outside of Suricata without doing file extraction. Ticket: OISF#7347
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12080 +/- ##
==========================================
- Coverage 83.37% 79.79% -3.59%
==========================================
Files 910 910
Lines 257556 257399 -157
==========================================
- Hits 214748 205383 -9365
- Misses 42808 52016 +9208
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 23242 |
"data": { | ||
"type": "string" | ||
}, | ||
"offset": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if these fields should be grouped together in a subobject (making the meaning of offset more clear)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a good idea. I can try implementing that to see if it works ok.
@@ -67,6 +67,7 @@ | |||
#include "util-validate.h" | |||
|
|||
#include "action-globals.h" | |||
#include <stdint.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this include added ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to fix my LSP which is adding these headers by itself...
Why is this better than using |
I see multiple advantages which depends on the use case:
Where it definitely not work well:
|
These examples apart, I would be happy to take some feedback from data analyst or SOC expert to see if they would be interested. |
Update of #12042
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/7347
Describe changes:
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCH
variable.SV_BRANCH=OISF/suricata-verify#2113