COMP 6660 · Lesson 5.5 Cloud Security

Module 2 · Unit 5 · Lesson 5.5

COMP 6660 · Enterprise Cybersecurity Cloud Security

Most enterprise workloads now run in cloud environments. This lesson examines the shared responsibility model, cloud identity, misconfiguration, and the cloud-native controls through which enterprises secure their cloud estates.

Reading time: ~110 minutes Activities: 3 Unit 5 · Lesson 5 of 8

00 Introduction

Lessons 5.1–5.4 examined the platforms, endpoints, applications, and databases that constitute the enterprise estate. This lesson examines the platform on which most of them now run: the cloud.

Cloud adoption has been the most significant change in enterprise IT over the past two decades. Where enterprises once ran workloads in data centres they owned and operated, most enterprises now run workloads on cloud platforms they neither own nor administer. The implications for enterprise security are profound. The enterprise no longer controls the physical infrastructure, the network, the hypervisor, or the platform; it operates within an environment administered by a cloud provider — under a shared responsibility model that divides security responsibilities between the provider and the enterprise.

Cloud security is not simply "the same controls in a different place." The characteristics of cloud environments — programmatic interfaces, ephemeral resources, rapid provisioning, shared infrastructure, and provider-managed services — produce distinct security considerations. Identity replaces network as the primary control plane. Misconfiguration becomes a primary risk. Cloud-native controls — IAM policies, security groups, encryption services, logging services — replace traditional infrastructure controls. And the scale and speed of cloud operations require automation in ways that on-premises environments did not.

This lesson examines cloud security in detail. It establishes why cloud security matters. It examines the cloud service and deployment models — IaaS, PaaS, SaaS, and the deployment models that determine what the enterprise manages and what the provider manages. It examines the shared responsibility model — the foundation of cloud security and a frequent source of misunderstanding. It examines cloud identity and access management — the primary control plane in cloud environments. It examines cloud misconfiguration — the most common source of cloud-related breaches. It examines cloud network and data protection — the controls that protect data and traffic in cloud environments. It examines cloud security posture management — the tools that detect misconfiguration continuously. It examines cloud workload protection and cloud monitoring and logging. And it closes with the pitfalls that recur across cloud security programmes.

The material here builds on everything from Lessons 5.1–5.4 — the OS, endpoint, application, and database principles all apply to cloud environments — and connects to the architecture material from Unit 4 and the identity material from Module 1. It prepares for the container and virtualisation security material in Lesson 5.6, which examines the specific platforms through which cloud workloads are increasingly delivered.

How to read this lesson

Sections 1–3 establish the framing, the service models, and the shared responsibility model. Sections 4–6 examine the principal cloud security controls. Sections 7–9 examine CSPM, cloud workload protection, and monitoring. Section 10 addresses the pitfalls. If you are short on time, read Sections 3, 4, and 5 carefully — the shared responsibility model, cloud identity, and misconfiguration are the most consequential material for enterprise practice and for the assessment.

01 Learning objectives

By the end of this lesson you should be able to:

Lesson objectives

  • Explain why cloud security matters and how it differs from on-premises security.
  • Describe the cloud service and deployment models and how they determine security responsibilities.
  • Explain the shared responsibility model — what the provider manages, what the enterprise manages, and how responsibility varies by service model.
  • Apply cloud identity and access management principles — least privilege, role-based access, and federation.
  • Analyse cloud misconfiguration and the specific exposures it produces.
  • Describe cloud network and data protection — security groups, network controls, encryption, and key management.
  • Explain cloud security posture management (CSPM) and its role in cloud security.
  • Evaluate cloud workload protection and cloud monitoring and logging.
  • Identify common enterprise pitfalls in cloud security programmes.

These objectives contribute to Unit 5 outcome U5.2 (cloud and platform security), and to Module 2 outcomes M2.9 and M2.10. See the Unit 5 learning outcomes page for the full mapping.

02 Why cloud security matters

Cloud environments now host the majority of enterprise workloads — applications, databases, analytics, and increasingly operational systems. Understanding why cloud security matters clarifies the priorities that inform the rest of this lesson.

Most workloads now run in cloud environments

  • New enterprise applications are predominantly deployed to cloud environments; existing applications are progressively migrated.
  • Cloud environments host production workloads — customer-facing applications, databases, analytics, and increasingly operational systems.
  • Cloud security is therefore not a specialty — it is the primary security context for most enterprise workloads.

Cloud environments change the security model

  • The enterprise does not control the physical infrastructure, the network, the hypervisor, or the platform — the cloud provider does.
  • Security responsibilities are divided between the provider and the enterprise — under the shared responsibility model.
  • Cloud-native controls — IAM, security groups, encryption services, logging services — replace traditional infrastructure controls.

Cloud misconfiguration is a primary risk

  • Cloud environments are programmatically controlled — through APIs, through configuration, through policy — and configuration errors are common.
  • Public storage buckets, permissive IAM policies, exposed management interfaces, and unencrypted databases have been sources of substantial data exposure.
  • Misconfiguration is the most common cause of cloud-related breaches — more common than exploitation of vulnerabilities.

Identity is the primary control plane

  • In cloud environments, access is controlled primarily through identity — cloud IAM, federated identity, service accounts.
  • Network location is less meaningful — cloud resources are accessed from anywhere, by identities that may be human or machine.
  • Cloud identity security — least privilege, strong authentication, monitoring — is the primary control for cloud environments.

Scale and speed require automation

  • Cloud environments operate at scale — thousands of resources, created and destroyed rapidly.
  • Manual security configuration does not scale; automation is required for configuration, for policy enforcement, for monitoring.
  • Infrastructure as code, policy as code, and automated compliance monitoring are the disciplines through which cloud security is achieved at scale.

The consequence of cloud security failures

