Shared Responsibility Model
Security in the cloud is a partnership. AWS sums it up in one sentence:
- AWS is responsible for security of the cloud: the physical data centres, hardware, the network, and the virtualisation layer that separates customers.
- You are responsible for security in the cloud: your data, who can access it, your operating systems, applications and configuration.
Who does what
| Area | AWS | Customer |
|---|---|---|
| Physical security of data centres | ✔ | |
| Hardware, host OS, hypervisor | ✔ | |
| Global network | ✔ | |
| Guest operating system on EC2 (patching) | ✔ | |
| Security group and firewall rules | ✔ | |
| IAM users, roles, MFA | ✔ | |
| Encrypting data at rest and in transit | provides the tools (KMS, TLS) | turns them on and manages keys |
| Application code | ✔ | |
| Customer data | ✔ always |
The line moves with the service type. On EC2 (IaaS) you patch the operating system. On RDS (managed) AWS patches the database engine, but you still choose who can connect. On Lambda or S3 (serverless/managed) AWS runs almost the whole stack, but you still decide on access policies and encryption.
Model: the responsibility line per service
STACK = ["physical", "network", "hypervisor", "guest os", "runtime/engine",
"application", "network rules", "access policies", "data"]
# Layers the CUSTOMER is responsible for, per service
CUSTOMER = {
"EC2": {"guest os", "runtime/engine", "application", "network rules", "access policies", "data"},
"RDS": {"network rules", "access policies", "data"},
"Lambda": {"application", "access policies", "data"},
"S3": {"access policies", "data"},
}
print(f"{'layer':<16}" + "".join(f"{s:>8}" for s in CUSTOMER))
for layer in STACK:
cells = ["you" if layer in CUSTOMER[s] else "AWS" for s in CUSTOMER]
print(f"{layer:<16}" + "".join(f"{c:>8}" for c in cells))layer EC2 RDS Lambda S3
physical AWS AWS AWS AWS
network AWS AWS AWS AWS
hypervisor AWS AWS AWS AWS
guest os you AWS AWS AWS
runtime/engine you AWS AWS AWS
application you AWS you AWS
network rules you you AWS AWS
access policies you you you you
data you you you you
Read the bottom rows: access policies and data are always yours. Most real cloud breaches are not hacked data centres, they are customer-side mistakes such as a public S3 bucket or a leaked access key.
Model: whose fault is it?
Classifying incidents is a good way to learn the model. Each incident is tagged with the layer where it happened:
incidents = [
("Bucket made public by mistake", "access policies", "S3"),
("Hypervisor vulnerability", "hypervisor", "EC2"),
("Unpatched web server OS", "guest os", "EC2"),
("Database engine bug fixed in a patch", "runtime/engine", "RDS"),
("Lambda code logs passwords", "application", "Lambda"),
("Port 22 open to the whole internet", "network rules", "EC2"),
]
CUSTOMER = {
"EC2": {"guest os", "runtime/engine", "application", "network rules", "access policies", "data"},
"RDS": {"network rules", "access policies", "data"},
"Lambda": {"application", "access policies", "data"},
"S3": {"access policies", "data"},
}
for text, layer, service in incidents:
owner = "customer" if layer in CUSTOMER[service] else "AWS"
print(f"{owner:<8} | {service:<6} | {text}")customer | S3 | Bucket made public by mistake
AWS | EC2 | Hypervisor vulnerability
customer | EC2 | Unpatched web server OS
AWS | RDS | Database engine bug fixed in a patch
customer | Lambda | Lambda code logs passwords
customer | EC2 | Port 22 open to the whole internet
Inherited, shared and customer-specific controls
Compliance auditors use three more terms:
- Inherited controls: fully handled by AWS, you inherit them (physical and environmental controls).
- Shared controls: both sides have a part (patch management: AWS patches the infrastructure, you patch your guest OS; awareness and training: each side trains its own staff).
- Customer-specific controls: only you (for example, routing and zoning data inside your own services).
AWS publishes its audit reports (SOC, ISO, PCI) in AWS Artifact, so you can show auditors the AWS half of the evidence.
Test yourself
Under the shared responsibility model, who patches the guest operating system of an EC2 instance?
- AWS
- The customer
- Nobody, it is automatic
- The hardware vendor
Which item is ALWAYS the customer's responsibility?
- Physical security
- The hypervisor
- Their data and who can access it
- The global network
Where do you download AWS compliance reports such as SOC reports?
- AWS Artifact
- AWS Config
- Amazon Inspector
- AWS Budgets