Secure the operating system of the business
Operating model and learning outcomes
The cloud control plane can create, connect, copy, expose, and destroy infrastructure in seconds. Security therefore depends on enforceable organization design, identity, policy, delivery, telemetry, and recovery—not only firewall rules or one-time configuration reviews.
Assign every responsibility
Translate each provider/service shared-responsibility model into named customer, provider, supplier, and workload-owner controls. Verify inherited controls instead of assuming “the provider handles security.”
Make identity the control plane
Govern workforce, administrator, workload, service, pipeline, application, support, and emergency identities with least privilege, short-lived credentials, separation of duties, and traceable sessions.
Build guardrails into delivery
Use organization policy, reusable infrastructure modules, CI/CD identity, policy-as-code, artifact provenance, deployment controls, runtime protections, and drift response to prevent entire classes of exposure.
Detect and recover from reality
Collect control-plane, identity, data, network, workload, container, Kubernetes, application, and pipeline evidence. Exercise isolation, credential revocation, immutable backup, forensic collection, and restoration.
Cloud security is a continuous control loop
A secure landing zone cannot rescue an unsafe application; a secure application cannot compensate for an organization-wide administrator credential; and a posture scanner cannot prove that detections or recovery work. Connect each layer to explicit owners, tests, evidence, and failure handling.
Use precise nouns
Core cloud-security language
Control plane and data plane
The control plane creates and configures resources, identities, policy, and access. The data plane processes or stores workload data. Services differ: a permission that sounds read-only may expose data-plane actions, tokens, logs, or connection paths.
Account, subscription, project, tenant
Providers use different administrative containers. Normalize them as resource boundaries only after preserving the provider-native identifier, organization hierarchy, region, owner, environment, billing, and policy inheritance.
Human and workload identity
Human identities act for people; workload identities act for code, services, pipelines, functions, containers, and agents. Both need authentication, authorization, lifecycle, monitoring, and an accountable owner.
Landing zone
A landing zone is the governed foundation for organization hierarchy, identity, network, logging, security services, deployment, billing, and policy. It is a starting architecture—not a permanent certificate of security.
Posture, exposure, and exploitability
Posture describes configuration/control state. Exposure describes reachability or access paths. Exploitability depends on actual product, version, control context, preconditions, and behavior. A finding may concern one without proving the others.
Inherited, shared, and customer controls
Inherited controls are performed by another party for an applicable service/scope; shared controls divide activities; customer controls remain yours. Responsibility changes by provider, service model, feature, region, and contract.
Practitioner curriculum
Fourteen-module cloud-security learning path
Complete these modules against one representative workload, then expand across the portfolio. Every module produces an artifact that can be reviewed, tested, versioned, and handed to engineering or operations.
Shared responsibility, governance, and service ownership
Convert broad provider language into an operating agreement for every service and data flow.
- Inventory providers, tenants/organizations, accounts/subscriptions/projects, regions, services, SaaS applications, marketplaces, support plans, domains, identity providers, and critical integrations. Assign a business and technical owner.
- For each service, record service model, data handled, control plane, data plane, provider/customer/supplier responsibilities, configurable security features, defaults, required logs, backup, support escalation, and exit/deletion process.
- Define cloud governance: approved services and regions, resource ownership, data classification/residency, cost/budget controls, exception process, tagging/labels, lifecycle, supplier review, incident authority, and evidence retention.
- Establish a cloud center of enablement or equivalent collaboration among platform, security, identity, network, application, data, SRE, privacy, legal, procurement, and finance. Central guardrails must not make workload teams unaccountable.
- Map organizational requirements to verifiable controls. Use the current CSA Cloud Controls Matrix 4.1 when a vendor-neutral cloud control catalogue is useful; tailor applicability and evidence rather than copying every control.
- Define risk acceptance with owner, affected assets/data, evidence, compensating controls, expiry, review trigger, and remediation path. A provider compliance report does not accept customer workload risk.
Provider baselines: compare the AWS shared-responsibility model, Azure shared responsibility, and Google Cloud shared responsibility/shared fate. The division varies by service; none transfers responsibility for your identities and data.
Related Cyber Knowledge: Governance, Risk & Compliance (GRC) — Governance, organizational context, and accountable authority
Organizations, landing zones, policy, inventory, and cost guardrails
Build a governed foundation that constrains blast radius and makes every resource discoverable.
- Design organization/management hierarchy around security and operational boundaries—not the reporting chart alone. Separate production, non-production, security/log archive, shared services, identity, networking, sandbox, and suspended/quarantine areas.
- Use distinct accounts/subscriptions/projects and provider-native policy inheritance to limit regions, public exposure, unsupported services, root/owner activity, weak authentication, unencrypted storage, external principals, unmanaged keys, and log deletion where supported.
- Centralize organization-wide activity/audit, identity, configuration, security findings, DNS/flow, billing, and service logs into protected security/logging boundaries. Test new-region and newly enabled service coverage.
- Establish asset inventory from provider APIs, configuration/change services, resource graph, DNS/certificates, deployment state, registries, repositories, CMDB, and external exposure. Preserve provider-native IDs and relationships; names/tags can collide or drift.
- Require ownership, environment, application/service, data class, cost center, lifecycle, internet exposure, recovery tier, and repository/pipeline metadata through policy and automation. Define quarantine for unowned or policy-violating resources.
- Use budgets, anomaly detection, quotas, and rate/service limits to detect abuse and prevent runaway automation. Cost controls are security controls for cryptomining, denial-of-wallet, compromised keys, and AI resource abuse.
- Bootstrap the landing zone through reviewed, versioned infrastructure code with protected state, independent logging, break-glass recovery, and a tested update path. Avoid circular dependencies on the identity/network it must recover.
Related Cyber Knowledge: Governance, Risk & Compliance (GRC) — Cloud, DevSecOps, product, and control-as-code governance
Human, workload, pipeline, and emergency identity
Replace ambient privilege and long-lived keys with explicit, attributable, short-lived access.
- Federate workforce identities from an authoritative identity provider; prohibit routine shared accounts and unmanaged local users. Enforce phishing-resistant MFA where possible, device/context conditions, session lifetime, and monitored recovery.
- Separate everyday and privileged identities. Use just-in-time/time-bound elevation, approval for high-impact roles, privilege eligibility, session logging, and independent review. Inventory root/owner/global-admin access and eliminate routine use.
- Model effective authorization across direct grants, groups, nested groups, resource policies, role trust, service control/organization policy, permissions boundaries, conditional policies, delegation, impersonation, and cross-account/tenant/project access.
- Prefer provider-managed workload identity, federation, and short-lived tokens over static service-account keys or embedded secrets. Bind identity to the exact workload, environment, audience, repository/pipeline, and action required.
- Control pipeline and automation identity: protected branches/environments, OIDC subject/audience conditions, minimal deployment roles, artifact identity, approval, concurrency, credential-free runners, and separation between build and production administration.
- Govern secrets and keys by owner, consumer, purpose, environment, scope, creation, storage, access, rotation, revocation, recovery, audit, and destruction. Do not treat encryption as a substitute for authorization or secret lifecycle.
- Maintain break-glass identities isolated from normal federation, strongly protected, monitored, tested, and used only under documented conditions. Ensure response does not depend on a compromised primary identity plane.
- Review dormant, external, support, service, application, marketplace, workload, and machine identities. Revoke access automatically when owner, workload, contract, repository, or environment expires.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 9 — Identity defense and ITDR
Network, edge, service communication, hybrid access, and zero trust
Authorize flows to resources and services rather than trusting an address because it is “inside.”
- Build a data-flow and trust-boundary model for users, administrators, workloads, APIs, control-plane endpoints, third parties, on-premises, internet, private service access, DNS, management, and egress.
- Default-deny network paths where operationally feasible; explicitly authorize ingress, east-west, hybrid, management, and egress by source identity/context, destination resource/service, protocol, port, environment, and business purpose.
- Protect internet edges with managed DDoS, CDN, WAF/API gateway, TLS/certificate automation, bot/abuse controls, origin restriction, rate/resource limits, secure headers, and validated client/source attribution. Edge controls do not fix application authorization.
- Use private endpoints/service access deliberately. Review provider DNS zones, route tables, peering/transit, shared VPC/VNet, security groups/firewalls, load balancers, NAT, proxies, and service endpoints for transitive or unintended access.
- Control egress using destinations, DNS, proxies, service perimeters, network policy, endpoint policy, and workload identity. Account for package repositories, telemetry, backups, provider APIs, webhooks, and incident tooling before enforcing.
- Harden metadata/instance identity access, proxy headers, redirects, URL-fetching services, and server-side request functions against SSRF and credential theft. Require current provider protections and test application-layer bypasses.
- For cloud-native zero trust, authenticate and authorize user, workload, service, and device context at each resource boundary; use short-lived service identity and policy. Network segmentation remains useful but does not grant trust by itself.
- Log edge, DNS, flow, firewall, load balancer, API gateway, service mesh, and control-plane decisions with resource and identity context. Test what encryption, NAT, proxies, sampling, and managed-service abstraction hide.
Architecture baseline: NIST SP 800-207 removes implicit trust based on network location; SP 800-207A applies identity-tier and network-tier policy to multi-cloud cloud-native applications.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 8 — Network defense, protocol analysis, and NDR
Data classification, storage, cryptography, keys, backup, and deletion
Protect the complete data lifecycle and prove that recovery and deletion work under cloud failure modes.
- Inventory data sets, owners, subjects, classification, purpose, legal/contractual basis, residency, tenants, systems of record, replicas, caches, logs, analytics, snapshots, exports, AI indexes, and deletion obligations.
- Authorize data access at every layer: organization/resource policy, identity, object/table/row/column, service endpoint, application authorization, sharing link, backup, support, analytics, and administrative tooling. Test cross-tenant and cross-environment isolation.
- Block unintended public or external sharing using organization policy, account-level controls, resource policy validation, automated exposure checks, and change alerts. “Public access blocked” must cover all relevant paths, not only one ACL.
- Use encryption in transit and at rest with clear key ownership and threat model. Decide when provider-managed, customer-managed, external/HSM, or confidential-computing controls are justified; document availability, recovery, rotation, revocation, and cost tradeoffs.
- Separate key administration, data access, and audit. Restrict decrypt/sign operations by workload, context, region, and purpose; log and alert on policy changes, unusual use, disabled/deleted keys, failed decrypts, and emergency access.
- Design backups for ransomware and operator/provider failure: separate identity and account/project, immutability/object lock where supported, versioning, deletion protection, encryption/key survivability, offline/export needs, inventory, and tested restore.
- Define retention and deletion across primary stores, replicas, snapshots, backups, logs, caches, search indexes, queues, exports, test data, support bundles, AI embeddings, and suppliers. Record provider limitations and verification evidence.
- Prevent sensitive values in logs, tags, resource names, metadata, environment variables, tickets, prompts, CI output, container layers, or crash dumps. Discovery and DLP support review but do not replace data-flow design.
Related Cyber Knowledge: Secure Code & Application Security — Cryptography, secrets, and key lifecycle
Compute, managed services, serverless, SaaS, and workload hardening
Apply the right control set to each abstraction instead of copying virtual-machine assumptions everywhere.
- For every workload component, document the service model, execution identity, code/artifact source, patch boundary, configuration, network path, data, storage, admin plane, logs, backup, quotas, tenancy, and provider/customer responsibilities.
- For virtual machines, use hardened signed images, minimal packages/services, secure boot/attestation where required, encrypted disks, protected metadata, managed patching, EDR/runtime telemetry, no public administration, immutable replacement, and image retirement.
- For managed databases, queues, object stores, analytics, integration, and PaaS, control public endpoints, authentication, authorization, tenant/database roles, encryption, backup/PITR, extensions, export/import, service identity, network policy, audit, and provider maintenance.
- For serverless/functions, constrain triggers, invocation authorization, runtime/service identity, concurrency, duration, memory, temporary storage, environment/secrets, dependencies/layers, outbound destinations, dead-letter/retry behavior, and event replay/idempotency.
- For SaaS, govern federation, MFA, administrators, application consent, API tokens, integrations, sharing, guest/external users, audit retention, data export, backup, eDiscovery, support access, lifecycle, and offboarding.
- Harden application/API behavior—input, identity, authorization, secrets, SSRF, file/URL handling, rate/resource limits, session, error/logging, and tenant isolation. Managed hosting does not secure application logic.
- Use availability zones/regions, deployment stamps/cells, circuit breakers, quotas, graceful degradation, and tested failover according to business requirements. Security controls must fail safely without making recovery impossible.
Application layer: the Secure Code & Application Security field guide covers application, API, parser, cryptography, supply-chain, and AI-system controls that remain customer responsibilities in managed cloud services.
Related Cyber Knowledge: Secure Code & Application Security — Requirements, ownership, inventory, and data flow
Infrastructure as code, CI/CD, artifact provenance, and policy as code
Make reviewed code and verified artifacts the controlled path into the cloud.
- Declare infrastructure, organization policy, IAM, network, logging, data controls, clusters, applications, and detections as versioned code where practical. Define the exceptions that require imperative changes and how they are reconciled.
- Protect source, branches, tags, environments, workflows/actions/plugins, runners, variables, artifacts, modules, package registries, state, plans, and deployment identities. Untrusted pull-request code must not receive privileged cloud credentials.
- Use short-lived workload federation/OIDC from a tightly constrained repository, branch/tag/environment, workflow, audience, and subject. Separate build, test, release, production deploy, and cloud administration permissions.
- Pin modules, actions, images, providers, and dependencies to reviewed immutable identities; verify provenance/signatures where supported; generate an SBOM from the built artifact; and retain exact inputs and resolved versions.
- Review plan/change impact: new public paths, principals, trust, privileges, data stores, keys, regions, logs, deletion/replace actions, provider enablement, quotas, cost, drift, and rollback. Protect the plan from secrets and untrusted modification.
- Apply policy as code at authoring, pull request, admission/deployment, and runtime/configuration layers. Policies need tests, versioning, owners, severity, exemptions with expiry, rollout mode, observability, and safe failure handling.
- Secure remote state and locks with separate identity, encryption, versioning, audit, restricted access, backup, and break-glass recovery. State can contain resource identifiers and sensitive values even when marked “sensitive” in output.
- Detect and reconcile drift; distinguish approved emergency changes, provider-managed mutation, dynamic data, and unauthorized configuration. Do not automatically overwrite an active incident or valid hotfix without review.
Hands-on: the Vulnerable Cloud Lab with Terraform demonstrates reproducible AWS/GCP lab deployment and destroy-when-done handling. It is intentionally insecure training infrastructure, not a production baseline.
Related Cyber Knowledge: Secure Code & Application Security — Dependencies, source control, builds, artifacts, and supply-chain assurance
Container image, registry, runtime, and host security
Protect the image lifecycle and limit what a compromised container can reach or control.
- Start with minimal maintained base images; pin by digest; remove package managers, build tools, caches, credentials, source, and unnecessary binaries from runtime stages; use a non-root user and read-only file system where possible.
- Scan operating-system and application packages, secrets, malware, licenses, configuration, and provenance at build and registry time. Prioritize by deployed digest, reachability, exposure, privilege, exploit evidence, and business impact—not CVSS alone.
- Generate and retain SBOM, provenance, signature/attestation, build identity, tests, scanner results, and policy decision for each immutable artifact. Rebuild rather than patching running containers manually.
- Restrict registry push/pull/delete, cross-account sharing, replication, anonymous/public access, mutable tags, retention, signing keys, webhooks, and lifecycle rules. Monitor new repositories, policy changes, unusual pulls, and deletion.
- At runtime drop capabilities, prevent privilege escalation, apply seccomp/AppArmor/SELinux where supported, limit devices, host namespaces, host paths, sockets, kernel interfaces, sysctls, and resource consumption. Avoid privileged containers.
- Separate sensitive workloads on appropriately isolated nodes/runtimes. Keep host/container runtime/kernel patched, protect runtime sockets and metadata, monitor workload behavior, and design for immutable replacement.
- Control secrets and workload identity without baking them into image layers or broad environment variables. Use short-lived identity and mounted files/provider integrations with tight permission and audit.
- Preserve image digest, deployment manifest, runtime ID, node, identity, network, process/file events, and ephemeral storage during incidents. A tag name does not uniquely identify what ran.
Foundation: NIST SP 800-190 describes image, registry, orchestrator, container, and host risks. It was published in 2017, so combine its principles with current runtime, orchestrator, and provider documentation.
Related Cyber Knowledge: Secure Code & Application Security — Code review, SAST, SCA, secrets, IaC, and container analysis
Kubernetes control plane, RBAC, workload, network, and admission security
Treat the Kubernetes API, service accounts, workload creation, and nodes as privilege-bearing security boundaries.
- Define provider/customer responsibility for managed or self-managed control plane, etcd, nodes, upgrades, certificates, audit, identity, networking, storage, admission, autoscaling, backup, and support. Record cluster version and lifecycle.
- Restrict API-server reachability; federate human authentication; disable anonymous/legacy access where possible; use least-privilege RBAC; review cluster-admin, impersonate, bind, escalate, approve, token, secret, exec/attach, port-forward, node/proxy, CSR, and webhook powers.
- Use dedicated service accounts, disable automatic token mounting when unnecessary, use bounded short-lived tokens/workload identity, restrict token audiences, and prevent workloads from reading unrelated namespace or cloud credentials.
- Enforce Pod Security Standards—prefer Restricted for ordinary workloads—and add policy/admission controls for images/digests, signatures, registries, privilege, capabilities, root, host namespaces/paths/ports, seccomp, resources, probes, and approved exceptions.
- Apply namespace/tenant boundaries, quotas, limit ranges, default-deny NetworkPolicy, controlled ingress/egress, DNS policy, service-mesh identity if used, sensitive-node isolation, and stronger sandbox/runtime classes where the threat model requires them.
- Encrypt Secrets/appropriate API data at rest, restrict etcd and backup access, use external secret integrations when justified, avoid ConfigMaps/environment for confidential data, and monitor secret/token access.
- Protect nodes and kubelets: minimal OS, patching, secure bootstrap, restricted metadata, no unnecessary SSH, runtime/socket protection, node authorization/restriction, workload isolation, image cleanup, EDR/runtime telemetry, and controlled debugging.
- Enable and protect Kubernetes audit logs with a tested policy. Collect control plane, authentication, admission, scheduler, controller, kubelet, runtime, workload, network, DNS, registry, cloud identity, and deployment records into searchable storage.
- Back up cluster state and application data; test rebuilding the cluster and restoring state under compromised-identity conditions. GitOps/IaC helps reconstruction but does not automatically back up persistent data or secrets.
Current project guidance: use the official Kubernetes Security Checklist and RBAC Good Practices. Then practice safely with the 1200km Kubernetes Security Lab.
Related Cyber Knowledge: Red Team & Offensive Security — Module 5 — Cloud, containers, and Kubernetes
Cloud logging, detection engineering, ATT&CK, and response automation
Collect the evidence needed to detect control-plane and workload abuse, then validate each analytic against real data.
- Build a telemetry contract for organization, account/project/subscription, identity/federation, control plane, configuration, key/secret, storage/data access, network/DNS/edge, compute, database, SaaS, container/Kubernetes, application, CI/CD, security, and billing sources.
- For each source record scope, enablement/defaults, regions, event categories, data-access events, exclusions, latency, sampling, schema/version, identity/resource IDs, clock, retention, integrity, cost, export, and outage behavior.
- Centralize logs into a separately governed security boundary with least-privilege writers/readers, encryption, version/immutability where required, health monitoring, volume/budget controls, and independent alerting on disabled/deleted/changed logging.
- Engineer detections for new privileged identity/trust, access-key/service-account key creation, MFA/conditional-access change, unusual federation/session, policy/RBAC escalation, public sharing/exposure, logging impairment, key/secret access, snapshot/export, security-control change, suspicious deployment/image, data staging/exfiltration, cryptomining, and destructive recovery actions.
- Use MITRE ATT&CK’s cloud platforms to organize behavior and coverage. Map exact procedure, platform, data source, required fields, detection logic, assumptions, and test—not just a technique ID.
- Build known-good and known-bad fixtures in a lab; execute authorized simulations; verify raw event generation, ingestion, normalization, query, alert, entity mapping, enrichment, case routing, and responder action.
- Control automated response by scope, confidence, impact, prerequisites, approval, rate/concurrency, idempotency, timeout, rollback, audit, and safe failure. Start with enrichment/notification before destructive actions.
- Measure source health, field completeness, rule execution, latency, alert quality, coverage gaps, stale identities/resources, failed automation, and untested changes. “Logging enabled” is not “detection works.”
First-party detection practice: read Kubernetes Logging and Monitoring. Use AdversaryGraph for reviewed ATT&CK, evidence, hunting, and validation workflows—not as proof that provider telemetry exists.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 4 — Detection engineering and detection as code
Posture management, exposure, vulnerabilities, attack paths, and validation
Prioritize cloud risk from verified context rather than treating every scanner result or graph edge as compromise.
- Continuously inventory resources, identities, policies, network paths, data stores, images/packages, certificates/domains, public endpoints, vulnerabilities, sensitive data, logs, backups, and owners from authoritative provider APIs and deployment sources.
- Normalize CSPM/CNAPP/CIEM/KSPM/vulnerability/exposure findings while preserving provider-native ID, source, rule/version, observation time, configuration evidence, scope, status, and remediation history. Deduplicate mirrors without losing independent corroboration.
- Validate the exact resource and configuration. Account for provider defaults, inherited policy, effective authorization, route/load-balancer/DNS state, application controls, compensating protections, feature/region behavior, and scanner permission gaps.
- Separate misconfiguration, vulnerability, public reachability, effective privilege, sensitive data, attack path, known exploitation, and observed malicious activity. Each supports a different conclusion and response.
- Prioritize with business service, data class, internet/external exposure, exploitability, privilege, lateral reach, blast radius, deployed version, known exploitation, detection/recovery, owner, and age. Document uncertainty and rejected false positives.
- Model attack paths as hypotheses across external access, workload identity, trust/impersonation, policies, secrets, metadata, pipelines, network, data, backups, and other clouds/SaaS. Validate safely before asserting the path is usable.
- Remediate at the highest reusable layer: organization policy, identity pattern, landing-zone module, secure image, pipeline, admission rule, application control, or approved service template. Verify deployed state and monitor recurrence.
- Use authorized attack simulation to validate prevention and detection, with dedicated lab accounts/projects, test identities/data, cost caps, cleanup, provider terms, and evidence. Never assume a tool’s “success” proves real data access or business impact.
Authorized assessment: StratusAI is a maintained AWS/GCP assessment and simulation project; read its project article. Findings require operator validation and explicit scope.
Related Cyber Knowledge: OSINT & Reconnaissance — Defensive external attack-surface discovery and continuous monitoring
Cloud incident response, forensics, containment, and recovery
Prepare clean access, provider-native evidence, credential containment, and restoration before an incident spans regions and services.
- Prepare a security/forensic account, cross-account roles, independent identity, immutable evidence storage, encryption, organization-wide log access, automation, regional coverage, quotas, snapshots, provider contacts, and clean communication.
- Record case authority, tenant/account/project/subscription, resource and principal IDs, regions, session/token, API request IDs, source, user agent, raw and normalized timestamps, evidence export query, object version/hash, collector, and limitations.
- Preserve identity/federation, control plane, configuration, data-access, key/secret, network/DNS, workload/application, container/Kubernetes, pipeline/repository, billing, support, security finding, snapshot, and backup evidence before retention expires.
- Contain the full trust graph: sessions/tokens, human/workload/pipeline identities, keys/secrets, role trust, federation, application consent, policies, cross-account access, network/egress, exposed resources, and compromised delivery paths.
- Snapshot or copy disks, objects, images, logs, serverless/package artifacts, manifests, persistent volumes, and relevant runtime state into the forensic boundary. Separate collection from analysis and avoid attaching affected storage to normal systems.
- Scope organization-wide and cross-region activity, newly enabled services, replicated resources, related identities, marketplace/SaaS integrations, domains/certificates, and other clouds. Provider abstractions and short-lived resources demand API evidence.
- Eradicate entry point, persistence, trust abuse, malicious resources, poisoned artifacts, vulnerable configuration, and exposed credentials. Rebuild from verified code/images and rotate secrets in dependency order.
- Restore control plane, identity, logging, security services, network, workloads, data, and business flows through staged criteria. Validate backup/key availability, provenance, access, detection, monitoring, cost, and rollback.
Integrated practice: use the DFIR field guide and AdversaryGraph cloud-incident workflow to preserve the boundary between source evidence, enrichment, inference, and decision.
Related Cyber Knowledge: Digital Forensics & Incident Response (DFIR) — Cloud, SaaS, identity, container, and Kubernetes forensics
Multi-cloud, SaaS, suppliers, compliance, and continuous assurance
Standardize outcomes and evidence without hiding provider-specific controls, contracts, and failure modes.
- Define common control outcomes for ownership, identity, privileged access, workload identity, network, data, keys, logging, vulnerabilities, delivery, backup, incident response, deletion, and supplier access. Map provider-native implementations beneath them.
- Preserve provider-native identifiers, APIs, policy semantics, regions, event schemas, defaults, and evidence. A normalized field improves correlation but can erase a critical distinction unless the original remains linked.
- Govern cross-cloud connections and identity federation: trust anchors, issuers, audiences, subjects, certificates, DNS, network transit, egress, secrets, replication, data transfer, logging, and revocation. Avoid one broad identity spanning all providers.
- Assess SaaS and suppliers for service/data flow, sub-processors, locations, shared responsibilities, identity, admin/support access, integrations/tokens, encryption/key options, logging/export/API, retention/deletion, backup/recovery, incident notification, assurance evidence, exit, and concentration risk.
- Map controls to applicable obligations and contracts with owner, scope, implementation, inherited/shared/customer responsibility, evidence, collection cadence, exceptions, and test. Do not claim compliance from a tool score or provider certification alone.
- Use provider attestations, CSA STAR/CAIQ where appropriate, penetration-test summaries, architecture, control evidence, incidents, service health, support history, and contract terms as different evidence types. Review applicability and period.
- Continuously assure high-risk controls through API evidence and tests while protecting credentials, costs, rate limits, and sensitive results. Maintain human review for exceptions and business-context decisions.
- Plan portability and exit: data and key export, identity removal, domain/certificate transfer, workload reconstruction, dependency replacement, evidence retention, deletion verification, cost, time, and business acceptance.
Related Cyber Knowledge: Governance, Risk & Compliance (GRC) — Third-party, service-provider, and software supply-chain risk
Cloud AI/ML, agents, RAG, MCP, and autonomous operations
Secure data, model, retrieval, tool, identity, and action paths without granting a probabilistic component unchecked cloud authority.
Pair the provider-specific controls below with the AI Security infrastructure and availability model so identity, egress, resource abuse, degradation, and recovery are tested as one system.
- Inventory model providers/versions, endpoints, training/tuning/evaluation data, prompts/system instructions, retrieval sources, embeddings/vector stores, agents, plugins, MCP/A2A servers, tools, workload identities, secrets, outputs, logs, safety controls, and retained content.
- Assign shared responsibility for base model, managed platform, customer data, application, retrieval, identity, tools, actions, moderation, monitoring, incident response, and deletion. Provider model safety does not secure your authorization or tool integrations.
- Classify prompts, files, retrieved content, model outputs, feedback, traces, and training data. Apply region/residency, encryption, tenant isolation, access, retention, deletion, DLP, privacy, copyright, and provider training/use settings.
- Use per-workload or propagated user identity and short-lived tokens. Avoid broad service accounts shared by every agent. Authorize retrieval and each tool/resource action independently from the model’s text.
- For RAG, apply security trimming before retrieval and before response; preserve source identity/version/citation; isolate tenants and classifications; validate ingestion; detect poisoning; and reconcile additions, updates, deletions, and access changes.
- For MCP/tools, allowlist server, tool, target, action, and data; validate strict input/output schemas; isolate execution; restrict network/file/cloud access; cap time/cost/concurrency; record calls; and require human approval for consequential changes.
- Test prompt injection, indirect instruction in documents/web/logs, data leakage, cross-tenant retrieval, tool confusion, identity substitution, excessive agency, insecure generated code, resource exhaustion/denial of wallet, poisoned model/artifact, and unavailable provider.
- Protect ML pipelines, feature stores, notebooks, registries, artifacts, deployment endpoints, evaluation sets, GPUs/accelerators, and supply chain like other privileged delivery systems. Pin and verify model/artifact identity where possible.
- Log provider/model/version, prompt/template, data classification, source IDs, retrieval, tool calls, policy/authorization, approvals, output, cost/token/resource use, reviewer, and final disposition without leaking secrets or prohibited content.
Ecosystem: review the AdversaryGraph RAG/MCP guide, AI in Offensive Security, and HexStrike research. These are implementation and testing resources, not automatic assurance claims.
Related Cyber Knowledge: AI Security — Infrastructure, network, resource, and availability security
Select by decision and evidence
Cloud-security tool-selection matrix
Prefer provider APIs and authoritative configuration as evidence. Third-party tools add normalization, graphing, policy, and scale, but their permissions, freshness, coverage, and interpretation must be visible.
| Capability | Examples | Best question | Evidence and common limit |
|---|---|---|---|
| Inventory/configuration | AWS Config/Resource Explorer, Azure Resource Graph/Policy, Google Cloud Asset Inventory/Organization Policy | What exists, who owns it, how is it configured, and what changed? | Native IDs and config/change history. Scope, permissions, regions, and unsupported resources can create blind spots. |
| Identity/effective access | Provider IAM analyzers, access reviews, CIEM/graph tools, policy simulators | Who or what can perform which sensitive action through direct and indirect trust? | Policies and path. Simulators may not capture application authorization, runtime conditions, or future role chaining. |
| Posture/policy | AWS Security Hub, Defender for Cloud, Security Command Center, OPA/Conftest, Checkov, tfsec | Which deployed or planned configurations violate a defined policy? | Resource/rule/version and config. A failed check does not prove exposure or exploitation. |
| Vulnerability/image | Provider scanners, Trivy, Grype, OSV-Scanner, Syft/CycloneDX | Which resolved packages/images have relevant advisories and what was actually deployed? | Digest/SBOM/advisory. Version match alone does not prove reachability or exploitability. |
| Attack-path analysis | Provider exposure/access analyzers, PMapper, Cartography, BloodHound cloud connectors, CNAPP graphs | Which identity, network, secret, workload, and data relationships may compose a path? | Versioned graph and edge sources. A possible edge/path must be validated safely. |
| Kubernetes posture | kube-bench, Kubescape, kube-linter, Kyverno, Gatekeeper, provider posture services | Do cluster and workload settings meet a tested baseline? | Cluster/version/policy/result. Benchmark alignment does not prove runtime isolation or detection. |
| Runtime | Provider workload protection, Falco, Tetragon, EDR/eBPF/runtime platforms | What behavior is occurring inside workloads/nodes and does it violate policy? | Event/sensor coverage. Kernel/runtime support, encryption, and sampling influence visibility. |
| Logging/detection | CloudTrail, Azure Activity/Entra/Defender, Google Cloud Audit Logs/SCC, Kubernetes audit, SIEM/Sigma/YARA-L | Which identity changed or accessed which resource, from where, and was it detected? | Raw event plus query/rule/test. Default logging often omits data-access or regional sources. |
| Infrastructure delivery | Terraform/OpenTofu, CloudFormation, Bicep/ARM, Pulumi, GitOps, cosign/SLSA tooling | Is deployed infrastructure traceable to reviewed code and verified artifacts? | Plan, commit, identity, provenance, deployment. Drift and console changes can diverge. |
| Authorized simulation | Stratus Red Team, Atomic Red Team cloud tests, StratusAI, purpose-built lab scripts | Do prevention, logging, detection, response, and cleanup work end to end? | Scope, commands, raw events, alerts, response and teardown. Simulator success is not business compromise. |
| Forensics/response | Provider snapshots/exports, security account automation, Velociraptor/osquery for hosts, Kubernetes collection | Can the team preserve evidence and contain/recover with clean access? | Immutable export/snapshot and transcript. Managed services limit infrastructure visibility. |
| AI assistance | Approved cloud LLM, access-trimmed RAG, schema-constrained MCP tools | Can a model accelerate explanation, query, triage, and remediation proposals safely? | Citations, model/prompt/tool/authorization and reviewer. Output remains unverified. |
Reusable artifact
Cloud architecture and control record
Use one record per workload/control decision and link it to provider-native evidence. Keep the previous version when a decision changes.
workload:
id:
name:
business_owner:
technical_owner:
environment:
criticality_and_recovery_tier:
provider_tenant_org_account_project:
regions:
services:
repository_pipeline_artifacts:
data_classes_and_residency:
external_and_hybrid_connections:
responsibility:
control_outcome:
provider_responsibility:
customer_platform_responsibility:
workload_team_responsibility:
supplier_or_customer_responsibility:
contract_or_service_document:
unresolved_gap:
implementation:
architecture_decision:
organization_policy:
identity_and_effective_permissions:
network_and_edge:
data_key_backup_deletion:
workload_runtime:
delivery_and_provenance:
logging_detection_response:
exceptions_and_expiry:
verification:
evidence_ids_and_native_resource_ids:
configuration_observed_at_utc:
source_api_query_and_version:
test_case:
expected_result:
actual_result:
failures_or_blind_spots:
reviewer:
decision:
next_review_or_trigger:
Version, do not overwrite: a provider feature, policy, workload, identity, region, contract, or threat-model change should create a new reviewed record linked to the prior decision and deployed evidence.
Worked analytical patterns
Six end-to-end cloud-security case studies
These are controlled training patterns. Use synthetic identities and data in isolated lab accounts/projects/subscriptions; do not reproduce them against third-party environments.
1. Public object storage with customer exports
Finding: a posture tool reports a storage bucket/container as public and identifies sensitive-looking filenames.
Workflow
- Preserve resource ID, account/project, policy/ACL, public-access controls, website/CDN/origin paths, object inventory/metadata, classification, logs, owner, and observation time.
- Validate effective anonymous/external access with an authorized minimal request; avoid downloading sensitive content. Check resource, account, organization, signed URL, CDN, cross-account, and application paths.
- Determine exposure start, objects affected, access logs, search/index/cache behavior, replication/backups, and whether external access occurred. Absence of disabled data-access logs is unknown.
- Block exposure at the reusable policy layer, preserve evidence, rotate exposed secrets if present, notify data/legal/privacy owners, and verify every access path and derivative copy.
- Add organization policy, IaC test, change alert, owner/classification requirement, and safe synthetic regression.
Do not claim: “public” automatically proves data was read, or “no access logs” proves it was not.
2. Leaked static access key and cross-account role abuse
Finding: secret scanning finds a cloud key in repository history; audit logs show role assumption into production.
Workflow
- Revoke or disable under incident authority while preserving key metadata, repository history, pipeline logs, IAM policies/trust, sessions, request IDs, and affected resources.
- Trace key creation, owners, repositories/artifacts/logs/images where exposed, API activity, role chain, source, user agent, regions, newly enabled services, data/key/secret access, and persistence.
- Contain sessions, keys, role trust, pipeline identity, downstream secrets, and malicious resources. A key rotation alone does not invalidate every temporary session or delegated path.
- Replace static credentials with tightly conditioned workload federation; remove key-creation permissions, scan history/artifacts, and test revocation plus detection.
Evidence boundary: source IP and access-key identity support session activity; they do not by themselves identify the human actor.
3. Kubernetes service-account escalation
Finding: an internet-facing pod is compromised and its service account can create workloads in the namespace.
Workflow
- Preserve ingress/WAF, application, Kubernetes audit, workload manifest/digest, service account/token, RBAC, admission, network, runtime, node, cloud identity, registry, and deployment evidence.
- Evaluate whether workload creation enables another service account, secret mount, hostPath/privilege, host network/PID, node scheduling, metadata, admission bypass, or cross-namespace/cloud access.
- Contain ingress and service/cloud identity; revoke/rotate tokens and exposed secrets; quarantine affected workload/node where justified; preserve volatile runtime state.
- Fix the application and RBAC path, disable token automount, enforce Restricted Pod Security/admission and egress, pin verified images, rebuild, and test audit/detection.
Lab: reproduce the path only in the intentionally vulnerable Kubernetes lab.
4. CI OIDC trust permits an unreviewed deployment
Finding: a pipeline can obtain a production role from more branches, repositories, or workflows than intended.
Workflow
- Preserve identity-provider trust, OIDC claims/conditions, repository/workflow/environment settings, branch protection, runner, artifact, deployment, and cloud audit evidence.
- Enumerate who can change workflow code, trigger it, approve environment, influence reusable actions/dependencies, control runners, publish artifacts, and satisfy subject/audience conditions.
- Constrain issuer, audience, organization/repository, ref/environment, workflow identity, and session duration; separate build from deploy; require protected environment approval and verified artifact identity.
- Test allowed and denied claim sets, fork/pull-request behavior, reusable workflows, tag/branch patterns, compromised runner assumptions, and rollback.
Do not claim: “OIDC means no secrets” implies safe federation. An overbroad trust policy is a credential-issuance vulnerability.
5. Serverless SSRF reaches workload credentials
Finding: a function or managed application fetches user-supplied URLs and can be redirected toward metadata or private service endpoints.
Workflow
- Map input, parser/canonicalization, DNS, redirects, proxy, egress, private endpoints, metadata/identity protections, execution role, secrets, and accessible APIs/data.
- Validate with a controlled callback and synthetic target—never request real credentials. Test alternate schemes, encodings, IPv4/IPv6, DNS rebinding defenses, redirects, and provider-specific metadata requirements.
- Restrict destinations at application and network/egress layers; validate each redirect/resolution; use minimal workload identity; apply endpoint/resource policies, time/size limits, and safe response handling.
- Test logging and detection from function invocation through DNS/flow/proxy and denied metadata/private API access; rotate if real credentials may have been exposed.
Do not claim: URL allowlisting or a blocked literal metadata address proves SSRF is fixed across canonicalization, redirects, DNS, IPv6, proxies, and private services.
6. Ransomware targets snapshots, keys, and backups
Finding: a privileged session changes backup retention, disables a key, and begins deleting snapshots across regions.
Workflow
- Declare an incident; protect security logging, identity, organization policy, key management, backup vaults/accounts/projects, and clean response access.
- Preserve authentication/session, role elevation, API request IDs, key/backup policy, deletion/recovery settings, object/version, cross-region replication, billing, and provider support records.
- Revoke the complete identity/session/trust path; apply temporary organization controls; isolate destructive automation; preserve evidence; engage provider support where recoverability windows matter.
- Recover keys and backups under tested procedures; rebuild control plane and workloads from verified code/artifacts; rotate credentials; validate data integrity and business flows.
- Implement separate backup identity/boundary, immutability, deletion protection, multi-person approval, recovery testing, and alerts on destructive or policy-changing actions.
Acceptance: a backup is not trusted until restoration, key access, application consistency, identity, and business validation succeed.
Practice safely and destroy completely
Twelve-lab cloud-security progression
Create dedicated lab organizations/accounts/projects/subscriptions, synthetic identities/data, strict budgets/quotas, and verified teardown. Never connect intentionally vulnerable labs to production, corporate identity, normal endpoints, or valuable data.
Labs 1–4: foundation and identity
- Responsibility matrix: choose VM, object storage, managed database, function, SaaS, and Kubernetes services; assign provider/customer/workload controls and evidence.
- Landing zone: create sandbox, security/logging, and workload boundaries with organization policy, centralized audit, inventory tags, budget alerts, and break-glass access.
- Effective IAM: build direct, group, resource-policy, role-trust, impersonation, and conditional grants; graph effective access and remove an escalation path.
- Workload federation: deploy from a test repository using OIDC/short-lived identity; prove a permitted environment succeeds and branch/fork/audience variations fail.
Labs 5–8: network, data, delivery, and runtime
- Flow and egress: build public edge, private service, workload, admin, and egress paths; enforce minimum flows and validate DNS/flow/firewall evidence.
- Data/key/recovery: create synthetic sensitive objects, block public access, apply key separation, immutable/versioned backup, delete/restore, and verify evidence.
- IaC policy: introduce an insecure Terraform change; catch it in plan/policy, deploy a corrected version, detect drift, and reconcile without losing the record.
- Container chain: build a minimal image, create SBOM/provenance/signature, scan, enforce digest/admission, run non-root with reduced capability, and preserve runtime evidence.
Labs 9–12: Kubernetes, detection, IR, and AI
- Kubernetes escalation: in the isolated vulnerable lab, trace a Pod-creation/RBAC path, apply Pod Security/admission/network/service-account controls, and regression test.
- Detection chain: run one authorized cloud simulation and verify native event, centralized ingestion, fields, ATT&CK mapping, alert, case, responder action, and cleanup.
- Cloud IR: use a synthetic key-abuse scenario; collect immutable audit/snapshot evidence, contain sessions/trust, rebuild from code, restore data, and produce a timeline.
- AI agent boundary: let an approved agent propose a cloud change through a schema-constrained MCP tool; test prompt injection, least privilege, denied target, cost cap, approval, audit, and rollback.
Score every lab
- Scope, authorization, provider terms, budget, data, and cleanup are explicit.
- Provider-native resource and principal IDs are preserved.
- Configuration and effective access are independently verified.
- Raw logs, query/rule, alert, decision, and response remain linked.
- Failure, partial coverage, region, permissions, and cost are recorded.
- Remediation occurs at a reusable policy/code layer.
- Rollback, teardown, and post-destroy inventory are verified.
- Claims distinguish posture, exposure, exploitability, and compromise.
Lab library: use the 1200km Cloud & Kubernetes lab index, GCP Terraform lab, and AWS/GCP walkthrough only in isolated authorized environments.
What fails in real cloud programs
Failure atlas and production readiness gate
| Failure pattern | Why it fails | Corrective control |
|---|---|---|
| “The provider secures it” | Identity, data, configuration, application, logging, and response remain customer/shared responsibilities. | Create a per-service responsibility matrix with owners, implementation, and tested evidence. |
| One production account/project | Privilege, policy, billing, logging, backup, and incident blast radius converge. | Use governed organization hierarchy and separate security/logging, backup, production, non-production, and sandbox boundaries. |
| Administrator role for automation | One pipeline, agent, or key compromise controls the environment. | Use short-lived, tightly conditioned workload identity and separate build/deploy/admin roles. |
| “Private subnet equals trusted” | Compromised workloads, peering, routes, metadata, service endpoints, and identities cross network boundaries. | Authorize resources by identity/context and explicit flows; retain segmentation as defense in depth. |
| Encryption checkbox | Overbroad access, key administrators, exports, logs, backups, or application exposure can still disclose data. | Design authorization, key separation/lifecycle, data flows, monitoring, backup, and deletion together. |
| Public endpoint disabled | CDN/origin, signed URL, external principal, proxy, hybrid path, or application sharing may still expose data. | Validate every effective access path and block at organization, resource, network, and application layers. |
| Scanner score as risk | A rule match omits effective permission, reachability, data, exploitability, business impact, and compensating controls. | Preserve finding evidence and add contextual validation with a documented decision. |
| Cloud logs enabled by default | Data events, regions, SaaS, Kubernetes, short retention, exclusions, and new services may be missing. | Maintain a telemetry contract and end-to-end event/alert/response tests. |
| Mutable image tags | What was scanned, approved, deployed, and investigated can differ. | Use digests, SBOM, provenance/signature, immutable deployment records, and admission policy. |
| Namespace is strong tenancy | Cluster roles, service accounts, nodes, network, admission, secrets, and control plane can cross boundaries. | Threat-model tenancy and use separate clusters/accounts or stronger isolation where required. |
| Backup exists | Compromised identity/keys, deletion policy, corrupted data, or untested dependencies can prevent recovery. | Separate and protect backups/keys; perform complete restoration and business validation. |
| AI agent has one broad cloud role | Prompt injection or model/tool error gains the agent’s entire blast radius. | Propagate user/workload identity, scope tools and targets, enforce deterministic policy, approval, cost caps, audit, and rollback. |
Minimum production readiness gate
- Every provider, tenant, account/project/subscription, service, integration, region, and workload has an owner and inventory record.
- Shared responsibilities are documented per service and mapped to customer implementation and current evidence.
- Organization hierarchy, logging/security/backup boundaries, policy inheritance, metadata, budgets, and break-glass access are tested.
- Human, privileged, workload, pipeline, support, external, and emergency identities use least privilege and governed lifecycle.
- Approved ingress, egress, hybrid, control-plane, private-service, metadata, and tenant flows are documented and tested.
- Data classification, access, public-sharing prevention, key separation, immutable backup, restore, retention, and deletion work.
- Infrastructure code, state, dependencies, artifacts, images, provenance, policies, deployment identity, drift, and rollback are protected.
- Containers and Kubernetes enforce tested image, RBAC, service-account, Pod, admission, network, secret, node, audit, and recovery controls.
- Telemetry contracts cover identity, control/data plane, network, workload, container/Kubernetes, application, pipeline, security, and cost.
- High-risk detections and response automations have fixtures, end-to-end tests, approvals, safe failure, rollback, and health monitoring.
- Cloud IR can operate through clean access, preserve cross-region/provider-native evidence, contain identity/trust, and restore trusted service.
- SaaS, suppliers, cross-cloud federation, compliance evidence, concentration risk, exit, and deletion are governed.
- Cloud AI/RAG/agents/MCP have data handling, source authorization, identity propagation, tool policy, abuse testing, cost controls, audit, and human approval.
Authoritative baselines and ecosystem practice
Standards, provider guidance, and first-party reading
Primary and current guidance
- CSA Cloud Controls Matrix 4.1 — the current vendor-neutral cloud control framework released in January 2026.
- AWS Well-Architected Security Pillar — service-dependent shared responsibility and security design guidance.
- Azure Well-Architected Security Pillar — security design principles and workload recommendations.
- Google Cloud Well-Architected Security, Privacy, and Compliance — principles across governance, IAM, data, operations, application, AI, and logging.
- NIST SP 800-207 and SP 800-207A — zero trust and application/service identity in multi-cloud cloud-native systems.
- NIST SP 800-190 — container image, registry, orchestrator, runtime, and host risk foundation.
- Kubernetes Security documentation — current upstream controls for API access, Pod security, secrets, network, admission, audit, and workload isolation.
- MITRE ATT&CK Cloud Matrix — behavior reference across Office Suite, Identity Provider, SaaS, and IaaS platforms.
1200km and AdversaryGraph practice
- Building a Vulnerable Cloud Lab with Terraform — disposable AWS/GCP training infrastructure.
- GCP Penetration Testing and the complete cloud walkthrough — authorized attack-path practice.
- Kubernetes Security Lab and Kubernetes Logging and Monitoring — isolated cluster hardening and evidence.
- StratusAI — source-backed AWS/GCP assessment and simulation workflow requiring analyst validation.
- AdversaryGraph, cloud incident investigation, and campaign clustering — evidence-linked investigation and ATT&CK context.
- DFIR, Secure Code, Red Team, and Blue Team — incident, application, authorized simulation, and defensive operations handoffs.
- Cloud & Kubernetes labs and cloud/Kubernetes guides — the maintained site indexes for hands-on material.