Cloud security failures appear across documented breaches:

  • Misconfigured storage. Public cloud storage buckets have been the source of substantial data exposure — customer records, intellectual property, and other sensitive data. A recurring pattern in cloud incidents.
  • Permissive IAM policies. Cloud identity policies that grant excessive permissions — permitting access to resources that should be restricted. A frequent source of cloud compromise.
  • Exposed management interfaces. Cloud management interfaces exposed to the internet — permitting adversaries to reach the control plane.
  • Compromised cloud credentials. Cloud access keys, service account credentials, and federated credentials compromised through phishing, through exposed configuration, or through compromised workloads.
  • Supply-chain compromise through cloud services. Cloud services used as attack infrastructure — for command-and-control, for exfiltration, for cryptomining — as part of broader campaigns.

The pattern is consistent: cloud security failures permit access to enterprise data and resources — frequently through misconfiguration rather than through exploitation of technical vulnerabilities. Cloud security is essential — the principles from Lessons 5.1–5.4 apply, but the implementation adapts to the cloud environment.

The most useful framing

The most useful framing for cloud security is that the enterprise retains accountability for its data and workloads even when it does not operate the underlying infrastructure. Cloud adoption transfers operational responsibility but not accountability. The enterprise remains responsible for access control, for data protection, for compliance, and for the configuration of security features — regardless of what the provider manages.

03 Cloud service and deployment models

Cloud environments are described through service models — which determine what the provider manages and what the enterprise manages — and deployment models — which determine how the cloud is deployed and who uses it. Understanding these models is prerequisite to understanding the shared responsibility model examined in Section 3.

Cloud service models

Cloud service models
Model Provider manages Enterprise manages
IaaS
Infrastructure as a Service
Physical infrastructure, network, storage, hypervisor, virtualisation platform Operating systems, middleware, runtimes, applications, data, identity, configuration
PaaS
Platform as a Service
Physical infrastructure, network, storage, hypervisor, operating systems, middleware, runtimes Applications, data, identity, configuration
SaaS
Software as a Service
Physical infrastructure, network, storage, hypervisor, operating systems, middleware, runtimes, applications Data, identity, configuration (typically limited), integration
FaaS
Function as a Service
All infrastructure and platform layers, plus runtime management Function code, data, identity, configuration of the function
Container as a Service Container orchestration platform and underlying infrastructure Container images, application code, data, identity, configuration
Serverless All infrastructure and platform layers, plus scaling and lifecycle Application code, data, identity, configuration

The general pattern is that as the model moves from IaaS toward SaaS, the provider manages more and the enterprise manages less — but the enterprise always remains responsible for its data, for access to it, and for compliance with regulatory obligations.

Cloud deployment models

Cloud deployment models
Model Characteristics
Public cloud Cloud services provided by a third party — AWS, Azure, Google Cloud — to multiple customers on shared infrastructure. The dominant model for most enterprises.
Private cloud Cloud infrastructure dedicated to a single organisation — whether on-premises or hosted. Provides greater control and isolation; frequently used for regulated or sensitive workloads.
Hybrid cloud Combination of public and private cloud — with workloads distributed across both. Frequently used to keep sensitive workloads on-premises while leveraging public cloud for scalable workloads.
Multi-cloud Use of multiple cloud providers — frequently for resilience, for avoiding vendor lock-in, or for using best-of-breed services. Multiplies management complexity.
Community cloud Cloud infrastructure shared by organisations with common interests — frequently sectoral. Less common than the other models.

Cloud security implications of service and deployment models

The service and deployment models have direct implications for cloud security:

  • IaaS requires the most security effort. The enterprise manages operating systems, applications, and configuration — the same disciplines as on-premises infrastructure, but in a cloud environment.
  • PaaS shifts platform security to the provider. The provider manages patching, scaling, and platform configuration — but the enterprise retains responsibility for application, data, and identity.
  • SaaS shifts most security to the provider. The provider manages the application and its security — but the enterprise remains responsible for access, for data, for integration, and for configuration of the SaaS application's security features.
  • FaaS and serverless shift runtime to the provider. The provider manages the runtime and platform — but the enterprise remains responsible for the function code, for its identity, and for the data it processes.
  • Multi-cloud multiplies complexity. Each provider has its own security model, its own controls, and its own tooling — multiplying the management burden and increasing the risk of gaps.
  • Hybrid cloud requires integration. Workloads spanning public and private cloud require consistent security controls and consistent identity — producing integration challenges.

The most useful framing

The most useful framing for cloud service and deployment models is to think of them as determining the boundary of what the enterprise manages. The enterprise's security programme must cover everything on its side of the boundary — regardless of what the provider manages — and must account for the interactions between the two sides. The boundary is different in IaaS, PaaS, and SaaS; the enterprise's controls must adapt accordingly.

04 The shared responsibility model

The shared responsibility model is the foundation of cloud security. It divides security responsibilities between the cloud provider and the enterprise — specifying what the provider manages and what the enterprise manages. Understanding the shared responsibility model is essential — misunderstanding it is a frequent source of cloud security failures.

What the shared responsibility model provides

  • Clear division of responsibilities. The model specifies what the provider secures and what the enterprise secures — providing clarity about who is accountable for what.
  • Foundation for accountability. The enterprise remains accountable for its data, for access to it, and for compliance with regulatory obligations — regardless of what the provider manages.
  • Different in each service model. The division of responsibilities varies by service model — IaaS, PaaS, and SaaS place different responsibilities on each party.
  • Different in each provider. Each cloud provider publishes its own interpretation of the shared responsibility model — enterprises must understand the model for each provider they use.

The division of responsibilities

The shared responsibility model — typical division
Layer Provider Enterprise
Physical security Fully provider-managed Not applicable
Infrastructure (network, storage, compute) Fully provider-managed Not applicable in IaaS/PaaS; configuration in IaaS
Hypervisor and virtualisation Fully provider-managed Not applicable
Operating system Managed in PaaS, SaaS, FaaS Enterprise-managed in IaaS
Runtime and middleware Managed in PaaS, SaaS, FaaS Enterprise-managed in IaaS
Application Managed in SaaS Enterprise-managed in IaaS, PaaS
Identity and access Platform provided; policy enterprise-managed Always enterprise-managed
Data Storage provided; encryption options provided Always enterprise-managed (classification, protection, retention)
Configuration Secure defaults; monitoring options Always enterprise-managed (network, IAM, service configuration)
Compliance Provider certifications Enterprise obligations to regulators, customers, and data subjects

