Managed and cloud services: who secures what

7 min 4 sections 5 practice questions 8 sources citedISC2 objective 8.4

Many organisations no longer run their own software at all. A managed service provider runs it for them, or a cloud provider rents it out by the month. Either way, part of the security work moves to another organisation and part stays at home, and the buyer must know exactly where the line falls before it signs. No background in cloud computing beyond the earlier cloud units is assumed.

By the end of this unit you will be able to:

  • Explain what a managed service provider does and why its access makes it a target
  • Decide who secures each layer under IaaS, PaaS, FaaS and SaaS
  • Name the evidence and contract terms to obtain before adopting a managed or cloud service
  • Explain why misconfiguration is the customer's failure and how a cloud access security broker helps

The payroll bureau's master key

An illustrative example

A chain of garden centres pays its staff through a payroll bureau. The bureau's staff sign in to the chain's own network every month to collect hours and send payslips, using one account with full rights that never expires.

One spring an attacker breaks into the bureau. Within a day the attacker is inside the networks of forty of the bureau's customers, the garden centres among them, using each customer's account for the bureau. The garden centres' own defences were sound.

The garden centres were never attacked directly. What should their contract with the bureau have required?

Managed services: another firm runs the software for you

A managed service provider (MSP) delivers, operates or manages IT or security services for a customer under contract, often inside the customer's own network or from its own data centre. Examples include a payroll bureau and a firm that monitors a customer's network around the clock. Another is a firm that runs a company's enterprise resource planning system, the software for finance, stock and staff.

An MSP usually needs trusted connections and privileged access to each customer's systems. That makes it a prize: an attacker who breaks into one MSP can use it as a way in to every customer it serves, as in the garden centres' case. Allied cyber agencies, including the United Kingdom's NCSC and the United States' CISA, set out what customers should require.

  • The contract says who does each security task: hardening, monitoring, detection and incident response.
  • Every MSP account in the customer's systems uses multi-factor sign-in and is treated as privileged.
  • The MSP monitors and logs its activity and lets the customer see it.
  • The MSP tells the customer how and when it will report an incident that affects them.
  • Backups and recovery meet the customer's own recovery needs.
  • MSP accounts are removed when the contract ends.

The division of duties is written down because gaps form where each side assumes the other is doing something.

Four cloud service models and who secures each layer

Cloud services are rented at four depths. In Infrastructure as a Service (IaaS) the customer rents virtual machines and storage and runs everything above them. In Platform as a Service (PaaS) the provider also runs the operating system and the runtime, and the customer deploys its own application. In Function as a Service (FaaS) the customer supplies small pieces of code, called functions, that run only when an event triggers them. The provider runs everything beneath the function. In Software as a Service (SaaS) the customer uses a finished application.

Who secures each layer, by service model
LayerIaaSPaaSFaaSSaaS
Data, accounts and who may use themCustomerCustomerCustomerCustomer
Configuration and settingsCustomerCustomerCustomerCustomer
Application or function code and its librariesCustomerCustomerCustomerProvider
Runtime and operating systemCustomerProviderProviderProvider
Hardware, network and buildingsProviderProviderProviderProvider

The top two rows never move. Whatever is rented, the customer answers for its data, its accounts and access, and the settings it controls. With FaaS the provider publishes patched runtimes, but in some settings the customer must update or redeploy its functions to receive them. Each function also needs only the permissions its job requires.

Evidence and contract terms before adopting a service

A customer cannot inspect a provider's data centre or audit its staff. It relies on independent evidence, and on promises written into the contract.

SOC 2 Type II report
An independent 's report on the provider's controls against the Trust Services Criteria: security, and optionally , processing , and . The controls are tested over a period of months, not on a single day.
ISO/IEC 27001 certificate
Shows an accredited body found that the provider runs a managed system for information security. Its scope statement says which services it covers.
Security questionnaire
The provider's own written answers to the customer's questions. Useful, but not independently checked.
Service level agreement (SLA)
Measurable promises such as availability and support response times, with remedies when they are missed.
Right to audit
The customer's right to examine the provider, often met through independent reports instead of a visit.
Breach notification
How soon and how the provider must report an incident affecting the customer's data.
Data location
The countries where data may be stored and processed.
Exit terms
How data is returned in a usable format at the end, and how the provider's copies are destroyed.

The scope of a report or certificate is checked before it is relied on: a certificate for the provider's head office says nothing about the service being bought.

Misconfiguration, unapproved services and the broker that sees them

Because settings always remain the customer's, so do settings mistakes. A storage area left readable by the whole internet is one such failure. An administrator account without a second factor is another, and so is a function given rights to every database. Each happens on a service the provider secured correctly.

