Cloud Security Assessment Checklist for AWS, Azure and GCP
Cloud security assessment checklist for AWS, Azure, and GCP: IAM, storage, network, logging, secrets, containers, and IaC scanning with real CLI commands.
TL;DR — A cloud security assessment checks your AWS, Azure or Google Cloud setup against a known baseline such as the CIS Benchmarks. Check seven areas: IAM, storage, network, logging, secrets, containers and infrastructure-as-code. This checklist gives the CLI commands to find each gap and maps every control to NIST, CSA and CIS.
What is a cloud security assessment?#
A cloud security assessment is a structured, evidence-based review of your cloud accounts, subscriptions and projects against a recognised baseline. It answers one question: is this environment set up securely? It finds the gaps, ranks them by risk and gives your team the fix for each.
It matters because of the shared-responsibility model. AWS says it protects "the infrastructure that runs all of the services" in its cloud, while customers secure what they put in it, including data, encryption choices and IAM permissions (AWS shared responsibility model).
Microsoft says that for every cloud deployment type, "you own your data and identities", and its matrix leaves configurations and settings with the customer in IaaS, PaaS and SaaS alike (Microsoft Azure shared responsibility). Google's shared responsibility and shared fate page says customers "always remain responsible for their access policies and data."
So identity policies, storage permissions, network rules, logging, secrets, workloads and the code that deploys them are yours to get right. That is what this checklist covers.
Which standards should a cloud security assessment use?#
Use one prescriptive baseline for the checks and one or two control frameworks for reporting. These are the most widely used:
- CIS Benchmarks. Prescriptive, per-service setup guides. The current foundations benchmarks listed by CIS are AWS Foundations 7.1.0, Microsoft Azure Foundations 7.0.0 and Google Cloud Platform Foundation 5.0.1. Each recommendation has a rationale, an audit step and a fix.
- CSA Cloud Controls Matrix (CCM). A control framework built for cloud. The current CCM, version 4.1, has 207 control objectives in 17 domains, such as IAM, DSP (data security and privacy), IVS (infrastructure and virtualisation security) and LOG (logging and monitoring).
- NIST SP 800-53 Rev. 5. The NIST catalogue of security and privacy controls, used well beyond US government. Cloud assessments lean hardest on the AC (access control), AU (audit and accountability), SC (system and communications protection) and IA (identification and authentication) families.
- NIST cloud guidance. SP 800-144 (2011) covers security and privacy in public cloud, and SP 800-210 (2020) gives access control guidance for IaaS, PaaS and SaaS.
- ISO/IEC 27017. Cloud-specific guidance that builds on ISO/IEC 27002 for both cloud customers and providers. The 2015 edition has been withdrawn and replaced by ISO/IEC 27017:2026.
- AWS Well-Architected Framework, Security Pillar. AWS's own security best practices, organised as questions SEC01 to SEC11, covering identity, detection, infrastructure protection, data protection and incident response.
CIS section numbers change between benchmark versions, so the mapping tables below name the benchmark area. Look up the exact recommendation number in the version you assess against.
How do you find IAM misconfigurations?#
Start with identity, because every action in every cloud is an API call that IAM allows or denies. If IAM is wrong, the attacker inherits whatever the compromised identity can do.
What to check#
- Overly broad policies. Any principal with
"Effect": "Allow", "Action": "*", "Resource": "*"in AWS;OwnerorContributorrole assignments at subscription or management-group scope in Azure;roles/editororroles/ownerbindings at organisation or folder level in Google Cloud. - Unused credentials. Access keys, service account keys and service principals unused for 90 days or more. Dormant credentials are an easy path for an attacker.
- MFA enforcement. Every human identity, and root or global-admin accounts above all, must have MFA enforced, not just available.
- Cross-account and cross-tenant trust. Roles or policies that grant access to outside AWS accounts, Azure tenants or Google Cloud projects. Each trust is attack surface.
- Service account key sprawl. Google Cloud service account keys and AWS access keys sitting on laptops, CI/CD runners or in repositories.
CLI audit commands#
AWS: find IAM users without MFA (columns 1, 4 and 8 of the credential report are user, password_enabled and mfa_active):
aws iam generate-credential-report --output text
aws iam get-credential-report --query 'Content' --output text \
| base64 --decode | cut -d',' -f1,4,8 \
| grep -i 'false'
AWS: list customer-managed policies, then read each one and look for "Action": "*" with "Resource": "*":
aws iam list-policies --scope Local --query \
'Policies[?DefaultVersionId!=`null`].{Name:PolicyName,Arn:Arn}' \
--output table
aws iam get-policy-version --policy-arn <ARN> \
--version-id <VersionId> \
--query 'PolicyVersion.Document'
Azure: list Owner role assignments at subscription scope:
az role assignment list --role "Owner" \
--scope "/subscriptions/<sub-id>" \
--output table
Google Cloud: list owner and editor bindings at organisation level:
gcloud organizations get-iam-policy <ORG_ID> \
--flatten='bindings[].members' \
--format='table(bindings.role,bindings.members)' \
--filter='bindings.role:(roles/owner OR roles/editor)'
Standards mapping#
| Control | Framework |
|---|---|
| AC-2, AC-3, AC-6 (least privilege), IA-2 | NIST SP 800-53 Rev. 5 |
| IAM domain (Identity and Access Management) | CSA CCM 4.1 |
| Identity and Access Management section | CIS AWS, Azure and GCP Foundations |
| SEC02, SEC03 | AWS Well-Architected (Security Pillar) |
How do you check for exposed storage buckets?#
Public storage remains one of the easiest misconfigurations to exploit. Provider defaults now lean towards blocking public access, but older buckets, older IaC templates and explicit overrides still expose data.
What to check#
- Public access settings. S3 Block Public Access at account and bucket level; the Azure storage account setting that allows public blob access; Google Cloud uniform bucket-level access and
allUsersorallAuthenticatedUsersbindings. - Bucket policies and ACLs. Policies granting access to
"Principal": "*"(AWS), anonymous access (Azure) orallUsers(Google Cloud). - Encryption at rest. Whether server-side encryption is on and whether customer-managed keys are used where your policy requires them.
- Versioning and lifecycle. Whether versioning is on for integrity and ransomware recovery, and whether lifecycle rules stop data being kept forever.
- Access logging. Whether server access logs or data-access audit logs are on for each bucket.
CLI audit commands#
AWS: check account-level S3 Block Public Access:
aws s3control get-public-access-block \
--account-id $(aws sts get-caller-identity --query Account --output text)
AWS: find buckets without a default encryption configuration:
for bucket in $(aws s3api list-buckets --query 'Buckets[].Name' --output text); do
echo -n "$bucket: "
aws s3api get-bucket-encryption --bucket "$bucket" 2>&1 \
| grep -q 'ServerSideEncryptionConfiguration' \
&& echo "ENCRYPTED" || echo "NOT ENCRYPTED"
done
Azure: list storage accounts that allow public blob access:
az storage account list \
--query "[?allowBlobPublicAccess==\`true\`].{Name:name,RG:resourceGroup}" \
--output table
Google Cloud: find buckets with allUsers or allAuthenticatedUsers bindings:
for bucket in $(gcloud storage buckets list --format='value(name)'); do
gcloud storage buckets get-iam-policy "gs://$bucket" \
--format=json 2>/dev/null \
| grep -q 'allUsers\|allAuthenticatedUsers' \
&& echo "PUBLIC: $bucket"
done
Standards mapping#
| Control | Framework |
|---|---|
| SC-28 (protection of information at rest), SC-12 (key management), AC-3 | NIST SP 800-53 Rev. 5 |
| DSP (Data Security and Privacy) and CEK (Cryptography, Encryption and Key Management) domains | CSA CCM 4.1 |
| Storage section | CIS AWS, Azure and GCP Foundations |
| SEC07, SEC08 | AWS Well-Architected (Security Pillar) |
How do you review network segmentation?#
A flat cloud network, where every workload can reach every other workload on every port, is a building with no internal doors. Once an attacker controls one workload, moving to the next is easy.
What to check#
- Default VPCs and default security groups. Whether workloads run in the provider-created default VPC or VNet with permissive default rules.
- Open security groups, NSGs and firewall rules. Rules that allow
0.0.0.0/0inbound on management ports (SSH on 22, RDP on 3389) or on all ports. - Flow logs. Whether VPC Flow Logs (AWS and Google Cloud) or Azure flow logs are on, for forensics and anomaly detection.
- Private or public endpoints. Whether managed services such as databases, key vaults and storage are reached over private endpoints or over the internet.
- Separation between tiers. Whether web, application and data tiers sit in separate subnets, with rules allowing only the ports each tier needs.
CLI audit commands#
AWS: find security groups that allow SSH from 0.0.0.0/0:
aws ec2 describe-security-groups \
--filters "Name=ip-permission.from-port,Values=22" \
"Name=ip-permission.to-port,Values=22" \
"Name=ip-permission.cidr,Values=0.0.0.0/0" \
--query 'SecurityGroups[].{ID:GroupId,Name:GroupName}' \
--output table
AWS: check that each VPC has flow logs:
for vpc in $(aws ec2 describe-vpcs --query 'Vpcs[].VpcId' --output text); do
echo -n "$vpc: "
aws ec2 describe-flow-logs \
--filter "Name=resource-id,Values=$vpc" \
--query 'FlowLogs[0].FlowLogStatus' --output text
done
Azure: find NSG rules that allow inbound SSH from any source (set the resource group first):
az network nsg list --resource-group <RG> --query '[].name' -o tsv | while read nsg; do
az network nsg rule list --nsg-name "$nsg" \
--resource-group <RG> \
--query "[?access=='Allow' && direction=='Inbound' \
&& destinationPortRange=='22' \
&& sourceAddressPrefix=='*'].{NSG:'$nsg',Rule:name}" \
--output table
done
Google Cloud: find firewall rules that allow SSH from 0.0.0.0/0:
gcloud compute firewall-rules list \
--filter="sourceRanges=0.0.0.0/0 AND allowed[].ports=22 AND direction=INGRESS" \
--format="table(name,network,sourceRanges,allowed[].ports)"
Standards mapping#
| Control | Framework |
|---|---|
| SC-7 (boundary protection), SC-7(5) (deny by default) | NIST SP 800-53 Rev. 5 |
| IVS (Infrastructure and Virtualization Security) domain | CSA CCM 4.1 |
| Networking section | CIS AWS, Azure and GCP Foundations |
| SEC05 | AWS Well-Architected (Security Pillar) |
What logging gaps should you look for?#
You cannot detect what you do not log, and you cannot investigate what you did not keep. Logging gaps are why so many post-breach reports say the full scope "could not be determined".
What to check#
- Cloud audit logging. AWS CloudTrail (management and data events), Azure Activity Log and diagnostic settings, and Google Cloud Audit Logs (Admin Activity, Data Access, System Event and Policy Denied).
- All-region coverage. Whether audit logs capture every region, not just the ones you think you use. Attackers start resources in regions nobody watches.
- Retention. Whether logs are kept as long as your policy and regulators require, in tamper-evident storage. In India, the CERT-In directions of 28 April 2022 require covered entities to keep logs of all ICT systems for a rolling 180 days, within Indian jurisdiction.
- Alerts on critical events. Root or global-admin sign-in, IAM policy changes, security group changes, audit logging being turned off, and console sign-in without MFA.
- Central collection. Whether logs from every account, subscription and project flow to one protected place.
CLI audit commands#
AWS: check that trails are multi-region and that log file validation is on, then check that each trail is actually logging:
aws cloudtrail describe-trails \
--query 'trailList[].{Name:Name,MultiRegion:IsMultiRegionTrail,LogFileValidation:LogFileValidationEnabled}' \
--output table
aws cloudtrail get-trail-status --name <trail-name> \
--query '{IsLogging:IsLogging,LatestDeliveryTime:LatestDeliveryTime}'
Azure: check diagnostic settings for the subscription Activity Log:
az monitor diagnostic-settings subscription list \
--subscription <sub-id> \
--output table
Google Cloud: check which Data Access audit logs are on:
gcloud projects get-iam-policy <PROJECT_ID> \
--format=json | jq '.auditConfigs'
Standards mapping#
| Control | Framework |
|---|---|
| AU-2, AU-3, AU-6, AU-9, AU-11 | NIST SP 800-53 Rev. 5 |
| LOG (Logging and Monitoring) domain | CSA CCM 4.1 |
| Logging and Monitoring sections | CIS AWS, Azure and GCP Foundations |
| SEC04 | AWS Well-Architected (Security Pillar) |
How do you find leaked secrets?#
Hardcoded secrets, such as API keys, database passwords, service account keys and TLS private keys, turn up in source code, environment variables, CI/CD settings and container images. Secret scanners find them quickly, and so does any attacker with access to the repository.
What to check#
- Secrets in source control. Run a secrets scanner (such as
trufflehog,gitleaksordetect-secrets) over the full git history, not only the current branch. - Secrets in environment variables. Whether applications pull secrets from a vault (AWS Secrets Manager, Azure Key Vault, Google Cloud Secret Manager, HashiCorp Vault) or from plain-text variables.
- Rotation. Whether credentials rotate on a schedule. Access keys older than 90 days, database passwords never rotated and API keys with no expiry are all findings.
- Vault access. Whether only the service identity that needs a secret can read it.
- Secrets in images. Whether
docker historyor layer inspection shows embedded credentials.
CLI audit commands#
AWS: find active access keys older than 90 days (field 9 is access_key_1_active, field 10 is access_key_1_last_rotated; GNU date is assumed):
aws iam generate-credential-report > /dev/null 2>&1
sleep 5
aws iam get-credential-report --query 'Content' --output text \
| base64 --decode \
| awk -F',' 'NR>1 && $9=="true" { print $1, $10 }' \
| while read user date; do
age=$(( ($(date +%s) - $(date -d "$date" +%s)) / 86400 ))
[ "$age" -gt 90 ] && echo "STALE KEY: $user ($age days)"
done
Azure: list Key Vault secrets that have an expiry date:
az keyvault secret list --vault-name <vault-name> \
--query "[?attributes.expires!=null].{Name:name,Expires:attributes.expires}" \
--output table
Google Cloud: list service account keys with their creation and expiry times:
for sa in $(gcloud iam service-accounts list --format='value(email)'); do
echo "=== $sa ==="
gcloud iam service-accounts keys list \
--iam-account="$sa" \
--format='table(name.basename(),validAfterTime,validBeforeTime,keyType)'
done
Git repository: scan the full history for secrets. TruffleHog installs with brew install trufflehog, Docker or a release binary (not pip), and --results=verified shows only secrets it confirmed are live. Gitleaks installs with brew install gitleaks; since v8.19.0, gitleaks git replaces the older gitleaks detect.
trufflehog git file://. --results=verified
gitleaks git -v .
Standards mapping#
| Control | Framework |
|---|---|
| IA-5 (authenticator management), SC-12, SC-28 | NIST SP 800-53 Rev. 5 |
| IAM and CEK domains | CSA CCM 4.1 |
| Identity and Access Management section (key rotation) | CIS AWS, Azure and GCP Foundations |
| SEC02, SEC08 | AWS Well-Architected (Security Pillar) |
How do you assess container and Kubernetes security?#
Many cloud workloads now run in containers on EKS, AKS, GKE, ECS or self-managed Kubernetes. The attack surface covers the image supply chain, the runtime settings, the orchestrator and the node operating system underneath.
What to check#
- Base image source. Whether images are built from known, maintained base images and pulled from a private registry with vulnerability scanning on.
- Image scanning. Whether images are scanned for known CVEs before deployment, and whether a policy blocks images with critical or high findings.
- Runtime privileges. Whether containers run as root, or with
privileged: true,hostNetwork: true,hostPID: trueor extra Linux capabilities. - Pod Security Standards. Whether clusters enforce the Kubernetes Pod Security Standards, which define three profiles: Privileged, Baseline and Restricted. Use Restricted wherever workloads allow it.
- Network policies. Whether Kubernetes NetworkPolicies limit pod-to-pod traffic to what is needed.
- Secrets in pods. Whether Kubernetes Secrets are encrypted at rest (etcd encryption) and whether workloads use a secrets-store CSI driver rather than Secrets passed as environment variables.
CLI audit commands#
AWS EKS: check that secrets encryption is on. The command should return secrets:
aws eks describe-cluster --name <cluster-name> \
--query 'cluster.encryptionConfig[].resources' \
--output text
Kubernetes: find pods running as root or privileged:
kubectl get pods --all-namespaces -o json \
| jq -r '
.items[] |
select(
.spec.containers[]? |
(.securityContext.runAsUser == 0) or
(.securityContext.privileged == true)
) |
"\(.metadata.namespace)/\(.metadata.name)"
'
Kubernetes: find pods without resource limits:
kubectl get pods --all-namespaces -o json \
| jq -r '
.items[] |
select(.spec.containers[] | .resources.limits == null) |
"\(.metadata.namespace)/\(.metadata.name)"
'
Azure AKS: check that the Azure Policy add-on is on:
az aks show --name <cluster-name> \
--resource-group <rg> \
--query 'addonProfiles.azurepolicy.enabled'
Google GKE: check that Workload Identity is on. A non-empty result means it is enabled:
gcloud container clusters describe <cluster-name> \
--zone <zone> \
--format='value(workloadIdentityConfig.workloadPool)'
Standards mapping#
| Control | Framework |
|---|---|
| CM-7 (least functionality), SI-3, SI-7 | NIST SP 800-53 Rev. 5 |
| IVS and TVM (Threat and Vulnerability Management) domains | CSA CCM 4.1 |
| CIS Kubernetes benchmarks for EKS, AKS and GKE | CIS Benchmarks |
| SEC06 | AWS Well-Architected (Security Pillar) |
How do you scan infrastructure-as-code?#
If you deploy with Terraform, CloudFormation, Bicep, Pulumi or CDK, your security settings live in code, and that code can be scanned before it reaches a cloud API. IaC scanning does for infrastructure what static analysis does for application code: a problem becomes a pull request comment instead of a production incident.
What to check#
- Scanning in CI. Whether IaC templates are scanned before merge, with tools such as
checkov,trivy config(which now includes tfsec) orKICS. - Policy as code. Whether guardrails (OPA/Rego, AWS Service Control Policies, Azure Policy, Google Cloud Organization Policies) block non-compliant resources even if the scan is skipped.
- Drift detection. Whether the real cloud state is compared with the declared IaC state on a schedule. Manual changes made outside the pipeline are drift, and IaC scanning alone misses them.
- Module sources. Whether Terraform modules and Pulumi components come from trusted, version-pinned registries.
CLI audit commands#
Terraform: scan with checkov (pip install checkov). The four checks below cover S3 access logging (CKV_AWS_18), encryption at rest (CKV_AWS_19), versioning (CKV_AWS_21) and KMS encryption by default (CKV_AWS_145), as listed in the Checkov policy index:
checkov -d . --framework terraform \
--check CKV_AWS_18,CKV_AWS_19,CKV_AWS_21,CKV_AWS_145 \
--compact
Terraform: scan with trivy:
trivy config . --severity HIGH,CRITICAL --format table
CloudFormation: lint and scan:
cfn-lint template.yaml
checkov -f template.yaml --framework cloudformation
Detect Terraform drift. Exit code 0 means no changes; exit code 2 means changes, so the real state has drifted from the code:
terraform plan -detailed-exitcode
Standards mapping#
| Control | Framework |
|---|---|
| CM-2 (baseline configuration), CM-3 (configuration change control), SA-11 | NIST SP 800-53 Rev. 5 |
| CCC (Change Control and Configuration Management) domain | CSA CCM 4.1 |
| Applies across all sections (the IaC sets the configuration CIS checks) | CIS AWS, Azure and GCP Foundations |
| SEC01 | AWS Well-Architected (Security Pillar) |
What are the steps in a cloud security assessment?#
A structured assessment follows the same seven steps every time:
- Define the scope. List the accounts, subscriptions and projects in scope, and the frameworks you must align with.
- Run an automated baseline scan. Use CIS Benchmark scanners (Prowler for AWS, Azure and Google Cloud; ScoutSuite for multi-cloud; Steampipe for SQL-style queries) to get a measurable gap list.
- Review by hand. Confirm the automated findings, remove false positives, and check what tools miss: trust relationships, custom IAM policies, secrets in applications and IaC pipeline setup.
- Collect evidence. Save the CLI output or a screenshot for every finding, so each one can be reproduced.
- Write a risk-rated report. Map each finding to its CIS recommendation, CSA CCM domain and NIST control. Rate severity by how easily it can be exploited and how far the damage would spread.
- Give specific fixes. Not "improve your IAM posture" but "remove
"Action": "*"from policyarn:aws:iam::123456789012:policy/LegacyAdminand grant only the permissions the application needs." - Retest. Run the scan again after the fixes to confirm each gap is closed.
Quick start: Prowler#
Prowler lists the compliance frameworks your installed version supports, then runs one of them. Pick the CIS framework ID from the list:
pip install prowler
prowler aws --list-compliance
prowler aws --compliance <framework_id>
Quick start: ScoutSuite#
ScoutSuite installs from PyPI and uses the access you have already set up in each provider's CLI:
pip install scoutsuite
scout aws
scout azure --cli
scout gcp --user-account
Why repeat the assessment?#
A findings report that sits in a shared drive does not make you safer. The value comes when findings are fixed, controls are automated and the assessment is repeated: at least quarterly, and continuously once your IaC pipeline and policy-as-code guardrails are mature.
The seven areas above are not separate. An over-permissioned IAM role that can read an unencrypted bucket, in a flat network with no logging, with credentials baked into an image deployed by unscanned Terraform, is not seven findings. It is one attack path.
Assess, fix, automate the guardrails, and assess again.
How can we help?#
Our Security Risk Assessment reviews your AWS, Azure or Google Cloud estate against the baselines above. We find the gaps, rank them by risk, advise your team on each fix and retest. If you want to see which gaps an attacker can actually use, our penetration testing service covers cloud. Plan for the day something goes wrong with our incident response plan guide, or start with a free Exposure Check.
Frequently asked questions#
How often should a cloud security assessment be done?#
Run automated scans continuously in CI/CD or on a daily or weekly schedule. Add a manual review at least quarterly, and after any major change such as new accounts, regions or services.
Can automated tools replace a manual cloud security assessment?#
No. Tools such as Prowler, ScoutSuite, AWS Security Hub, Microsoft Defender for Cloud and Google Security Command Center give broad, repeatable coverage. They miss custom IAM policies, trust relationships, secrets in applications and pipeline design, and they cannot turn a findings list into a ranked plan.
Does this checklist work if we use only one cloud provider?#
Yes. Each section has commands per provider, so use the ones for yours. The NIST, CSA CCM and ISO 27017 mappings apply to any cloud.
What is the difference between a cloud security assessment and a penetration test?#
A cloud security assessment reviews configuration against a baseline and asks whether the environment is set up securely. A cloud penetration test tries to exploit the gaps to show what an attacker could actually do. The assessment finds the gaps; the test shows which ones can be chained into an attack.
Our cloud provider's dashboard shows a good score. Are we secure?#
Not necessarily. Provider dashboards such as AWS Security Hub, Microsoft Defender for Cloud and Google Security Command Center are useful for triage. They do not cover everything, such as cross-account trust, secrets in source control or custom IAM policies, so treat a good score as a starting point.
How do CIS Benchmarks, CSA CCM and NIST SP 800-53 fit together?#
CIS Benchmarks give the exact per-service checks. CSA CCM groups controls into cloud-specific domains, and NIST SP 800-53 is the full control catalogue. A good report maps each finding to all three, so any compliance team can trace it.
Sources#
- AWS, Shared Responsibility Model
- Microsoft, Shared responsibility in the cloud
- Google Cloud, Shared responsibilities and shared fate on Google Cloud
- CIS, Amazon Web Services benchmarks
- CIS, Microsoft Azure benchmarks
- CIS, Google Cloud Platform benchmark
- Cloud Security Alliance, Cloud Controls Matrix
- NIST, SP 800-53 Rev. 5: Security and Privacy Controls for Information Systems and Organizations
- NIST, SP 800-144: Guidelines on Security and Privacy in Public Cloud Computing
- NIST, SP 800-210: General Access Control Guidance for Cloud Systems
- ISO, ISO/IEC 27017:2026 Information security controls based on ISO/IEC 27002 for cloud services
- AWS, Well-Architected Framework: Security Pillar
- Google Cloud, Cloud Audit Logs overview
- CERT-In, Directions under section 70B(6) of the IT Act, 28 April 2022
- Kubernetes, Pod Security Standards
- TruffleHog, README
- Gitleaks, README
- Checkov, Terraform policy index
- Prowler, Compliance documentation
- ScoutSuite, Setup
Security Risk Assessment
Your biggest security risks, ranked, with a plan.