What the shared responsibility model means in practice

The shared responsibility model produces several practical implications:

  • The enterprise remains accountable. The provider secures the platform; the enterprise secures what it puts on the platform — and remains accountable for the outcomes. "The provider was responsible" is not a defence when the enterprise's data is exposed.
  • Identity and access are always enterprise-managed. Regardless of service model, the enterprise controls who can access its resources, how they authenticate, and what they are permitted to do.
  • Data is always enterprise-managed. Regardless of service model, the enterprise classifies, protects, retains, and disposes of its own data.
  • Configuration is always enterprise-managed. Regardless of service model, the enterprise configures its cloud resources — and misconfiguration is the enterprise's responsibility.
  • Compliance is always enterprise-managed. The provider may hold certifications; the enterprise's obligations to regulators, to customers, and to data subjects remain the enterprise's.

Common misunderstandings

The shared responsibility model is frequently misunderstood — producing cloud security failures:

  • "The provider handles security." The provider handles the platform; the enterprise handles the workload, the data, and the configuration. Assuming the provider handles everything is a frequent source of exposure.
  • "The provider patches the OS." In IaaS, the enterprise patches the OS. In PaaS and SaaS, the provider does. The line depends on the service model — and the enterprise must understand it for each service it uses.
  • "The provider encrypts the data." The provider provides encryption options and encryption of the underlying storage. The enterprise controls whether data is encrypted, how keys are managed, and what data is encrypted.
  • "The provider monitors for threats." The provider monitors the platform. The enterprise monitors its workloads, its identities, its data, and its configuration.
  • "The provider is compliant, so we are compliant." The provider's certifications cover the provider's responsibilities. The enterprise's compliance depends on the enterprise's own controls — including those on the cloud platform.

The most consequential misunderstanding

The most consequential misunderstanding of the shared responsibility model is the assumption that the cloud provider handles more than it actually does. Enterprises frequently assume that the provider patches, monitors, encrypts, and secures — when in fact the provider only handles the layers on its side of the boundary. The result is that the enterprise's responsibilities are neglected — producing the misconfigurations, the unencrypted data, the unpatched workloads, and the unmonitored activity that appear in cloud breach reports.

05 Cloud identity and access management

Cloud identity and access management is the discipline of determining who and what can access cloud resources, and what they can do with them. In cloud environments, identity is the primary control plane — replacing network location as the primary basis for access decisions.

Cloud identity concepts

Cloud identities

  • Human users. Individual users who access cloud resources — through cloud-native accounts, through federated identity, through cloud directories.
  • Service accounts. Accounts used by workloads, applications, and services — to access cloud resources programmatically. Frequently over-privileged and rarely reviewed.
  • Roles. Cloud roles that can be assumed by users, services, or resources — providing temporary credentials with defined permissions.
  • Workload identities. Identities assigned to workloads — cloud instances, containers, serverless functions — for accessing cloud services.
  • External identities. Identities from external providers — partners, customers, third parties — that access cloud resources through federation.

Cloud identity models

  • Cloud-native identity. Identities created and managed in the cloud provider's identity service — AWS IAM, Azure AD, Google Cloud IAM.
  • Federated identity. External identities — from an enterprise identity provider — trusted by the cloud provider through federation (SAML, OIDC).
  • Federated access. Users authenticate to the enterprise identity provider and receive cloud access through federation — avoiding separate cloud credentials.
  • Service federation. Cloud services assuming roles to access other cloud services — through role assumption, through workload identity federation.

Cloud access principles

  • Least privilege. Every cloud identity should have only the permissions it requires — applied to human users, to service accounts, and to roles.
  • Deny by default. Cloud IAM policies should deny by default and grant explicitly — the standard model in cloud identity services.
  • Short-lived credentials. Cloud credentials should be short-lived where possible — through role assumption, through temporary credentials, through workload identity.
  • Separation of duties. Cloud permissions should be scoped — no single identity should have unrestricted access to all cloud resources.
  • Continuous monitoring. Cloud identity activity should be monitored — detecting anomalies, detecting misuse, detecting compromise.

Cloud IAM in practice

Implementing cloud IAM involves several activities:

  • Inventory cloud identities. Identify all cloud identities — human users, service accounts, roles — and their permissions. This is the foundation — without an accurate inventory, cloud IAM is not possible.
  • Reduce permissions. Remove excessive permissions — from human users, from service accounts, from roles. Apply least privilege systematically.
  • Use roles and federation. Prefer roles and federated identity over long-lived cloud accounts — reducing the risk of credential compromise.
  • Eliminate long-lived credentials. Replace static access keys and long-lived credentials with temporary credentials — through role assumption, through workload identity.
  • Manage service account credentials. Service account credentials should be secured — vaulted, rotated, and monitored for anomalies.
  • Enforce strong authentication. Human cloud users should authenticate with strong authentication — multi-factor, preferably phishing-resistant.
  • Monitor cloud identity activity. Monitor for anomalies — unusual authentication, unusual API calls, unusual access patterns.

Common cloud IAM weaknesses

  • Over-privileged service accounts. Service accounts with permissions beyond what they require — expanding the consequence of compromise.
  • Long-lived access keys. Static access keys that are created once and never rotated — providing persistent access if compromised.
  • Exposed credentials. Cloud credentials exposed in code repositories, in configuration files, in container images, or in logs.
  • Root account usage. Cloud root accounts used for routine operations — providing excessive privilege and lacking accountability.
  • Missing MFA. Cloud accounts without multi-factor authentication — vulnerable to credential compromise.
  • Permissive IAM policies. IAM policies that grant excessive permissions — frequently through wildcards (e.g., "Action": "*") — expanding access beyond what is required.
  • No monitoring of identity activity. Cloud identity activity not monitored — misuse and compromise not detected.
  • Orphaned identities. Cloud identities whose owners have departed or whose purpose has ended — providing continuing access.

The most useful framing

The most useful framing for cloud identity is that it is the primary control plane for cloud environments. In a cloud context, there is no network perimeter to protect; access is controlled by identity. Every cloud security programme must therefore have identity at its centre — managing identities, applying least privilege, using short-lived credentials, and monitoring identity activity.

