Skip to content

[9.1] [Attack Discovery][Scheduling] Make "For each alert" a default action frequency (#225890)#226156

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

[9.1] [Attack Discovery][Scheduling] Make "For each alert" a default action frequency (#225890)#226156
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-225890

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

… frequency (elastic#225890)

## Summary

This came from a testing party which we did with the team on June 30th.

There are a list of attack specific fields which are helpful for the
user while creating an action for the attack discovery schedule. Those
fields are present within the context when the actions frequency set to
`"For each alert"` and located under the `context.attack.*`.

While testing this functionality, @peluja1012 and @stephmilovic found it
not clear that attack context fields are only present in case of `"For
each alert"` frequency. One of the reasons was the fact that we set the
`"Summary of alerts"` frequency as a default one.

<img width="944" alt="Screenshot 2025-06-30 at 19 02 31"
src="https://github.com/user-attachments/assets/7f7a8aba-c820-47be-8f10-04df50f5af67"
/>

With these changes we improve the behaviour and make `"For each alert"`
frequency a default one. This way user will have immediately the access
to those context fields and more likely to use them.

<img width="1259" alt="Screenshot 2025-06-30 at 19 03 23"
src="https://github.com/user-attachments/assets/1a5f44b7-2cf8-41b1-9bbd-c0507ef42eda"
/>

### To test

1. Navigate to the Attack Discovery page
2. Open Settings flyout
3. Open Schedule tab
4. Click "Create new schedule" button
5. Select one of the actions to add (slack, email etc.)

**Expected behaviour**: the `"For each alert"` frequency should be
selected by default and `context.attack.*` fields should be available in
the `"Add variable"` popover.

## 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 f606dec)
@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

cc @e40pud

@kibanamachine kibanamachine merged commit 0821e75 into elastic:9.1 Jul 2, 2025
14 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