Skip to content

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

Merged
kibanamachine merged 2 commits intoelastic:8.19from
kibanamachine:backport/8.19/pr-225890
Jul 2, 2025
Merged

[8.19] [Attack Discovery][Scheduling] Make "For each alert" a default action frequency (#225890)#226155
kibanamachine merged 2 commits intoelastic:8.19from
kibanamachine:backport/8.19/pr-225890

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

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)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 2, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 2, 2025 11:01
@kibanamachine kibanamachine merged commit bc304a8 into elastic:8.19 Jul 2, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 9.4MB 9.4MB +109.0B

History

cc @e40pud

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