Insecure defaults are the cloud settings a provider ships in a convenient rather than hardened state, and they are where a large share of cloud intrusions begin. Pwned Labs teaches the attacker side of these defaults in its cloud bootcamps, and this guide lists the ones that matter most on AWS, Microsoft Azure and Entra ID, and Google Cloud, with the fix and the detection for each. The tracks are the Amazon Cloud Attack and Defense bootcamp leading to ACRTP, the Microsoft Cloud Attack and Defense bootcamp leading to MCRTP, and the Google Cloud Attack and Defense bootcamp leading to GCRTP.
What counts as an insecure default
A cloud provider has to balance a new customer's first hour against a mature customer's security posture, and the defaults usually lean toward the first. That is a reasonable product decision, but it means a fresh account or resource often starts in a state that is convenient rather than hardened: credentials that do not expire, logging that is off, identity that is shared more widely than you would choose. The items below are the specific defaults we see abused most, grouped by provider, each with the change that removes the risk and the signal that reveals someone exploiting it.
AWS insecure defaults
IAM users have no MFA and accept weak passwords by default
By default, a new IAM user does not require multi-factor authentication, and until you attach an account password policy it will accept a password as weak as Password1. Neither protection is on unless you turn it on. That combination is what makes console password spraying and credential stuffing worth an attacker's time. The fix is to set an account password policy and enforce MFA on every human identity, and better still to move console users onto IAM Identity Center with a central identity provider so there are fewer standing passwords to spray. For detection, watch CloudTrail for ConsoleLogin failures spread across many usernames from one source, which is the signature of a spray.
IMDSv1 can still be enabled
The EC2 Instance Metadata Service is where an instance's role credentials live, and version 1 answers any process that can make an HTTP request to it, which turns a server-side request forgery bug into credential theft. AWS now defaults new instance launches to IMDSv2 where you set that account option, and its newest instance types are IMDSv2 only, but IMDSv1 can still be turned on at launch or afterward, and existing instances are not changed. The fix is to enforce IMDSv2 so a token is required, and where an instance does not need metadata, to disable the endpoint entirely. Detection is indirect: alert on role credentials used from an unexpected IP, which is what stolen instance credentials look like.
A public S3 bucket reveals its owner account
Knowing an organization's AWS account ID opens several doors: IAM user and role enumeration, cross-account role assumption, and finding resources that account has shared publicly. A single public S3 bucket is often enough to recover that account ID, because the s3:ResourceAccount condition key can be used to confirm the owning account one digit at a time, which the open-source s3-account-search tool automates. The newer S3 bucket naming that embeds the account ID and region makes this worse, turning the bucket namespace into a predictable target. The fix is to keep buckets private by default with account-level S3 Block Public Access, and to treat the account ID as discoverable rather than secret. For detection, a spike of HeadBucket events in CloudTrail against one bucket, many returning AccessDenied, is the enumeration in progress.
Public machine images and snapshots
AMIs, EBS snapshots, and RDS snapshots can all be shared publicly, and a snapshot made public by mistake can hand over whole disks or databases, credentials included. The fix is to enable the account-level block public access for EBS snapshots, enforce encryption so a shared snapshot is useless without the key, and audit AMI and RDS sharing settings. For detection, alert on ModifySnapshotAttribute or ModifyImageAttribute events that add "all" as a permitted account.
Microsoft Azure and Entra ID insecure defaults
Password protection only blocks common English passwords
Entra ID's built-in banned-password list blocks widely used English passwords by default, which leaves locale-specific choices wide open: on a Norwegian tenant, Velkommen1 sails through. The fix is to configure custom banned-password lists with terms relevant to your organization and its languages, and to pair that with MFA so a guessed password is not enough on its own. For detection, watch for repeated failed sign-ins across many accounts, or the stealthier pattern described below.
MFA coverage is easy to leave uneven
MFA in Entra is enforced through Conditional Access, and because many first-party client applications can request tokens, it is common to find a service or client that a policy does not cover. Attackers probe for exactly these gaps, cycling one set of credentials across many client IDs and resource audiences to find a path that does not challenge for a second factor. The fix is to require MFA through Conditional Access for all users and apps, including legacy and first-party clients, and to review coverage regularly rather than assume it is complete. For detection, look for a short burst of authentication attempts from one source touching an unusually wide range of resources and client IDs for a single user.
The deprecated Azure AD Graph API exposes Conditional Access policies
The legacy Azure AD Graph API at graph.windows.net, although on its way out, still lets any valid user read the tenant's Conditional Access policies, which is a map of exactly where MFA is and is not enforced. The current Microsoft Graph requires specific permissions for this that users do not hold by default. The fix is to block legacy authentication and legacy API access through Conditional Access so that enumeration path is closed. For detection, alert on sign-ins to the Azure AD Graph endpoint and on policy-read calls from non-administrative users.
The sign-in endpoint is a credential oracle
Entra's token endpoint returns different, specific error codes for an unknown user, a valid user with the wrong password, and valid credentials that still need a second factor, which lets an attacker confirm which usernames and passwords are real without ever completing a sign-in. Supplying a fake application (client) ID can validate a correct password while producing no successful sign-in event and leaving the application name blank in the logs. This is endpoint behavior rather than a setting you can switch off, so the defense is detection plus MFA, because a correct password alone should never be enough. For detection, hunt sign-in logs for entries with a blank application name and for a run of credential-validation attempts that never resolve to a successful interactive sign-in.
Google Cloud insecure defaults
Every Workspace user can create projects
By default, every user in a Google Workspace domain holds the resourcemanager.projectCreator role, so any account, including a compromised one, can create new projects and run infrastructure in them with little oversight. The fix is to remove projectCreator from the organization's default access and grant it deliberately, and to enable organization-level logging so new projects are visible. For detection, watch for CreateProject events from users outside your platform team.
Service account keys do not expire
A downloaded service account key is a long-lived credential that never expires on its own, so one committed to a repository or left on a host stays valid until someone deletes it. Google now disables key creation by default for organizations created on or after May 3, 2024, through the iam.disableServiceAccountKeyCreation policy, but older organizations do not have it and administrators can turn it off. The fix is to enforce that policy everywhere and use Workload Identity Federation or short-lived impersonation instead of keys. For detection, watch for CreateServiceAccountKey events and run secret scanning on your repositories.
testIamPermissions probing is not logged
An attacker who holds a GCP identity can call testIamPermissions to ask, resource by resource, exactly which permissions that identity has, which is the reconnaissance that precedes privilege escalation. For many services these calls are not written to Cloud Audit Logs, and Data Access logs are off by default to begin with, so the probing often leaves no trace. Pwned Labs raised this gap with Google to advocate for logging these calls. The fix available today is to enable Data Access audit logs where the service supports them, apply least privilege so a probing identity finds little, and rely on behavioral detection of the lateral movement that follows. For detection, focus on the escalation itself through GenerateAccessToken, SignJwt, or SetIamPolicy events in Cloud Audit Logs, since the enumeration before it is largely invisible.
Predictable project IDs and service account emails
GCP project IDs are globally unique, and a service account email embeds its project ID, so names leak structure: an attacker who learns one project ID or service account email can often guess others and enumerate storage buckets that follow the same convention. The fix is to avoid encoding sensitive meaning in names, keep buckets private with uniform bucket-level access, and never rely on an unguessable name as a control. For detection, look for bursts of 403 and 404 responses against storage endpoints that walk a naming pattern.
How the defaults compare
The same lesson repeats across all three providers: the default favors convenience, the fix is a one-time change, and the detection is a known signal. This table lines them up.
| Provider | Insecure default | Fix |
|---|---|---|
| AWS | IAM users without enforced MFA and a weak default password policy | Set a password policy and enforce MFA, move console users to IAM Identity Center |
| AWS | IMDSv1 can still be enabled, which turns SSRF into credential theft | Enforce IMDSv2, disable the metadata endpoint where it is not needed |
| AWS | A public S3 bucket reveals the owning account ID via s3:ResourceAccount | Turn on account-level S3 Block Public Access, treat the account ID as discoverable |
| Azure / Entra ID | Banned-password protection blocks common English passwords only | Configure custom banned-password lists and require MFA |
| Azure / Entra ID | MFA coverage left uneven across first-party clients | Require MFA through Conditional Access for all users and apps, review coverage |
| Azure / Entra ID | The deprecated Azure AD Graph API exposes Conditional Access policies | Block legacy authentication and legacy API access |
| Google Cloud | Every Workspace user can create projects by default | Scope the projectCreator role deliberately and enable org-level logging |
| Google Cloud | Service account keys never expire once issued | Enforce disableServiceAccountKeyCreation, use Workload Identity Federation |
| Google Cloud | testIamPermissions probing is not logged for many services | Enable Data Access logs where supported, apply least privilege, detect the escalation |
Practice this at Pwned Labs
Changing a default is quick, but knowing which ones matter comes from seeing them abused. Pwned Labs provisions live cloud environments where each of these defaults is the way in, so you can run the attack and then apply the fix. Explore free cloud security labs, and to learn the full attacker tradecraft behind each provider and certify it, see the Amazon Cloud Attack and Defense bootcamp (ACRTP), the Microsoft Cloud Attack and Defense bootcamp (MCRTP), and the Google Cloud Attack and Defense bootcamp (GCRTP).
Frequently asked questions
What is an insecure default in cloud security?
It is a provider setting that ships in a convenient rather than hardened state, such as a credential that does not expire or a log that is off, and it stays exploitable until someone changes it. Insecure defaults are not vulnerabilities, but they are a common starting point for cloud intrusions.
Which cloud insecure default causes the most damage?
Anything that touches identity. On AWS that is an IAM user without MFA, on Entra ID it is uneven MFA coverage, and on Google Cloud it is non-expiring service account keys. Identity is the cloud perimeter, so a weak identity default gives an attacker the most reach.
Is IMDSv1 still a risk if I use current AMIs?
It can be. New instance launches can default to IMDSv2 and the newest instance types are IMDSv2 only, but IMDSv1 can still be enabled and existing instances are not changed automatically, so you should enforce IMDSv2 rather than assume it.
Can attackers really get my AWS account ID from a public bucket?
Yes. The s3:ResourceAccount condition key can be used to confirm the owning account of a public bucket one digit at a time, so treat the account ID as discoverable and keep buckets private by default.
Why is testIamPermissions a problem on GCP?
It lets an identity enumerate its own permissions resource by resource, and for many services those calls are not written to Cloud Audit Logs, so the reconnaissance that precedes privilege escalation can run without a trace. Enable Data Access logs where supported and apply least privilege.
About Pwned Labs
Pwned Labs is a hands-on cloud and AI offensive security training platform. It runs real-world attack labs and bootcamps for AWS, Azure, GCP, Kubernetes and AI systems, including the ACRTP, MCRTP, GCRTP, KRTP and AISRTP certifications. Free labs are at pwnedlabs.io/explore.