Ensure there is an Amazon EC2 security group created and configured for the web tier to allow inbound traffic directly from the web-tier load balancer security group for the required ports, in order to secure the access to the backend EC2 instances. This conformity rule assumes that all the AWS resources created within your web tier are tagged with <web_tier_tag>:<web_tier_tag_value>
, where <web_tier_tag>
represents the tag name and <web_tier_tag_value>
represents the tag value. Before running this rule by the Trend Cloud One™ – Conformity engine, the web-tier tags must be configured in the rule settings, on your Conformity account console.
A security group operates as a virtual firewall that controls the traffic for your Amazon EC2 instances. To protect the instances within your web tier from unauthorized access, an explicit security group must be created and configured to secure access by adding inbound rules that allow traffic for specific protocols and ports, by referencing as source the security group associated with the web-tier load balancer.
Note: Make sure that you replace all `<web_tier_tag>:<web_tier_tag_value>` tag placeholders outlined in the conformity rule content with your own tag set created for the web tier.
Audit
To determine if there is an Amazon EC2 security group created and configured exclusively for the web tier, perform the following actions:
Remediation / Resolution
To create a compliant web-tier security group and configure it to allow inbound traffic from the security group associated with the web-tier load balancer, perform the following actions:
References
- AWS Documentation
- Amazon EC2 FAQs
- Security Groups for Your VPC
- Amazon EC2 Security Groups for Linux Instances
- CIS Amazon Web Services Foundations
- AWS Command Line Interface (CLI) Documentation
- ec2
- describe-security-groups
- describe-tags
- create-security-group
- authorize-security-group-ingress
- create-tags
- modify-instance-attribute