Skip to content
London, United Kingdom · Est. 1994
English

Unit 4: Cloud Security and Compliance

Who is responsible for what in cloud security, how identities and data are protected, and how to avoid the common mistakes behind most cloud incidents.

Unit 4 of 5 · about 54 minutes

4.1 Shared responsibility and identity

Security in the cloud is a partnership. The provider secures the underlying infrastructure, and the customer secures what it builds and stores on top. Misunderstanding this division is one of the most frequent causes of cloud security problems, because each side may assume the other is taking care of something that, in fact, nobody is.

The shared responsibility model

Providers often summarise the model as follows: the provider is responsible for security of the cloud, and the customer is responsible for security in the cloud.

  • Security of the cloud (provider): physical security of data centres, the hardware, the global network, the virtualisation layer and the provider's managed services.
  • Security in the cloud (customer): data, user identities and permissions, configuration of services, network rules, the operating systems and applications the customer manages, and encryption choices.

As Unit 1 showed, the dividing line moves with the service model. With IaaS, the customer patches the operating system. With PaaS, the provider does. With SaaS, the provider runs nearly everything, but the customer still controls who has access, how sharing settings are configured and what data is entered. In all models, data and access remain the customer's responsibility.

Remember: Most cloud security incidents involve customer-side issues such as weak access controls or misconfigured settings, not failures of the provider's infrastructure. The provider gives you secure tools; using them well is your job.

Identity is the new perimeter

In a traditional office network, a firewall around the building's network was the main line of defence. In the cloud, services can be reached from anywhere, so the key question becomes: who or what is making this request, and should it be allowed? This is the domain of identity and access management (IAM).

IAM deals with two questions:

  1. Authentication: proving who you are, for example with a password plus a second factor.
  2. Authorisation: deciding what you are allowed to do once your identity is confirmed.

Identities include people, such as staff and contractors, and also non-human identities, such as applications, functions and automated pipelines, which need permissions to call other services.

Core IAM practices

  • Multi-factor authentication (MFA) for all users, and especially for administrators. MFA greatly reduces the risk from stolen passwords.
  • Least privilege: give each identity only the permissions it needs to do its job, and no more.
  • Role-based access: assign permissions to roles, such as "billing viewer" or "database administrator", and then assign people to roles, rather than granting permissions person by person.
  • Single sign-on: connect cloud services to the organisation's central identity system, so that when someone leaves, their access can be removed in one place.
  • Protect the root or owner account: the original account that created a cloud subscription has unlimited power. It should have strong MFA, be used only for rare tasks and never for day-to-day work.
  • Avoid long-lived keys: prefer temporary credentials issued to applications automatically, rather than access keys stored in code or configuration files.
  • Review access regularly: remove unused accounts and permissions, especially after role changes.

Separation and segregation

Many organisations divide their cloud estate into separate accounts or subscriptions, for example one each for development, testing and production. This limits the damage a mistake or compromise in one area can do to others. It also makes it easier to apply stricter controls to production systems and to see costs by area.

Common mistakes

  1. Sharing a single administrator login among several people.
  2. Granting full administrator rights to developers or applications "temporarily" and never removing them.
  3. Committing access keys to code repositories, where they can be found by others.
  4. Failing to remove access for staff and contractors who have left.

A quarterly access review, in which each manager confirms who in their team needs which cloud permissions, is a simple and effective control.

In practice

If you manage a team that uses cloud services, you can make a real difference without technical expertise. Check that MFA is enforced for everyone. Ask who holds administrator rights and whether each person genuinely needs them. Confirm there is a process to remove access promptly when people leave or change roles. And ask your technical colleagues whether any applications still use long-lived access keys. These four questions address many of the weaknesses behind real incidents.

4.2 Protecting data in the cloud

Data is usually the most valuable thing an organisation keeps in the cloud, and protecting it is always the customer's responsibility. This lesson covers how data is classified, encrypted, backed up and handled in line with privacy requirements.

Know your data

You cannot protect data well if you do not know what you have and how sensitive it is. Many organisations use a simple classification scheme, such as:

  • Public: information intended for anyone, such as published brochures.
  • Internal: everyday business information not meant for the public.
  • Confidential: information that could cause harm if disclosed, such as contracts or financial forecasts.
  • Restricted: highly sensitive information, such as health records, payment card details or large volumes of personal data.

The classification then determines the controls: who can access the data, whether it can be shared externally, how it must be encrypted and how long it is kept.

Encryption

