LESSON 59 · ADVANCED5 min read

Cloud Shared Responsibility and Identity

Understand what the cloud provider secures, what you must secure, and why identity is the most important control plane.

OWASP Top 10 · MITRE ATT&CK · NIST CSF 2.0Free to readModule 12 of 14
YOUR NEXT SMALL WINS

By the end, you’ll be able to…

  • Explain the shared responsibility model for infrastructure, platform, and software services.
  • Identify common cloud exposure paths such as public storage and overprivileged identities.
  • Design least-privilege IAM policies and protect the root or global administrator account.
  • Use cloud audit logs and guardrails to detect and prevent drift.

01The Provider Secures the Building, Not Your Data

Cloud providers secure the physical facilities, hardware, hypervisor, and managed-service infrastructure. Customers secure their identities, permissions, data, applications, and configuration. The exact split depends on the service model. With infrastructure as a service, you manage the operating system and everything above it. With platform as a service, the provider manages more of the runtime. With software as a service, you mainly manage users, data, and configuration.

Most cloud incidents are not hypervisor escapes. They are exposed storage, stolen credentials, overprivileged roles, misconfigured network rules, and insecure application code. The provider's security does not compensate for a public bucket or a long-lived access key with administrator rights. The shared responsibility model is a map of your obligations, not a disclaimer.

Start with an inventory. Which cloud accounts exist? Who can create resources? Which data stores are public? Which identities are human, service, or emergency? Which regions are in use? Which logs are enabled? An accurate inventory is the foundation of every cloud control. Without it, you cannot know what you are protecting or what changed.

02Identity Is the New Perimeter

In a cloud environment, an API call with the right identity can create, read, modify, or delete resources without touching a network perimeter. That makes identity the primary security boundary. Protect the root or global administrator account with strong MFA, no day-to-day use, and a break-glass process. Use federated human identities with short-lived sessions instead of long-lived access keys.

Least privilege for cloud IAM means specific actions on specific resources, under specific conditions. A policy that grants '*' actions on '*' resources is an administrator policy, even if it looks like a convenience. Use roles for workloads, scope them to the resources they need, and separate duties between deployment, runtime, and administration. Review unused permissions and remove them.

Cloud audit logs are essential. They record who called which API, from where, with what result, and when. Send them to a central, tamper-resistant destination. Alert on high-risk changes: new administrator grants, disabling of logging, public storage policies, key creation, security-group changes, and access from unusual locations. The audit log is often the only reliable record of a cloud attack.

least-privilege-policy.jsonJSON
{  "Version": "2012-10-17",  "Statement": [    {      "Sid": "ReadSpecificConfigBucket",      "Effect": "Allow",      "Action": ["s3:GetObject", "s3:ListBucket"],      "Resource": [        "arn:aws:s3:::app-config-prod",        "arn:aws:s3:::app-config-prod/*"      ]    },    {      "Sid": "WriteExportsOnly",      "Effect": "Allow",      "Action": ["s3:PutObject"],      "Resource": "arn:aws:s3:::app-exports-prod/*"    }  ]}
Outputstdout
Policy scope: two buckets, read config, write exports.
No delete, no wildcard resource, no IAM or admin actions.

03Network, Data, and Logging Controls

Cloud networks are software-defined. Security groups, network policies, private subnets, and service endpoints decide what can talk to what. Default-deny ingress and egress where practical. Do not expose databases or management interfaces directly to the internet. Use private networking, bastion or session-manager access, and explicit egress controls for workloads that do not need broad internet access.

Encrypt data at rest and in transit, and manage keys deliberately. Provider-managed keys are convenient; customer-managed keys provide more control and auditability. Rotate keys, restrict who can use them, and separate key administration from data access. Backups need the same protection as primary data, plus immutability and restoration testing.

Logging has to survive the attacker. Send audit, flow, and application logs to a separate account or destination with restricted write access. Set retention that matches legal and investigative needs. Monitor for logging being disabled, trails being deleted, or retention being shortened. A cloud environment without durable logs is an environment where incidents become guesswork.

04Guardrails Beat Heroics

A guardrail is an automated constraint that prevents or flags an unsafe configuration. Examples include organisation policies that block public storage, service control policies that deny disabling audit logs, infrastructure-as-code checks that reject wildcard IAM, and admission controllers that block privileged containers. Guardrails scale better than relying on every engineer to remember every rule.

Use preventive controls where the cost of a mistake is high, and detective controls where flexibility matters. A preventive policy might block public buckets entirely; a detective control might alert when a bucket policy changes. Both need clear ownership, documentation, and an exception process. An exception without an expiry date becomes the new default.

Review cloud security posture continuously. Configuration drift is normal in a dynamic environment. The goal is not a one-time clean scan; it is a fast, reliable loop that detects drift, routes it to an owner, and verifies remediation. Treat cloud security as an operational capability, not a project with an end date.

LET IT CLICK

The ideas worth keeping.

  • The provider secures the platform; you secure identity, data, configuration, and applications.
  • Cloud identity is a primary attack surface; scope roles tightly and protect emergency accounts.
  • Durable audit logs and preventive guardrails are foundational cloud controls.
  • Treat cloud security as continuous drift detection and remediation, not a one-time scan.
TURN UNDERSTANDING INTO SOMETHING YOU CAN DO

Make it yours.

Type and test your code right here in the interactive workspace. Run your solution, check the output, and compare with the worked guide when ready.

01

Exercise 1: Apply shared responsibility

For each item, state whether the cloud provider, the customer, or both are responsible, and explain: physical datacentre access, patching a managed database engine, configuring database backups, securing application login, and preventing public storage access.

Explore a worked solution
one_possible_solution.mdCybersecurity
Physical datacentre access: provider. Patching the managed database engine: provider for the engine and underlying host; customer for schema, extensions, and configuration choices. Configuring database backups: customer (the provider offers the capability and may manage infrastructure). Securing application login: customer. Preventing public storage access: customer, though the provider supplies policy tools and may offer account-level guardrails. The split depends on the service model, so document it for each service you use.

Managed services shift some responsibility to the provider, but data, identity, configuration, and application security remain customer obligations.

02

Exercise 2: Review an IAM policy

A policy grants s3:* on * and iam:PassRole on *. Explain the risk and propose a safer design for a deployment pipeline that needs to upload build artifacts and pass a deployment role to a compute service.

Explore a worked solution
one_possible_solution.mdCybersecurity
The policy allows the identity to perform any S3 action on any bucket, including deleting or exposing data, and to pass any role to a service, which can lead to privilege escalation. Safer design: allow s3:PutObject only on the specific artifact bucket and prefix; allow s3:GetObject only if the pipeline needs to read artifacts; restrict iam:PassRole to the single deployment role ARN; add conditions where supported, such as a source account or environment tag; separate build and deploy roles; and log all use. Review and remove unused permissions quarterly.

Wildcards hide enormous authority. Scope actions to the minimum, resources to specific ARNs, and pass only roles that cannot escalate privilege.

A SMALL QUESTION. A USEFUL NEXT STEP.

What stayed with you?

Check the ideas while they’re fresh. Your answers stay in this page and feedback appears as you go.

A LITTLE ACTIVE RECALL0 / 4 answered
01Under the shared responsibility model, who secures the customer's data and access configuration?
02Why is the root or global administrator account high risk?
03What is a cloud guardrail?
04Why should cloud audit logs be sent to a separate, restricted destination?

Keep exploring.

The official references behind this lesson, when you want a second angle or the full details.

One lesson closer.

Reading is a start. Trying it yourself makes the connection.

Completion is saved in this browser. It records reading and hands-on practice progress.