Table: aws_securityhub_enabled_product_subscription - Query AWS Security Hub Enabled Product Subscriptions using SQL
AWS Security Hub provides a comprehensive view of your security alerts and compliance status across AWS accounts. By enabling specific security products, you can centralize and analyze security findings from various AWS services and partner solutions. The aws_securityhub_enabled_product_subscription
table in Steampipe allows you to query information about the security products that have been enabled in AWS Security Hub.
Table Usage Guide
The aws_securityhub_enabled_product_subscription
table enables security analysts and cloud administrators to gather detailed insights into the products that are enabled in AWS Security Hub. You can query various aspects of these products, such as their activation URLs, integration types, categories, and company details. This table is particularly useful for monitoring the active security products, managing integrations, and ensuring that your security tools are configured correctly.
Examples
Basic product information
Retrieve basic information about the enabled security product subscriptions.
select arn, title, akasfrom aws_securityhub_enabled_product_subscription;
select arn, title, akasfrom aws_securityhub_enabled_product_subscription;
List products for enabled subscriptions
Identify all products for the subscriptions that are enabled.
select s.arn as subscription_arn, p.product_arn, p.name as product_name, p.company_name as product_company_name, p.marketplace_url, p.integration_typesfrom aws_securityhub_enabled_product_subscription as s, aws_securityhub_product as p, jsonb_array_elements( p.product_subscription_resource_policy -> 'Statement' ) as mwhere (m ->> 'Resource') = s.arn;
select s.arn as subscription_arn, p.product_arn, p.name as product_name, p.company_name as product_company_name, p.marketplace_url, p.integration_typesfrom aws_securityhub_enabled_product_subscription s, aws_securityhub_product p, json_each( p.product_subscription_resource_policy, '$.Statement' ) as mwhere json_extract(m.value, '$.Resource') = s.arn;
Schema for aws_securityhub_enabled_product_subscription
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
arn | text | The Amazon Resource Name (ARN) of the product subscription. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | Title of the resource. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_securityhub_enabled_product_subscription