AWS Security Baseline Evidence Checker
Most AWS break-ins start with the same handful of gaps: an old access key, a root user still in use, a security group open to the internet on SSH, IMDSv1 left on, a Region with no CloudTrail or GuardDuty, and nobody watching the bill. Run a few read-only AWS CLI commands, paste the output, and get an 11-item scorecard with the evidence, why each item matters and how to fix it.
No credentials, no AWS call: the output is read in your browser and never uploaded. Never paste access key secrets or session tokens; the checker blanks anything that looks like one.
Chapters (5)
1. Run these read-only commands
Run them yourself with the AWS CLI, using a role that can read IAM, S3, CloudTrail, GuardDuty, EC2, Secrets Manager, Budgets and CloudWatch (the AWS managed SecurityAudit policy covers most of it). Nothing here changes your account. Any of them is optional: the scorecard marks what you skip as not checked.
Never paste an access key secret, a session token or a secret value. None of these commands print one, and if something that looks like a secret is pasted, it is blanked before anything reads it.
aws iam generate-credential-report aws iam get-credential-report --query Content --output text | base64 -d
The report lists users and credential dates, never passwords or secret keys. Run the first line, wait a few seconds, then the second. The base64 text without "| base64 -d" also works.
aws s3control get-public-access-block --account-id $(aws sts get-caller-identity --query Account --output text)
aws cloudtrail describe-trails --output json aws cloudtrail get-trail-status --name <TRAIL_NAME_OR_ARN>
for r in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do echo "== $r"; aws guardduty list-detectors --region $r --output json; done
Then, for a detector id: aws guardduty get-detector --detector-id <ID> --region <REGION>
for r in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do echo "== $r"; aws ec2 describe-instances --region $r --query 'Reservations[].{Instances:Instances[].{InstanceId:InstanceId,State:State,MetadataOptions:MetadataOptions}}' --output json | sed 's/^\[/{"Reservations":[/;s/^\]$/]}/'; aws ec2 get-instance-metadata-defaults --region $r --output json; doneThe --query keeps only instance ids, state and metadata options (no user data, tags or IPs). Plain "aws ec2 describe-instances" output works too.
for r in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do echo "== $r"; aws ec2 describe-security-groups --region $r --output json; done
aws secretsmanager list-secrets --output json
Lists names and rotation dates only; secret values are never included. Repeat with --region for each Region you use.
aws iam list-open-id-connect-providers --output json
aws budgets describe-budgets --account-id $(aws sts get-caller-identity --query Account --output text) --output json aws cloudwatch describe-alarms --region us-east-1 --output json
Billing alarms live in us-east-1 (US East, N. Virginia).
2. Paste or drop the output
Paste several outputs one after another, or drop the saved files. Each one is recognised from its content.
Loading…
Sample report · illustrative data
Sample result: an 11-item AWS baseline scorecard
Read-only CLI output from a made-up account: credential report, S3 Block Public Access, CloudTrail, GuardDuty in two Regions, EC2 instances, security groups, Secrets Manager, OIDC providers and Budgets.
Score
- Baseline score
- 0 / 100 (9 fail, 2 to confirm)
- Start with
- No IAM users for people (SSO and roles only)
Scorecard
| Item | Status | Evidence |
|---|---|---|
| No IAM users (SSO and roles only) | Fail | 1 IAM user can sign in to the console with a password, 1 without MFA (jordan.example). |
| Root: MFA on, no access keys, not used | Fail | Root signed in 12 days ago (MFA is on, no root access keys). |
| No long-lived access keys (OIDC for CI/CD) | Fail | 2 active access keys, 2 older than 90 days, 1 never used. OIDC provider token.actions.githubusercontent.com exists, so CI can move to roles. |
| Least privilege | Confirm | No automated check: review policies, then confirm. |
| S3 Block Public Access (account) | Fail | BlockPublicPolicy is false; the other three settings are on. |
| CloudTrail in every Region, separate account | Confirm | Multi-Region organization trail "org-trail" is logging to example-org-cloudtrail-logs; confirm the bucket is in a separate account. No customer managed KMS key. |
| GuardDuty on, and findings read | Fail | No detector in eu-west-1. |
| Secrets in Secrets Manager, rotated | Fail | prod/payments-api: rotation off, never rotated. |
| IMDSv2 on every EC2 instance | Fail | i-0ee55ff66aa77bb88 (running): HttpTokens optional. |
| Security groups: 0.0.0.0/0 only on 80/443 | Fail | sg-0123456789abcdef0 (web): tcp 22 from 0.0.0.0/0. |
| Billing alerts | Fail | No cost budget and no billing alarm found. |
First fixes
- Move jordan.example to IAM Identity Center and delete the IAM user.
- Replace the ci-deploy access key with a GitHub Actions OIDC role, then delete old-backup's never-used key.
- Turn on BlockPublicPolicy at account level and enable GuardDuty in eu-west-1.
- aws ec2 modify-instance-metadata-options --instance-id i-0ee55ff66aa77bb88 --http-tokens required --http-endpoint enabled
- Remove SSH from 0.0.0.0/0 and use Session Manager; create a monthly cost budget with an alert.
Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.
TL;DRWhat this checker does
5 points
- Grades an AWS account against an 11-item security baseline: no IAM users, root locked down, no long-lived access keys, least privilege, S3 Block Public Access, CloudTrail in every Region, GuardDuty, Secrets Manager rotation, IMDSv2, security groups and billing alerts.
- You run read-only AWS CLI commands yourself (shown with a copy button) and paste or drop the output. Every input is optional and recognised from its content.
- Each item shows pass, fail, needs your confirmation or not checked, with the evidence it found, why it matters and the fix (console path or CLI command).
- Account ids in the evidence are partly masked by default. Anything that looks like an access key secret or session token is blanked before analysis.
- Runs entirely in your browser: nothing is uploaded and no AWS call is made.
The 11 checks and their evidence
| Baseline item | Evidence from | What we look for |
|---|---|---|
| No IAM users (SSO and roles only) | IAM credential report | IAM users with a console password or active access keys; console users without MFA |
| Root: MFA, no keys, not used | IAM credential report | mfa_active, access_key_N_active, password_last_used and key use in the last 90 days |
| No long-lived access keys (OIDC for CI/CD) | Credential report + list-open-id-connect-providers | Active keys, keys older than 90 days, unused 90+ days or never used; OIDC providers such as GitHub Actions |
| Least privilege | Your review | No automated check: confirm it, and check policies with the IAM Policy Analyzer |
| S3 Block Public Access (account) | s3control get-public-access-block | All four settings true, or no configuration at all |
| CloudTrail in every Region, separate account | cloudtrail describe-trails, get-trail-status | IsMultiRegionTrail, IsLogging, bucket, log file validation, KMS key; separate account is confirmed by you |
| GuardDuty on and read | guardduty list-detectors / get-detector per Region | Regions with no detector, detectors with Status DISABLED; reviewing findings is confirmed by you |
| Secrets Manager, rotated | secretsmanager list-secrets | RotationEnabled and LastRotatedDate older than 90 days |
| IMDSv2 on every instance | ec2 describe-instances, get-instance-metadata-defaults | MetadataOptions.HttpTokens not "required", and the account default for new instances |
| Security groups: 0.0.0.0/0 only on 80/443 | ec2 describe-security-groups | Inbound rules from 0.0.0.0/0 or ::/0 on any other port, or with IpProtocol -1 (all traffic) |
| Billing alerts | budgets describe-budgets, cloudwatch describe-alarms (us-east-1) | A COST budget or an EstimatedCharges alarm in AWS/Billing |
How to read the result
Pass and Fail come from the evidence you pasted. Confirm means the evidence looks right but one part cannot be seen from a listing (least privilege, a separate log account, someone reading GuardDuty findings). Not checked means the matching output was not pasted. The score counts items that pass or that you confirmed, out of 11. It is a PlayCISO measure of the evidence pasted, not an audit opinion.
Several services are Regional. GuardDuty, EC2 instances, security groups and Secrets Manager have to be listed in every Region you use (the commands include a loop over Regions), and CloudWatch billing alarms live in US East (N. Virginia). A Region you did not paste is a Region the checker did not see.
For the wider picture, work through the AWS Security Checklist or the CIS AWS Benchmark Checklist, and practise the response in the Leaked Cloud Key Lab and the AWS Account Compromise Lab.
AWS documentation used
- IAM credential report (columns and values)
- S3 Block Public Access
- CloudTrail trails (describe-trails)
- GuardDuty get-detector
- EC2 instance metadata options (HttpTokens)
- EC2 describe-security-groups
- Secrets Manager list-secrets
- IAM OIDC identity providers
- CloudWatch billing alarm (EstimatedCharges)
- AWS Budgets describe-budgets
Frequently asked questions
Does this tool connect to my AWS account?
No. It never asks for credentials and makes no AWS call. You run read-only commands such as aws iam get-credential-report, aws s3control get-public-access-block and aws ec2 describe-security-groups yourself and paste the output. The output is read in your browser and never uploaded.
Is it safe to paste a credential report?
The IAM credential report lists user names, ARNs and the dates passwords and access keys were created and used. It has no column for passwords or secret access keys. Still, treat it as internal: account ids are masked by default here, and nothing leaves your browser. Never paste an access key secret or a session token; if something that looks like one is pasted, the tool blanks it and warns you.
Which permissions do the commands need?
Read-only ones, plus iam:GenerateCredentialReport and iam:GetCredentialReport for the credential report and budgets:ViewBudget for Budgets. A role with the AWS managed SecurityAudit policy is the usual starting point. Generating the credential report changes no setting in the account.
Why are some items "Confirm" instead of pass or fail?
Three things cannot be proved from a CLI listing: least privilege (it needs a policy-by-policy review), whether the CloudTrail bucket is in a separate log archive account, and whether anyone reads GuardDuty findings. The tool shows the evidence it has and asks you to confirm; a confirmed item counts toward the score.
Why does root fail when it has MFA?
The baseline asks for three things on root: MFA on, no access keys and no day-to-day use. The tool fails root if its password or an access key was used in the last 90 days, so a recent root sign-in shows up even with MFA on. Use root only for the tasks that need it, and alert on every root sign-in.
Is this the CIS AWS Foundations Benchmark?
No. It is an 11-item baseline that overlaps with the CIS benchmark and the AWS Foundational Security Best Practices, but it is not either of them and the score is a PlayCISO measure. For the full benchmark, see the CIS AWS Benchmark Checklist.
More tools like this
Related tools and labs, with new picks every day.