[9.1] [Attack Discovery][Scheduling] Improved duplicates logging (#227666)#227858
Merged
kibanamachine merged 1 commit intoelastic:9.1from Jul 14, 2025
Merged
Conversation
…27666) ## Summary Main ticket ([Internal link](elastic/security-team#10142)) With these changes we improve the attack discovery alerts duplicates logging. ### Info level logging examples **Manually generated**: > Ad-hoc Attack Discovery: Found 1 duplicate alert(s), skipping report for those. **Scheduled generations**: > Attack Discovery Schedule: Found 1 duplicate alert(s), skipping report for those. ### Additional debug level logging examples **Manually generated**: ``` Ad-hoc Attack Discovery: Duplicated alerts: [ "{{attack-discovery-alert-id}}" ] ``` **Scheduled generations**: ``` Attack Discovery Schedule: Duplicated alerts: [ "{{attack-discovery-alert-id}}" ] ``` ### To Test 1. Create Attack Discovery Schedule which runs over the same alerts multiple time (for example set alerts query time to 24h) 2. Wait until schedule runs several times and produces duplicated attack discoveries 3. Check kibana server logs ### Example of logging <img width="1536" height="101" alt="Screenshot 2025-07-11 at 16 07 09" src="https://github.com/user-attachments/assets/fe43d195-6166-483e-ad25-75aaa0f0da09" /> ## NOTES The feature is hidden behind the feature flag (in `kibana.dev.yml`): ``` feature_flags.overrides: securitySolution.attackDiscoveryAlertsEnabled: true securitySolution.assistantAttackDiscoverySchedulingEnabled: true ``` (cherry picked from commit 996eb11)
Contributor
💚 Build Succeeded
Metrics [docs]
cc @e40pud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.1:Questions ?
Please refer to the Backport tool documentation