This rule ensures VPC default security group does not allow inbound and outbound traffic.
Rule | VPC default security group should not allow inbound and outbound traffic |
Framework | CISA-cyber-essentials |
Severity | ✔ Medium |
VPC Default Security Group Rule for CISA Cyber Essentials
Description:
The VPC default security group is the default firewall for your Amazon Virtual Private Cloud (VPC) that controls inbound and outbound traffic. This rule ensures that the default security group does not allow any inbound or outbound traffic specifically for the CISA Cyber Essentials requirements.
Policy:
The VPC default security group should be configured to deny all inbound and outbound traffic related to the CISA Cyber Essentials requirements. This policy ensures that any instances attached to the default security group cannot communicate with the specified traffic sources defined by CISA Cyber Essentials.
Troubleshooting Steps:
If you encounter any issues related to this policy, follow the troubleshooting steps below:
Necessary Codes:
No specific codes are required for this policy.
Remediation Steps:
To remediate and enforce the VPC default security group rule for CISA Cyber Essentials, follow the step-by-step guide below:
CLI Command:
Alternatively, you can use the following CLI command to configure the VPC default security group rule for CISA Cyber Essentials:
aws ec2 revoke-security-group-ingress --group-id <security-group-id> --protocol <protocol> --port <port> --source-security-group <source-security-group-id>
Replace
<security-group-id>
with the ID of your default security group in the VPC. Specify the appropriate <protocol>
and <port>
based on the CISA Cyber Essentials requirements. Repeat the command for each desired inbound or outbound rule.Note: Ensure that you have the necessary permissions to make changes to the default security group.
By following these steps, you can enforce the VPC default security group rule to restrict inbound and outbound traffic specific to the CISA Cyber Essentials requirements, maintaining a secure and compliant environment.