Cloud Security

Cloud Security Layers Diagram: Mapping the Defense Stack

July 10, 2026 · 11 min read · By CloudAI Security
Cloud Security Layers Diagram: Mapping the Defense Stack

A cloud security layers diagram is not an abstract illustration—it is a structural tool that maps defensive controls to specific tiers of the technology stack. Without a clear layer model, security teams end up with overlapping tooling in some tiers and blind spots in others. This article dissects each layer of a canonical cloud security architecture, anchors it to controls from NIST, CISA’s Cloud Security Technical Reference Architecture, and the CSA Security Guidance, and provides a practical reference diagram you can adapt for internal architecture reviews.

Why a Layered Model Matters for Cloud Defense

Cloud environments collapse traditional perimeter boundaries. Workloads sit next to shared infrastructure, identity becomes the new perimeter, and data flows across regions and services that no single team fully controls. A layered security model forces practitioners to enumerate every tier where an adversary could operate—physical, network, compute, application, identity, and data—and assign explicit controls to each. The NIST Guidelines on Security and Privacy in Public Cloud Computing, as synthesized by the Cloud Security Alliance, explicitly structure security across 14 domains that map cleanly onto a layered stack [4]. Without this decomposition, organizations routinely discover during incident response that they encrypted data at rest but left management plane API calls unauthenticated, or that they locked down the VPC but never restricted cross-account IAM roles.

Layer 1: Physical and Facility Security

The bottom of any cloud security layers diagram represents the physical infrastructure—data centers, servers, networking hardware, power systems, and physical access controls. In IaaS and PaaS models, this layer is almost entirely the cloud provider’s responsibility under the shared responsibility model. However, security teams must still verify that the provider’s physical controls meet their compliance requirements. CISA’s Cloud Security Technical Reference Architecture explicitly calls out physical and environmental controls as a foundational layer that underpins all higher-level security guarantees [3]. Relevant verification mechanisms include SOC 2 Type II reports, ISO 27001 certifications, and FedRAMP authorization documentation. For organizations in regulated industries, the physical layer also determines data residency guarantees—knowing which physical facility houses your data is a regulatory requirement in jurisdictions like the EU under GDPR. The key takeaway is that this layer cannot be ignored simply because you do not own the hardware; you must still document and validate the provider’s controls.

Layer 2: Network and Perimeter Controls

Network security in the cloud shifts from border firewalls to micro-segmentation and software-defined perimeters. This layer encompasses VPCs and VNets, subnets, network security groups, route tables, transit gateways, and WAF deployments. The OWASP Secure Cloud Architecture Cheat Sheet breaks cloud security into distinct control levels corresponding to technology stack elements, and network controls form a primary tier in that model [2]. In a layered diagram, network controls sit directly above physical infrastructure and below compute workloads. Practical controls at this layer include restricting inbound traffic to known CIDR ranges, implementing hub-and-spoke topology with centralized egress inspection, deploying network-level anomaly detection via VPC flow logs, and enforcing TLS termination at the load balancer. A common gap is failing to segment management plane traffic from data plane traffic at the network level—adversaries who compromise a workload can laterally reach internal APIs if these pathways are not isolated.

Layer 3: Compute and Workload Isolation

The compute layer covers virtual machines, containers, serverless functions, and the hypervisor or orchestration platform that manages them. Security at this layer focuses on workload isolation, image integrity, runtime protection, and configuration hardening. In a layered diagram, compute controls prevent an attacker who exploits one workload from escaping to co-tenant resources or the host system. Key controls include using hardened base images scanned for CVEs before deployment, enforcing immutable infrastructure patterns so workloads cannot be mutated at runtime, enabling hypervisor-level isolation features (such as AMD SEV or Intel TDX where available), and deploying runtime security agents that detect anomalous process behavior, unauthorized file access, or unexpected network connections. CISA’s TRA emphasizes that compute layer controls must align with the organization’s cloud migration pattern—rehost, replatform, or refactor—because each pattern introduces different attack surfaces [3]. A lift-and-shift VM, for example, carries its own OS-level attack surface, while a refactored containerized service shifts risk to the container runtime and orchestration plane.

