Check your Amazon EC2 security groups for inbound rules that allow unrestricted access (i.e., 0.0.0.0/0 or ::/0) to TCP port 9200 and restrict access to only those IP addresses that require it in order to implement the principle of least privilege and reduce the possibility of a breach. TCP port 9200 is used by OpenSearch.
This rule can help you with the following compliance standards:
- PCI
- APRA
- MAS
- NIST4
For further details on compliance standards supported by TrendAI Vision One™ Cloud Risk Management, see here.
This rule can help you work with the AWS Well-Architected Framework.
Allowing unrestricted OpenSearch access can increase opportunities for malicious activity such as hacking, Denial-of-Service (DoS) attacks and loss of data.
Audit
To determine if your Amazon EC2 security groups allow unrestricted OpenSearch access, perform the following operations:
Remediation / Resolution
To update the inbound rule configuration for your Amazon EC2 security groups in order to restrict OpenSearch access to trusted networks only, perform the following operations:
References
- AWS Documentation
- Amazon EC2 Security Groups for Linux Instances
- Security group rules reference
- Consolidate and manage network CIDR blocks with managed prefix lists
- AWS Command Line Interface (CLI) Documentation
- describe-security-groups
- revoke-security-group-ingress
- authorize-security-group-ingress