The Shared Responsibility Model

Who secures what: AWS secures the cloud itself, you secure what you put in it.

What is it?

Security in AWS is split in two. AWS handles *security of* the cloud: data centers, hardware, networking and the virtualization layer. You handle security in the cloud**: your data, identities, permissions, any OS you manage, your code and your network settings.

The line moves with the service type:

  • Infrastructure services (EC2): AWS secures the host and hypervisor. You patch the guest OS, set up the firewall, and protect the app and data.
  • Container services (RDS, ECS-managed pieces): AWS also patches the OS and database platform. You manage database settings, access and data.
  • Abstracted / serverless services (S3, DynamoDB, Lambda): AWS runs even more. You mostly manage data, IAM permissions and encryption choices.

Some duties are shared: patch management (AWS patches the infrastructure, you patch your guest OS and apps), configuration management, and awareness/training.

Exam rule of thumb: if you can configure it or store data on it, it is yours. If you cannot configure it, it is AWS's.

AWS covers: hardware and physical facilities, the global infrastructure (Regions, AZs, edge locations), physical security, the software behind compute, storage, database and networking services, and running managed services. On the hardware side AWS uses the Nitro System and handles physical networking, storage hardware, kernel hardening and boot.

The customer covers:

  • Customer data and how it is classified.
  • Applications and platforms.
  • IAM users and permissions. If you give an employee too many permissions and they cause damage, that is still on you.
  • Guest operating systems.
  • Network and firewall settings (security groups, network ACLs).
  • Client-side encryption and server-side encryption settings (for example on S3 or EBS).
  • Protecting network traffic and turning on monitoring (VPC Flow Logs, GuardDuty, CloudTrail). Tools like Amazon Macie find sensitive data such as PII in S3, but choosing to use them is up to you.

By cloud model:

  • On-premises: the customer owns everything.
  • IaaS: the provider runs physical networking, storage, servers and virtualization.
  • PaaS: the provider also runs the OS, runtime and middleware.
  • SaaS: the provider runs almost everything. The customer manages content, sharing settings, access and usage.

By compute type, from most to least customer work:

  • EC2 bare metal: AWS owns only the physical machine. You may even run your own hypervisor.
  • EC2 virtual machines: AWS runs the hypervisor, host OS and hardware. You manage the guest OS, runtime and apps. Dedicated Instances and Dedicated Hosts sit at this same level: they add single-tenant isolation, not more customer duties.
  • Containers (ECS, EKS, especially with Fargate): you manage container images, configuration, deployment and attached storage.
  • Functions (Lambda): you upload code and set its configuration and permissions. AWS runs everything else.

Your own code is always your job, whatever compute you choose. A traditional VM design (EC2, Auto Scaling, load balancers) carries the most customer responsibility, containers less, serverless the least.

PaaS nuance: with Elastic Beanstalk, the EC2 instances, Auto Scaling group and load balancer are visible and configurable in your account. So you carry more responsibility than with a fully hidden third-party platform.

Explain like I'm 10

Renting an apartment: the landlord looks after the structure, the roof and the main door lock. You lock your own door, choose who gets keys, and decide what to leave on the table. If the building is safe but you leave your door wide open, a theft is on you.

Examples

Who handles what

Task                                   EC2      RDS      S3
-------------------------------------  -------  -------  -------
Physical data center security          AWS      AWS      AWS
Hypervisor / host patching             AWS      AWS      AWS
Guest operating system patching        YOU      AWS      AWS
Database engine patching               YOU      AWS      n/a
Network firewall rules (SG)            YOU      YOU      n/a
IAM users, roles, permissions          YOU      YOU      YOU
Data classification and encryption     YOU      YOU      YOU
Bucket public-access settings          n/a      n/a      YOU

Customer-side check: is this bucket blocking public access?

aws s3api get-public-access-block --bucket zykit-demo-bucket-12345
aws s3api put-public-access-block --bucket zykit-demo-bucket-12345 \
  --public-access-block-configuration \
  BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true

AWS provides the control; turning it on is the customer's job.

How it works

Think in layers: physical, hardware, hypervisor, operating system, platform, application, data and identity. For each service, ask 'does AWS run this layer, or do I?'. The more managed the service, the more layers AWS owns. But your data and your access decisions are always yours.

AWS gives you tools for your side: IAM, encryption, security groups, logging, and compliance reports in AWS Artifact.

  +----------------------------------------------+
  |  CUSTOMER: security IN the cloud             |
  |  data | identities | OS/apps | network config|
  +----------------------------------------------+
  |  AWS: security OF the cloud                  |
  |  hypervisor | hardware | network | facilities|
  +----------------------------------------------+

Why does it exist?

Without a clear split, each side might assume the other handled something, and breaches happen in those gaps. A clear boundary tells auditors, security teams and engineers what to check.

When to use it

Use it whenever you pick a service, write a security policy, or fill in a compliance questionnaire. It tells you what you must configure and what you inherit from AWS.

When not to use it

It is not a legal contract for a specific incident, and it does not replace each service's own docs. Edge cases depend on the service.

Common mistakes

  • Assuming AWS patches your EC2 guest OS.

  • Assuming a managed service means you can ignore access control.

  • Leaving a storage bucket public and blaming the provider.

  • Believing compliance certifications of AWS automatically make your application compliant.

  • Forgetting that responsibilities shift per service.

  • Thinking Dedicated Hosts shift more security work to the customer - the split is the same as regular EC2.

  • Assuming AWS turns on encryption, Flow Logs or GuardDuty for you; enabling them is a customer choice.

  • Believing serverless means the customer has no responsibility - your code, data and permissions are still yours.

Practice exercises

  1. Easy:

    Sort these into AWS vs customer: hypervisor patching, IAM policies, data center guards, application code, hardware disposal.

  2. Medium:

    Compare the customer's responsibilities for EC2 versus Lambda versus S3. What shrinks and what never changes?

  3. Medium:

    Write a short checklist of five customer-side security tasks for a new RDS database.

  4. Medium:

    Draw the responsibility stack for on-premises, IaaS, PaaS and SaaS side by side and shade the customer's layers.

  5. Hard:

    A pen test finds an outdated library in an application on Elastic Beanstalk. Whose responsibility is it and why?

Interview questions

Explain the shared responsibility model.

AWS secures the infrastructure that runs its services (security of the cloud). The customer secures what they build and store on it: data, identities, configuration and guest OS (security in the cloud).

Who patches the guest OS of an EC2 instance?

The customer.

Who is responsible for the physical security of data centers?

AWS.

Exam-style: Which is a customer responsibility? (A) Hypervisor patches (B) Data center cooling (C) Security group configuration (D) Hardware replacement

C.

Exam-style: What is an example of a shared control?

Patch management: AWS patches the infrastructure, customers patch their guest operating systems and applications.

Exam-style: Under the shared responsibility model, who configures server-side encryption on an S3 bucket? (A) AWS (B) The customer (C) Both equally (D) An AWS Partner

B. AWS provides the feature; turning it on and choosing keys is the customer's job.

Exam-style: With AWS Lambda, what is the customer responsible for?

Their function code, its configuration and IAM permissions, and their data. AWS runs the runtime, OS, servers and network.

Exam-style: An employee with overly broad IAM permissions deletes production data. Whose responsibility is this?

The customer's - managing identities and permissions is security in the cloud.

How does responsibility change from EC2 to containers to Lambda?

It shrinks: on EC2 you manage the guest OS and up; with containers you manage images and configuration; with Lambda mainly your code, settings and data.

Do Dedicated Hosts change the shared responsibility split?

No. They give single-tenant hardware, but the customer's duties are the same as on regular EC2.