Two of the most common CIS benchmark failures can usually be fixed in minutes, but only after you prove nothing depends on them.
Security Hub flagged a lab account with several CIS AWS Foundations failures, all past due. Two controls made up most of the list, and they show up in almost every account I've seen:
- EC2.2: the VPC default security group should not allow inbound or outbound traffic.
- S3.1: S3 Block Public Access should be enabled at the account level.

Step 1: Check before you strip
Removing rules from a default security group breaks anything that uses it. So first, find every ENI attached to it, in every region that's flagged.

In this case the account was essentially dormant: no network interfaces using the default groups and no S3 buckets at all. That made it a safe, quick fix.
Step 2: Remediate EC2.2
- Remove all inbound rules from each default SG.
- Remove all outbound rules (the default allow-all egress counts as a failure).
- Don't delete the default SG. You can't, and you don't need to.
- Repeat in every flagged region (the findings are per region).
Step 3: Remediate S3.1
Turn on all four Block Public Access settings at the account level. If a real workload needs a public bucket, handle it as a documented exception, usually behind CloudFront instead.
Step 4: Prevent it from coming back
- Use an SCP or AWS Config rule to enforce account-level S3 BPA.
- Build new VPCs from templates that empty the default SG on creation.
- Give every workload its own named security group, and never use "default".
Takeaway
Compliance findings look scary in a dashboard, but many are 15-minute fixes. The real work is the dependency check before you click.
Note: device names, IP addresses, AS numbers and user names in this post are pseudonyms or lab values. The problem and the fix are real.
0 Comments
Post a Comment