Layer 4: Application and API Security

Application-layer defenses protect the code, APIs, and service-to-service communication paths that business logic traverses. This layer is where OWASP’s expertise is most directly applicable—their Secure Cloud Architecture guidance treats application controls as a distinct level above compute [2]. Controls at this tier include API gateway enforcement with schema validation and rate limiting, input sanitization and output encoding, dependency scanning in CI/CD pipelines, and service mesh implementations that enforce mutual TLS and authorization policies between microservices. A frequent architectural error is placing a WAF at the edge and assuming application security is covered, while internal APIs between microservices remain unauthenticated and unencrypted. In a properly layered diagram, the application tier includes both external-facing and internal service-to-service API security. CSPM tools often miss this layer because they focus on infrastructure configuration rather than application behavior, which is why combining CSPM with ASPM or DAST tools is necessary for complete coverage.

Layer 5: Identity and Access Management

Identity is the control plane that governs every other layer. In cloud environments, IAM is not a horizontal afterthought—it is a vertical layer that intersects physical access, network policies, compute permissions, application authorization, and data access. The NIST-informed CSA framework dedicates multiple domains to identity, including identity and access management, entitlement management, and security key management [4]. In a layers diagram, IAM should be depicted as spanning the full height of the stack, because a compromised identity bypasses every other layer’s controls. Core controls at this layer include enforcing least-privilege IAM policies with regular access reviews, requiring MFA for all human identities and using workload identity mechanisms (such as IRSA in AWS or managed identities in Azure) for machine-to-machine authentication, implementing just-in-time access provisioning for privileged operations, and monitoring for anomalous sign-in patterns and privilege escalation events. The most critical gap in cloud IAM is stale permissions—roles and policies that were created for a project and never revoked after the project ended.

Layer 6: Data Protection and Encryption

The data layer sits at the top of the diagram because it is the asset all other layers exist to protect. Controls here include encryption at rest using provider-managed or customer-managed keys, encryption in transit via TLS 1.3, field-level encryption for sensitive data elements, data classification and labeling, and data loss prevention policies that monitor for exfiltration patterns. The CSA guidance emphasizes that data protection must account for data in all states—_at rest, in transit, and in use_—and across all cloud service models [4]. A practical challenge at this layer is key management hierarchy: who controls the root key, where is it stored, and what is the rotation policy? Using customer-managed keys in a dedicated key management service (AWS KMS, Azure Key Vault, GCP Cloud KMS) provides stronger guarantees than provider-managed keys because it allows the organization to revoke access by deleting the key. Another frequently overlooked control is encrypting data at the application layer before writing it to cloud storage, which provides defense-in-depth even if the storage layer’s encryption is somehow compromised.

Layer 7: Governance, Compliance, and Continuous Monitoring

The outermost layer in a comprehensive diagram wraps around all other tiers: governance and continuous monitoring. This layer includes CSPM policies that check infrastructure-as-code templates before deployment, SIEM ingestion of cloud audit logs (CloudTrail, Azure Monitor, GCP Audit Logs), automated compliance benchmarking against CIS Foundations Benchmarks, and incident response playbooks specific to cloud environments. CISA’s TRA positions continuous monitoring as an overlay that validates whether each lower-layer control is operating as intended [3]. Without this governance wrapper, lower-layer controls drift over time—a VPC that was locked down at deployment may have security group rules relaxed during a troubleshooting session and never reverted. The monitoring layer must also correlate signals across tiers: an IAM alert about a new access key combined with a network alert about unusual egress traffic is a far stronger detection signal than either alone.

Structuring the Diagram: A Layer-by-Layer Reference

