More Info:

No security group should allow unrestricted inbound access to TCP port 9200 (Elasticsearch).

Risk Level

Medium

Address

Security

Compliance Standards

CBP, AWSWAF

Triage and Remediation

Remediation

To remediate the issue of unrestricted Elasticsearch access in AWS, you can follow the below steps:

  1. Login to the AWS console and navigate to the Elasticsearch service.
  2. Select the Elasticsearch domain that needs to be remediated.
  3. Click on the “Modify access” button under the “Actions” dropdown.
  4. In the “Configure access” section, select the option “Limit access to specific IP addresses or VPCs”.
  5. Enter the IP addresses or CIDR blocks that should be allowed to access the Elasticsearch domain.
  6. Click on the “Submit” button to save the changes.

After completing these steps, the Elasticsearch domain will only be accessible from the specified IP addresses or VPCs, and unrestricted access will be restricted.

Additional Reading: