Sub topic 11
Shared responsibility across the models
This chapter assumes you know what IaaS, PaaS, and SaaS are and which layers of the stack each one hands to the provider. It also assumes you are comfortable with terms such as operating system, patch, IP address, and HTTP. Here you will see how the provider-versus-customer split works for security and operations, and where the common mistakes happen.
The core idea
In a traditional data center, you own everything: the building, the power, the servers, the operating system, and the application. In the cloud, the provider takes over some of those layers. The shared responsibility model states which layers belong to the provider and which belong to you.
AWS phrases the split as two halves:
- The provider is responsible for security of the cloud: the facilities, the physical hardware, the network, and the virtualization layer.
- The customer is responsible for security in the cloud: whatever they put on top of that foundation, such as data, accounts, configuration, and (depending on the model) the operating system and application.
Two things never move to the provider in any model. You always own your data and your identities and access, meaning who is allowed to log in and what they can do. The service model only changes how much sits between those two items and the provider's line.
The responsibility line moves up the stack
The stack from the earlier chapters runs from physical facilities at the bottom to data and users at the top. Each service model draws the line at a different height.
The table below gives the same information in more detail.
| Layer | IaaS | PaaS | SaaS |
|---|---|---|---|
| Data and its classification | Customer | Customer | Customer |
| Identities, users, permissions | Customer | Customer | Customer (using the product's settings) |
| Application code and its vulnerabilities | Customer | Customer | Provider |
| Application configuration | Customer | Customer | Shared |
| Runtime and middleware | Customer | Provider | Provider |
| Operating system and patching | Customer | Provider | Provider |
| Guest network rules (firewalls, security groups) | Customer | Shared | Provider |
| Virtualization layer | Provider | Provider | Provider |
| Physical servers, storage, network | Provider | Provider | Provider |
| Data center facilities and power | Provider | Provider | Provider |
"Shared" means both sides act. In PaaS, for example, the provider offers network controls, and you decide who is allowed through them.
What you actually do in each model
IaaS
You receive a virtual machine, and from the first boot you are its administrator. The command below launches one.
# The AMI ID is a placeholder; use an image ID that exists in your region.
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type t3.micro \
--count 1The provider guarantees the host is physically secure and isolated from other customers. Everything after that is your job:
- Apply operating system patches and restart when needed.
- Configure the firewall. On AWS this is a security group, a set of allowed inbound and outbound rules.
- Manage SSH keys or other login methods.
- Install, update, and monitor the runtime and application.
- Back up data. A virtual machine disk is not automatically backed up for you.
PaaS
You upload code, and the platform runs it. The small Flask application below is everything you supply.
from flask import Flask
application = Flask(__name__)
@application.route("/")
def index():
return "Hello from a PaaS-hosted app"The provider patches the operating system and the language runtime. You still own the code and its dependencies. If your requirements.txt pins a library with a known vulnerability, the platform does not fix that for you. You also own environment variables and secrets, the permissions your app runs with, and what data it stores.
SaaS
You use the product through a browser or API. The provider runs everything up to and including the application. You still decide:
- Who has an account and which role each person holds.
- Whether multi-factor authentication is required.
- What data your users put in, and who can share or export it.
- Which third-party apps you authorize to connect to your account.
Where the split goes wrong
Most real incidents happen at the boundary, not inside the provider's half. Three patterns recur.
- Assuming the provider handles it. A team moves a database to a virtual machine and assumes patching and backups come with it. Under IaaS they do not.
- Misconfiguration of a managed service. A storage bucket or shared document is set to public access. The service worked exactly as configured, and the configuration was the customer's responsibility.
- Weak identity controls. A leaked access key or an account without multi-factor authentication gives an attacker legitimate access. The provider cannot tell the attacker from you.
Responsibility is about more than security
The same split applies to operations, not only to security.
| Concern | IaaS | PaaS | SaaS |
|---|---|---|---|
| Availability of hardware | Provider | Provider | Provider |
| Restarting a crashed process | Customer | Provider | Provider |
| Scaling the application | Customer configures | Platform scales, customer sets limits | Provider |
| Backups of your data | Customer | Shared, often a setting you must enable | Shared, check the product's retention rules |
| Compliance evidence for the application | Customer | Customer | Provider provides reports, customer proves their own use |
Compliance deserves a note. Providers publish audit reports for their half, such as data center certifications. Those reports do not make your workload compliant. You must show that your configuration, access controls, and data handling meet the standard you are held to.
Practical habits
- Read the provider's responsibility documentation for each service you adopt. The line differs even between two services from one provider.
- Write down, per workload, who patches what. A short table like the one above works.
- Turn on multi-factor authentication for every human identity first.
- Give each identity the least privilege it needs, meaning the smallest set of permissions that lets it do its job.
- Enable logging so you can see who did what in your half of the stack.
- Treat defaults as a starting point. Review public-access and sharing settings after every change.
Summary
- The provider secures the cloud itself. You secure what you put in it.
- Moving from IaaS to PaaS to SaaS shifts operating system, runtime, and application duties to the provider.
- Data and access control stay with you in every model.
- Incidents cluster at the boundary: unpatched virtual machines, public misconfigurations, and weak identity controls.
Exercise
A company runs its web shop on a virtual machine (IaaS). A critical operating system vulnerability is announced. Who must apply the patch? Would your answer change if the shop ran on a PaaS platform, and what would still be the company's job there?
Show answer
Under IaaS, the company must patch the guest operating system, because the provider only secures the host and virtualization layer. Under PaaS, the provider patches the operating system and runtime. The company is still responsible for its application code, its dependencies, its configuration, its secrets, and who can access its data.
Exercise
A team using a SaaS file-sharing product finds that confidential documents were exposed through a public sharing link. The provider's infrastructure was not breached. Which side is responsible, and name two controls that would reduce the risk?
Show answer
The customer is responsible, because sharing settings and access control belong to the customer in every model. Useful controls include disabling public links by default or restricting them to approved users, requiring multi-factor authentication, applying least-privilege roles, and reviewing sharing activity through audit logs.