Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 1 of 6 · Concept · 15 min · revision 2

Shared Responsibility and the Cloud Control Plane

Split security work between you and the provider for a virtual machine, a managed database, a serverless function and a SaaS tenant, see why the provider's management API is the main attack surface, and use accounts and organisations as security boundaries.

Contentsand lesson path

What you will learn

  • Explain the shared responsibility split for IaaS, PaaS and SaaS services and identify the controls the customer owns in a given architecture.

Prerequisites: Cloud Basics

01. Why it matters

When a company moves a system to the cloud, some security work moves to the provider and some stays with the company. The provider guards the buildings and patches the hypervisor. Nobody there decides who in your company can read the customer database, whether a storage bucket is public, or whether your staff must use multi-factor authentication (MFA). Those settings are yours, and many cloud breaches start there: a storage bucket left open to the internet, an access key pushed to a public repository, an administrator account without MFA.

The shared responsibility model is the name for this split: a map of which controls you must run yourself. In this lesson you build that map for a small architecture, then look at the part of the cloud that attackers target most: the management API that creates and configures everything, called the control plane.

02. Who owns what: IaaS, PaaS and SaaS

NIST SP 800-145, the standard definition of cloud computing, describes three service models.

Infrastructure as a service (IaaS) gives you virtual machines, disks and networks. Examples are Amazon EC2, Azure Virtual Machines and Google Compute Engine. The provider runs the data centre, the physical hosts and the virtualisation layer. You run everything inside the machine: the guest operating system and its patches, the host firewall, the installed software and its configuration. You also set the network rules around the machine, such as an AWS security group (a virtual firewall attached to the instance).

Platform as a service (PaaS) gives you a running platform, so you deploy code or data without managing servers. A managed database such as Amazon RDS, Azure SQL Database or Google Cloud SQL is PaaS. The provider patches the operating system and the database engine, often in a maintenance window that you choose. You still decide who can connect, which database users exist and what each may do, and how long backups are kept. A serverless function (AWS Lambda, Azure Functions, Google Cloud Run functions) also counts as PaaS; Microsoft's matrix lists Azure Functions there. The provider patches the servers and the language runtime. You own the function code and its libraries, the identity the function runs as (on AWS, its execution role) and the checks on the event data that triggers it. If an upload event contains a file name with shell characters and your code passes it to a command, that injection is your bug. You also choose the runtime version: AWS may stop patching a runtime after it is deprecated, so upgrading is your task.

Software as a service (SaaS) gives you a finished application, such as Microsoft 365, Google Workspace or a CRM. The provider runs almost the whole stack. Even here, you own your users and their MFA, file sharing, which third-party apps may read company data, and the data itself.

Microsoft publishes the split as a matrix of ten areas, from physical data centre to customer data. Three rows stay with the customer in every model: customer data, configurations and settings, and identities and users. AWS says the same thing in shorter words: the provider is responsible for security of the cloud, and the customer for security in the cloud.

03. Mapping an architecture to the controls you own

A responsibility map helps only when applied to a real design. The script below encodes a simplified version of Microsoft's matrix (the three physical rows merged into one) and applies it to four components of a small shop system. It prints the layers you own, the layers you share and concrete tasks for each component. You need Python 3.10 or later and nothing else.

Python · shared-resp/responsibility.py
"""Who owns each layer of each component? Layers follow Microsoft's matrix."""
LAYERS = ["data", "config", "identities", "devices", "app", "network", "OS",
          "physical"]
# C = customer, S = shared, P = provider. One letter per layer, in LAYERS order.
MATRIX = {"on-prem": "CCCCCCCC", "IaaS": "CCCCCCCP",
          "PaaS": "CCCCSSPP", "SaaS": "CCCSSPPP"}
ARCHITECTURE = [  # component, service model, what it is, customer tasks in it
    ("web-vm", "IaaS", "virtual machine running nginx",
     "patch the OS, firewall rules, SSH keys, nginx config"),
    ("orders-db", "PaaS", "managed PostgreSQL database",
     "who can connect, database users and grants, backup retention"),
    ("resize-fn", "PaaS", "serverless function run on each upload",
     "code and libraries, runtime version, execution role, input checks"),
    ("mail-tenant", "SaaS", "Microsoft 365 tenant",
     "MFA, sharing settings, third-party app consents"),
]


def owned(model, who):
    return [layer for layer, c in zip(LAYERS, MATRIX[model]) if c in who]


for name, model, what, tasks in ARCHITECTURE:
    print(f"{name} ({model}, {what})")
    print("  customer:", ", ".join(owned(model, "C")))
    print("  shared:  ", ", ".join(owned(model, "S")) or "-")
    print("  e.g.:    ", tasks)
always = set(LAYERS)
for model in ("IaaS", "PaaS", "SaaS"):
    always &= set(owned(model, "C"))
print("customer in every cloud model:", ", ".join(x for x in LAYERS if x in always))
Terminal
mkdir -p shared-resp && cd shared-resp   # save responsibility.py here
python3 responsibility.py
Expected output
web-vm (IaaS, virtual machine running nginx)
  customer: data, config, identities, devices, app, network, OS
  shared:   -
  e.g.:     patch the OS, firewall rules, SSH keys, nginx config
orders-db (PaaS, managed PostgreSQL database)
  customer: data, config, identities, devices
  shared:   app, network
  e.g.:     who can connect, database users and grants, backup retention
