What cloud security checks to automate first
Automate first the checks a provider policy can stop at creation. Counting the 142 lines against provider policy pages gives 13 of 42 Azure lines (with Deny assigned), 11 of 45 Google Cloud lines and 20 of 55 AWS lines, 17 of them only for resources created through CloudFormation. The counts and pairings are ours.
What do the providers say about preventing early?
Google's blueprint combines policy controls (prevent), architecture controls and detective controls, and says enforcing preventive controls early helps avoid remediation later (security foundations and preventative controls). AWS Control Tower has preventive, detective and proactive controls (AWS). Azure Policy effects include Deny and Audit (Microsoft).
How do I turn the blocks on?
Azure. Assign the definition with its effect set to Deny. az policy assignment create takes --params for the parameter values of the assigned policy rule (Microsoft).
Google Cloud. Enforce the constraint at the organization. gcloud org-policies set-policy sets an organization policy from a JSON or YAML file, creating it if it does not exist and updating it if it does (Google).
AWS. Enable the proactive control from Control Tower (AWS), or call the EnableControl API, which activates a control on an organizational unit and the accounts it contains (AWS). Attach the declarative policy in AWS Organizations (AWS).
How many lines can each cloud stop at creation?
Azure: 13 of 42. 36 of the 42 Azure lines name an Azure Policy definition: 34 on the CIS 2.0.0 page and 2, for AKS authorized IP ranges and Azure RBAC, on the AKS security baseline (effects Audit, Disabled). 13 of the 36 list Deny among their allowed effects. Deny is one of the allowed effects; the effect is chosen when the policy is assigned, so a definition only blocks creation where it is assigned with Deny (Microsoft). The first table below lists them.
Google Cloud: 11 of 45. 11 lines pair with an organization policy constraint in Google's security foundations blueprint. Each pairing was made by matching the constraint's description to the detector; Google's pages do not state it.
AWS: 20 of 55. Two kinds of Control Tower control apply. 1 line, IAM.4, pairs with the preventive control "Disallow creation of access keys for the root user" [AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS], which AWS lists as strongly recommended, based on service control policies and not enabled by default (AWS). 18 lines pair with a Control Tower proactive control, which AWS says checks resources before they are deployed and is implemented with CloudFormation hooks (AWS). Two lines pair with a declarative policy: EC2.8 (Instance Metadata, which applies to new launches) and EC2.1 (Snapshot Block Public Access), from the declarative policies page; EC2.8 is in both groups. Each pairing was made by matching the control's title or text to the setting; the last table below lists them.
The two kinds differ in reach. A preventive control based on service control policies applies to all requests in enrolled accounts. A proactive control checks resources created or updated by CloudFormation stack operations and may not affect requests made directly through the console, APIs, SDKs or other infrastructure-as-code tools, as AWS says.
| Checklist line | Policy definition | Allowed effects |
|---|---|---|
| Storage accounts require secure transfer | Secure transfer to storage accounts should be enabled | Audit, Deny, Disabled |
| No anonymous public access to blob containers | Storage account public access should be disallowed | Audit, Deny, Disabled |
| Storage account network default rule is deny | Storage accounts should restrict network access; Storage accounts should restrict network access using virtual network rules | Audit, Deny, Disabled |
| Storage minimum TLS version is 1.2 | Storage accounts should have the specified minimum TLS version | Audit, Deny, Disabled |
| Storage container holding activity logs is not public | Storage account public access should be disallowed | Audit, Deny, Disabled |
| Managed disks double encrypted with customer-managed keys | Managed disks should be double encrypted with both platform-managed and customer-managed keys | Audit, Deny, Disabled |
| Machines check for missing system updates | Machines should be configured to periodically check for missing system updates | Audit, Deny, Disabled |
| App Service apps only reachable over HTTPS | App Service apps should only be accessible over HTTPS | Audit, Disabled, Deny |
| Azure SQL public network access disabled | Public network access on Azure SQL Database should be disabled | Audit, Deny, Disabled |
| Cosmos DB firewall limits access to selected networks | Azure Cosmos DB accounts should have firewall rules | Audit, Deny, Disabled |
| Key Vault soft delete and purge protection on | Key vaults should have deletion protection enabled; Key vaults should have soft delete enabled | Audit, Deny, Disabled |
| Key Vault uses the RBAC permission model | Azure Key Vault should use RBAC permission model | Audit, Deny, Disabled |
| Expiration dates on Key Vault keys and secrets | Key Vault keys should have an expiration date; Key Vault secrets should have an expiration date | Audit, Deny, Disabled |
| Checklist line | Constraint |
|---|---|
| OS Login on | compute.requireOsLogin |
| Interactive serial console off | compute.disableSerialPortAccess |
| Default network removed | compute.skipDefaultNetworkCreation |
| No public IP addresses on instances | compute.vmExternalIpAccess |
| No user-managed service account keys | iam.disableServiceAccountKeyCreation |
| Service account key creation blocked by organization policy | iam.disableServiceAccountKeyCreation |
| IAM members use organizational credentials | iam.allowedPolicyMemberDomains |
| Cloud SQL does not accept all IP addresses | sql.restrictAuthorizedNetworks |
| Cloud SQL has no public IP address | sql.restrictPublicIp |
| Uniform bucket-level access on | storage.uniformBucketLevelAccess |
| No public Cloud Storage buckets | storage.publicAccessPrevention |
| Checklist line | Control or policy | AWS page |
|---|---|---|
| No access key on the root user | AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS: Disallow creation of access keys for the root user (preventive, strongly recommended, based on service control policies; not enabled by default) | Strongly recommended controls with preventive behavior |
| EC2 instances require IMDSv2 | CT.EC2.PR.1: Require an Amazon EC2 launch template to have IMDSv2 configured Declarative policy: Instance Metadata | Amazon Elastic Compute Cloud (Amazon EC2) controls EC2 policy syntax and examples |
| No public IPv4 address on EC2 instances | CT.EC2.PR.8: Require an Amazon EC2 instance to set AssociatePublicIpAddress to false on a new network interface CT.EC2.PR.9: Require any Amazon EC2 launch template not to auto-assign public IP addresses to network interfaces | Amazon Elastic Compute Cloud (Amazon EC2) controls |
| Network ACLs do not allow SSH or RDP from anywhere | CT.EC2.PR.5: Require any Amazon EC2 network ACL to prevent ingress from 0.0.0.0/0 to port 22 or port 3389 | Amazon Elastic Compute Cloud (Amazon EC2) controls |
| No SSH or RDP open to 0.0.0.0/0 in security groups | CT.EC2.PR.4: Require that any Amazon EC2 security group rule does not use the source IP range 0.0.0.0/0 or ::/0 for specific high-risk ports (the port list includes 22 and 3389) | Amazon Elastic Compute Cloud (Amazon EC2) controls |
| No publicly restorable EBS snapshots | Declarative policy: Snapshot Block Public Access | EC2 policy syntax and examples |
| S3 block public access on for each bucket | CT.S3.PR.1: Require an Amazon S3 bucket to have block public access settings configured | Amazon Simple Storage Service (Amazon S3) controls |
| S3 buckets require TLS | CT.S3.PR.8: Require that Amazon S3 bucket requests use Secure Socket Layer | Amazon Simple Storage Service (Amazon S3) controls |
| S3 buckets encrypted with a KMS key | CT.S3.PR.10: Require an Amazon S3 bucket to have server-side encryption configured using an AWS KMS key | Amazon Simple Storage Service (Amazon S3) controls |
| EKS cluster endpoint not public | CT.EKS.PR.1: Require an Amazon EKS cluster to be configured with public access disabled to the cluster Kubernetes API server endpoint | Amazon Elastic Kubernetes Service (EKS) controls |
| KMS key rotation on | CT.KMS.PR.1: Require any AWS KMS key to have rotation configured | AWS Key Management Service (AWS KMS) controls |
| RDS instances not publicly accessible | CT.RDS.PR.23: Require an Amazon RDS database instance to not be publicly accessible | Amazon Relational Database Service (Amazon RDS) controls |
| RDS encryption at rest | CT.RDS.PR.24: Require an Amazon RDS database instance to have encryption at rest configured | Amazon Relational Database Service (Amazon RDS) controls |
| RDS automatic minor version upgrades on | CT.RDS.PR.5: Require an Amazon RDS database instance to have minor version upgrades configured | Amazon Relational Database Service (Amazon RDS) controls |
| No SSH or RDP open to ::/0 in security groups | CT.EC2.PR.4: Require that any Amazon EC2 security group rule does not use the source IP range 0.0.0.0/0 or ::/0 for specific high-risk ports (the port list includes 22 and 3389) | Amazon Elastic Compute Cloud (Amazon EC2) controls |
| CloudTrail logs encrypted with a KMS key | CT.CLOUDTRAIL.PR.1: Require an AWS CloudTrail trail to have encryption at rest activated | AWS CloudTrail controls |
| CloudTrail log file validation on | CT.CLOUDTRAIL.PR.2: Require an AWS CloudTrail trail to have log file validation activated | AWS CloudTrail controls |
| EFS encryption at rest (periodic check) | CT.ELASTICFILESYSTEM.PR.1: Require an Amazon EFS file system to encrypt file data at rest using AWS KMS | Amazon Elastic File System controls |
| EFS encryption at rest (change-triggered check) | CT.ELASTICFILESYSTEM.PR.1: Require an Amazon EFS file system to encrypt file data at rest using AWS KMS | Amazon Elastic File System controls |
| RDS instances in more than one Availability Zone | CT.RDS.PR.1: Require that an Amazon RDS database instance is configured with multiple Availability Zones | Amazon Relational Database Service (Amazon RDS) controls |
In what order should I automate?
The order below is this site's, set by dependency: first stop exposure at creation (public storage, public IPs, open admin ports, key creation), then turn logging on and exported, then send findings out of the console: Security Command Center continuous export to Pub/Sub, Defender for Cloud continuous export and the Security Hub CSPM stream to Amazon EventBridge, all described on the Audit Evidence Sheet. The first group is where the counts above apply. The second maps to the logging lines; the guide to what to secure first puts identity ahead of all of it.
Sources
Every page below was read 20 Nov 2026, except those marked with a later date.
- Enterprise foundations blueprint
- Preventative controls for acceptable resource configurations
- What Is AWS Control Tower?
- Regulatory Compliance details for CIS Microsoft Azure Foundations Benchmark 2.0.0
- Azure CLI reference: az policy assignment (read 21 Nov 2026)
- gcloud org-policies set-policy (read 21 Nov 2026)
- Proactive controls (read 21 Nov 2026)
- Control Tower API: EnableControl (read 21 Nov 2026)
- Declarative policies, AWS Organizations (read 21 Nov 2026)
- Azure security baseline for Azure Kubernetes Service (AKS)
- Azure Policy definitions effect basics
- Strongly recommended controls with preventive behavior
- EC2 policy syntax and examples
- Amazon Elastic Compute Cloud (Amazon EC2) controls (read 21 Nov 2026)
- Amazon Simple Storage Service (Amazon S3) controls
- Amazon Elastic Kubernetes Service (EKS) controls
- AWS Key Management Service (AWS KMS) controls
- Amazon Relational Database Service (Amazon RDS) controls (read 21 Nov 2026)
- AWS CloudTrail controls (read 21 Nov 2026)
- Amazon Elastic File System controls (read 21 Nov 2026)
Last reviewed