Encryption transforms data so that it can only be read with the correct key. Two situations matter most:

  1. Encryption in transit protects data as it travels across networks, using protocols such as TLS, the technology behind the padlock symbol in web browsers.
  2. Encryption at rest protects data stored on disks, in databases and in object storage, so that stolen storage media or copies are unreadable without the keys.

Major cloud providers encrypt much stored data by default, but customers should check settings for each service rather than assume.

Key management

Encryption is only as strong as the protection of its keys. Cloud providers offer key management services that store keys securely, control who can use them and record every use. Options range from provider-managed keys, which are simplest, to customer-managed keys, where the customer controls when keys are rotated or disabled, and in some cases keys held entirely outside the provider. More control brings more responsibility: if a customer loses or deletes its own key, the data may be unrecoverable.

Passwords, database credentials and API keys used by applications are known as secrets. They should be kept in a secrets management service, not written into code or configuration files.

Backup and recovery

Cloud services are highly durable, but data can still be lost through accidental deletion, software faults, malicious insiders or ransomware. A widely recommended approach is the 3-2-1 rule: keep at least three copies of important data, on two different types of storage, with one copy kept separately. In the cloud, "separately" often means a different account and region, with immutable backups that cannot be altered or deleted for a set period, even by an administrator.

Tip: A backup that has never been restored is a hope, not a plan. Schedule regular restore tests and record how long they take, so you know whether your recovery objectives can actually be met.

Privacy and compliance

When personal data is stored in the cloud, data protection law applies. Requirements differ between countries, but common principles found in laws such as the EU's GDPR include collecting only the data needed, using it for clear purposes, keeping it secure, retaining it no longer than necessary and respecting individuals' rights. Under the GDPR and similar laws, the customer usually remains responsible as the "controller" of personal data, while the cloud provider acts as a "processor" under a written agreement.

Organisations should check:

  • which regions data is stored and processed in, and whether any international transfers are lawful;
  • the provider's data processing terms and its use of sub-processors;
  • independent assurance reports and certifications, such as ISO/IEC 27001 for information security management, which providers commonly publish;
  • sector-specific rules, for example payment card standards for organisations that handle card data.

A provider's certifications cover its own part of the shared responsibility model. They do not make the customer's configuration compliant.

Common mistakes

  1. Copying production personal data into test environments with weaker controls.
  2. Keeping data indefinitely because storage is cheap, contrary to retention policies.
  3. Storing backups in the same account as production, where an attacker can delete both.

In practice

For any important cloud system, you can ask: what classification is the data, and do the controls match it? Is data encrypted in transit and at rest, and who controls the keys? Where are backups held, are they protected from deletion, and when were they last restored? Where is personal data stored, and is there a data processing agreement in place? Clear, documented answers show that data protection has been taken seriously.

4.3 Threats, misconfiguration and monitoring

Cloud environments face many of the same threats as traditional IT, but some risks are more prominent because of the speed and scale at which cloud resources can be created and changed. This lesson looks at common threats, the central problem of misconfiguration, and how organisations detect and respond to problems.

Common threats

  • Compromised credentials: stolen passwords or leaked access keys, often obtained through phishing or found in public code repositories.
  • Misconfiguration: settings that unintentionally expose data or services, such as publicly readable storage or databases open to the internet.
  • Vulnerable software: unpatched operating systems, applications or container images with known weaknesses.
  • Insecure interfaces: poorly protected application programming interfaces (APIs) that allow unauthorised access to data.
  • Ransomware and destructive attacks: encrypting or deleting data and backups to extort payment.
  • Resource hijacking: attackers using compromised accounts to run their own workloads, such as cryptocurrency mining, at the victim's expense.
  • Denial of service: overwhelming services with traffic so legitimate users cannot reach them.

Why misconfiguration matters so much

In the cloud, a single setting can make a database or storage bucket reachable by anyone on the internet. Automated tools continually scan the internet looking for exactly such exposures. Because cloud resources are easy to create, environments can grow quickly, with test systems, forgotten storage and old accounts that nobody is watching. Misconfiguration is therefore widely regarded as one of the leading causes of cloud data exposure.

The response is to make secure configuration the default rather than relying on individuals to remember every setting:

  1. Secure baselines: agreed standard settings for each service, such as "storage is private by default" and "all disks are encrypted".
  2. Infrastructure as code: defining environments in reviewed configuration files, so changes can be checked before they are applied.
  3. Policy guardrails: organisation-wide rules that prevent risky actions, such as creating resources in unapproved regions or making storage public.
  4. Posture management tools: services that continuously scan cloud accounts against best-practice benchmarks and report deviations.

