Lesson 4 of 4 Secure Design Principles

Privacy by Design and Shared Responsibility

Privacy and cloud responsibilities must be designed in, not added later. This lesson covers privacy by design and the shared responsibility model for cloud and outsourced services.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the principles of privacy by design.
  • Explain the division of responsibilities in IaaS, PaaS and SaaS.

Privacy by design

Privacy by design, formulated by Ann Cavoukian, builds privacy into systems and business practices from the start. Its seven principles are: proactive not reactive (preventive not remedial); privacy as the default setting; privacy embedded into design; full functionality (positive-sum, not zero-sum); end-to-end security across the full lifecycle; visibility and transparency; and respect for user privacy. The GDPR requires data protection by design and by default.

Techniques include data minimisation, pseudonymisation (replacing identifiers with codes that can be reversed with a separately held key), anonymisation (irreversibly removing identification), purpose limitation, retention limits, privacy-enhancing technologies and privacy impact assessments during design.

The reason privacy is designed in rather than added later is cost and effectiveness. Once a system has collected years of unnecessary personal data, shared it with partners and built features that depend on it, removing that data is expensive and may break the product. Making the privacy decision at design time, often through a privacy impact assessment, costs little and avoids the problem entirely.

Select all that apply

Designing privacy in

Exam skills 3.1.9

Identify design decisions that apply privacy by design.

Log in to try this activity Interactive activities are free with an account.
Worked example

Designing a fitness app

A team building a fitness app wants users' exact location to map their runs. How do the privacy by design principles shape the feature?

Privacy as the default means that location sharing with other users is off until the user turns it on, and that the app's default profile is private. Data minimisation means collecting location only during a recorded run, not continuously, and the team might blur the start and end points of shared routes so that they do not reveal users' home addresses.

Retention limits mean that raw location points are deleted after the route summary is produced. Full functionality means achieving the product goal, mapped runs, without forcing users to trade away their privacy to get it.

Shared responsibility

In cloud services, the provider and customer share security responsibilities. The provider is responsible for security of the cloud: data centres, hardware, networking and the virtualisation layer. The customer is responsible for security in the cloud, and the split depends on the service model, as the following table shows.

LayerIaaSPaaSSaaS
Data, users and accessCustomerCustomerCustomer
ApplicationCustomerCustomerProvider
Runtime, middleware, OSCustomerProviderProvider
Virtualisation, hardware, facilitiesProviderProviderProvider

The customer always remains responsible for its data, identities and access configuration, and accountable to its own customers and regulators. Most cloud breaches result from customer misconfiguration, such as publicly exposed storage or weak identity controls. Contracts and the provider's documentation define the exact split.

The model is easiest to understand by asking who can change a given layer. In IaaS, the customer installs and configures the operating system, so only the customer can patch it. In PaaS, the provider runs the operating system and runtime, and the customer supplies only the application code and its configuration, so the customer is responsible for flaws in that code but not for operating system patches. In SaaS, the customer cannot change the application at all, but it still decides who has accounts, what permissions they have, whether multi-factor authentication is required and what data is uploaded. A SaaS customer that leaves an administrator account without MFA has failed in its share of the responsibility, however secure the provider's platform is.

Shared responsibility also applies to outsourcing beyond the cloud, such as managed security services and payroll providers. In every case, the organisation can transfer tasks, but not its accountability to customers and regulators, so it must verify through contracts, attestations and monitoring that the provider performs its share.

The following diagram shows who manages each layer in the three cloud service models.

Who manages each layer in the three cloud service models. In IaaS the customer manages the guest operating system and everything above it; in PaaS the provider also manages the operating system; in SaaS the provider manages the application too. The provider is responsible for the hypervisor and physical infrastructure in every model, and the customer always for its data and access configuration.
The split is the usual one; individual services can differ.
Sort into groups

Who patches what?

Exam skills 3.1.10

Decide who is responsible for each task in the named service model.

Log in to try this activity Interactive activities are free with an account.
Worked example

Who is responsible

A company runs its application on IaaS virtual machines. A breach occurs because the guest operating system was missing a patch released six months earlier. Who was responsible for applying it?

In IaaS the customer manages the guest operating system, so applying the patch was the customer's responsibility. Had the company used a PaaS or SaaS offering, the provider would manage the operating system. The provider remains responsible for the hypervisor and physical infrastructure in every model.

Check yourself

In SaaS, which responsibilities always remain with the customer?

Show answer

Its data, user accounts and access configuration.

Exam Tips

Remember for the exam

  • Privacy should be the default setting, built in during design.
  • In IaaS the customer patches the OS; in SaaS the provider does.
  • Data and access are always the customer's responsibility.