06 Cloud misconfiguration

Cloud misconfiguration is the most common source of cloud-related breaches — more common than exploitation of technical vulnerabilities. Because cloud environments are programmatically controlled, configuration errors are frequent and consequential.

Why cloud misconfiguration is common

Configuration complexity

  • Cloud environments have many configuration options — network, identity, encryption, logging, service configuration.
  • Configuration is spread across many services — IAM, VPC, security groups, storage, compute, databases — each with its own configuration model.
  • Complexity produces errors — the more configuration options, the more opportunities for misconfiguration.

Speed and scale

  • Cloud resources are created rapidly — through APIs, through automation, through infrastructure as code.
  • Configuration errors propagate at the speed of deployment — a misconfigured template produces many misconfigured resources.
  • Scale multiplies the consequences of misconfiguration — a single misconfigured resource can affect many workloads.

Insecure defaults and examples

  • Cloud services frequently have defaults that prioritise ease of use over security.
  • Documentation and examples frequently use configurations that are convenient but not secure.
  • Developers and administrators frequently follow examples without considering security implications.

Distributed responsibility

  • Cloud resources are frequently deployed by many teams — developers, operations, data teams — with varying security expertise.
  • Responsibility for cloud security is distributed — producing gaps where no one is accountable.
  • Distributed responsibility produces inconsistent configuration — some resources well-configured, others not.

Limited visibility

  • Cloud resources are frequently not fully inventoried — producing gaps in configuration management.
  • Cloud environments change continuously — new resources, new services, new configurations — making visibility challenging.
  • Without visibility, misconfiguration is not detected until it is exploited.

Common cloud misconfigurations

Common cloud misconfigurations
Misconfiguration Risk
Public storage buckets Storage made publicly accessible — intentionally or by mistake — exposing data to anyone with the URL.
Permissive IAM policies Policies granting excessive permissions — frequently through wildcards — expanding access beyond what is required.
Unrestricted security groups Security groups permitting traffic from anywhere (0.0.0.0/0) — exposing services to the internet.
Exposed management interfaces Management interfaces exposed to the internet — providing attack surface for the control plane.
Unencrypted data Data stores without encryption — permitting data exposure if storage is compromised.
Missing logging Cloud logging not enabled — impairing detection, investigation, and compliance.
Public snapshots and images Snapshots and images made publicly accessible — exposing data from previous states.
Default credentials Services deployed with default credentials — providing well-known entry points.
Over-permissive service accounts Service accounts with administrative permissions — expanding the consequence of compromise.
Missing network segmentation Cloud resources without network isolation — permitting lateral movement within the cloud estate.

Preventing and detecting misconfiguration

Preventing and detecting cloud misconfiguration requires several disciplines:

  • Infrastructure as code. Defining cloud resources in code — through Terraform, CloudFormation, or equivalent — so that configuration is versioned, reviewed, and deployed consistently.
  • Policy as code. Defining security policies in code — through AWS Organizations SCPs, through Azure Policy, through Google Cloud Organization Policy — so that policy is enforced consistently.
  • Secure templates and modules. Providing secure templates and modules that developers use — making the secure configuration the easy configuration.
  • Cloud security posture management (CSPM). Continuous monitoring of cloud configuration — detecting misconfiguration and drift.
  • Configuration scanning in CI/CD. Scanning infrastructure as code for security issues before deployment — catching misconfigurations before they reach production.
  • Runtime configuration monitoring. Detecting configuration changes in production — whether intentional or accidental.
  • Automated remediation. Automatically remediating detected misconfigurations where feasible — closing the gap between detection and remediation.

The most consequential misconfiguration

The most consequential cloud misconfiguration is the public storage bucket. Storage that is made publicly accessible — through misconfiguration, through permissive defaults, or through intentional sharing that is not properly scoped — exposes data to anyone with the URL or who discovers the bucket. Substantial data exposure in cloud environments has originated from public storage, and it remains one of the most common and most consequential misconfigurations.

07 Cloud network and data protection

Cloud network and data protection provides the controls that protect traffic and data within cloud environments — complementing the identity and configuration controls examined in Sections 4 and 5.

Cloud network protection

Network isolation

  • Virtual private clouds (VPCs). Isolated network environments within the cloud provider — providing network-level isolation for cloud resources.
  • Subnets. Subdivide VPCs — public subnets for internet-facing resources; private subnets for internal resources.
  • Network ACLs. Subnet-level firewalls controlling traffic crossing subnet boundaries.
  • VPC peering and transit gateways. Control connectivity between VPCs and between cloud and on-premises environments.

Cloud firewalls and security groups

  • Security groups. Instance-level firewalls controlling what traffic each cloud instance accepts — the primary cloud-native firewall mechanism.
  • Web application firewalls. Cloud WAF services protecting web applications — through signatures, through behavioural analysis.
  • Cloud-native firewalls. Provider firewalls and third-party firewall appliances — protecting cloud environments.
  • DDoS protection. Cloud provider services that mitigate denial-of-service attacks.

Private connectivity

  • Private links and endpoints. Private connectivity to cloud services — without traversing the public internet.
  • Dedicated connections. Provider-managed dedicated connections — AWS Direct Connect, Azure ExpressRoute, Google Cloud Interconnect — providing private connectivity from on-premises to cloud.
  • Site-to-site VPNs. IPsec tunnels between enterprise and cloud environments — providing encrypted connectivity over the internet.

Cloud data protection

Cloud encryption at rest

  • Cloud providers offer encryption at rest for storage, databases, and other data services — frequently enabled by default.
  • Enterprise controls whether to use provider-managed keys, customer-managed keys, or customer-provided keys.
  • Encryption at rest protects data if storage is compromised — but does not protect data from users with access to the encryption keys or with access through the service.

Cloud encryption in transit

  • TLS protects data in transit between clients and cloud services, and between cloud services.
  • Cloud services frequently support TLS by default; configuration should ensure that TLS is enforced — not optional.
  • Private connectivity — private links, dedicated connections — provides additional protection for traffic that does not require public internet transit.

