VPC security group rules should not permit ingress from ‘’ to TCP port 9200 (Elasticsearch)


VPC security groups should not permit unrestricted access from the internet to port 9200 (Elasticsearch). Removing unfettered connectivity to an Elasticsearch server reduces the chance of exposing critical data.

Console Remediation Steps

  • Navigate to VPC.

  • In the left pane, click Security Groups.

  • For each security group, perform the following:

    • Select the security group.

    • Click the Inbound Rules tab.

    • Identify the rules to be removed.

    • Click the x in the Remove column.

    • Click Save.

CLI Remediation Steps

  • Remove the inbound rule(s) that permits unrestricted ingress to TCP port 9200 from the selected security group:

    • aws ec2 revoke-security-group-ingress --region <region> --group-name <group_name> --protocol tcp --port 9200 --cidr

  • Optionally add a more restrictive ingress rule to the selected security group:

    • aws ec2 authorize-security-group-ingress --region <region> --group-name <group_name> --protocol tcp --port 9200 --cidr <cidr_block>