Skip to content

aws.inspector.describe_findings

Example SQL Queries

SELECT * FROM
aws.inspector.describe_findings
WHERE
"finding_arns" = 'VALUE';

Description

Describes the findings that are specified by the ARNs of the findings.

Table Definition

Column NameColumn Data Type
finding_arns Required Input Column

The ARN that specifies the finding that you want to describe.

VARCHAR[]
Show child fields
finding_arns[]
locale Input Column

The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
failed_items

Finding details that cannot be described. An error code is provided for each failed item.

MAP(VARCHAR, STRUCT(
"failure_code" VARCHAR,
"retryable" BOOLEAN
))
findings

Information about the finding.

STRUCT(
"arn" VARCHAR,
"schema_version" BIGINT,
"service" VARCHAR,
"service_attributes" STRUCT(
"schema_version" BIGINT,
"assessment_run_arn" VARCHAR,
"rules_package_arn" VARCHAR
),
"asset_type" VARCHAR,
"asset_attributes" STRUCT(
"schema_version" BIGINT,
"agent_id" VARCHAR,
"auto_scaling_group" VARCHAR,
"ami_id" VARCHAR,
"hostname" VARCHAR,
"ipv4_addresses" VARCHAR[],
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"network_interfaces" STRUCT(
"network_interface_id" VARCHAR,
"subnet_id" VARCHAR,
"vpc_id" VARCHAR,
"private_dns_name" VARCHAR,
"private_ip_address" VARCHAR,
"private_ip_addresses" STRUCT(
"private_dns_name" VARCHAR,
"private_ip_address" VARCHAR
)[],
"public_dns_name" VARCHAR,
"public_ip" VARCHAR,
"ipv6_addresses" VARCHAR[],
"security_groups" STRUCT(
"group_name" VARCHAR,
"group_id" VARCHAR
)[]
)[]
),
"id" VARCHAR,
"title" VARCHAR,
"description" VARCHAR,
"recommendation" VARCHAR,
"severity" VARCHAR,
"numeric_severity" DOUBLE,
"confidence" BIGINT,
"indicator_of_compromise" BOOLEAN,
"attributes" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"user_attributes" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"created_at" TIMESTAMP_S,
"updated_at" TIMESTAMP_S
)[]
Show child fields
findings[]
Show child fields
findings[].arn

The ARN that specifies the finding.

findings[].asset_attributes

A collection of attributes of the host from which the finding is generated.

Show child fields
findings[].asset_attributes.agent_id

The ID of the agent that is installed on the EC2 instance where the finding is generated.

findings[].asset_attributes.ami_id

The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

findings[].asset_attributes.auto_scaling_group

The Auto Scaling group of the EC2 instance where the finding is generated.

findings[].asset_attributes.hostname

The hostname of the EC2 instance where the finding is generated.

findings[].asset_attributes.ipv4_addresses[]
findings[].asset_attributes.network_interfaces[]
Show child fields
findings[].asset_attributes.network_interfaces[].ipv6_addresses[]
findings[].asset_attributes.network_interfaces[].network_interface_id

The ID of the network interface.

findings[].asset_attributes.network_interfaces[].private_dns_name

The name of a private DNS associated with the network interface.

findings[].asset_attributes.network_interfaces[].private_ip_address

The private IP address associated with the network interface.

findings[].asset_attributes.network_interfaces[].private_ip_addresses[]
Show child fields
findings[].asset_attributes.network_interfaces[].private_ip_addresses[].private_dns_name

The DNS name of the private IP address.

findings[].asset_attributes.network_interfaces[].private_ip_addresses[].private_ip_address

The full IP address of the network inteface.

findings[].asset_attributes.network_interfaces[].public_dns_name

The name of a public DNS associated with the network interface.

findings[].asset_attributes.network_interfaces[].public_ip

The public IP address from which the network interface is reachable.

findings[].asset_attributes.network_interfaces[].security_groups[]
Show child fields
findings[].asset_attributes.network_interfaces[].security_groups[].group_id

The ID of the security group.

findings[].asset_attributes.network_interfaces[].security_groups[].group_name

The name of the security group.

findings[].asset_attributes.network_interfaces[].subnet_id

The ID of a subnet associated with the network interface.

findings[].asset_attributes.network_interfaces[].vpc_id

The ID of a VPC associated with the network interface.

findings[].asset_attributes.schema_version

The schema version of this data type.

findings[].asset_attributes.tags[]
Show child fields
findings[].asset_attributes.tags[].key

A tag key.

findings[].asset_attributes.tags[].value

A value assigned to a tag key.

findings[].asset_type

The type of the host from which the finding is generated.

findings[].attributes[]
Show child fields
findings[].attributes[].key

The attribute key.

findings[].attributes[].value

The value assigned to the attribute key.

findings[].confidence

This data element is currently not used.

findings[].created_at

The time when the finding was generated.

findings[].description

The description of the finding.

findings[].id

The ID of the finding.

findings[].indicator_of_compromise

This data element is currently not used.

findings[].numeric_severity

The numeric value of the finding severity.

findings[].recommendation

The recommendation for the finding.

findings[].schema_version

The schema version of this data type.

findings[].service

The data element is set to "Inspector".

findings[].service_attributes

This data type is used in the Finding data type.

Show child fields
findings[].service_attributes.assessment_run_arn

The ARN of the assessment run during which the finding is generated.

findings[].service_attributes.rules_package_arn

The ARN of the rules package that is used to generate the finding.

findings[].service_attributes.schema_version

The schema version of this data type.

findings[].severity

The finding severity. Values can be set to High, Medium, Low, and Informational.

findings[].title

The name of the finding.

findings[].updated_at

The time when AddAttributesToFindings is called.

findings[].user_attributes[]
Show child fields
findings[].user_attributes[].key

The attribute key.

findings[].user_attributes[].value

The value assigned to the attribute key.