Skip to content

Comments

[9.1] [Attack Discovery][Scheduling] Improved duplicates logging (#227666)#227858

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227666
Jul 14, 2025
Merged

[9.1] [Attack Discovery][Scheduling] Improved duplicates logging (#227666)#227858
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227666

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…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)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 14, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 14, 2025 15:25
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @e40pud

@kibanamachine kibanamachine merged commit 5ecd8a0 into elastic:9.1 Jul 14, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants