turbot/steampipe-mod-aws-top-10

Control: Ensure security contact information is registered

Description

AWS provides customers with the option of specifying the contact information for account's security team. It is recommended that this information be provided.

Usage

Run the control in your terminal:

powerpipe control run aws_top_10.control.account_alternate_contact_security_registered

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_top_10.control.account_alternate_contact_security_registered --share

SQL

This control uses a named query:

with alternate_security_contact as (
select
name,
account_id
from
aws_account_alternate_contact
where
contact_type = 'SECURITY'
)
select
arn as resource,
case
when a.partition = 'aws-us-gov' then 'info'
-- Name is a required field if setting a security contact
when c.name is not null then 'ok'
else 'alarm'
end as status,
case
when a.partition = 'aws-us-gov' then a.title || ' in GovCloud, manual verification required.'
when c.name is not null then a.title || ' has security contact ' || c.name || ' registered.'
else a.title || ' security contact not registered.'
end as reason
, a.account_id
from
aws_account as a
left join alternate_security_contact as c on c.account_id = a.account_id;

Tags