forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SIEM][Detection Engine] Order JSON keys, fix scripts, update pre-pac…
…kaged rules ## Summary * Updates pre-packaged rules * Adds rule_id duplicate check into the linter * Updates the scripts for converting saved objects to rules * Adds a script for re-generating the `index.ts` for the rules ### Checklist Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR. ~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~ ~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~ ~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~ - [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios ~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~ ### For maintainers ~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~ - [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
- Loading branch information
1 parent
f7a0672
commit 1083368
Showing
344 changed files
with
4,760 additions
and
3,708 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
17 changes: 17 additions & 0 deletions
17
...gins/siem/server/lib/detection_engine/rules/prepackaged_rules/403_response_to_a_post.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"description": "403 Response to a POST", | ||
"enabled": false, | ||
"filters": [], | ||
"from": "now-6m", | ||
"immutable": true, | ||
"interval": "5m", | ||
"language": "kuery", | ||
"name": "403 Response to a POST", | ||
"query": "http.response.status_code:403 and http.request.method:post", | ||
"risk_score": 50, | ||
"rule_id": "a87a4e42-1d82-44bd-b0bf-d9b7f91fb89e", | ||
"severity": "low", | ||
"to": "now", | ||
"type": "query", | ||
"version": 1 | ||
} |
17 changes: 17 additions & 0 deletions
17
.../server/lib/detection_engine/rules/prepackaged_rules/405_response_method_not_allowed.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"description": "405 Response (Method Not Allowed)", | ||
"enabled": false, | ||
"filters": [], | ||
"from": "now-6m", | ||
"immutable": true, | ||
"interval": "5m", | ||
"language": "kuery", | ||
"name": "405 Response (Method Not Allowed)", | ||
"query": "http.response.status_code:405", | ||
"risk_score": 50, | ||
"rule_id": "75ee75d8-c180-481c-ba88-ee50129a6aef", | ||
"severity": "low", | ||
"to": "now", | ||
"type": "query", | ||
"version": 1 | ||
} |
17 changes: 17 additions & 0 deletions
17
.../siem/server/lib/detection_engine/rules/prepackaged_rules/500_response_on_admin_page.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"description": "500 Response on Admin page", | ||
"enabled": false, | ||
"filters": [], | ||
"from": "now-6m", | ||
"immutable": true, | ||
"interval": "5m", | ||
"language": "kuery", | ||
"name": "500 Response on Admin page", | ||
"query": "url.path:\"/admin/\" and http.response.status_code:500", | ||
"risk_score": 50, | ||
"rule_id": "054f669c-b065-492e-acd9-15e44fc42380", | ||
"severity": "low", | ||
"to": "now", | ||
"type": "query", | ||
"version": 1 | ||
} |
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.