elastic / kibana

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

[Security Solution]: Adding the OR condition on the rule exception creates multiple exception name on the updated rule exception notification. #147093

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the bug: Adding the OR condition on the rule exception creates multiple exception name on the updated rule exception notification.

Build Details:

VERSION: 8.6.0-BC5
BUILD: 58693
COMMIT: ed40c16ce9999cc47ad55c11bb097d2e443b31a6

Preconditions

  1. Kibana should be running.

Steps to Reproduce

  1. Navigate to Rules exception tab.
  2. Now, create a shared exception list.
  3. Now create a rule exception and add on the created shared exception list.
  4. Now, edit the rule exception and add OR condition on the exception.
  5. Observe that adding the OR condition on the rule exception creates multiple exception name on the updated rule exception notification.

Actual Result Adding the OR condition on the rule exception creates multiple exception name on the updated rule exception notification.

Expected Result Adding the OR condition on the rule exception multiple exception name on the updated rule exception notification should not display.

Screen-Recording:

https://user-images.githubusercontent.com/84007952/205908875-086ec835-6811-4339-8b19-358aebd5f43c.mp4

elasticmachine commented 1 year ago

Pinging @elastic/security-detections-response (Team:Detections and Resp)

elasticmachine commented 1 year ago

Pinging @elastic/security-solution (Team: SecuritySolution)

ghost commented 1 year ago

@karanbirsingh-qasource Please review.

cybersecdiva commented 1 year ago

Tested in current8.7.0 deployment:

Preconditions: Kibana should be running

Steps to reproduce behavior:

  1. Go to Security -> Manage -> Shared Exception Lists
  2. Create a shared exception list in this scenario for testing my shared exception list is named "testbugsharedlist"
  3. Under the recently created shared list create a rule exception and fill in the required fields
  4. Edit the rule exception and add the OR condition on the rule exception

Screen video capture:

https://user-images.githubusercontent.com/35679937/229914735-70acee6c-74ca-4a3d-a6e2-d2fb290e71d9.mp4

Observations:

Screenshot of "Endpoint Security" rule with generated Malware Detection Alerts with an updated endpoint exception:

Screenshot 2023-04-04 at 6 47 55 PM

Screen recorded behavior rule "Endpoint Security" with generated alerts that have rule or endpoint exceptions:

https://user-images.githubusercontent.com/35679937/229940229-df1227e7-c857-4e63-be43-58bfd0a24829.mp4

Conclusion

Multiple exception names are occurring on the updated rule exception notification for both shared exception list and when updating rule exceptions for rules with generated alerts and endpoint exceptions

Bug Improvement Suggestions:

cc: @MadameSheema Update FYI Observations

cybersecdiva commented 1 year ago

Tested in8.9.0:

Build Details:
VERSION: 8.9.0 BC5
BUILD: 64715
COMMIT: beb56356c5c037441f89264361302513ff5bd9f8

Preconditions: Kibana should be running

Steps to reproduce behavior:

  1. Go to Security -> Manage -> Shared Exception Lists
  2. Create a shared exception list in this scenario for testing my shared exception list is named "bugtest"
  3. Under the recently created shared list create a rule exception and fill in the required fields
  4. Edit the rule exception and add the OR condition on the rule exception

Screen video capture:

https://github.com/elastic/kibana/assets/35679937/df503695-521e-49dd-a195-491aa2c52f0d

Observations:

Screenshot of a newly created Shared Exception list of an updated rule exception with the OR condition:

Screenshot 2023-08-11 at 4 32 45 PM

Screenshot of "Endpoint Security" rule with generated Malware Detection Alerts with an updated endpoint exception:

Screenshot 2023-08-11 at 5 46 12 PM

Screenshot of behavior rule "Endpoint Security" with generated alerts that have rule or endpoint exceptions:

Screenshot 2023-08-11 at 5 53 01 PM

Conclusion

Multiple exception names are occurring on the updated rule exception notification for both shared exception list and when updating rule exceptions for rules with generated alerts and endpoint exceptions

Bug Improvement Suggestions:

cc: @MadameSheema Updated FYI Observations

pborgonovi commented 3 months ago

Validated latest 8.15 BC and it's still happening:

image