LayerPrimary AssetsKey ControlsFramework Reference
1. PhysicalData centers, hardware, powerSOC 2 validation, ISO 27001, FedRAMPNIST SP 800-53 PE family
2. NetworkVPCs, NSGs, WAF, DNSMicro-segmentation, flow logs, TLS terminationOWASP Cloud Architecture [2]
3. ComputeVMs, containers, serverlessHardened images, runtime protection, immutabilityCISA TRA migration patterns [3]
4. ApplicationAPIs, code, service meshAPI gateway, mTLS, DAST, dependency scanningOWASP Top 10, ASPM
5. IdentityIAM roles, policies, MFALeast privilege, JIT access, workload identityCSA IAM domains [4]
6. DataObjects, databases, messagesCMK encryption, field-level encryption, DLPCSA Data Security domain [4]
7. GovernancePolicies, logs, benchmarksCSPM, SIEM, CIS benchmarks, drift detectionCISA TRA monitoring overlay [3]

Mapping the Shared Responsibility Model to Layers

Each layer in the diagram has a different responsibility split between the cloud provider and the customer. Physical security is almost entirely provider-owned. Network security is a shared zone—the provider secures the underlying network fabric, while the customer configures VPCs, security groups, and routing. Compute security depends heavily on the service model: in IaaS, the customer owns the OS and application; in PaaS, the customer owns only the application; in SaaS, the customer owns only the data and identity configuration. The NIST publication on what makes cloud security special, as referenced in the CSA-informed framework, highlights that this shifting boundary is the primary source of confusion and misconfiguration [1]. A well-constructed layers diagram should visually indicate the responsibility boundary at each tier, using a dashed line or color coding to show where provider responsibility ends and customer responsibility begins. This makes the diagram actionable for compliance teams who need to demonstrate control ownership during audits.

Common Gaps When Layers Are Not Explicitly Mapped

Organizations that do not maintain a formal layers diagram tend to exhibit predictable blind spots. The most common is over-investing in network and perimeter controls while under-investing in identity and data layers—a holdover from on-premises security thinking where the firewall was the primary defense. Another gap is treating the compute layer as a monolith: securing VMs with traditional EDR while leaving containers and serverless functions without runtime visibility. A third gap is omitting the governance layer entirely, resulting in configuration drift that silently undermines every other layer’s controls. The OWASP cheat sheet explicitly warns against this by structuring controls at each level of the stack rather than treating cloud security as a single undifferentiated problem [2]. When building or updating your layers diagram, audit each tier against your actual tool inventory and control evidence. If a layer has no assigned owner, no documented controls, and no monitoring signals, that is your highest-priority remediation target.

FAQ

What is a cloud security layers diagram?

A cloud security layers diagram is a visual and structural representation of defensive controls mapped to specific tiers of the cloud technology stack—typically physical, network, compute, application, identity, data, and governance. It serves as a design reference and gap analysis tool for security architecture reviews.

How many layers should a cloud security diagram include?

Most frameworks converge on six to eight layers. The seven-layer model presented here (physical, network, compute, application, identity, data, governance) aligns with the control decomposition in NIST, CISA TRA, OWASP, and CSA guidance. The exact number matters less than ensuring every significant attack surface is covered by at least one layer.

Does the diagram change between IaaS, PaaS, and SaaS?

The structure remains the same, but the responsibility boundary shifts. In IaaS, the customer owns more layers (OS, runtime, application). In SaaS, the customer primarily owns identity configuration and data protection. The diagram should reflect this by marking which entity is responsible for controls at each tier for each service model in use.

How do I use this diagram in practice?

Use it as a checklist during architecture reviews, as a mapping tool during compliance audits (linking each layer to specific CIS or NIST controls), and as a gap analysis instrument by comparing the diagram’s prescribed controls against your actual tool inventory and evidence of control operation.

What tools correspond to each layer?

Network: VPC flow log analyzers, network firewalls. Compute: EDR, runtime security, image scanners. Application: DAST, SAST, API gateways, service mesh. Identity: IAM policy analyzers, PAM solutions. Data: KMS, DLP, database activity monitoring. Governance: CSPM, SIEM, compliance benchmarking tools. No single tool covers multiple layers effectively—this is precisely why the layered model exists.

Sources

[1] NIST — What is Special about Cloud Security? (CSA-informed framework)

[2] OWASP — Secure Cloud Architecture Cheat Sheet

[3] CISA — Cloud Security Technical Reference Architecture

[4] CSA — NIST Guidelines on Security and Privacy in Public Cloud Computing