resize-fn (PaaS, serverless function run on each upload)
  customer: data, config, identities, devices
  shared:   app, network
  e.g.:     code and libraries, runtime version, execution role, input checks
mail-tenant (SaaS, Microsoft 365 tenant)
  customer: data, config, identities
  shared:   devices, app
  e.g.:     MFA, sharing settings, third-party app consents
customer in every cloud model: data, config, identities

The last line computes the intersection of the customer columns for IaaS, PaaS and SaaS: data, configuration and identities. Whatever you buy, those three are yours, which is why this skill spends so much time on IAM, storage exposure and SaaS settings.

The managed database and the function print the same layers, because both are PaaS. Their task lines differ, and that is the point of the e.g. column: a matrix row such as "app: shared" means nothing until you name the work. For the database, "shared application" means the provider patches the engine and you manage users and grants. For the function, it means the provider patches the runtime and you own every line of code and every library you ship.

Two limits apply. First, this is a planning aid: each provider documents the split per service, and some services sit between models. Second, "shared" does not mean "half done by each side". It means the provider gives you a feature, such as encryption or a network firewall, and you must switch it on and configure it correctly.

04. The control plane is the main attack surface

Every cloud resource is created and changed through the provider's management API. Starting a VM, opening a firewall port, making a bucket public and creating an access key are all API calls. This management layer is the control plane. The data plane is the traffic to and from the resources themselves: a web request to the VM, a SQL query to the database, a download of an object from a bucket.

In a data centre, an attacker usually needs a network path to your servers. Here, the control-plane API is reachable from the whole internet by design, and network isolation of your VMs does not protect it. What protects it is identity: every call must be signed with valid credentials, and the provider's identity and access management (IAM) policies decide whether the caller may make it. A leaked access key with broad rights is therefore a remote control for your account. With a few calls, its holder can copy a database snapshot to another account, attach an administrator policy to themselves, or switch off audit logging before doing anything else.

The MITRE ATT&CK cloud matrix, a public catalogue of attacker techniques seen in real incidents, lists many control-plane techniques. Examples are Valid Accounts: Cloud Accounts (T1078.004), Account Manipulation: Additional Cloud Credentials (T1098.001), Data from Cloud Storage (T1530) and Disable or Modify Cloud Log (T1685.002, formerly T1562.008). Two defences follow. Treat IAM as your perimeter: grant few permissions, prefer short-lived credentials to stored keys, and require MFA for people. And record every control-plane call in an audit log that the people you watch cannot switch off. The next lessons cover both: IAM policies and escalation paths and audit trails and guardrails.

05. Accounts, organisations and deployment models

An account is the basic container for cloud resources: an AWS account, an Azure subscription or a Google Cloud project. It is a billing unit and also a security boundary. By default, a principal (a user, role or service identity) in one AWS account has no access to resources in another. Cross-account access works only when the other account grants it, for example in a role trust policy, and the caller's own policies allow the call. A common layout has separate accounts for production, development, a sandbox, security tooling, and a log archive where audit logs land and few people can write.

An organisation groups accounts and lets you set rules for all of them from one place. In AWS Organizations, accounts sit in organisational units (OUs), and the management account can attach guardrail policies to an OU. Azure uses management groups above subscriptions, and Google Cloud uses an organisation node with folders above projects. A guardrail set there applies to every account below it, including accounts created later, and member-account administrators cannot remove it.

NIST also defines four deployment models. A public cloud is run by a provider and shared by many customers, each isolated from the others. A private cloud serves one organisation, whether run in its own data centre or by a third party. In a private cloud you run on premises, the organisation also owns the physical and virtualisation layers, as in the on-premises column of the matrix. A community cloud is shared by organisations with common needs. A hybrid cloud joins two or more of these. In a hybrid design, the links between environments are yours: the VPN or private link, identity synchronisation between your directory and the cloud, and firewall rules on both ends.

06. Check your understanding

Practice check · 3 questions

Responsibility and the control plane

Three questions about the split of work and the control plane.

Q1. In `responsibility.py`, you change `orders-db` to a self-managed PostgreSQL server on a VM and set its model to `"IaaS"`. Which layers newly appear on its `customer:` line?
Q2. A developer's access key with broad rights leaks. The production VMs sit in private subnets with no inbound internet access. What can the key's holder still do?
Q3. A serverless function builds a shell command from the file name in an upload event. An attacker uploads a file whose name contains `; curl …`. Under the shared responsibility model, who should have stopped this?
Practice only: not graded, not saved, not evidence.

07. Apply it

Start the skill project with a responsibility map of your own sandbox design:

  • List every component you plan to deploy (for the project: a storage bucket, a VM, a managed database, a CI pipeline and a SaaS trial tenant) with its service model.
  • Extend ARCHITECTURE in responsibility.py with those components and write at least three concrete customer tasks for each.
  • Mark which tasks you will check with a tool later in this skill: IAM review, IaC scanning, audit alerts or a SaaS tenant review.
  • Create the sandbox as its own account and set a budget alarm before you deploy anything.

08. Review prompt

Without looking back, explain: what the customer owns for a VM, a managed database, a serverless function and a SaaS tenant; the three areas that stay with the customer in every model; what the control plane is and why network isolation does not protect it; two control-plane ATT&CK techniques; why accounts and an organisation help security; and what is yours in a hybrid design.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

10 questions · about 8 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check