Sub topic 1
The shared responsibility model at a glance
Prerequisites
This chapter assumes you have the following background:
- You know the core AWS services at a working level: EC2 for virtual servers, S3 for object storage, and IAM for users, roles, and policies.
- You understand AWS Regions and Availability Zones, and why a workload might span several of them.
- You know general security concepts: encryption at rest and in transit, authentication versus authorization, and least privilege.
- You can read a short AWS CLI command and tell what resource it changes.
You do not need prior experience with AWS compliance programs or AWS Config. Later chapters introduce them.
Why the model exists
When you run a workload on your own hardware, you own every layer of its security. That includes the locks on the data center door, the firmware on the servers, the operating system, and the application. When you move to AWS, some of those layers become AWS's job and the rest stay yours. The AWS shared responsibility model is the agreement that says which is which.
The model matters for three practical reasons:
- Incident response. During an incident you need to know whether a fix is yours to make or whether you must open a case with AWS.
- Audits. Auditors ask who operates each control. "AWS handles it" is only a valid answer for controls AWS actually operates.
- Effort. Money and engineering time spent on a control AWS already provides is wasted. A control you wrongly assume AWS provides is a gap.
The model is not a legal disclaimer. It is a design input. You use it the way you use a network diagram: to decide where to put controls and who owns them.
The two halves
The model splits security into two halves, and AWS uses one phrase for each.
Security of the cloud is AWS's responsibility. AWS protects the infrastructure that runs every AWS service. That covers:
- the physical facilities, including power, cooling, and access control
- the host hardware and the network equipment
- the global network between Regions and Availability Zones
- the virtualization layer, including the hypervisor that isolates one customer's instances from another's
- the software that implements the managed services themselves
Third-party auditors test and report on these controls as part of AWS compliance programs. Chapter 2 covers this half in detail.
Security in the cloud is the customer's responsibility. You decide what you put in AWS and how you configure it. That covers:
- your data and its classification
- your IAM identities, policies, and credentials
- your network configuration, such as security groups and routing
- the operating system and application layers of anything you manage
- encryption choices and key management
- logging, monitoring, and the response to what they show
Chapter 3 covers this half in detail.
The line is not in one place
A common beginner mistake is to treat the model as a single fixed line: AWS below it, you above it. The line moves depending on the service you use. The more of the stack AWS operates for you, the less you have to secure yourself. The more AWS operates, the fewer settings you control, but the settings you do control still matter.
Here is the same idea for three service types. Chapter 4 explains them in full.
| Service type | Example | AWS operates | You still own |
|---|---|---|---|
| Infrastructure | Amazon EC2 | Hardware, hypervisor, global network | Guest OS, patches, firewall rules, application, data, IAM |
| Container | Amazon RDS | Hardware, OS and database software patching, platform | Data, database users, network access, encryption settings |
| Abstracted | Amazon S3 | Nearly the entire platform and its endpoints | Data, bucket policies, access settings, encryption choices, IAM |
A different way to say this: your duties never drop to zero. Even on the most abstracted service, you own your data, your identities, and your configuration choices. The remaining work narrows, and it becomes more about configuration than about operation.
A first look at a customer-side control
Services that AWS runs can still be exposed by customer choices. S3 is operated entirely by AWS, yet whether a given bucket is public is a configuration decision that belongs to you. This command turns on all four Block Public Access settings for one bucket:
aws s3api put-public-access-block \
--bucket amzn-s3-demo-bucket \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=trueEach setting closes a different route to public exposure:
BlockPublicAclsrejects requests that try to add a public ACL.IgnorePublicAclsignores any public ACLs that already exist.BlockPublicPolicyrejects bucket policies that grant public access.RestrictPublicBucketslimits access to a bucket with a public policy to AWS service principals and authorized users in the account.
AWS built and runs this feature, and AWS will enforce it correctly once it is on. AWS will not turn it on for an existing bucket on your behalf. The command shows the pattern you will see throughout the course: AWS supplies the capability, and you decide to use it.
How to ask "who owns this?"
For any control you are unsure about, work through these questions in order.
- Is the control about the physical or virtual infrastructure under the service? Examples are the hypervisor, the data center, or the storage hardware. AWS owns it.
- Is the control about something you chose, created, or configured? Examples are an IAM policy, a bucket setting, or a security group rule. You own it.
- Is the control about software running in a place you manage? An example is the guest operating system on an EC2 instance. You own it. If AWS manages that software, as with the database engine in RDS, AWS owns the patching and you own the configuration that touches your data.
- Does the control involve both sides? Patch management and configuration management are the usual cases. AWS patches the infrastructure and you patch your guest OS and applications. This is what AWS calls a shared control.
Question 4 is why the model is not a simple two-column list. Chapter 10 treats inherited, shared, and customer-specific controls in more depth.
A short list of control types
AWS describes three kinds of controls, and it helps to know the words before the later chapters use them.
- Inherited controls come entirely from AWS. Physical and environmental controls are the classic example. You rely on them and cite AWS evidence for them.
- Shared controls apply to both sides, but each side covers a different part. For example, AWS patches the underlying infrastructure and you patch your guest OS.
- Customer-specific controls depend on how you use AWS. Service and communications protection that you apply based on your own data is an example.
What "owning" a control means in practice
Owning a control is more than knowing it exists. For each control you own, you should be able to answer four questions:
- What is the intended state? For example, "all EBS volumes in this account are encrypted."
- How is that state enforced? For example, by an account-level setting or a policy.
- How do you know the state holds? For example, by a rule that evaluates it continuously.
- Who is notified when it drifts?
For the encryption example, this command makes new EBS volumes in a Region encrypted by default, and the second command confirms the setting:
aws ec2 enable-ebs-encryption-by-default --region us-east-1
aws ec2 get-ebs-encryption-by-default --region us-east-1The setting is per Region, so you must repeat it in each Region you use. The setting also applies only to volumes created after you enable it. Existing unencrypted volumes stay unencrypted until you replace them.
The last two questions are about verification. A configuration you have not checked is an assumption. A check that lists AWS Config rules currently reporting non-compliant resources is one way to test your side of the model:
aws configservice describe-compliance-by-config-rule \
--compliance-types NON_COMPLIANTAn empty result is meaningful only if you have deployed rules that cover the controls you care about. A clean report from zero rules proves nothing. Chapter 12 covers verification in detail.
Where the model applies, and where it does not
The model describes security roles, not liability for every outcome. It does not mean AWS is responsible for any breach you did not cause, and it does not mean you are responsible for anything AWS does wrong in its own layers. It also does not replace your own compliance obligations. Your regulators hold you accountable for your workload, even for the controls AWS operates. AWS evidence helps you show that those controls exist, but you must include it in your own audit story. Chapter 11 shows how to find that evidence.
Several limits are worth remembering:
- The model is the same in every Region, but your configuration is not. A control you set in one Region does not apply to another.
- Using a managed service reduces your operational work but does not remove your duty to configure it.
- AWS publishes the model, but each service has its own documentation that says which settings you control. Read it before assuming.
Summary of the model
- AWS secures the cloud: facilities, hardware, the global network, the virtualization layer, and the software that implements its services.
- You secure what you put in the cloud: data, identities, network configuration, and the software layers you manage.
- The line between the two moves with the service type, but your responsibility for data, identity, and configuration stays.
- Every control should have a named owner, a way to enforce it, and a way to verify it.
The rest of this course takes each half, then each service type, then each control area, and ends with a responsibility matrix for a whole workload.
Exercise
A team runs a database on Amazon RDS. They say, "RDS is a managed service, so AWS handles all of its security." Name one thing AWS secures and two things the team still owns.
Show answer
AWS secures the underlying hardware and facilities, and for RDS it also patches the operating system and database engine software. The team still owns its data and the network access to the database, such as which security groups allow connections. It also owns the database users and permissions, and the choice to turn on encryption. Any of these two would be correct.
Exercise
You run aws ec2 enable-ebs-encryption-by-default --region us-east-1 in a production account. Name two reasons this does not finish the "encrypt all EBS volumes" control.
Show answer
First, the setting applies only per Region, so you must repeat it in every other Region you use. Second, it affects only volumes created after it is enabled, so existing unencrypted volumes remain unencrypted until you replace them. You also still need a way to verify the state, such as an AWS Config rule.