skip to content
NSCA — Network Security Cloud AnalyticsNSCAintelligence at every scale
All posts
Cloud··11 min read

Cloud misconfiguration — the breaches that start with a single setting

Most cloud breaches are not clever. They are a public bucket, an over-permissive role, or a key in a repo. The fix is not a product — it is a posture you can actually maintain.

The headline cloud breaches almost never involve a brilliant exploit. They involve a storage bucket set to public, a role with far more permission than it needed, an access key committed to a repo, or logging that was never turned on. The cloud did not fail — it did exactly what it was configured to do. The uncomfortable truth of cloud security is that most of it is not about stopping attackers. It is about not leaving the door open.

Why you should read this

Moving to the cloud changes the shape of your risk. The provider secures the infrastructure; you secure how you use it — and "how you use it" is where almost every cloud breach lives.

If you run cloud or platform engineering: this is the short list of what actually causes incidents. If you are an exec: this is why "we're on AWS, it's secure" is a misunderstanding of who is responsible for what. If you are a developer: this is the handful of settings worth getting right before anything clever.

Why misconfiguration beats zero-days

Attackers are economically rational. Why burn a zero-day when a scan of the internet turns up thousands of misconfigured cloud resources for free?

The reality of cloud attacks is mostly automation. Bots continuously scan for public storage buckets, exposed databases, leaked keys, and open management ports. The "attack" is often just someone — or something — finding a resource you left open and walking in. No exploit required.

This is good news and bad news. Bad: the attack surface is constantly probed, and a mistake is found fast. Good: the fixes are within your control. You are not defending against nation-state exploit chains. You are defending against your own configuration drift.

The four that cause most breaches

Cloud security has a long checklist, but a short list of misconfigurations causes the majority of real incidents.

Public storage. A bucket or blob store set to public, holding data that should never have been exposed. The most common cloud breach there is.

Over-permissive identity. A role, user, or service account with far more permission than its job requires — often wildcard admin. When that identity is compromised, the blast radius is everything.

Exposed secrets. Access keys, tokens, and passwords committed to source code, baked into container images, or left in environment variables. Bots scan public repos for these within minutes of a push.

Disabled or ignored logging. Audit logging off, or on but never monitored. You cannot detect or investigate what you never recorded.

Get these four right and you have closed the doors most breaches walk through.

Shared responsibility is where it goes wrong

Every cloud provider publishes a shared responsibility model, and almost every breach lives in the half that customers misread.

The provider secures the cloud — the physical data centers, the hypervisor, the managed service internals. You secure what you put in the cloud and how you configure it — your data, your identities, your access rules, your network settings. The provider will give you the tools to lock the door. They will not lock it for you.

The failure mode is assuming "managed" means "secured." A managed database is patched by the provider — and still wide open if you put it on a public network with a weak password. The line moves depending on the service, and the customer side of the line is where the incidents are.

CSPM is a flashlight, not a fix

Cloud Security Posture Management (CSPM) tools scan your environment and flag misconfigurations. They are genuinely useful, and they are also widely misunderstood.

A CSPM shows you the problems. It does not fix them, and it does not stop new ones from being created tomorrow. Teams buy a CSPM, get a dashboard with four hundred findings, triage the first twenty, and let the rest become wallpaper. Six months later the posture is worse, because new resources are misconfigured faster than the backlog is cleared.

CSPM is the flashlight that shows you the mess. The fix is the discipline — and ideally the automation — that stops the mess from accumulating. A tool that finds problems nobody remediates is just a more detailed record of your exposure.

Identity is the perimeter in the cloud too

In a data center, the network was the perimeter. In the cloud, identity is. Every action — reading a bucket, spinning up a server, deleting a database — is an authenticated API call. Whoever holds the credentials holds the power.

This reframes cloud security as identity security. The questions that matter: Does each identity have only the permissions it actually uses? (Almost never — permission sprawl is the default.) Are there standing long-lived access keys that could be stolen, or short-lived scoped credentials? Are human and machine identities both governed, or only the humans? Is anyone reviewing what permissions are granted versus actually used?

The highest-leverage cloud security work is usually least privilege on identities. It is also the least exciting, which is why it is so often skipped.

Guardrails beat audits

There are two ways to manage cloud configuration: find mistakes after they are made, or prevent them from being made. Most teams do the first. The leverage is in the second.

Guardrails are policies enforced automatically, before a resource exists. Storage cannot be made public — the policy refuses it. A role cannot be created with wildcard admin. A resource cannot be deployed without logging enabled or without required tags. Infrastructure is defined as code and scanned before it is applied, so the misconfiguration is caught in the pull request, not in a breach report.

The shift is from detection to prevention. An audit tells you the door was open last Tuesday. A guardrail makes the door impossible to leave open. Mature cloud programs put most of their effort into guardrails and use scanning to catch what slips through — not as the primary control.

Multi-cloud multiplies the problem

Many organizations are not on one cloud; they are on two or three, plus a long tail of SaaS. Each has its own identity model, its own permission language, its own logging, its own defaults. The misconfigurations are the same in spirit and completely different in detail.

This is where posture quietly degrades. The team is fluent in one provider and improvising in the others. Controls that are tight in the primary cloud are loose in the secondary one nobody owns. The leaked key is in the cloud the security team forgot was in use.

The answer is not to ban multi-cloud — that ship has sailed. It is consistent policy across clouds: the same least-privilege standard, the same logging baseline, the same guardrails, expressed in each provider's terms but governed centrally. One standard, enforced everywhere, beats three teams each doing their best.

The 30-day hardening plan

If your cloud posture is uncertain, this is the order that closes the most exposure fastest.

Week 1 — find the open doors. Scan for public storage, exposed databases, and open management ports. Close anything public that should not be. Search your repos and images for committed secrets; rotate anything found.

Week 2 — fix identity. Find and remove wildcard admin permissions. Replace long-lived access keys with short-lived scoped credentials where you can. Turn on MFA for every human with console access.

Week 3 — turn on the lights. Enable audit logging across every account and region. Route it somewhere someone actually watches. Set one or two high-value alerts: new public resource, root account used, permission escalation.

Week 4 — build the guardrails. Encode the rules you just enforced by hand as automated policy, so the same mistakes cannot be made next month. Scan infrastructure-as-code before it deploys.

This is not complete cloud security. It is the 20 percent of the work that removes 80 percent of the realistic risk.