Skip to main content

findings

Creates, updates, deletes, gets or lists a findings resource.

Overview

Namefindings
TypeResource
Idaws.inspector2.findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_account_idstringThe Amazon Web Services account ID associated with the finding. (pattern: <code>\d{12}</code>)
code_vulnerability_detailsobjectDetails about the code vulnerability identified in a Lambda function used to filter findings.
descriptionstringThe description of the finding.
epssobjectThe finding's EPSS score.
exploit_availablestringIf a finding discovered in your environment has an exploit available. (YES, NO)
exploitability_detailsobjectThe details of an exploit available for a finding discovered in your environment.
finding_arnstringThe Amazon Resource Number (ARN) of the finding. (pattern: <code>arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:finding/[a-f0-9]{32}</code>)
first_observed_atstring (date-time)The date and time that the finding was first observed.
fix_availablestringDetails on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions. (YES, NO, PARTIAL)
inspector_scorenumber (double)The Amazon Inspector score given to the finding.
inspector_score_detailsobjectAn object that contains details of the Amazon Inspector score.
last_observed_atstring (date-time)The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.
network_reachability_detailsobjectAn object that contains the details of a network reachability finding.
package_vulnerability_detailsobjectAn object that contains the details of a package vulnerability finding.
remediationobjectAn object that contains the details about how to remediate a finding.
resourcesarrayContains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.
severitystringThe severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide. (INFORMATIONAL, LOW, MEDIUM, HIGH, CRITICAL, UNTRIAGED)
statusstringThe status of the finding. (ACTIVE, SUPPRESSED, CLOSED)
title_stringThe title of the finding.
type_stringThe type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide. (NETWORK_REACHABILITY, PACKAGE_VULNERABILITY, CODE_VULNERABILITY)
updated_atstring (date-time)The date and time the finding was last updated at.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_findingsselectregionLists findings for your environment.
create_findings_reportinsertregion, reportFormat, s3DestinationCreates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.
cancel_findings_reportexecregion, reportIdCancels the given findings report.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists findings for your environment.

SELECT
aws_account_id,
code_vulnerability_details,
description,
epss,
exploit_available,
exploitability_details,
finding_arn,
first_observed_at,
fix_available,
inspector_score,
inspector_score_details,
last_observed_at,
network_reachability_details,
package_vulnerability_details,
remediation,
resources,
severity,
status,
title_,
type_,
updated_at
FROM aws.inspector2.findings
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.

INSERT INTO aws.inspector2.findings (
filterCriteria,
reportFormat,
s3Destination,
region
)
SELECT
'{{ filterCriteria }}',
'{{ reportFormat }}' /* required */,
'{{ s3Destination }}' /* required */,
'{{ region }}'
RETURNING
report_id
;

Lifecycle Methods

Cancels the given findings report.

EXEC aws.inspector2.findings.cancel_findings_report
@region='{{ region }}' --required
@@json=
'{
"reportId": "{{ reportId }}"
}'
;