Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 3 min read

CIS AWS Foundations Benchmark checklist: 45 checks, and the ones most accounts fail

Most AWS accounts at small companies were set up by one engineer, in a hurry, a few years ago. Nobody has looked at the security settings since. The CIS AWS Foundations Benchmark is the quickest way to find out what got

Most AWS accounts at small companies were set up by one engineer, in a hurry, a few years ago. Nobody has looked at the security settings since. The CIS AWS Foundations Benchmark is the quickest way to find out what got missed: a short, well-tested list of settings every account should have, whatever runs in it.

This checklist turns the benchmark into 45 concrete checks you can test with read-only access (the AWS managed SecurityAudit policy). Section numbers change between benchmark versions (5.0.0 is the latest), so the checks are grouped by area.

1. Identity and access management

Check How to test it
Root has MFA, ideally a hardware key GetAccountSummary โ†’ AccountMFAEnabled = 1; ListVirtualMFADevices shows if root uses a virtual device
Root has no access keys AccountAccessKeysPresent = 0
Root not used day to day Credential report: password_last_used for <root_account>
Password policy: 14+ chars, reuse prevention of 24 GetAccountPasswordPolicy
Every console user has MFA Credential report: password_enabled = true and mfa_active = false
Credentials unused for 45 days disabled Credential report last-used dates
One active key per user, rotated within 90 days Credential report key columns
Permissions only via groups/roles ListAttachedUserPolicies / ListUserPolicies
No customer policy grants *:* Default version of each customer-managed policy

Plus: a support role exists, IAM Access Analyzer is on in every region, a security contact is registered, no expired certificates in IAM.

Most common failures: console users without MFA, years-old access keys, and keys belonging to people who left. One credential report download finds all three.

Gotcha if you script this: IAM's query API returns JSON when your HTTP client sends Accept: application/json. If your parser expects XML, ask for text/xml explicitly, or every check will read as empty and look like a pass or a fail it isn't.

2. Storage: S3, EBS, RDS

  • S3 Block Public Access on for the account (S3 Control GetPublicAccessBlock) and every bucket
  • No bucket public via policy (GetBucketPolicyStatus) or ACL (AllUsers / AuthenticatedUsers grants)
  • Bucket policies deny aws:SecureTransport = false
  • Versioning on
  • EBS encryption by default on in every region
  • No public EBS snapshots or AMIs
  • RDS: encrypted, not publicly accessible, automated backups, minor-version upgrades

The TLS-only bucket policy is missing almost everywhere.

3. Logging

  • Multi-region CloudTrail trail logging, with log file validation, KMS encryption and CloudWatch Logs integration
  • AWS Config recording in every region
  • Rotation on customer-managed KMS keys
  • VPC flow logs on every VPC

4. Monitoring

CloudWatch metric filters plus alarms on the CloudTrail log group for: unauthorised API calls, console login without MFA, root use, IAM policy changes, CloudTrail/Config changes, KMS key deletion, S3 bucket policy changes, and security group / NACL / gateway / route table / VPC changes. If another detection tool already alerts on these, document where the alerts go.

5. Networking and EC2

  • No security group allows 22 or 3389 from 0.0.0.0/0 or ::/0. Use SSM Session Manager or a VPN
  • No NACL allows those ports from the internet (default NACLs allow everything, so nearly every account fails this)
  • Default security group of every VPC restricts all traffic
  • No database or cache ports (3306, 5432, 1433, 6379, 27017โ€ฆ) open to the internet
  • IMDSv2 required on EC2 instances

6. Threat detection

GuardDuty and Security Hub on in every region, not just the one you use. Crypto-miners like quiet regions.

Fix order

  1. Root MFA, delete root keys (10 minutes, biggest win)
  2. MFA for every console user; delete unused keys
  3. Close SSH/RDP and database ports to the internet
  4. Account-level Block Public Access (after checking nothing must be public)
  5. Multi-region CloudTrail, then GuardDuty everywhere
  6. Encryption defaults, versioning, flow logs, Config

The full version, with the matching Azure (27 checks) and Google Cloud (28 checks) checklists, is on our blog: CIS AWS Foundations Benchmark checklist. We run these checks continuously in Argyx with a read-only role, no Security Hub needed. Happy to answer questions about any of the checks in the comments.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.