Skip to content

aws.inspector2.search_vulnerabilities

Example SQL Queries

SELECT * FROM
aws.inspector2.search_vulnerabilities
WHERE
"filter_criteria" = 'VALUE';

Description

Lists Amazon Inspector coverage details for a specific vulnerability.

Table Definition

Column NameColumn Data Type
filter_criteria Required Input Column

The criteria used to filter the results of a vulnerability search.

STRUCT(
"vulnerability_ids" VARCHAR[]
)
Show child fields
filter_criteria.vulnerability_ids[]
_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
atig_data

An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the vulnerability.

STRUCT(
"first_seen" TIMESTAMP_S,
"last_seen" TIMESTAMP_S,
"targets" VARCHAR[],
"ttps" VARCHAR[]
)
Show child fields
atig_data.first_seen

The date and time this vulnerability was first observed.

atig_data.last_seen

The date and time this vulnerability was last observed.

atig_data.targets[]
atig_data.ttps[]
cisa_data

An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the vulnerability.

STRUCT(
"action" VARCHAR,
"date_added" TIMESTAMP_S,
"date_due" TIMESTAMP_S
)
Show child fields
cisa_data.action

The remediation action recommended by CISA for this vulnerability.

cisa_data.date_added

The date and time CISA added this vulnerability to their catalogue.

cisa_data.date_due

The date and time CISA expects a fix to have been provided vulnerability.

cvss2

An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details for the vulnerability.

STRUCT(
"base_score" DOUBLE,
"scoring_vector" VARCHAR
)
Show child fields
cvss2.base_score

The CVSS v2 base score for the vulnerability.

cvss2.scoring_vector

The scoring vector associated with the CVSS v2 score.

cvss3

An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details for the vulnerability.

STRUCT(
"base_score" DOUBLE,
"scoring_vector" VARCHAR
)
Show child fields
cvss3.base_score

The CVSS v3 base score for the vulnerability.

cvss3.scoring_vector

The scoring vector associated with the CVSS v3 score.

cwes

The Common Weakness Enumeration (CWE) associated with the vulnerability.

VARCHAR[]
Show child fields
cwes[]
description

A description of the vulnerability.

VARCHAR
detection_platforms

Platforms that the vulnerability can be detected on.

VARCHAR[]
Show child fields
detection_platforms[]
epss

An object that contains the Exploit Prediction Scoring System (EPSS) score for a vulnerability.

STRUCT(
"score" DOUBLE
)
Show child fields
epss.score

The Exploit Prediction Scoring System (EPSS) score.

exploit_observed

An object that contains details on when the exploit was observed.

STRUCT(
"first_seen" TIMESTAMP_S,
"last_seen" TIMESTAMP_S
)
Show child fields
exploit_observed.first_seen

The date an time when the exploit was first seen.

exploit_observed.last_seen

The date an time when the exploit was last seen.

id

The ID for the specific vulnerability.

VARCHAR
reference_urls

Links to various resources with more information on this vulnerability.

VARCHAR[]
Show child fields
reference_urls[]
related_vulnerabilities

A list of related vulnerabilities.

VARCHAR[]
Show child fields
related_vulnerabilities[]
source

The source of the vulnerability information. Possible results are RHEL, AMAZON_CVE, DEBIAN or NVD.

VARCHAR
source_url

A link to the official source material for this vulnerability.

VARCHAR
vendor_created_at

The date and time when the vendor created this vulnerability.

TIMESTAMP_S
vendor_severity

The severity assigned by the vendor.

VARCHAR
vendor_updated_at

The date and time when the vendor last updated this vulnerability.

TIMESTAMP_S