elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.82k stars 8.21k forks source link

[ResponseOps][Alerts] Alerts attached to cases created via case action cannot be seen in serverless security #195273

Open adcoelho opened 2 weeks ago

adcoelho commented 2 weeks ago

Summary

Normally, when creating cases using the case action in a rule, the alert that triggered this action will be attached to the new case and visible in the Alerts tab.

For rules created in stack management in serverless security projects, this is not working properly.

The alerts tab shows the correct count.

Image

But the tab itself shows no alerts.

Image

In #186270 a workaround was created to change the owner of these cases to be 'securitySolution' when the project is security serverless.

We probably have to do something similar with the alerts generated by these rules while keeping them visible in Stack Management.

How to reproduce

  1. Start Kibana locally in serverless security mode.
  2. Navigate to Rules in Stack Management.
  3. Create a rule with the case action.
  4. When an alert is triggered confirm that the corresponding case was created in Security > Cases.
  5. Navigate to the case and confirm the alerts tab is empty.

DoD

elasticmachine commented 2 weeks ago

Pinging @elastic/response-ops (Team:ResponseOps)