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.

Azure lines whose Azure Policy definition lists Deny among its allowed effects
Checklist linePolicy definitionAllowed effects
Storage accounts require secure transferSecure transfer to storage accounts should be enabledAudit, Deny, Disabled
No anonymous public access to blob containersStorage account public access should be disallowedAudit, Deny, Disabled
Storage account network default rule is denyStorage accounts should restrict network access; Storage accounts should restrict network access using virtual network rulesAudit, Deny, Disabled
Storage minimum TLS version is 1.2Storage accounts should have the specified minimum TLS versionAudit, Deny, Disabled
Storage container holding activity logs is not publicStorage account public access should be disallowedAudit, Deny, Disabled
Managed disks double encrypted with customer-managed keysManaged disks should be double encrypted with both platform-managed and customer-managed keysAudit, Deny, Disabled
Machines check for missing system updatesMachines should be configured to periodically check for missing system updatesAudit, Deny, Disabled
App Service apps only reachable over HTTPSApp Service apps should only be accessible over HTTPSAudit, Disabled, Deny
Azure SQL public network access disabledPublic network access on Azure SQL Database should be disabledAudit, Deny, Disabled
Cosmos DB firewall limits access to selected networksAzure Cosmos DB accounts should have firewall rulesAudit, Deny, Disabled
Key Vault soft delete and purge protection onKey vaults should have deletion protection enabled; Key vaults should have soft delete enabledAudit, Deny, Disabled
Key Vault uses the RBAC permission modelAzure Key Vault should use RBAC permission modelAudit, Deny, Disabled
Expiration dates on Key Vault keys and secretsKey Vault keys should have an expiration date; Key Vault secrets should have an expiration dateAudit, Deny, Disabled
Google Cloud lines paired with an organization policy constraint from Google's security foundations blueprint (this site's pairing)
Checklist lineConstraint
OS Login oncompute.requireOsLogin
Interactive serial console offcompute.disableSerialPortAccess
Default network removedcompute.skipDefaultNetworkCreation
No public IP addresses on instancescompute.vmExternalIpAccess
No user-managed service account keysiam.disableServiceAccountKeyCreation
Service account key creation blocked by organization policyiam.disableServiceAccountKeyCreation
IAM members use organizational credentialsiam.allowedPolicyMemberDomains
Cloud SQL does not accept all IP addressessql.restrictAuthorizedNetworks
Cloud SQL has no public IP addresssql.restrictPublicIp
Uniform bucket-level access onstorage.uniformBucketLevelAccess
No public Cloud Storage bucketsstorage.publicAccessPrevention
AWS lines paired with a Control Tower control or a declarative policy (this site's pairing)
Checklist lineControl or policyAWS page
No access key on the root userAWS-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 IMDSv2CT.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 instancesCT.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 anywhereCT.EC2.PR.5: Require any Amazon EC2 network ACL to prevent ingress from 0.0.0.0/0 to port 22 or port 3389Amazon Elastic Compute Cloud (Amazon EC2) controls
No SSH or RDP open to 0.0.0.0/0 in security groupsCT.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 snapshotsDeclarative policy: Snapshot Block Public AccessEC2 policy syntax and examples
S3 block public access on for each bucketCT.S3.PR.1: Require an Amazon S3 bucket to have block public access settings configuredAmazon Simple Storage Service (Amazon S3) controls
S3 buckets require TLSCT.S3.PR.8: Require that Amazon S3 bucket requests use Secure Socket LayerAmazon Simple Storage Service (Amazon S3) controls
S3 buckets encrypted with a KMS keyCT.S3.PR.10: Require an Amazon S3 bucket to have server-side encryption configured using an AWS KMS keyAmazon Simple Storage Service (Amazon S3) controls
EKS cluster endpoint not publicCT.EKS.PR.1: Require an Amazon EKS cluster to be configured with public access disabled to the cluster Kubernetes API server endpointAmazon Elastic Kubernetes Service (EKS) controls
KMS key rotation onCT.KMS.PR.1: Require any AWS KMS key to have rotation configuredAWS Key Management Service (AWS KMS) controls
RDS instances not publicly accessibleCT.RDS.PR.23: Require an Amazon RDS database instance to not be publicly accessibleAmazon Relational Database Service (Amazon RDS) controls
RDS encryption at restCT.RDS.PR.24: Require an Amazon RDS database instance to have encryption at rest configuredAmazon Relational Database Service (Amazon RDS) controls
RDS automatic minor version upgrades onCT.RDS.PR.5: Require an Amazon RDS database instance to have minor version upgrades configuredAmazon Relational Database Service (Amazon RDS) controls
No SSH or RDP open to ::/0 in security groupsCT.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 keyCT.CLOUDTRAIL.PR.1: Require an AWS CloudTrail trail to have encryption at rest activatedAWS CloudTrail controls
CloudTrail log file validation onCT.CLOUDTRAIL.PR.2: Require an AWS CloudTrail trail to have log file validation activatedAWS 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 KMSAmazon 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 KMSAmazon Elastic File System controls
RDS instances in more than one Availability ZoneCT.RDS.PR.1: Require that an Amazon RDS database instance is configured with multiple Availability ZonesAmazon 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.

  1. Enterprise foundations blueprint
  2. Preventative controls for acceptable resource configurations
  3. What Is AWS Control Tower?
  4. Regulatory Compliance details for CIS Microsoft Azure Foundations Benchmark 2.0.0
  5. Azure CLI reference: az policy assignment (read 21 Nov 2026)
  6. gcloud org-policies set-policy (read 21 Nov 2026)
  7. Proactive controls (read 21 Nov 2026)
  8. Control Tower API: EnableControl (read 21 Nov 2026)
  9. Declarative policies, AWS Organizations (read 21 Nov 2026)
  10. Azure security baseline for Azure Kubernetes Service (AKS)
  11. Azure Policy definitions effect basics
  12. Strongly recommended controls with preventive behavior
  13. EC2 policy syntax and examples
  14. Amazon Elastic Compute Cloud (Amazon EC2) controls (read 21 Nov 2026)
  15. Amazon Simple Storage Service (Amazon S3) controls
  16. Amazon Elastic Kubernetes Service (EKS) controls
  17. AWS Key Management Service (AWS KMS) controls
  18. Amazon Relational Database Service (Amazon RDS) controls (read 21 Nov 2026)
  19. AWS CloudTrail controls (read 21 Nov 2026)
  20. Amazon Elastic File System controls (read 21 Nov 2026)

Last reviewed