-
Notifications
You must be signed in to change notification settings - Fork 523
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
[FR] NON_DATASET_PACKAGE list & Data Source tag for Auditd_manager #3430
Conversation
@Aegrah Is |
@Mikaayenson I discussed this with @terrancedejesus before pushing this PR and we figured we don't have to update the mappings because no new fields are introduced that are not yet added to the mappings files earlier. Once unknown fields are added to the query, we should update. If I don't fully understand the workflow, and it should be done now, LMK why exactly and I will update the schemas/manifests. |
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.
This makes sense. If new fields are not found that belong to the integration, then we'll want to revert the definitions change and update the schemas.
I'd like the opportunity to triage this a bit and make sure we are not breaking anything potentially with these changes. There are some nuances with related integrations build time logic and backporting I need to check. Will post an update in this comment when finished. |
Couple of notes so far while digging into this:
"related_integrations": [
{
"package": "auditd_manager",
"version": "^1.0.0"
},
{
"integration": "auditd",
"package": "auditd_manager",
"version": "^1.0.0"
}
|
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.
As discussed with DED, we are good to merge this. However, we should immediately reconcile the rule queries in a separate PR to remove event.dataset
.
Summary
While tuning, one of the goals I have is to maximize index pattern coverage for all of our Linux rules, as I noticed many of the Linux rules I pushed don't have
endgame
support. Additionally, I noticed while doing my auditd_manager research that addingauditd_manager
support is also possible for mostexec
events. Doing this would allow for additional rule coverage. However, when adding this support, I need to addauditd_manager
to the integrations list, and once it is in there, unit testing forces queries to have theevent.dataset == "auditd_manager.auditd"
set.To tackle this, I propose adding
auditd_manager
to theNON_DATASET_PACKAGE
list, and add a new tag"Data Source: Auditd Manager"
. Given that we now have quite a few auditd_manager-related rules, and the list will continue to grow, it makes sense for it to have its own tag.Test
Running
python -m detection_rules view-rule rules/linux/defense_evasion_disable_selinux_attempt.toml
after addingauditd_manager
to the integration, and supplying the correctlogs-auditd_manager.auditd-*
, results in the dynamic population of the related_integrations:Additional information
Issue for this request is created in #3429
Issue for tuning: #3428