Settings are therefore defined in reviewed code where possible, checked automatically against an approved , and watched for drift. A setting that differs from the baseline with no approved change behind it is treated as an incident.

A second gap opens when staff adopt cloud services nobody approved, such as a free file-sharing site for a large attachment. This is called shadow IT. A cloud access security broker (CASB) is a placed between an organisation's users and the cloud services they use.

  • Visibility: it shows every cloud service in use, approved or not, so each can be assessed.
  • Data security: it applies data loss prevention rules to data going to and held in cloud services.
  • Threat protection: it spots unusual activity, such as a compromised account downloading everything.
  • : it checks use of cloud services against the organisation's rules and regulations.

Common misconception

“A provider with an ISO/IEC 27001 certificate and a SOC 2 report keeps the customer's data safe.”

The evidence covers the provider's part of the work. The customer's data, accounts and settings remain the customer's to secure, and a mistake there exposes data however good the provider's controls are.

A question, worked through

A hospital trust is moving its outpatient reminder system from virtual machines it rents in the cloud to a Function as a Service offering from the same provider. The security manager is updating the record of who is responsible for each security task after the move.

Which task MOST clearly passes from the trust to the provider?

  1. Patching the operating system that the reminder code runs on
  2. Setting the permissions that each reminder function is granted
  3. Checking the libraries included in the reminder function code
  4. Deciding which staff accounts may read the appointment records
Decide on your answer, then open the reasoning
  1. Under IaaS the trust ran the operating system on its virtual machines. The question asks what moves to the provider under FaaS.
  2. Rule out d. Data, accounts and who may use them stay with the customer under every service model.
  3. Rule out c. The function code and the libraries it includes are written or chosen by the trust, so they remain the trust's under FaaS.
  4. Between a and b: function permissions are a configuration setting, and settings stay with the customer. The provider now runs the operating system beneath the functions.
  5. Patching that operating system is the provider's task. Option a.

Answer: A. Patching the operating system that the reminder code runs on

Choosing between good answers

A question asks which responsibility stays with the customer in every cloud model
choose data, accounts and access, or the configuration settings the customer controls.
A cloud storage area was exposed by a public setting
it is the customer's misconfiguration, however well the provider is certified.
A question asks how to discover which cloud services staff use without approval
choose a cloud access security broker.
A managed service provider has privileged access to a customer's systems
require multi-factor sign-in, visible logging, incident notice and removal of its accounts at exit.

Try it

Follow a request into a cloud service and mark which side secures each point it passes.

Loading the preview.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

A firm moves its email to a software as a service provider.

Which security task stays with the firm after the move?

What to remember

  • A managed service provider runs software or services for a customer, often with privileged access, so one compromised provider can reach many customers.
  • In IaaS the customer runs the operating system and everything above it. In PaaS and FaaS the provider runs the operating system and runtime. In SaaS the provider also runs the application.
  • Data, accounts and access, and configuration settings stay with the customer under every service model.
  • Before a service is adopted, independent evidence is obtained, such as a SOC 2 Type II report and an ISO/IEC 27001 certificate of the right scope. SLA, audit, breach notice, data location and exit terms go into the contract.
  • Misconfiguration is the customer's failure. A cloud access security broker reveals unapproved cloud services and applies rules to their use.

Say it from memory

  1. Why is a managed service provider a security risk, and what should the customer's contract require?

    It often has trusted connections and privileged access to many customers, so a breach at the MSP reaches all of them. Require a stated owner for each security task and multi-factor sign-in on every MSP account, treated as privileged. Also logging the customer can see, incident notice, adequate backups and removal of accounts at exit.

    Read this part again

  2. Who secures the runtime and operating system, and who secures the code, under IaaS, PaaS, FaaS and SaaS?

    Runtime and operating system: the customer in IaaS, the provider in PaaS, FaaS and SaaS. Application or function code: the customer in IaaS, PaaS and FaaS, the provider in SaaS. Data, accounts, access and settings: always the customer.

    Read this part again

  3. How does a SOC 2 Type II report differ from a security questionnaire as evidence about a cloud provider, and what is checked before relying on a certificate?

    A SOC 2 Type II report is an independent auditor's report on the provider's controls, tested over a period of months. A questionnaire is the provider's own written answers and is not independently checked. The scope of a report or certificate is checked first, to confirm it covers the service being bought.

    Read this part again

  4. What is shadow IT, and what four things does a cloud access security broker provide?

    Shadow IT is staff adopting cloud services nobody approved. A CASB is a policy enforcement point between users and cloud services. It provides visibility of every service in use, data security through data loss prevention rules, threat protection against unusual activity, and compliance checks against rules and regulations.

    Read this part again

Sources