turbot/steampipe-mod-aws-compliance

Control: 3.6 Disable IPv6 Networking if not in use within your organization

Description

Any protocols enable within Lightsail by default that aren't being used should be disabled.

Any ports enable within Lightsail by default are open and exposed to the world. This can result in outside traffic trying to access or even deny access to the Lightsail instances. Removing and disabling a protocol when not in use even if restricted by IP address is the safest solution especially when it is not required for access.

Remediation

From the Console:

  1. Login to AWS Console using https://console.aws.amazon.com.
  2. Click All services, click Lightsail under Compute.
  3. This will open up the Lightsail console.
  4. Select the Windows or Linux Instance you want to review.
  5. Go to the Networking section.
  6. Under IPv6 networking click on the check mark next to IPv6 networking is enabled.
  7. In the Disable IPv6 for this instance?.
  8. Click on Yes, disable.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.cis_compute_service_v100_3_6

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.cis_compute_service_v100_3_6 --share

SQL

This control uses a named query:

select
name as resource,
case
when ip_v6_addresses is null then 'ok'
else 'alarm'
end as status,
case
when ip_v6_addresses is null then name || ' has IPv6 networking disabled.'
else name || ' has IPv6 networking enabled.'
end as reason
, region, account_id
from
aws_lightsail_instance;

Tags