Tip: Published security benchmarks, such as those from the Center for Internet Security, offer free, widely recognised checklists for configuring major cloud platforms securely.

Monitoring and detection

Cloud platforms record a great deal of activity. Key sources include:

  • Audit logs, which record who did what and when, for example who changed a permission or deleted a database;
  • Network logs, which record traffic flows;
  • Application logs, which record events inside the software;
  • Threat detection services, which analyse logs to flag suspicious behaviour, such as logins from unusual places or unexpected spikes in compute usage.

Logs should be switched on, kept for an appropriate period, protected from tampering and ideally sent to a central place where they can be searched and correlated. Many organisations use a security information and event management (SIEM) system for this. Alerts should be directed to people who know how to respond, and should be tuned so that important warnings are not lost among trivial ones.

Incident response

Even well-protected organisations have incidents. A cloud incident response plan should state who is in charge, how to contain a problem (for example by disabling a compromised key or isolating an instance), how to preserve evidence such as logs, how to restore services, and when to notify customers, regulators or the provider. Many data protection laws set deadlines for reporting certain breaches; the GDPR, for example, generally requires notification to the regulator within 72 hours of becoming aware of a reportable personal data breach.

A simple security checklist

  • MFA enforced for all users, with the root account locked down.
  • No public storage or databases unless deliberately approved.
  • Audit logging enabled in every account and protected.
  • Guardrail policies and posture scanning in place.
  • Systems patched and images scanned.
  • Backups isolated, immutable and tested.
  • An incident response plan that has been rehearsed.

In practice

A useful exercise for any team is a short tabletop rehearsal. Suppose an alert shows that an access key belonging to a reporting application has been used from an unfamiliar country to create dozens of large instances. Who would be called? How would the key be disabled and the instances stopped? How would you check whether any data was accessed? Walking through such a scenario for an hour reveals gaps in plans, contacts and permissions before a real incident does.

Case study: Closing gaps after a near miss at a property firm

Larchfield Lettings, a fictional property management company, used the public cloud for its tenant portal. A developer copied tenant records into a storage bucket to test a new feature and, to save time, made the bucket publicly readable. A posture management scan flagged the setting the next morning, and the bucket was locked down before any access was recorded in the logs.

Rather than simply blaming the developer, the IT manager reviewed why the mistake had been possible. She found that developers had full administrator rights, test environments used real personal data, and nothing prevented public storage from being created.

The company introduced several changes. Developers moved to role-based permissions without the ability to make storage public. A guardrail policy blocked public buckets across all accounts unless approved by security. Test environments switched to synthetic data. Audit logs were sent to a separate, protected account, and the incident response plan was updated with a named contact at the provider. The data protection officer documented the near miss and the reasons it did not need to be reported.

Activity

Pick one cloud service your organisation uses, or one you use personally. Using the shared responsibility model, list three security responsibilities that belong to the provider and three that belong to the customer. Then identify the single change that would most reduce risk on the customer side and explain why.

Compare with a model answer

A good answer chooses a specific service, for example a SaaS file-sharing platform. It lists provider responsibilities such as physical data centre security, maintaining and patching the underlying servers, and protecting the provider's network from attack.

It lists customer responsibilities such as enforcing multi-factor authentication, setting appropriate sharing permissions and external link policies, and removing access for people who leave. It might also mention classifying sensitive files and keeping independent backups.

For the most valuable change, a strong answer makes a reasoned choice, such as enforcing MFA for all users because stolen passwords are a common route to cloud data, or restricting external sharing because accidental public links can expose confidential files. It explains the choice in terms of likelihood and impact.

Key takeaways

  • Under the shared responsibility model, the provider secures the cloud and the customer secures what it puts in the cloud, including data, identities and configuration.
  • Identity is central to cloud security: enforce multi-factor authentication, least privilege, role-based access and careful protection of the root account.
  • Classify data, encrypt it in transit and at rest, manage keys and secrets properly, and keep isolated, tested backups.
  • Misconfiguration is a leading cause of cloud data exposure and is best prevented with secure baselines, infrastructure as code, guardrails and continuous scanning.
  • Audit logging, monitoring and a rehearsed incident response plan allow problems to be detected and handled quickly.

Unit check

Create a free account to answer the check, save your progress and receive your free certificate.

Create a free account Log in
← Unit 3 Unit 5 →
WhatsApp