Cloud misconfiguration audit: account 123456789012
Findings
| Severity | Check | CIS | Region | Resource | Detail |
|---|---|---|---|---|---|
| critical | IAM-001 Root account has no access keys | 1.4 | global | root | root user has 1 access key(s) |
| critical | IAM-002 Root account has MFA enabled | 1.5 | global | root | root user has no MFA device |
| critical | S3-001 S3 buckets are not publicly readable or writable | 2.1.4 | eu-west-1 | acme-customer-exports | ACL grants AllUsers:READ |
| high | CT-001 A multi-region CloudTrail trail is logging management events | 3.1 | global | cloudtrail | no trail is multi-region, logging and recording all management events |
| high | EC2-001 No security group allows ingress from the internet to remote admin ports | 5.2, 5.3 | us-east-1 | sg-0b22bastion (bastion-ssh) | port 22 from 0.0.0.0/0; port 22 from ::/0 |
| high | EC2-001 No security group allows ingress from the internet to remote admin ports | 5.2, 5.3 | us-east-1 | sg-0d44legacy (legacy-windows) | port 22,3389 from 0.0.0.0/0 |
| high | IAM-005 Every IAM user with a console password has MFA | 1.10 | global | bob.dev | console password enabled without MFA |
| high | IAM-005 Every IAM user with a console password has MFA | 1.10 | global | old.contractor | console password enabled without MFA |
| high | IAM-010 No attached customer policy grants full "*:*" administrator access | 1.16 | global | arn:aws:iam::123456789012:policy/DevFullAccess | attached 2 time(s) and allows Action '*' on Resource '*' |
| high | IAM-010 No attached customer policy grants full "*:*" administrator access | 1.16 | global | user/ci-deployer/inline/deploy-everything | inline user policy allows Action '*' on Resource '*' |
| high | RDS-001 RDS instances have storage encryption enabled | 2.3.1 | us-east-1 | orders-db | storage is not encrypted |
| high | RDS-002 RDS instances are not publicly accessible | 2.3.3 | us-east-1 | orders-db | PubliclyAccessible=true |
| high | S3-002 S3 Block Public Access is fully enabled for every bucket | 2.1.4 | eu-west-1 | acme-customer-exports | not enabled: BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets |
| medium | CFG-001 AWS Config is recording all resources in every audited region | 3.3 | eu-west-1 | default | recorder exists but is stopped or not recording all resource types |
| medium | CFG-001 AWS Config is recording all resources in every audited region | 3.3 | us-east-1 | config-recorder | no configuration recorder |
| medium | CT-002 CloudTrail log file validation is enabled | 3.2 | us-east-1 | org-audit-trail | log file validation is off |
| medium | CT-003 CloudTrail logs are encrypted at rest with a KMS key | 3.5 | us-east-1 | org-audit-trail | no KmsKeyId (SSE-S3 only) |
| medium | EBS-001 EBS encryption by default is enabled in every audited region | 2.2.1 | us-east-1 | ebs-default-encryption | new volumes are created unencrypted |
| medium | EBS-002 EBS volumes are encrypted | 2.2.1 | us-east-1 | vol-0aaa1111 | volume is not encrypted |
| medium | EC2-002 Default security groups restrict all traffic | 5.4 | eu-west-1 | sg-1a11default (vpc-1a2b3c4d) | 0 inbound and 1 outbound rule(s) |
| medium | EC2-002 Default security groups restrict all traffic | 5.4 | us-east-1 | sg-0a11default (vpc-0a1b2c3d) | 1 inbound and 1 outbound rule(s) |
| medium | EC2-003 No network ACL allows ingress from the internet to remote admin ports | 5.1 | us-east-1 | acl-0e55 | ports 22,3389 allowed from the internet |
| medium | EC2-004 EC2 instances require IMDSv2 | 5.6 | us-east-1 | i-0123456789abcdef0 | HttpTokens=optional |
| medium | IAM-003 Password policy requires at least 14 characters | 1.8 | global | account-password-policy | minimum length is 8, expected >= 14 |
| medium | IAM-006 Credentials unused for 45 days or more are disabled | 1.12 | global | ci-deployer | access key 1 unused for 153 days |
| medium | IAM-006 Credentials unused for 45 days or more are disabled | 1.12 | global | old.contractor | password unused for 231 days |
| medium | IAM-008 Active access keys are rotated within 90 days | 1.14 | global | bob.dev | access key 1 is 638 days old |
| medium | IAM-008 Active access keys are rotated within 90 days | 1.14 | global | ci-deployer | access key 1 is 569 days old |
| medium | S3-003 S3 bucket policies deny requests over plain HTTP | 2.1.1 | eu-west-1 | acme-customer-exports | no Deny on aws:SecureTransport=false |
| medium | S3-003 S3 bucket policies deny requests over plain HTTP | 2.1.1 | us-east-1 | acme-cloudtrail-logs | no Deny on aws:SecureTransport=false |
| medium | S3-003 S3 bucket policies deny requests over plain HTTP | 2.1.1 | us-east-1 | acme-marketing-assets | no Deny on aws:SecureTransport=false |
| medium | VPC-001 VPC flow logs are enabled for every VPC | 3.7 | us-east-1 | vpc-0a1b2c3d | no active flow log |
| low | CT-004 S3 access logging is enabled on the CloudTrail bucket | 3.4 | us-east-1 | acme-cloudtrail-logs | server access logging is off |
| low | IAM-007 IAM users have at most one active access key | 1.13 | global | bob.dev | 2 active access keys |
| low | IAM-009 IAM users receive permissions only through groups | 1.15 | global | bob.dev | attached: DevFullAccess |
| low | IAM-009 IAM users receive permissions only through groups | 1.15 | global | ci-deployer | inline: deploy-everything |
| low | IAM-012 IAM Access Analyzer is enabled in every audited region | 1.20 | us-east-1 | access-analyzer | no active analyzer in this region |
Remediation
critical IAM-001: Root account has no access keys (1 resource)
Delete the root user's access keys (IAM console > Security credentials while signed in as root) and use IAM roles instead.
Root keys cannot be restricted by IAM policy; a leak is full account takeover.
critical IAM-002: Root account has MFA enabled (1 resource)
Enable MFA for the root user, preferably a hardware or passkey-based authenticator (CIS 1.6).
critical S3-001: S3 buckets are not publicly readable or writable (1 resource)
Remove the public ACL grant / wildcard-principal statement and turn on S3 Block Public Access. Serve public content through CloudFront with origin access control.
Public buckets are the most common cause of cloud data leaks.
high CT-001: A multi-region CloudTrail trail is logging management events (1 resource)
Create (or fix) one trail with --is-multi-region-trail, management events Read+Write, and start logging.
Without CloudTrail there is no record of who did what during an incident.
high EC2-001: No security group allows ingress from the internet to remote admin ports (2 resources)
Restrict SSH/RDP rules to known CIDRs or remove them and use SSM Session Manager or a bastion.
Internet-exposed SSH and RDP are brute-forced continuously.
high IAM-005: Every IAM user with a console password has MFA (2 resources)
Enforce MFA for console users, or move people to IAM Identity Center and remove IAM user passwords.
high IAM-010: No attached customer policy grants full "*:*" administrator access (2 resources)
Replace the wildcard statement with the specific actions and resources the principal needs; detach the policy meanwhile.
high RDS-001: RDS instances have storage encryption enabled (1 resource)
Encryption can't be switched on in place: snapshot, copy the snapshot with a KMS key, restore, and cut over.
high RDS-002: RDS instances are not publicly accessible (1 resource)
aws rds modify-db-instance --db-instance-identifier <id> --no-publicly-accessible --apply-immediately
high S3-002: S3 Block Public Access is fully enabled for every bucket (1 resource)
aws s3control put-public-access-block --account-id <id> --public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
medium CFG-001: AWS Config is recording all resources in every audited region (2 resources)
Create a configuration recorder with allSupported=true and a delivery channel, then start it, in each region.
medium CT-002: CloudTrail log file validation is enabled (1 resource)
aws cloudtrail update-trail --name <trail> --enable-log-file-validation
medium CT-003: CloudTrail logs are encrypted at rest with a KMS key (1 resource)
aws cloudtrail update-trail --name <trail> --kms-key-id <key-arn> (the key policy must allow CloudTrail).
medium EBS-001: EBS encryption by default is enabled in every audited region (1 resource)
aws ec2 enable-ebs-encryption-by-default --region <region>
medium EBS-002: EBS volumes are encrypted (1 resource)
Snapshot the volume, copy the snapshot with --encrypted, create a new volume from it and swap it in.
medium EC2-002: Default security groups restrict all traffic (2 resources)
Remove every inbound and outbound rule from each VPC's default security group and use purpose-built groups instead.
medium EC2-003: No network ACL allows ingress from the internet to remote admin ports (1 resource)
Add a lower-numbered DENY entry for ports 22 and 3389 from 0.0.0.0/0 and ::/0, or narrow the ALLOW entry.
medium EC2-004: EC2 instances require IMDSv2 (1 resource)
aws ec2 modify-instance-metadata-options --instance-id <id> --http-tokens required --http-endpoint enabled
IMDSv1 lets SSRF bugs read instance role credentials.
medium IAM-003: Password policy requires at least 14 characters (1 resource)
aws iam update-account-password-policy --minimum-password-length 14 (keep the other settings you rely on).
medium IAM-006: Credentials unused for 45 days or more are disabled (2 resources)
Remove console passwords and deactivate access keys that have not been used in 45 days.
medium IAM-008: Active access keys are rotated within 90 days (2 resources)
Create a new key, roll it out, then deactivate and delete the old one. Prefer short-lived role credentials.
medium S3-003: S3 bucket policies deny requests over plain HTTP (3 resources)
Add a Deny statement for "s3:*" with Condition {"Bool": {"aws:SecureTransport": "false"}} to the bucket policy.
medium VPC-001: VPC flow logs are enabled for every VPC (1 resource)
aws ec2 create-flow-logs --resource-type VPC --resource-ids <vpc-id> --traffic-type REJECT (or ALL) --log-destination-type cloud-watch-logs ...
low CT-004: S3 access logging is enabled on the CloudTrail bucket (1 resource)
Enable server access logging on the trail bucket, targeting a separate log bucket.
low IAM-007: IAM users have at most one active access key (1 resource)
Deactivate and delete the older key once its consumers have moved to the newer one.
low IAM-009: IAM users receive permissions only through groups (2 resources)
Move directly attached and inline user policies onto groups (or roles) and add the user to the group.
low IAM-012: IAM Access Analyzer is enabled in every audited region (1 resource)
aws accessanalyzer create-analyzer --analyzer-name account-analyzer --type ACCOUNT (in each region).
Waived
| Check | Region | Resource | Reason |
|---|---|---|---|
| S3-001 | us-east-1 | acme-marketing-assets | Public static website assets, reviewed by security (ticket SEC-142). Move behind CloudFront OAC in Q2. (expires 2027-06-30) |
| S3-002 | us-east-1 | acme-marketing-assets | Same bucket as above: Block Public Access must stay off until the CloudFront migration (SEC-142). (expires 2027-06-30) |
CIS control coverage
| Control | Checks | Status |
|---|---|---|
| 1.4 | IAM-001 | fail |
| 1.5 | IAM-002 | fail |
| 1.8 | IAM-003 | fail |
| 1.9 | IAM-004 | pass |
| 1.10 | IAM-005 | fail |
| 1.12 | IAM-006 | fail |
| 1.13 | IAM-007 | fail |
| 1.14 | IAM-008 | fail |
| 1.15 | IAM-009 | fail |
| 1.16 | IAM-010 | fail |
| 1.17 | IAM-011 | pass |
| 1.20 | IAM-012 | fail |
| 2.1.1 | S3-003 | fail |
| 2.1.4 | S3-001, S3-002 | fail |
| 2.2.1 | EBS-001, EBS-002 | fail |
| 2.3.1 | RDS-001 | fail |
| 2.3.3 | RDS-002 | fail |
| 3.1 | CT-001 | fail |
| 3.2 | CT-002 | fail |
| 3.3 | CFG-001 | fail |
| 3.4 | CT-004 | fail |
| 3.5 | CT-003 | fail |
| 3.6 | KMS-001 | pass |
| 3.7 | VPC-001 | fail |
| 5.1 | EC2-003 | fail |
| 5.2 | EC2-001 | fail |
| 5.3 | EC2-001 | fail |
| 5.4 | EC2-002 | fail |
| 5.6 | EC2-004 | fail |
Generated by cloudaudit. 30 checks, 64 results.