turbot/steampipe-mod-aws-compliance

Control: ELB application load balancers should be drop HTTP headers

Description

Ensure that your Elastic Load Balancers (ELB) are configured to drop http headers.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.elb_application_lb_drop_http_headers

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when load_balancer_attributes @> '[{"Key": "routing.http.drop_invalid_header_fields.enabled", "Value": "true"}]' then 'ok'
else 'alarm'
end as status,
case
when load_balancer_attributes @> '[{"Key": "routing.http.drop_invalid_header_fields.enabled", "Value": "true"}]' then title || ' configured to drop http headers.'
else title || ' not configured to drop http headers.'
end as reason
, region, account_id
from
aws_ec2_application_load_balancer;

Tags