-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow security_rule objects to have rule IDs different from the objec…
…t IDs (#463)
- Loading branch information
Showing
8 changed files
with
96 additions
and
5 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
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,5 @@ | ||
- version: 0.1.2 | ||
changes: | ||
- description: initial release | ||
type: enhancement | ||
link: https://github.com/elastic/package-spec/pull/160 |
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 @@ | ||
Main |
6 changes: 6 additions & 0 deletions
6
test/packages/bad_rule_ids/kibana/security_rule/saved_object_id.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,6 @@ | ||
{ | ||
"attributes": { | ||
"rule_id": "rule_id" | ||
}, | ||
"id": "saved_object_id" | ||
} |
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,9 @@ | ||
format_version: 1.0.0 | ||
name: bad_rule_ids | ||
title: Bad Rule IDs | ||
description: This package contains detection rules with non-matching object IDs | ||
version: 0.1.2 | ||
type: integration | ||
release: beta | ||
owner: | ||
github: elastic/foobar |
36 changes: 36 additions & 0 deletions
36
test/packages/good/kibana/security_rule/000047bb-b27a-47ec-8b62-ef1a5d2c9e19_5.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,36 @@ | ||
{ | ||
"attributes": { | ||
"author": ["Elastic"], | ||
"description": "Detects attempts to modify a rule within an Okta policy. An adversary may attempt to modify an Okta policy rule in order to weaken an organization's security controls.", | ||
"false_positives": [ | ||
"Consider adding exceptions to this rule to filter false positives if Okta MFA rules are regularly modified in your organization." | ||
], | ||
"index": ["filebeat-*", "logs-okta*"], | ||
"language": "kuery", | ||
"license": "Elastic License v2", | ||
"name": "Attempt to Modify an Okta Policy Rule", | ||
"note": "The Okta Fleet integration or Filebeat module must be enabled to use this rule.", | ||
"query": "event.dataset:okta.system and event.action:policy.rule.update", | ||
"references": [ | ||
"https://help.okta.com/en/prod/Content/Topics/Security/Security_Policies.htm", | ||
"https://developer.okta.com/docs/reference/api/system-log/", | ||
"https://developer.okta.com/docs/reference/api/event-types/" | ||
], | ||
"risk_score": 21, | ||
"rule_id": "000047bb-b27a-47ec-8b62-ef1a5d2c9e19", | ||
"severity": "low", | ||
"tags": [ | ||
"Elastic", | ||
"Identity", | ||
"Okta", | ||
"Continuous Monitoring", | ||
"SecOps", | ||
"Identity and Access" | ||
], | ||
"timestamp_override": "event.ingested", | ||
"type": "query", | ||
"version": 5 | ||
}, | ||
"id": "000047bb-b27a-47ec-8b62-ef1a5d2c9e19_5", | ||
"type": "security-rule" | ||
} |