Cloud shared responsibility
What the provider secures, and what is still on you
Every cloud provider secures its own infrastructure, but you secure what you put in it. See how duties shift between IaaS, PaaS and SaaS, and where customer mistakes usually happen.
beginner level, 15 minutes, 16 slides.
Cloud shared responsibility
Welcome. Every cloud provider secures its own infrastructure, but you secure what you put in it. See how duties shift between IaaS, PaaS and SaaS, and where customer mistakes usually happen. This talk runs about 15 minutes.
The cloud is someone else's computer, with your name on the data
Moving to the cloud moves some security jobs to the provider. It does not move all of them.
A common mistake is thinking that the cloud provider handles security for you. They handle a lot, but not everything. This deck draws the line between their job and yours.
Two halves of one job
Security of the cloud
- The provider's job
- Hardware, software, networking, facilities
- The infrastructure that runs the services
Security in the cloud
- The customer's job
- Depends on the services you choose
- Your data, your settings, your access
AWS describes it as security of the cloud versus security in the cloud. The first is the building and machinery. The second is what you put inside and who you let in. Azure and Google describe the same split in their own words.
Three service models, in plain words
| Model | Plain meaning | You manage |
|---|---|---|
| IaaS | Infrastructure as a service | Virtual machines, operating systems, applications |
| PaaS | Platform as a service | Your application, without managing VMs or OS |
| SaaS | Software as a service | Using a ready-made application |
IaaS gives you raw virtual machines, so you look after the machine. PaaS hands you a platform and you bring only the application. SaaS is a finished product, like web email. The more the provider runs, the less you carry, but never zero.
The stack shifts as you move up
Top to bottom. Customer duties shrink as you go from IaaS toward SaaS, but the top layers never disappear.
- Your data and identities: always yours
- Application and configuration: yours in IaaS, shared in PaaS and SaaS
- Operating system and runtime: yours in IaaS, provider's in PaaS and SaaS
- Physical network, hosts, datacentre: provider's
Read from the top. Your data and who can access it stay with you in every model. The layers below gradually move to the provider. The very bottom, the buildings and cables, is always theirs.
What you always keep
Microsoft states that for all deployment types you own your data and identities.
- Data: classification, protection, encryption decisions
- Accounts: creating, managing and removing user access
- Endpoints: the laptops and phones that connect
- Compliance with your own data rules
Four things stay with you no matter what you buy. Your data, your accounts, your devices, and your obligations. If something goes wrong in one of these areas, the provider is unlikely to be the one who can fix it.
An example: patching
AWS gives this example of a control where responsibility is split.
Patch management: AWS is responsible for patching and fixing flaws within the infrastructure, but customers are responsible for patching their guest OS and applications.
For abstracted services such as Amazon S3, AWS operates the infrastructure layer, the operating system and platforms. Customers access the endpoints to store and retrieve data.
Patching shows how the line moves. On a virtual machine you patch the operating system. On a storage service the provider does, but you still decide who can read the data in it.
Where customers actually get hurt
Google Cloud's architecture guidance says many cloud security breaches are the direct result of misconfiguration.
- Storage left open to the public
- Roles and permissions far wider than needed
- Long-lived access keys that leak
- Logging switched off or never reviewed
- Encryption keys with loose access rules
The provider's data centres are rarely the weak point. The weak point is a setting in your own account. Two themes repeat: who has access, and what is exposed. Identity and misconfiguration are the main customer risks.
Risk 1: identity
- Use roles, not shared users. People and services get their own identity.
- Least privilege. Grant only the actions and resources needed, nothing more.
- Prefer short-lived credentials. Temporary access over permanent keys.
- Review trust. Check who is allowed to assume each role.
Least privilege means a role can do its job and nothing else. If a role is stolen, the damage is limited. Also review which accounts and users may assume each role. A trust that is too wide is an open door.
A least-privilege policy
Read-only access to one folder in one bucket. Names are placeholders.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::example-reports/finance/*"
}]
}- One action, not s3:*
- One path, not the whole bucket
- No wildcard principals
Compare this to a policy that says allow everything on everything. This one allows reading objects under a single path and nothing else. If the application using it is hijacked, the attacker can read one folder, not delete the account.
Risk 2: misconfiguration and guardrails
Guardrails sit above individual teams and block unsafe settings.
A guardrail is a rule set above your teams that prevents unsafe choices, like making storage public, no matter who clicks the button. Start from a secure configuration and the number of mistakes drops.
Logging and encryption keys
| Topic | Customer question | Why it matters |
|---|---|---|
| Audit logs | Are account activity logs on and kept elsewhere? | No log, no investigation |
| Log protection | Can an attacker delete them? | Tampering hides the trail |
| Encryption choices | Who decides how data is encrypted? | Data and its encryption choices are yours |
| Key access | Who may use or manage each key? | A key anyone can use protects nothing |
Try it: Encrypt data with AWS KMS envelope encryption
Two areas teams forget. First, turn on audit logging and protect it, because you cannot investigate what you did not record. Second, encryption: AWS and Microsoft both put the encryption decisions with the customer, so decide who can use each key.
Check yourself
Check yourself: Which stays with the customer in every service model?
Answer: Data and identities. Microsoft's guidance: for all deployment types you own your data and identities.
Check yourself: On a virtual machine (IaaS), who patches the guest operating system?
Answer: The customer. AWS patches the infrastructure; customers patch their guest OS and applications.
Check yourself: What does least privilege mean for a cloud role?
Answer: Allow only the actions and resources the job needs. If the role is stolen, the damage is limited to what the job needed.
Three questions before we finish.
Take-aways
- Provider secures the cloud, you secure what is in it
- Data and identities are always yours
- The higher the service level, the less you run
- Misconfiguration and identity are the big customer risks
- Use least privilege, guardrails, logging and key control
Before you launch anything in the cloud, read your provider's shared responsibility page and write down your side of it. Then use the labs to practise the controls that sit on your side.
Practise this
- Audit and block public S3 bucket access (offline, the way AWS evaluates it)
- Review every IAM role trust policy in an AWS account: who can assume what, and which trusts are too wide
- Design Google Cloud Organization Policy guardrails - and evaluate their inheritance offline before you ship them
- Encrypt data with AWS KMS envelope encryption
Slides only get you so far. Pick one of these hands-on labs and do it today while it is fresh. Every lab is free.
Sources
- AWS, Shared Responsibility Model
- Microsoft Learn, Shared responsibility in the cloud
- Google Cloud Architecture Center, Shared responsibilities and shared fate on Google Cloud
Every claim in this deck came from these pages, fetched and checked for this release. Read the originals.
Hands-on labs for this deck
- Audit and block public S3 bucket access (offline, the way AWS evaluates it)
- Review every IAM role trust policy in an AWS account: who can assume what, and which trusts are too wide
- Design Google Cloud Organization Policy guardrails - and evaluate their inheritance offline before you ship them
- Encrypt data with AWS KMS envelope encryption
- Detect and prevent tampering with your AWS security logging (CloudTrail, GuardDuty, Config, flow logs)
Open the interactive deck or see all slide decks.
Related
- Audit and block public S3 bucket access (offline, the way AWS evaluates it)
- Review every IAM role trust policy in an AWS account: who can assume what, and which trusts are too wide
- Design Google Cloud Organization Policy guardrails - and evaluate their inheritance offline before you ship them
- Encrypt data with AWS KMS envelope encryption
- Detect and prevent tampering with your AWS security logging (CloudTrail, GuardDuty, Config, flow logs)
- All slide decks
- What is Encryption?
- Free cyber labs