Cloud key management

  • Cloud key management services — AWS KMS, Azure Key Vault, Google Cloud KMS — provide secure key storage and management.
  • BYOK (Bring Your Own Key) allows enterprises to bring their own keys to the provider's key management service.
  • HYOK (Hold Your Own Key) allows enterprises to hold their own keys — providing stronger control at greater operational complexity.
  • HSM-backed key management provides hardware security module protection for keys — for the most sensitive data.

Data classification and minimisation

  • Data stored in cloud environments should be classified — so that controls are applied proportionate to classification.
  • Data minimisation applies to cloud environments — collecting and retaining only what is required.
  • Data residency and sovereignty requirements may shape where cloud data is stored — through region selection and through provider capabilities.

The most useful framing

The most useful framing for cloud network and data protection is that these controls complement — rather than replace — identity and configuration. Identity controls who can access cloud resources; network controls what traffic reaches them; data controls protect the data itself. The three layers work together — identity is the primary control plane, network and data controls provide defence-in-depth, and configuration determines whether any of them operate correctly.

08 Cloud security posture management

Cloud Security Posture Management (CSPM) is the discipline of continuously assessing cloud configuration against security policy and detecting misconfiguration and drift. It is one of the most consequential cloud security controls — because misconfiguration is the most common source of cloud-related breaches.

What CSPM provides

  • Continuous assessment. CSPM assesses cloud configuration continuously — detecting misconfiguration as it occurs, rather than periodically through manual review.
  • Policy enforcement. CSPM compares actual configuration against defined security policy — identifying deviations from requirements.
  • Drift detection. CSPM detects drift — configuration changes that move resources away from their defined state.
  • Multi-cloud coverage. CSPM frequently covers multiple cloud providers — providing consistent assessment across a multi-cloud estate.
  • Compliance reporting. CSPM reports on compliance with regulatory frameworks — CIS Benchmarks, PCI DSS, HIPAA, and others.
  • Remediation guidance. CSPM frequently provides guidance or automation for remediating detected misconfigurations.

CSPM assessment areas

CSPM assessment areas
Area What is assessed
Identity and access IAM policies for excessive permissions, unused identities, missing MFA, root account usage.
Network Security groups for unrestricted rules, public endpoints, missing segmentation, exposed management interfaces.
Storage Storage for public access, missing encryption, missing versioning, missing access logging.
Compute Compute for missing patches, missing endpoint protection, missing encryption, insecure configuration.
Databases Databases for public access, missing encryption, missing backup, weak authentication.
Logging and monitoring Logging services for completeness, retention, and integration; monitoring for coverage.
Key management Key management for key rotation, access controls, and configuration.
Compliance Configuration against regulatory frameworks and organisational policy.

CSPM in practice

Implementing CSPM involves several activities:

  • Define security policy. Define what the enterprise's cloud configuration should look like — the baselines, the controls, the requirements.
  • Deploy CSPM tooling. Deploy CSPM tools — either cloud-native (AWS Security Hub, Azure Security Center, Google Security Command Center) or third-party — that assess configuration against policy.
  • Integrate with CI/CD. Run CSPM assessments on infrastructure as code — catching misconfigurations before deployment.
  • Continuous assessment. Assess cloud configuration continuously — detecting misconfiguration in production.
  • Triage findings. Triage CSPM findings — prioritising by severity, by exposure, and by impact.
  • Remediate. Remediate detected misconfigurations — through automation where feasible, through manual intervention where not.
  • Report. Report on cloud security posture — to operations, to security leadership, and to governance.

CSPM limitations

  • Coverage. CSPM coverage depends on the providers and services supported — some services may not be fully assessed.
  • False positives. CSPM produces false positives — flagging configurations that are legitimate in the enterprise's context.
  • Finding volume. CSPM produces substantial finding volume — requiring prioritisation and remediation capacity.
  • Configuration focus. CSPM assesses configuration — it does not assess runtime activity, vulnerabilities, or threats. Complementary controls are required.
  • Policy quality. CSPM is only as good as the policy it enforces — weak policy produces weak assessment.

The most useful framing

The most useful framing for CSPM is that it addresses the most common source of cloud-related breaches — misconfiguration — through continuous assessment rather than periodic review. CSPM is not a substitute for secure configuration and secure deployment practices; it is a detection control that identifies misconfiguration that those practices did not prevent. CSPM should be deployed alongside — not instead of — secure configuration practices.

09 Cloud workload protection

Cloud workload protection is the set of controls that protect the workloads running in cloud environments — virtual machines, containers, serverless functions, and the applications they run. The principles from Lessons 5.1–5.3 apply, but the implementation adapts to the cloud environment.

Cloud workload protection platforms (CWPP)

CWPP (Cloud Workload Protection Platform) is the category of tools that protect cloud workloads — providing visibility, vulnerability assessment, threat detection, and response for cloud workloads.

CWPP provides:

  • Workload visibility. Visibility into cloud workloads — what workloads exist, what they are doing, what they are exposed to.
  • Vulnerability assessment. Assessment of cloud workloads for vulnerabilities — operating system, application, and dependency vulnerabilities.
  • Runtime protection. Detection and blocking of malicious activity on cloud workloads — through behavioural analysis, through signatures, through policy.
  • Compliance monitoring. Assessment of cloud workloads against security baselines and compliance requirements.
  • Integration with cloud-native services. Integration with cloud provider security services — for coordinated protection.

Cloud-native workload protection

Cloud providers offer native workload protection services:

  • AWS: Amazon GuardDuty (threat detection), Amazon Inspector (vulnerability assessment), AWS Config (configuration compliance), AWS Security Hub (centralised security findings).
  • Azure: Microsoft Defender for Cloud (workload protection, vulnerability assessment, compliance), Azure Sentinel (SIEM/SOAR).
  • Google Cloud: Security Command Center (threat detection, vulnerability assessment, compliance), Cloud Armor (DDoS and WAF protection).

Cloud workload protection considerations

