Sub topic 13
Building a responsibility matrix for your workload
This chapter assumes you know the split between security of the cloud and security in the cloud. It also assumes you can tell infrastructure, container, and abstracted services apart. You should be able to read a short AWS CLI command. Here you pull those ideas into one document: a responsibility matrix for a single workload.
What a responsibility matrix is
A responsibility matrix is a table that lists each security control for a workload and names who owns it. The owner is AWS, your team, or a shared arrangement. For every control you also record the evidence that shows the control works.
The matrix keeps the shared responsibility model from staying abstract. "The customer is responsible for configuration" is true, but it does not tell an auditor or an on-call engineer who must fix an open bucket. The matrix does.
Step 1: Inventory the workload
List every AWS service the workload uses. Then classify each one.
- Infrastructure services, such as Amazon EC2. You manage the guest operating system, patching, and the firewall settings.
- Container services, such as Amazon RDS. AWS manages the operating system and database engine patching. You manage database access, parameter settings, and data.
- Abstracted services, such as Amazon S3. AWS manages almost the whole stack. You manage data, bucket configuration, and access.
The classification sets how many rows each service needs. EC2 produces many rows for you. S3 produces fewer, but each one matters.
Step 2: Choose control areas
Group the rows by the duties covered in earlier chapters. Use the same areas for every service so gaps are easy to see.
- Identity and access
- Data protection and encryption
- Network and resource configuration
- Monitoring and logging
- Physical and infrastructure security
Step 3: Assign an owner and a type
For each control, record one of three types: inherited, shared, or customer-specific. Then name a single accountable owner. For customer controls, name a team or role, not "the customer."
Step 4: Attach evidence
Each row needs proof. For AWS-owned rows, the proof is an AWS compliance report from AWS Artifact. For your rows, the proof is a configuration check or a service report.
Example matrix
This sample covers a small web application with an EC2 tier, an RDS database, and an S3 bucket.
| Service | Control | Type | Owner | Evidence |
|---|---|---|---|---|
| All | Data center physical security | Inherited | AWS | SOC 2 report in AWS Artifact |
| EC2 | Guest OS patching | Customer-specific | Platform team | Patch compliance report |
| EC2 | Security group rules | Customer-specific | Platform team | AWS Config rule results |
| RDS | Engine patching | Shared | AWS patches, platform team sets maintenance window | Maintenance settings |
| RDS | Storage encryption | Customer-specific | Data team | Config rule results |
| S3 | Public access settings | Customer-specific | Application team | Block Public Access setting |
| S3 | Durability of the storage layer | Inherited | AWS | AWS Artifact report |
Step 5: Back the rows with checks
Do not trust a row until a check confirms it. These commands match the evidence column above.
aws s3api put-public-access-block \
--bucket amzn-s3-demo-bucket \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=trueaws ec2 enable-ebs-encryption-by-default --region us-east-1
aws ec2 get-ebs-encryption-by-default --region us-east-1aws configservice describe-compliance-by-config-rule \
--compliance-types NON_COMPLIANTThe third command lists the AWS Config rules that currently report non-compliant resources. A row whose rule appears there is not meeting its stated owner's duty.
Keeping the matrix current
The matrix goes stale when the workload changes. Review it when you add a service, change a service's configuration model, or finish an audit. Store it with your infrastructure code so changes go through the same review as everything else.
Exercise
Your workload adds Amazon DynamoDB, an abstracted service. Name two rows you would add to the matrix, with the owner and type for each.
Show answer
Examples: (1) Table access through IAM policies, customer-specific, owned by the application team, with IAM policy review as evidence. (2) Encryption key choice for the table, customer-specific, owned by the data team, with the table's encryption settings as evidence. A third valid row is the underlying hardware and storage security, inherited and owned by AWS, with an AWS Artifact report as evidence.
Exercise
A row says "Security group rules: shared, owner AWS and the platform team." What is wrong with it, and how would you fix it?
Show answer
Security groups are configured entirely by the customer, so the control is customer-specific. AWS provides the feature but does not decide the rules. Change the type to customer-specific and name the platform team as the single owner, with AWS Config rule results as evidence.