-
Notifications
You must be signed in to change notification settings - Fork 526
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
[Rule Tuning] Updating Rules to Reflect V3 Unsupervised ML Jobs #1711
Conversation
@dishadasgupta, can you bump the update_date field on these rules? |
@spong so we're adding a second, or third, job name to the ML rules. In 8.1, we have refactored all of the shipping host based ML jobs - save for 3 that do not work across data types - into two modules, Security: Linux v3 and Security: Windows v3. The advantages of shipping a third module are these;
|
Thanks for the ping @randomuserid! This is fantastic news! 🙌 🎉 🙂 Thinking through this, we may have one more issue to work through if we don't plan on shipping new rules as part of these new modules. When @rylnd updated ML Rules to support multiple jobs (elastic/kibana#97073 (review)), we had to decide on the different partial failure scenarios when a job isn't running or its module isn't installed. In this instance, I believe if you only have the v3 module installed/running and the other two aren't installed, the rule may sit in a failure state and not write alerts:
When developing the new module you didn't happen to test this by duplicating one the existing rules and just adding your |
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.
Changes LGTM, but IINM, I believe the rules will fail if the job_id does not exist. I am not totally sure if that is the same behavior when it is an array and if it expects all job_ids to exist. Maybe you can make a test rule to verify?
If so, we would need to add/bump min_stack_version
to match the stack version in which the jobs were added
@dishadasgupta I think we can close this for now b/c I'm not sure when we will be ready to merge. I will first need to check on issues with the ML rules and the question of modules. |
@randomuserid @dishadasgupta can this PR be closed? Last update I saw was that a new PR would be opened with the revised approach |
@brokensound77 yes I will close this one & circle back with you and @spong on how to compose the rules after we consolidate down to a single module for Linux and Windows jobs. |
Related Issues/PRs
https://github.com/elastic/security-team/issues/1490
elastic/kibana#123274
Summary
The job ids in the rules need to also point to new V3 versions of the jobs, i.e:
machine_learning_job_id = ["windows_rare_metadata_process", "v2_windows_rare_metadata_process", "v3_windows_rare_metadata_process"]
26 Updated Rules:
Linux (14):
Windows (12):
Contributor checklist