This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for Inspector Classic & Inspector V2 findings (#1305)…
… (#1412) * service calls * impl * lint * skip simplify * tests * add //check-for-changes header * Revert "skip simplify" This reverts commit 97a9666. * chmod * proper names * add resolver for arn
- Loading branch information
1 parent
2d6d138
commit 1f1ae96
Showing
18 changed files
with
816 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
|
||
# Table: aws_inspector2_finding_resources | ||
Details about the resource involved in a finding | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|finding_cq_id|uuid|Unique CloudQuery ID of aws_inspector2_findings table (FK)| | ||
|id|text|The ID of the resource| | ||
|type|text|The type of resource| | ||
|aws_ec2_instance|jsonb|An object that contains details about the Amazon EC2 instance involved in the finding| | ||
|aws_ecr_container_image|jsonb|An object that contains details about the Amazon ECR container image involved in the finding| | ||
|partition|text|The partition of the resource| | ||
|region|text|The Amazon Web Services Region the impacted resource is located in| | ||
|tags|jsonb|The tags attached to the resource| |
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,24 @@ | ||
|
||
# Table: aws_inspector2_findings | ||
Details about an Amazon Inspector finding | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|arn|text|The Amazon Resource Name (ARN) of the finding| | ||
|region|text|The AWS Region of the resource| | ||
|account_id|text|The Amazon Web Services account ID associated with the finding| | ||
|description|text|The description of the finding| | ||
|finding_arn|text|The Amazon Resource Number (ARN) of the finding| | ||
|first_observed_at|timestamp without time zone|The date and time that the finding was first observed| | ||
|last_observed_at|timestamp without time zone|The date and time that the finding was last observed| | ||
|remediation_recommendation_text|text|The recommended course of action to remediate the finding| | ||
|remediation_recommendation_url|text|The URL address to the CVE remediation recommendations| | ||
|severity|text|The severity of the finding| | ||
|status|text|The status of the finding| | ||
|type|text|The type of the finding| | ||
|inspector_score|float|The Amazon Inspector score given to the finding| | ||
|inspector_score_details|jsonb|An object that contains details of the Amazon Inspector score| | ||
|network_reachability_details|jsonb|An object that contains the details of a network reachability finding| | ||
|package_vulnerability_details|jsonb|An object that contains the details of a package vulnerability finding| | ||
|title|text|The title of the finding| | ||
|updated_at|timestamp without time zone|The date and time the finding was last updated at| |
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,26 @@ | ||
|
||
# Table: aws_inspector_findings | ||
Contains information about an Amazon Inspector finding | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|account_id|text|The AWS Account ID of the resource| | ||
|region|text|The AWS Region of the resource| | ||
|arn|text|The ARN that specifies the finding| | ||
|attributes|jsonb|The system-defined attributes for the finding| | ||
|created_at|timestamp without time zone|The time when the finding was generated| | ||
|updated_at|timestamp without time zone|The time when AddAttributesToFindings is called| | ||
|user_attributes|jsonb|The user-defined attributes that are assigned to the finding| | ||
|asset_attributes|jsonb|A collection of attributes of the host from which the finding is generated| | ||
|asset_type|text|The type of the host from which the finding is generated| | ||
|confidence|bigint|This data element is currently not used| | ||
|description|text|The description of the finding| | ||
|id|text|The ID of the finding| | ||
|indicator_of_compromise|boolean|This data element is currently not used| | ||
|numeric_severity|float|The numeric value of the finding severity| | ||
|recommendation|text|The recommendation for the finding| | ||
|schema_version|bigint|The schema version of this data type| | ||
|service|text|The data element is set to "Inspector"| | ||
|service_attributes|jsonb|This data type is used in the Finding data type| | ||
|severity|text|The finding severity| | ||
|title|text|The name of the finding| |
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.