Q&A-5What is the core distinction between security 'of' the cloud and security 'in' the cloud?
Answer
The 90-second answer
Security of the cloud is the provider's job: the facilities, hardware, hypervisor, network fabric, and the managed control plane that runs the service. Security in the cloud is yours: the data, identities, configurations, and code you put into those services. The line is not something you can detect at runtime: it is a contractual allocation, defined per service in the provider's shared responsibility model, and it slides up the stack as abstraction increases. One invariant holds across every model: data classification and access control stay with the customer.
| Layer | IaaS (EC2, Azure VM, GCE) | PaaS / managed (S3, Cloud SQL, App Engine) | SaaS (Microsoft 365, Google Workspace) |
|---|---|---|---|
| Data & classification | Customer (in) | Customer (in) | Customer (in) |
| IAM, keys, access policy | Customer (in) | Customer (in) | Customer (in) |
| Application code & config | Customer (in) | Customer (in) | Provider (of) |
| Runtime / middleware | Customer (in) | Provider (of) | Provider (of) |
| Guest OS & patching | Customer (in) | Provider (of) | Provider (of) |
| Hypervisor, network fabric | Provider (of) | Provider (of) | Provider (of) |
| Facilities, hardware, disks | Provider (of) | Provider (of) | Provider (of) |
Why the line moves. The provider takes over each layer it operates. Give it a VM and the guest OS is still yours to patch. Give it a runtime and it patches the runtime, but your code and its data are still yours. Give it the whole application and it runs the app, while you still own the data and decide who can reach it. The boundary is drawn by what the provider operates, not by what is "in the cloud."
A worked case. July 2019: an SSRF flaw in a customer-run WAF (ModSecurity on EC2) let an attacker reach the EC2 instance metadata service and read the IAM role credentials attached to that instance. The role was over-permissive, so the attacker listed S3 buckets and exfiltrated data on roughly 100 million US and 6 million Canadian applicants. AWS's facilities, hypervisor, and S3 service were not breached. The failure was entirely in the cloud: a misconfigured WAF, an over-broad IAM role, and IMDSv1, which hands credentials to any process that can make an HTTP request. AWS shipped IMDSv2 (session-token, hop-limited) in November 2019 to break that path.
Failure modes and how to catch them.
- Reading provider-managed encryption as data confidentiality. SSE-KMS with a provider-managed key protects disks at rest (of). Any principal holding
s3:GetObjectandkms:Decryptreads plaintext through the API (in). Detect with CloudTrail data events onGetObjectand IAM Access Analyzer for public or cross-account bucket policies. - Assuming the provider patches your guest OS in IaaS. It does not. Detect with AWS Inspector findings or SSM Patch Manager compliance, or your own CVE scan.
- Assuming provider logs are your audit trail. CloudTrail Event history keeps management events for 90 days and nothing else; durable retention needs a trail to S3, and data events (S3 object-level, Lambda invoke) are off by default and billed separately. Azure Activity Log and GCP Cloud Audit Logs behave the same way. Detect by checking trail status and whether data events are enabled.
The trade-off worth naming. "Of" versus "in" allocates responsibility, not risk. A provider-side failure (a control-plane outage, a hypervisor CVE) still lands on your incident response, and you still rotate credentials if the provider's control plane is compromised. In practice the weight sits on the customer side: misconfiguration in the cloud is the dominant cause of cloud breaches, which is why the model is a checklist for what you own, not a shield.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.