Ensure there is an Amazon EC2 security group created and configured for the app tier to grant inbound access from the app-tier load balancer security group on explicit ports, in order to secure the access to the instances running within the app tier. This conformity rule assumes that all the AWS resources (including security groups) created within your app tier are tagged with <app_tier_tag>:<app_tier_tag_value>
, where <app_tier_tag>
represents the tag name and <app_tier_tag_value>
represents the tag value. Before running this rule by the Trend Cloud One™ – Conformity engine, the app-tier tags must be configured in the rule settings, on your Conformity account console.
A security group works as a virtual firewall that controls the traffic for your Amazon EC2 instances. To protect the instances within your app tier from unauthorized access, a dedicated 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 app-tier load balancer.
Note: Make sure that you replace all <app_tier_tag>:<app_tier_tag_value>
tag placeholders outlined in the conformity rule content with your own tag set created for the app tier.
Audit
To determine if there is an Amazon EC2 security group created and configured exclusively for the app tier, perform the following operations:
Remediation / Resolution
To create a compliant app-tier security group and configure it to allow inbound/ingress traffic from the security group associated with the app-tier load balancer, perform the following operations:
References
- AWS Documentation
- 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