A year ago, the Capital One breach showed how different cloud attacks are from the ones we spent twenty years defending against. There was no zero-day in AWS, and no failure of Amazon's infrastructure. An attacker used a server-side request forgery (SSRF) flaw in a misconfigured web application firewall to query the EC2 instance metadata service. They retrieved temporary credentials for an IAM role, and that role could read more than 100 million customer records from S3.
Every part of that chain was a configuration decision made by the customer. That is the defining feature of cloud security in 2020.
The shared responsibility model, in practice
Every cloud provider publishes a shared responsibility model. The provider secures the physical data centres, hypervisors and the global network. The customer secures everything they build and configure on top.
flowchart TB
subgraph Customer["Customer responsibility"]
D[Data & encryption choices]
I[Identity & access management]
A[Applications & workloads]
N[Network configuration<br/>security groups, routes]
O[OS & runtime patching - IaaS]
end
subgraph Provider["Provider responsibility"]
H[Hypervisor & hosts]
P[Physical data centres]
G[Global network & hardware]
end
Customer --> ProviderIn practice, the line moves depending on the service. You patch the operating system on an EC2 instance, but not on Lambda. What never moves is your responsibility for identity, data and configuration. Gartner predicts that through 2025, 99% of cloud security failures will be the customer's fault. That is less an accusation than a statement of where the attack surface actually is.
The new attack surface
1. The control plane is the perimeter
In a data centre, reaching a server's management interface usually meant getting onto the internal network first. In the cloud, the management plane (the APIs that create, change and delete everything) is reachable from the internet by design, protected by credentials. Whoever holds a sufficiently privileged key owns the environment. Leaked access keys in public GitHub repositories are found and abused within minutes.
2. Misconfiguration at machine speed
Infrastructure is now created by code and by console clicks, often by developers rather than infrastructure specialists. Public S3 buckets, security groups open to 0.0.0.0/0 and databases exposed without authentication remain the most common findings in our cloud audits. The same automation that lets teams move fast also lets one mistake be copied into dozens of accounts.
3. Over-privileged identities
IAM policies with "Action": "*" or "Resource": "*" are everywhere, because narrowing them takes effort. The result is that any compromise of a workload, whether through SSRF, a vulnerable dependency or a leaked key, inherits far more access than the workload ever needed.
4. Metadata services and credential theft
Instance metadata endpoints hand out temporary credentials to anything that can make an HTTP request from the instance. AWS introduced IMDSv2 in November 2019, which requires a session token and blocks most SSRF-style abuse, but it has to be switched on.
Controls that make a difference
Enforce guardrails at the organisation level. Use AWS Organizations service control policies, Azure Policy or GCP organisation policies to make the most dangerous states impossible, for example by blocking public S3 buckets account-wide.
# Block public access to S3 for the whole account
aws s3control put-public-access-block \
--account-id 123456789012 \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
# Require IMDSv2 (session tokens) on an existing instance
aws ec2 modify-instance-metadata-options \
--instance-id i-0abc123def4567890 \
--http-tokens required --http-endpoint enabledScan configuration continuously. Configuration drifts daily. Tools such as AWS Config, Security Hub, Azure Security Center or open-source scanners like Prowler and ScoutSuite should run on a schedule, with findings routed to the teams who own each account.
Make least privilege the default. Start roles with no permissions and add what the workload needs. Use access analysers to find unused permissions and trim them.
Protect and rotate credentials. Remove long-lived access keys where roles will do, require MFA for console users, and scan repositories for secrets before they are pushed.
Log the control plane. CloudTrail, Azure Activity Logs and GCP Audit Logs should be enabled in every account and region, shipped to a central account the workload teams cannot modify, and monitored for high-risk events such as new access keys, policy changes and disabled logging.
Where to start
If you run workloads in more than one or two cloud accounts, the most valuable first step is an independent baseline: what is exposed, which identities are over-privileged, and where logging has gaps. Our AWS, Azure and Google Cloud security audits are designed to give you exactly that, with a prioritised list of fixes.