Coverage

  • Cloud workload protection should cover all workload types — virtual machines, containers, serverless functions.
  • Coverage gaps leave workloads unprotected — providing opportunities for adversaries.
  • Coverage should be maintained as workloads change — new resources, new services, new configurations.

Integration with cloud-native services

  • Cloud workload protection should integrate with cloud provider services — for native telemetry, for native controls, for coordinated response.
  • Integration with cloud-native identity, logging, and monitoring provides broader visibility and better detection.
  • Third-party tools frequently provide additional capabilities — but integration with cloud-native services is essential.

Automation

  • Cloud workload protection should be automated — for deployment, for policy application, for response.
  • Manual deployment does not scale — through APIs, through infrastructure as code, through policy automation.
  • Automated response — isolating workloads, terminating processes — reduces response time and analyst burden.

Integration with SOC

  • Cloud workload protection findings should flow to the SOC — through SIEM, through XDR, through the SOC's alerting and investigation platforms.
  • Cloud workload protection should be part of the enterprise's detection and response capability — not a separate silo.
  • The SOC should have visibility into cloud workloads — their configuration, their activity, their threats.

The most useful framing

The most useful framing for cloud workload protection is that the workloads are the enterprise's responsibility, even in cloud environments. The provider secures the platform; the enterprise secures the workloads it runs on the platform. Cloud workload protection is how the enterprise fulfils that responsibility — providing visibility, vulnerability assessment, threat detection, and response for the workloads it operates.

10 Cloud monitoring and logging

Cloud monitoring and logging provides the visibility into cloud activity that detection, investigation, and compliance require. It is essential to cloud security — because cloud environments generate substantial telemetry that must be collected, centralised, and analysed.

What cloud logging provides

  • API activity logging. Records of cloud API calls — what was called, by whom, from where, and what the outcome was. Cloud API activity is the primary source of cloud audit information.
  • Resource activity logging. Records of resource activity — resource creation, modification, and deletion.
  • Network activity logging. Records of network traffic — flow logs, VPC flow logs, DNS logs — for network-level visibility.
  • Application and workload logs. Logs from applications and workloads running in cloud environments.
  • Identity activity logging. Records of cloud identity activity — authentication, authorization, access.
  • Configuration change logging. Records of configuration changes — critical for change management, for compliance, and for investigation.

Cloud logging services

Cloud logging services
Provider Services
AWS CloudTrail (API activity), CloudWatch (logs and metrics), VPC Flow Logs (network), GuardDuty (threat detection), Config (configuration).
Azure Azure Monitor (logs and metrics), Activity Log (control plane activity), Microsoft Defender for Cloud (security), Network Watcher (network monitoring).
Google Cloud Cloud Logging (logs), Cloud Monitoring (metrics), Cloud Audit Logs (audit), Security Command Center (security findings).
Cloud-native SIEM Azure Sentinel (Microsoft), Chronicle (Google), Security Lake (AWS) — cloud-native SIEM services for cloud environments.
Third-party SIEM Splunk, Sumo Logic, Datadog, and others — supporting cloud logging through integrations with cloud providers.

Cloud monitoring practices

Effective cloud monitoring involves several activities:

  • Enable logging everywhere. Enable cloud logging for all services — API activity, resource activity, network activity, and application logs.
  • Centralise logs. Centralise cloud logs — through a SIEM, through cloud logging services, through a dedicated log platform.
  • Protect logs. Protect cloud logs — through access controls, through encryption, through integrity mechanisms — so that they cannot be tampered with by adversaries.
  • Monitor for anomalies. Monitor cloud activity for anomalies — unusual API calls, unusual resource activity, unusual authentication.
  • Integrate with SOC. Integrate cloud logs with the SOC — through SIEM, through XDR, through the SOC's alerting and investigation platforms.
  • Detect cloud-specific threats. Detect cloud-specific threats — cryptomining, resource abuse, credential abuse, data exfiltration.
  • Retain logs appropriately. Retain cloud logs for sufficient periods — supporting investigation, compliance, and retroactive analysis.

The most consequential monitoring failure

The most consequential cloud monitoring failure is logging that is not centralised or not monitored. Cloud providers offer extensive logging, but the logs are only useful if they are collected, centralised, and analysed. Logging that remains in the cloud provider's platform — accessible only during investigation, if at all — provides limited detection value. Centralisation and monitoring are essential — without them, cloud logging is a compliance artefact rather than a security control.

11 Common pitfalls

Enterprise cloud security programmes fail in predictable ways. Recognising the pitfalls accelerates improvement.

Pitfall 1 — Misunderstanding the shared responsibility model

Assuming that the cloud provider handles more than it actually does — producing gaps in the enterprise's responsibilities.

Mitigation: Understand the shared responsibility model for each provider and each service. Document what the enterprise manages.

Pitfall 2 — Over-privileged cloud identities

Cloud identities — service accounts, roles, users — with excessive permissions — expanding the consequence of any compromise.

Mitigation: Apply least privilege to all cloud identities. Review permissions periodically. Use roles rather than long-lived credentials.

Pitfall 3 — Public cloud resources

Cloud resources — storage, databases, management interfaces — publicly accessible when they should not be — exposing data and systems to the internet.

Mitigation: Assess cloud resources for public exposure. Use CSPM to detect public exposure continuously. Restrict public access to what genuinely requires it.

Pitfall 4 — Weak cloud credential management

Cloud credentials — access keys, service account credentials — exposed, not rotated, or long-lived — providing persistent access if compromised.

Mitigation: Use short-lived credentials where feasible. Manage credentials through vaulting, through rotation, through monitoring. Remove unused credentials.

Pitfall 5 — Missing or incomplete logging

Cloud logging not enabled, not centralised, or not monitored — impairing detection, investigation, and compliance.

Mitigation: Enable cloud logging for all services. Centralise logs. Integrate with SOC. Monitor for anomalies.

Pitfall 6 — Unencrypted cloud data

Cloud data without encryption — permitting data exposure if storage, snapshots, or backups are compromised.

Mitigation: Enable encryption at rest for all cloud data — with key management appropriate to the data's sensitivity.

Pitfall 7 — No CSPM

Cloud configuration not continuously assessed — misconfiguration not detected until it is exploited.

