-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws.securityhub_findings: Improve support for CDR (#11158)
* Add CSPM fields - 1 * reformat * reformat * Add more ECS fields * Consider multiple resources * Split single and multiple resource logic. Add multiple resources test. * Add tags and update comments * Add visualization to findings dashboard * update typeMigrationVersion on kibana searches * Address PR comments. * Address PR comments-1 * Add PR comment-2 - Add host.ip and host.name * Address PR comments-3. Use constant_keyword * Address PR comments-4. Separate res.Details != null condition block and field separation. * fix HEAD * ecs fields sorted. * Address Pr comments-5. Remove unused fields from mapping. * Add misconfiguration_latest transform * Address PR comment. Update transform retention to 90d. * Address PR comments. Updated rule fields to keyword. * update readme * Remove references from pipeline tests * update fields to ecs * address pr comments. * fix static test * update/fix readme * address pr comments * address pr comments. Remove unnecessary `ignore_empty_value` option
- Loading branch information
Showing
25 changed files
with
4,147 additions
and
153 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
13 changes: 12 additions & 1 deletion
13
...ges/aws/data_stream/securityhub_findings/_dev/test/pipeline/test-securityhub-findings.log
Large diffs are not rendered by default.
Oops, something went wrong.
1,933 changes: 1,922 additions & 11 deletions
1,933
...tream/securityhub_findings/_dev/test/pipeline/test-securityhub-findings.log-expected.json
Large diffs are not rendered by default.
Oops, something went wrong.
519 changes: 501 additions & 18 deletions
519
packages/aws/data_stream/securityhub_findings/elasticsearch/ingest_pipeline/default.yml
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
packages/aws/data_stream/securityhub_findings/fields/base-fields.yml
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
- name: data_stream.type | ||
type: constant_keyword | ||
description: Data stream type. | ||
external: ecs | ||
- name: data_stream.dataset | ||
type: constant_keyword | ||
description: Data stream dataset. | ||
external: ecs | ||
- name: data_stream.namespace | ||
type: constant_keyword | ||
description: Data stream namespace. | ||
external: ecs | ||
- name: event.module | ||
external: ecs | ||
type: constant_keyword | ||
description: Event module. | ||
value: aws | ||
- name: event.dataset | ||
external: ecs | ||
type: constant_keyword | ||
value: aws.securityhub_findings | ||
- name: '@timestamp' | ||
type: date | ||
description: Event timestamp. | ||
external: ecs |
10 changes: 10 additions & 0 deletions
10
packages/aws/data_stream/securityhub_findings/fields/ecs.yml
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,10 @@ | ||
# Define ECS constant fields as constant_keyword | ||
- name: cloud.provider | ||
type: constant_keyword | ||
value: aws | ||
- name: event.kind | ||
type: constant_keyword | ||
value: state | ||
- name: observer.vendor | ||
type: constant_keyword | ||
value: AWS Security Hub |
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
9 changes: 9 additions & 0 deletions
9
packages/aws/data_stream/securityhub_findings/fields/resource.yml
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 @@ | ||
- name: resource | ||
type: group | ||
fields: | ||
- name: id | ||
type: keyword | ||
- name: name | ||
type: keyword | ||
- name: type | ||
type: keyword |
5 changes: 5 additions & 0 deletions
5
packages/aws/data_stream/securityhub_findings/fields/result.yml
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 @@ | ||
- name: result | ||
type: group | ||
fields: | ||
- name: evaluation | ||
type: keyword |
5 changes: 5 additions & 0 deletions
5
packages/aws/data_stream/securityhub_findings/fields/rule.yml
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 @@ | ||
- name: rule | ||
type: group | ||
fields: | ||
- name: remediation | ||
type: keyword |
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.