What we check · AWS
What we check in AWS — and what we never read
ShieldFlow connects through a read-only role in your account: AWS’s own SecurityAudit policy, a short list of newer read calls, and an explicit deny on every call that would read your data. In IAM a deny always wins, so even if AWS widens SecurityAudit one day, we still can’t read an object, a row, a secret or a log line. No keys change hands; each scan is a 15-minute session you can see in your own CloudTrail as ShieldFlow-….
Role template v1: CloudFormation YAML.
How results work
- Only regions you actually use are scanned — no nagging about GuardDuty in a region you’ve never touched.
- Every failure names the exact resource and gives the fix in Terraform, the AWS CLI and the console.
- If we can’t read something — a missing permission, a region we ran out of time for — the check says “can’t tell” and why. It never passes by default.
- Dev and staging accounts can be connected out of scope: shown, never alerted. Single resources can be marked out of scope with a reason, which is kept as audit evidence.
Identity & access
- Root account has MFA
The root user can do anything, including closing the account; a password alone shouldn't be enough.
iam:GenerateCredentialReport · iam:GetCredentialReport
- Root account has no access keys
A root access key is a permanent all-powerful credential; if it leaks, nothing in the account is safe.
iam:GetCredentialReport
- Root account not used day to day
Root should only be used for the handful of tasks that need it; regular use means someone is working with no guardrails.
iam:GetCredentialReport
- Every IAM user with a console password has MFA
A console login without MFA is one phished password away from your production account.
iam:GetCredentialReport
- Access keys rotated within 90 days
Long-lived keys end up in laptops, CI logs and old repos; rotating them limits how long a leaked key works.
iam:GetCredentialReport
- No credentials unused for 90+ days
A password or key nobody uses is pure risk: it can be stolen and nobody would notice it being used.
iam:GetCredentialReport
- IAM password policy is set
Without a policy, IAM users can set any password at all.
iam:GetAccountPasswordPolicy
- No IAM users with full admin rights
Standing admin access on a long-lived user means one stolen credential owns the account; admins should assume a role when they need it.
iam:ListUsers · iam:ListAttachedUserPolicies · iam:ListGroupsForUser · iam:ListAttachedGroupPolicies
- Leavers have no AWS access
A leaver's working AWS login is the access an auditor samples first, and the one an angry ex-employee would use.
identitystore:ListUsers · identitystore:ListGroupMemberships · sso:ListInstances · sso:ListPermissionSetsProvisionedToAccount · sso:ListAccountAssignments · iam:GetCredentialReport
- Every AWS login belongs to someone you know
A login that matches nobody in Personnel is either a leaver nobody recorded, a contractor nobody tracked, or a shared account — all three are auditor questions.
identitystore:ListUsers · iam:GetCredentialReport
Audit logging
- CloudTrail records every region
CloudTrail is the record of who did what in AWS; without it you can't investigate an incident or show an auditor anything.
cloudtrail:DescribeTrails · cloudtrail:GetTrailStatus
- CloudTrail log files are tamper-evident
Log file validation lets you prove the logs weren't edited after the fact — the property an auditor or investigator relies on.
cloudtrail:DescribeTrails
- Audit logs kept long enough
Intrusions are often found months later; logs deleted before then can't answer what happened. Your policy sets the period (365 days by default).
cloudtrail:DescribeTrails · logs:DescribeLogGroups · s3:GetLifecycleConfiguration
Threat detection
- GuardDuty watches every region you use
GuardDuty spots stolen credentials, crypto-mining and unusual access from logs you already have — it's the cheapest intrusion detection in AWS.
guardduty:ListDetectors · guardduty:GetDetector
- No high-severity GuardDuty findings left open
A high-severity finding nobody has looked at for a week is the definition of a missed incident.
guardduty:ListFindings · guardduty:GetFindings
Internet exposure
- S3 Block Public Access on for the account
The account-wide switch stops any bucket being made public by mistake — the most common way startups leak data.
s3:GetAccountPublicAccessBlock
- No public S3 buckets
A public bucket can be read by anyone on the internet who guesses or finds its name.
s3:ListAllMyBuckets · s3:GetBucketPolicyStatus · s3:GetBucketAcl · s3:GetBucketPublicAccessBlock
- No public snapshots or machine images
A public EBS or database snapshot is a full copy of your disk or database that anyone with an AWS account can restore.
ec2:DescribeSnapshots · ec2:DescribeImages · rds:DescribeDBSnapshots · rds:DescribeDBSnapshotAttributes
- Databases not reachable from the internet
A publicly accessible database is one weak password or unpatched bug away from being dumped.
rds:DescribeDBInstances
- SSH and RDP not open to the internet
Port 22 or 3389 open to the world gets brute-forced within minutes of going live.
ec2:DescribeSecurityGroups · ec2:DescribeNetworkInterfaces
- Database ports not open to the internet
MySQL, Postgres, Redis or Elasticsearch open to the world are scanned and attacked constantly.
ec2:DescribeSecurityGroups · ec2:DescribeNetworkInterfaces
- No Lambda function URLs without authentication
A function URL with auth NONE is a public endpoint anyone can call — fine for a webhook you meant to expose, a leak if you didn't.
lambda:ListFunctions · lambda:ListFunctionUrlConfigs
Encryption at rest
- Databases encrypted at rest
Every questionnaire asks it, and an unencrypted database means its snapshots and backups are unencrypted too.
rds:DescribeDBInstances · rds:DescribeDBClusters
- New disks encrypted by default
One setting per region makes every new EBS volume and snapshot encrypted, so nobody has to remember.
ec2:GetEbsEncryptionByDefault
- No unencrypted disks in use
Volumes created before default encryption was on stay unencrypted until replaced.
ec2:DescribeVolumes
- Customer-managed keys rotate yearly
Automatic rotation limits how much data any one key version protects. Only applies if you created your own keys.
kms:ListKeys · kms:DescribeKey · kms:GetKeyRotationStatus
Patching & support
- Lambda functions on supported runtimes
After a runtime's deprecation date AWS stops patching it — your code keeps running on an unpatched language and OS.
lambda:ListFunctions
- Database engines in standard support
Past standard support, AWS charges Extended Support per vCPU-hour to keep patching — or the version gets force-upgraded. Upgrading fixes both the risk and the bill.
rds:DescribeDBInstances · rds:DescribeDBClusters · rds:DescribeDBMajorEngineVersions
- Kubernetes clusters in standard support
EKS versions in extended support cost six times more to run ($0.60 vs $0.10 per cluster-hour) and fall behind on add-on fixes.
eks:ListClusters · eks:DescribeCluster · eks:DescribeClusterVersions
Vulnerabilities
- No critical vulnerabilities in deployed images
A critical CVE in the image you ship is the vulnerability-management finding auditors and pen-testers look for first.
ecr:DescribeRepositories · ecr:DescribeImages · inspector2:BatchGetAccountStatus · inspector2:ListFindingAggregations
Backups
- Databases keep at least 7 days of backups
Automated backups are how you undo a bad migration or a ransomware hit; under a week of history is rarely enough to notice in time.
rds:DescribeDBInstances · rds:DescribeDBClusters
- DynamoDB tables have point-in-time recovery
Without PITR, a bad write or delete on a table can't be rolled back.
dynamodb:ListTables · dynamodb:DescribeContinuousBackups
- Backups have been restore-tested
A backup nobody has restored is a hope, not a control — and a restore test is the evidence auditors most often find missing.
backup:ListRestoreJobs · backup:ListRestoreTestingPlans · cloudtrail:LookupEvents
Data residency (only if you've committed to a region)
- Data stays where you promised
If your contracts or DPA promise EU hosting, a forgotten bucket or backup copy in Virginia is a breach of that promise — and the first thing a German customer asks about.
rds:DescribeDBInstances · rds:DescribeDBClusters · dynamodb:ListTables · s3:ListAllMyBuckets · ec2:DescribeVolumes · backup:ListCopyJobs
Manual changes (never gates anything)
- Production changes go through code
A change clicked in the console skips review and isn't in Terraform — the next apply may undo it. Recording why (break-glass, incident) is what an auditor needs.
cloudtrail:LookupEvents
Good to know (never gates anything)
- VPC Flow Logs on for networks in use
Flow logs show which addresses talked to what — useful in an investigation, but they cost money, so it's your call.
ec2:DescribeFlowLogs · ec2:DescribeNetworkInterfaces
- AWS Config recording
Config keeps a history of every resource's settings. Helpful, not required — ShieldFlow keeps its own daily history of these checks.
config:DescribeConfigurationRecorderStatus
- Security Hub enabled
Security Hub runs AWS's own best-practice checks. Not required — these checks cover what auditors cite, at no AWS cost.
securityhub:DescribeHub
- Production databases have deletion protection
One wrong click or terraform destroy shouldn't be able to delete the production database.
rds:DescribeDBInstances · rds:DescribeDBClusters
Read calls added on top of SecurityAudit
eks:DescribeClusterVersions · inspector2:BatchGetAccountStatus · inspector2:ListFindingAggregations · lambda:ListFunctionUrlConfigs · ecr:DescribeImages · ecr:DescribeRepositories · dynamodb:DescribeContinuousBackups · rds:DescribeDBMajorEngineVersions · cloudtrail:LookupEvents · backup:ListBackupPlans · backup:ListProtectedResources · backup:ListRestoreJobs · backup:ListRestoreTestingPlans · backup:ListCopyJobs · identitystore:ListUsers · identitystore:ListGroups · identitystore:ListGroupMemberships · sso:ListInstances · sso:ListPermissionSets · sso:DescribePermissionSet · sso:ListAccountAssignments · sso:ListPermissionSetsProvisionedToAccount · sso:ListManagedPoliciesInPermissionSet · sso:GetInlinePolicyForPermissionSet · sso:ListAccountsForProvisionedPermissionSet · organizations:DescribeOrganization · organizations:ListAccounts
Explicitly denied — we never read your data
s3:GetObject · s3:GetObjectVersion · dynamodb:GetItem · dynamodb:BatchGetItem · dynamodb:Query · dynamodb:Scan · rds-data:* · secretsmanager:GetSecretValue · ssm:GetParameter · ssm:GetParameters · ssm:GetParametersByPath · kms:Decrypt · lambda:GetFunction · logs:GetLogEvents · logs:FilterLogEvents · ecr:GetDownloadUrlForLayer · ecr:BatchGetImage · athena:GetQueryResults
Lambda environment variables come back in the function list AWS returns; ShieldFlow drops them on arrival and never stores them.