Mitigation: Implement CSPM. Assess configuration continuously. Remediate findings.

Pitfall 8 — Multi-cloud complexity

Multiple cloud providers managed with separate tools, processes, and controls — producing inconsistency, gaps, and complexity.

Mitigation: Standardise cloud security across providers where feasible. Use multi-cloud security tooling. Manage the complexity deliberately.

Pitfall 9 — Cloud security treated as separate from enterprise security

Cloud security managed by a separate team, with separate processes, separate tools — disconnected from the enterprise's broader security programme.

Mitigation: Integrate cloud security with the enterprise security programme. Align processes, tools, and governance. Include cloud in SOC operations, incident response, and governance.

Pitfall 10 — Under-investment in cloud security

Cloud security treated as a solved problem — relying on provider defaults, on provider security — without the enterprise's own investment in configuration, monitoring, and controls.

Mitigation: Invest in cloud security proportionate to the enterprise's cloud estate. Recognise the enterprise's responsibilities under the shared responsibility model. Implement enterprise controls alongside provider controls.

Cloud security pitfalls and mitigations
Pitfall Primary mitigation
Misunderstanding the shared responsibility modelUnderstand and document the model for each provider and service.
Over-privileged cloud identitiesApply least privilege; review permissions; use roles.
Public cloud resourcesAssess for public exposure; use CSPM; restrict public access.
Weak cloud credential managementUse short-lived credentials; vault, rotate, monitor.
Missing or incomplete loggingEnable logging; centralise; integrate with SOC; monitor.
Unencrypted cloud dataEnable encryption at rest with appropriate key management.
No CSPMImplement CSPM; assess continuously; remediate.
Multi-cloud complexityStandardise; use multi-cloud tooling; manage complexity.
Cloud security treated as separate from enterprise securityIntegrate with the enterprise security programme.
Under-investment in cloud securityInvest proportionate to the cloud estate; implement enterprise controls.

The most consequential pitfall

The most consequential pitfall in cloud security is misunderstanding the shared responsibility model — assuming that the provider handles more than it actually does. The result is that the enterprise's responsibilities are neglected — producing the misconfigurations, the unencrypted data, the over-privileged identities, and the unmonitored activity that appear in cloud breach reports. Understanding and acting on the shared responsibility model is the first priority of any cloud security programme.

12 Key concepts

The terms below are used throughout Unit 5. Capture them in your own words as you work through the lesson.

Cloud security
The discipline of protecting cloud environments — workloads, data, identities, and configuration — through the enterprise's controls under the shared responsibility model.
Shared responsibility model
The division of security responsibilities between a cloud provider and its customer. The provider secures the platform; the customer secures what they put on the platform.
IaaS (Infrastructure as a Service)
Cloud service model in which the provider manages physical infrastructure and virtualisation; the enterprise manages operating systems, applications, and data.
PaaS (Platform as a Service)
Cloud service model in which the provider manages the platform (including operating systems and runtimes); the enterprise manages applications, data, and configuration.
SaaS (Software as a Service)
Cloud service model in which the provider manages the application and platform; the enterprise manages data, identity, and configuration.
FaaS (Function as a Service)
Cloud service model in which the provider manages all infrastructure and platform layers; the enterprise manages function code, data, and configuration.
Serverless
A cloud computing model in which the provider manages all infrastructure and platform concerns — permitting the enterprise to focus on application code.
Public cloud
Cloud services provided by a third party to multiple customers on shared infrastructure.
Private cloud
Cloud infrastructure dedicated to a single organisation — whether on-premises or hosted.
Hybrid cloud
Combination of public and private cloud — with workloads distributed across both.
Multi-cloud
Use of multiple cloud providers — frequently for resilience, for avoiding vendor lock-in, or for best-of-breed services.
Cloud IAM (Identity and Access Management)
The set of services and policies that determine who and what can access cloud resources, and what they can do with them.
Cloud role
A cloud identity that can be assumed by users, services, or resources — providing temporary credentials with defined permissions.
Workload identity
An identity assigned to a workload — cloud instance, container, serverless function — for accessing cloud services.
Cloud misconfiguration
Incorrect configuration of cloud resources — public storage, permissive IAM policies, exposed management interfaces — creating risk without exploitation of vulnerabilities.
Public storage bucket
Cloud storage made publicly accessible — intentionally or by mistake — exposing data to anyone with the URL or who discovers the bucket.
Security group
A cloud-native firewall that controls what traffic each cloud instance accepts. The primary cloud-native firewall mechanism.
Network ACL
A cloud-native firewall that controls what traffic crosses subnet boundaries. Complements security groups in cloud environments.
VPC (Virtual Private Cloud)
An isolated network environment within a cloud provider — providing network-level isolation for cloud resources.
Private link / endpoint
Private connectivity to cloud services — without traversing the public internet.
Dedicated connection
Provider-managed dedicated connectivity between enterprise networks and cloud environments — AWS Direct Connect, Azure ExpressRoute, Google Cloud Interconnect.
Cloud KMS (Key Management Service)
Cloud provider services for managing encryption keys — AWS KMS, Azure Key Vault, Google Cloud KMS.
BYOK (Bring Your Own Key)
The practice of bringing the enterprise's own keys to the cloud provider's key management service.
HYOK (Hold Your Own Key)
The practice of holding the enterprise's own keys outside the cloud provider — providing the strongest control but the most operational complexity.
CSPM (Cloud Security Posture Management)
The discipline of continuously assessing cloud configuration against security policy and detecting misconfiguration and drift.
CWPP (Cloud Workload Protection Platform)
The category of tools that protect cloud workloads — providing visibility, vulnerability assessment, threat detection, and response.
CloudTrail
AWS service that logs API activity — providing audit records of what happened in the AWS environment.
GuardDuty
AWS threat detection service — monitoring for malicious activity and unauthorized behavior in AWS environments.
Microsoft Defender for Cloud
Microsoft cloud security service — providing workload protection, vulnerability assessment, and compliance for Azure and hybrid environments.
Cloud-native SIEM
SIEM services delivered by cloud providers — Azure Sentinel, Chronicle, Security Lake — for cloud environments.

