Skip to content

[8.19] [AI4DSOC] [Attack discovery] In AI4DSOC projects, don't prompt the user to update the kibana.alert.workflow_status of alerts (#227326)#227720

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

Conversation

@kibanamachine
Copy link
Contributor

…er to update the `kibana.alert.workflow_status` of alerts (elastic#227326)

## [AI4DSOC] [Attack discovery] In AI4DSOC projects, don't prompt the user to update the `kibana.alert.workflow_status` of alerts

This PR updates Attack discovery for AI4DSOC projects, such that it does NOT prompt the user with a modal to [optionally update the kibana.alert.workflow_status of alerts associated with Attack discoveries](elastic#225029), as illustrated by the animated gif below:

![ai_for_soc_take_action](https://github.com/user-attachments/assets/1c58632f-f18d-4164-a31a-e8fbbd90bae2)

_Above: AI4DSOC: The modal is NOT displayed, and the associated alerts are NOT updated_

The animated gif above illustrates that in AI4DSOC projects:

- The modal prompting the user to update the `kibana.alert.workflow_status` of alerts is NOT displayed
- Only the workflow status of the Attack discovery is updated

### All other serverless projects

All other (non-AI4DSOC) serverless projects display the modal, and optionally update the workflow status of the alerts, as illustrated by the animated gif below:

![serverless](https://github.com/user-attachments/assets/d3dc067f-3fc3-461c-a7b5-a0640f82cc68)

_Above: All other serverless projects: The modal is displayed, and the associated alerts are updated_

The animated gif above illustrates that for all other serverless projects:

- The modal prompting the user to update the `kibana.alert.workflow_status` of alerts is displayed
- The workflow status of the Attack discovery is (optionally) updated

### Elastic Cloud and self manged

Elastic Cloud and self manged deployments display the modal, and optionally update the workflow status of the alerts, as illustrated by the animated gif below:

![self-managed](https://github.com/user-attachments/assets/0aeb7d4e-81a7-44ca-bdb5-86573d8ad3c9)

_Above: Self managed: The modal is displayed, and the associated alerts are updated_

The animated gif above illustrates that for Elastic cloud and self manged:

- The modal prompting the user to update the `kibana.alert.workflow_status` of alerts is displayed
- The workflow status of the Attack discovery is (optionally) updated

### Feature flags

Enable the required and recommended `assistantAttackDiscoverySchedulingEnabled` features flag in `config/kibana.dev.yml`:

```yaml
feature_flags.overrides:
  securitySolution.attackDiscoveryAlertsEnabled: true
  securitySolution.assistantAttackDiscoverySchedulingEnabled: true
```

### AI4DSOC

- To test with an AI4DSOC project, add the following setting to `config/serverless.security.dev.yaml`:

```yaml
xpack.securitySolutionServerless.productTypes:
[
  { product_line: 'ai_soc', product_tier: 'search_ai_lake' },
]
```

### Desk testing

1) Navigate to Security > Attack discovery

2) Click `Generate` to generate attack discoveries

3) Click the `Take action` dropdown on an Attack discovery

4) Click `Mark as acknowledged`

**Expected result**

The modal is displayed, and alerts are (optionally) updated for the deployment, for the deployment-type in the table below:

| Deployment                    | Modal displayed | Alerts (optionally) updated |
|-------------------------------|-----------------|-----------------------------|
| AI4DSOC                       | ❌               | ❌                           |
| All other serverless projects | ✅               | ✅                           |
| Elastic Cloud and self manged | ✅               | ✅                           |

5) Select (at least) 2 discoveries via their checkboxes

6) Click the `Selected 2 Attack discoveries` popover menu

7) Click `Mark as closed` from the popover menu

**Expected result**

Once again, the modal is displayed, and alerts are (optionally) updated for the deployment, for the deployment-type in the table below:

| Deployment                    | Modal displayed | Alerts (optionally) updated |
|-------------------------------|-----------------|-----------------------------|
| AI4DSOC                       | ❌               | ❌                           |
| All other serverless projects | ✅               | ✅                           |
| Elastic Cloud and self manged | ✅               | ✅                           |

(cherry picked from commit a4aa6a0)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 11, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 11, 2025 20:57
@andrew-goldstein
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine kibanamachine merged commit 3f37904 into elastic:8.19 Jul 14, 2025
7 of 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 +102.0B

History

cc @andrew-goldstein

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