-
Notifications
You must be signed in to change notification settings - Fork 613
[Rule Tuning] Add Missing Metadata to KEEP conditions #5442
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
Conversation
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
I think the rule |
|
++ I skipped it initially as I wasn't adding the other 2, I'll add it |
|
⛔️ Test failed Results
|
|
@eric-forte-elastic that one will be addressed by #5439 |
|
⛔️ Test failed Results
|
rules_building_block/discovery_ec2_multi_region_describe_instances.toml
Outdated
Show resolved
Hide resolved
|
⛔️ Test failed Results
|
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.
🟢 Manual review, looks good to me! 👍
When this branch and rt_0 are pulled into #5441, the tests there pass.
Details
detection-rules on 5440-fr-unit-test-for-keep-metadata [!?⇡] is v1.5.23 via v3.12.12 (detection-rules-build) on eric.forte
❯ git checkout origin/rt_1 -- rules
detection-rules on 5440-fr-unit-test-for-keep-metadata [!?⇡] is v1.5.23 via v3.12.12 (detection-rules-build) on eric.forte
❯ python -m detection_rules test
Loaded config file: /tmp/detection-rules/.detection-rules-cfg.json
...
tests/test_version_locking.py::TestVersionLock::test_previous_entries_gte_current_min_stack PASSED [100%]
================================================================================================== warnings summary ===================================================================================================
env/detection-rules-build/lib/python3.12/site-packages/_pytest/config/__init__.py:1303
env/detection-rules-build/lib/python3.12/site-packages/_pytest/config/__init__.py:1303
/tmp/detection-rules/env/detection-rules-build/lib/python3.12/site-packages/_pytest/config/__init__.py:1303: PytestAssertRewriteWarning: Module already imported so cannot be rewritten; typeguard
self._mark_plugins_for_rewrite(hook, disable_autoload)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================================================== 171 passed, 14 skipped, 2 warnings in 159.82s (0:02:39) ===============================================================================
detection-rules on 5440-fr-unit-test-for-keep-metadata [!?⇡] is v1.5.23 via v3.12.12 (detection-rules-build) on eric.forte took 2m44s
|
⛔️ Test failed Results
|
Issues
Related to:
Summary
Adds
_id,_versionand_indexto the KEEP condition.