-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solutions][Detection Engine] Fixes critical bug where an in…
…valid/empty mapping can cause a match all (#80415) ## Summary Critical bug where if you have an invalid/empty mapping this can cause the threat match to end up matching against everything rather than matching against an empty set. Added integration end to end tests to exercise both this case and the positive case where regular mappings should match against 10+ things. If you want to test this manually you can do the following: First find a field that doesn't have any data in it such as `url.extension` using timeline <img width="1160" alt="Screen Shot 2020-10-13 at 2 54 17 PM" src="https://user-images.githubusercontent.com/1151048/95915285-2c890500-0d64-11eb-8a78-3a12caf280f5.png"> Then create the rule with it using any other matching field: <img width="1036" alt="Screen Shot 2020-10-13 at 2 53 39 PM" src="https://user-images.githubusercontent.com/1151048/95915319-36ab0380-0d64-11eb-9d54-65978279586c.png"> Then run the rule and see that you have signals when there should be zero signals happening. ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information
1 parent
2955584
commit 2db9542
Showing
5 changed files
with
352 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.