13 Activities

The activities below help you test your understanding and prepare for the unit discussion and Assignment 2. They are not graded, but completing them will substantially improve your preparation.

Activity 1 — Cloud security assessment

For an enterprise context you know well, assess its cloud security posture:

  • which cloud providers and services does the enterprise use?
  • does the enterprise understand the shared responsibility model for each?
  • what is the state of cloud identity — are identities least-privileged?
  • are cloud resources assessed for misconfiguration? Is CSPM deployed?
  • is cloud data encrypted — at rest, in transit, with appropriate key management?
  • is cloud logging enabled, centralised, and monitored?
  • are cloud workload protections in place — CWPP, cloud-native services?

Write up your assessment (400–500 words). Identify the most significant gap and describe how it would be closed.

Activity 2 — Cloud security programme design

For an enterprise context of your choice, outline a cloud security programme (500–600 words) covering:

  • the scope — which cloud providers, which services, which workloads;
  • the shared responsibility approach — how the enterprise understands and acts on its responsibilities;
  • the cloud identity approach — least privilege, roles, federation, credential management;
  • the configuration approach — infrastructure as code, policy as code, CSPM;
  • the network and data protection approach — VPCs, security groups, encryption, key management;
  • the workload protection approach — CWPP, cloud-native services;
  • the monitoring approach — logging, centralisation, SOC integration;
  • the metrics that would demonstrate the programme is working;
  • the principal challenges and how they would be addressed.

Support your design with reference to the lesson material and to published guidance (NIST, CSA, or equivalent).

Activity 3 — Preparing for Forum 5 and Assignment 2

Forum 5 includes discussion of cloud security governance and container security. Assignment 2 includes a secure cloud-migration architecture and a defence-in-depth strategy for a financial institution — both of which depend on the cloud security reasoning developed in this lesson.

Review the Forum 5 prompts and the Assignment 2 brief, and note where the material from this lesson — particularly the shared responsibility model, cloud identity, misconfiguration, and CSPM — will strengthen your analysis.

14 Self-check

Answer the questions below before moving to Lesson 5.6. If you cannot answer a question confidently, revisit the corresponding section.

Question 1
Which of the following best describes the shared responsibility model?
Reveal answer

B. The shared responsibility model divides responsibilities between the provider and the enterprise. The provider secures the platform; the enterprise secures what it puts on the platform and remains accountable. A, C, and D misstate the model.

Question 2
Which of the following best describes the primary control plane in cloud environments?
Reveal answer

B. Identity is the primary control plane in cloud environments — access is determined by who and what is requesting, based on cloud IAM and federation. A, C, and D describe other controls that complement identity but are not the primary control plane.

Question 3
Which of the following is the most common source of cloud-related breaches?
Reveal answer

B. Misconfiguration is the most common source of cloud-related breaches — because cloud environments are programmatically controlled and configuration errors are frequent. A, C, and D are not the most common sources.

Question 4
Which of the following best describes Cloud Security Posture Management (CSPM)?
Reveal answer

B. CSPM is the discipline of continuously assessing cloud configuration against security policy and detecting misconfiguration and drift — addressing the most common source of cloud-related breaches. A, C, and D describe other cloud security controls.

Question 5
An enterprise has adopted cloud services but has not invested in cloud security — relying on provider defaults and provider security. Which of the following best characterises this situation?
Reveal answer

B. Reliance on provider defaults and provider security is a significant gap — because the enterprise has responsibilities under the shared responsibility model for identity, data, configuration, and compliance that provider defaults do not address. A, C, and D misstate the situation.

15 Summary

This lesson has examined cloud security — the discipline of protecting the platform on which most enterprise workloads now run. The essential points are:

  • Cloud security matters because most enterprise workloads now run in cloud environments. Cloud changes the security model, introduces misconfiguration as a primary risk, makes identity the primary control plane, and requires automation at scale.
  • Cloud service and deployment models determine what the enterprise manages. IaaS, PaaS, SaaS, and FaaS place different responsibilities on each party. Public, private, hybrid, and multi-cloud deployment models introduce different considerations.
  • The shared responsibility model is the foundation of cloud security. The provider secures the platform; the enterprise secures what it puts on the platform — identity, data, configuration, and compliance — and remains accountable.
  • Cloud identity is the primary control plane. Least privilege, roles and federation, short-lived credentials, and monitoring of identity activity — the foundation of cloud access control.
  • Cloud misconfiguration is the most common source of cloud-related breaches. Public storage, permissive IAM policies, exposed management interfaces, unencrypted data, and missing logging — addressed through infrastructure as code, policy as code, and CSPM.
  • Cloud network and data protection provide defence-in-depth. VPCs, security groups, private connectivity, encryption at rest and in transit, and key management — complementing identity and configuration controls.
  • CSPM continuously assesses cloud configuration. Detecting misconfiguration and drift — one of the most consequential cloud security controls.
  • Cloud workload protection protects the workloads. CWPP and cloud-native services — providing visibility, vulnerability assessment, threat detection, and response for cloud workloads.
  • Cloud monitoring and logging provide visibility. API activity, resource activity, network activity, and application logs — collected, centralised, and monitored — supporting detection, investigation, and compliance.
  • Common pitfalls recur. Misunderstanding the shared responsibility model; over-privileged cloud identities; public cloud resources; weak credential management; missing logging; unencrypted data; no CSPM; multi-cloud complexity; cloud security treated separately; under-investment in cloud security.

These ideas prepare for Lesson 5.6, which examines container and virtualisation security — the specific platforms through which cloud workloads are increasingly delivered, and which introduce their own security considerations.

Before moving on

Make sure you can describe the shared responsibility model, explain cloud identity as the primary control plane, describe cloud misconfiguration and its mitigations, explain CSPM, and describe cloud workload protection and monitoring. If you cannot yet do all five, revisit Sections 3, 4, 5, 7, and 8.

Next lesson

Lesson 5.6 — Container and Virtualization Security examines the security considerations of containers, orchestration platforms, and virtualisation — the platforms through which cloud workloads are increasingly delivered.

👤