Skip to content
Cloud security

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.

Watch: The 11-point AWS baseline (1:37)
Chapters (5)
An 11-point AWS account baseline, every point checkable with read-only commands. AI-generated explainer. Not affiliated with any company named.

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.

IAM credential report · checks IAM users, root, access keys
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.

S3 account Block Public Access · checks S3 Block Public Access
aws s3control get-public-access-block --account-id $(aws sts get-caller-identity --query Account --output text)
CloudTrail trails and status · checks CloudTrail
aws cloudtrail describe-trails --output json
aws cloudtrail get-trail-status --name <TRAIL_NAME_OR_ARN>
GuardDuty in every Region · checks GuardDuty
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>

EC2 metadata settings · checks IMDSv2
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; done

The --query keeps only instance ids, state and metadata options (no user data, tags or IPs). Plain "aws ec2 describe-instances" output works too.

Security groups · checks Security groups
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
Secrets Manager · checks Secrets rotation
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.

IAM OIDC providers · checks OIDC for CI/CD
aws iam list-open-id-connect-providers --output json
Budgets and billing alarms · checks Billing alerts
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.

or drop .json, .csv or .txt files here

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

ItemStatusEvidence
No IAM users (SSO and roles only)Fail1 IAM user can sign in to the console with a password, 1 without MFA (jordan.example).
Root: MFA on, no access keys, not usedFailRoot signed in 12 days ago (MFA is on, no root access keys).
No long-lived access keys (OIDC for CI/CD)Fail2 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 privilegeConfirmNo automated check: review policies, then confirm.
S3 Block Public Access (account)FailBlockPublicPolicy is false; the other three settings are on.
CloudTrail in every Region, separate accountConfirmMulti-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 readFailNo detector in eu-west-1.
Secrets in Secrets Manager, rotatedFailprod/payments-api: rotation off, never rotated.
IMDSv2 on every EC2 instanceFaili-0ee55ff66aa77bb88 (running): HttpTokens optional.
Security groups: 0.0.0.0/0 only on 80/443Failsg-0123456789abcdef0 (web): tcp 22 from 0.0.0.0/0.
Billing alertsFailNo 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;DR

What 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 itemEvidence fromWhat we look for
No IAM users (SSO and roles only)IAM credential reportIAM users with a console password or active access keys; console users without MFA
Root: MFA, no keys, not usedIAM credential reportmfa_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-providersActive keys, keys older than 90 days, unused 90+ days or never used; OIDC providers such as GitHub Actions
Least privilegeYour reviewNo automated check: confirm it, and check policies with the IAM Policy Analyzer
S3 Block Public Access (account)s3control get-public-access-blockAll four settings true, or no configuration at all
CloudTrail in every Region, separate accountcloudtrail describe-trails, get-trail-statusIsMultiRegionTrail, IsLogging, bucket, log file validation, KMS key; separate account is confirmed by you
GuardDuty on and readguardduty list-detectors / get-detector per RegionRegions with no detector, detectors with Status DISABLED; reviewing findings is confirmed by you
Secrets Manager, rotatedsecretsmanager list-secretsRotationEnabled and LastRotatedDate older than 90 days
IMDSv2 on every instanceec2 describe-instances, get-instance-metadata-defaultsMetadataOptions.HttpTokens not "required", and the account default for new instances
Security groups: 0.0.0.0/0 only on 80/443ec2 describe-security-groupsInbound rules from 0.0.0.0/0 or ::/0 on any other port, or with IpProtocol -1 (all traffic)
Billing alertsbudgets 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

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.

All tools
🎉 New here? Use code WELCOME10 for 10% off any plan at checkout