Skip to content

[Security Solution][Detection Engine] Adds support for suppressing EQL sequence alerts#189725

Merged
dhurley14 merged 91 commits intoelastic:mainfrom
dhurley14:eql-sequence-suppression
Dec 4, 2024
Merged

[Security Solution][Detection Engine] Adds support for suppressing EQL sequence alerts#189725
dhurley14 merged 91 commits intoelastic:mainfrom
dhurley14:eql-sequence-suppression

Conversation

@dhurley14
Copy link
Copy Markdown
Contributor

@dhurley14 dhurley14 commented Aug 1, 2024

Summary

Provide support for suppressing EQL sequence alerts.

To test, start up auditbeat and packetbeat locally and run the following:

cd ~/kibana/x-pack/plugins/security_solution/server/lib/detection_engine/scripts && ./post_rule.sh ./rules/queries/sequence_eql_query.json

This will create a sample rule to suppress on agent.name with a suppression duration of 5 hours and runs every 30 seconds with a 90 second lookback. There is another sequence rule in that dir sequence_eql_query_no_duration.json that will suppress per-execution for testing that functionality.

Checklist

Detection Engine Team Checklist:

  • Functional changes are hidden behind a feature flag. If not hidden, the PR explains why these changes are being implemented in a long-living feature branch.
    alertSuppressionForSequenceEqlRuleEnabled
  • Functional changes are covered with a test plan and automated tests.
    https://github.com/elastic/security-team/pull/10386
  • Stability of new and changed tests is verified using the Flaky Test Runner in both ESS and Serverless. By default, use 200 runs for ESS and 200 runs for Serverless.
  • Comprehensive manual testing is done by two engineers: the PR author and one of the PR reviewers. Changes are tested in both ESS and Serverless.
  • Functional changes are communicated to the Docs team. A ticket is opened in https://github.com/elastic/security-docs using the Internal documentation request (Elastic employees) template. The following information is included: feature flags used, target ESS version, planned timing for ESS and Serverless releases.

@dhurley14
Copy link
Copy Markdown
Contributor Author

/ci

@dhurley14
Copy link
Copy Markdown
Contributor Author

/ci

@dhurley14
Copy link
Copy Markdown
Contributor Author

/ci

@dhurley14 dhurley14 requested a review from maximpn December 2, 2024 15:42
@approksiu
Copy link
Copy Markdown

We had a discussion, and I changed my mind. We will keep the current behavior: hiding the component on the disabled feature flag, and plan to release it with the feature flag enabled by default. cc @maximpn @dhurley14

Copy link
Copy Markdown
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhurley14 Thanks for responding on my comments 🙏

I tested the PR and haven't revealed any issues.

…pes support suppression, with eql sequence dependent on feature flag, so that is now the only parameter necessary
@elasticmachine
Copy link
Copy Markdown
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

History

@dhurley14 dhurley14 merged commit 5fa4af9 into elastic:main Dec 4, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12159631381

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- [React18] Migrate test suites to account for testing library upgrades security-detection-rule-management (#201177)

Manual backport

To create the backport manually run:

node scripts/backport --pr 189725

Questions ?

Please refer to the Backport tool documentation

@dhurley14
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dhurley14 added a commit that referenced this pull request Dec 4, 2024
…ing EQL sequence alerts (#189725) (#202960)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Detection Engine] Adds support for suppressing
EQL sequence alerts
(#189725)](#189725)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Devin W.
Hurley","email":"devin.hurley@elastic.co"},"sourceCommit":{"committedDate":"2024-12-04T12:21:49Z","message":"[Security
Solution][Detection Engine] Adds support for suppressing EQL sequence
alerts (#189725)\n\n## Summary\r\n\r\nProvide support for suppressing
EQL sequence alerts.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marshall Main
<55718608+marshallmain@users.noreply.github.com>","sha":"5fa4af9c8b0e0ec675ee2b84b5b60207e3043ffa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","v9.0.0","Feature:Detection
Rules","release_note:feature","Feature:Alert
Suppression","Team:Detection
Engine","backport:version","v8.18.0"],"number":189725,"url":"https://github.com/elastic/kibana/pull/189725","mergeCommit":{"message":"[Security
Solution][Detection Engine] Adds support for suppressing EQL sequence
alerts (#189725)\n\n## Summary\r\n\r\nProvide support for suppressing
EQL sequence alerts.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marshall Main
<55718608+marshallmain@users.noreply.github.com>","sha":"5fa4af9c8b0e0ec675ee2b84b5b60207e3043ffa"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/189725","number":189725,"mergeCommit":{"message":"[Security
Solution][Detection Engine] Adds support for suppressing EQL sequence
alerts (#189725)\n\n## Summary\r\n\r\nProvide support for suppressing
EQL sequence alerts.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marshall Main
<55718608+marshallmain@users.noreply.github.com>","sha":"5fa4af9c8b0e0ec675ee2b84b5b60207e3043ffa"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Dec 9, 2024
…L sequence alerts (elastic#189725)

## Summary

Provide support for suppressing EQL sequence alerts.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…L sequence alerts (elastic#189725)

## Summary

Provide support for suppressing EQL sequence alerts.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
dhurley14 added a commit that referenced this pull request Apr 25, 2025
…ure flag (#218614)

## Summary

Removes eql sequence suppression feature flag.

Ref: #189725
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 25, 2025
…ure flag (elastic#218614)

## Summary

Removes eql sequence suppression feature flag.

Ref: elastic#189725
(cherry picked from commit b94ab4b)
dhurley14 added a commit to dhurley14/kibana that referenced this pull request Apr 25, 2025
…ure flag (elastic#218614)

## Summary

Removes eql sequence suppression feature flag.

Ref: elastic#189725
(cherry picked from commit b94ab4b)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/use_experimental_feature_fields_transform.ts
dhurley14 added a commit to dhurley14/kibana that referenced this pull request Apr 25, 2025
…ure flag (elastic#218614)

## Summary

Removes eql sequence suppression feature flag.

Ref: elastic#189725
(cherry picked from commit b94ab4b)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/use_experimental_feature_fields_transform.ts
#	x-pack/test/security_solution_cypress/config.ts
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
…ure flag (elastic#218614)

## Summary

Removes eql sequence suppression feature flag.

Ref: elastic#189725
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Alert Suppression Security Solution Alert Suppression feature Feature:Detection Rules Security Solution rules and Detection Engine release_note:feature Makes this part of the condensed release notes review Team:Detection Engine Security Solution Detection Engine Area v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.