Skip to content

Course

Cloud Security: GCP & Azure

How GCP and Azure actually grant access — resource-attached IAM, service accounts, managed identity, storage perimeters, vaults, and the logging gaps attackers walk through.

14 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Identity Models

GCP's resource-attached allow policies versus Azure's dual Entra/RBAC planes, and the permissions that grant permissions.

  1. 01GCP IAM: The Policy Lives on the ResourceGCP binds principals to roles on the resource itself, and access is the union of every binding up the hierarchy.15mOpen
  2. 02Azure Has Two Permission Systems That Don't Talk to Each OtherEntra ID directory roles govern tenant objects; Azure RBAC governs resources — Contributor's listKeys reaches across the line.16mOpen
  3. 03The Permissions That Matter Are the Ones That Grant PermissionsactAs, TokenCreator, listKeys, runCommand, and setIamPolicy are the real admin surface in both clouds.14mOpen

Workload Identity

Service account keys, Workload Identity Federation, Managed Identity, and why default identities ship holding Editor.

  1. 01A Service Account JSON Key Is a Password That Never ExpiresThe key.json file is a bearer credential — no expiry, no MFA, no network boundary — and ADC will happily read it.13mOpen
  2. 02Workload Identity Federation: Exchange a Token, Don't Store a KeyWIF trades an OIDC assertion for a federated token and a short-lived service account token — the config file holds no secret at all.16mOpen
  3. 03Managed Identity: The Credential That Isn't a CredentialAzure IMDS mints tokens for the identity attached to the VM — which moves the attack surface to whatever can reach 169.254.169.254.15mOpen
  4. 04Default Service Accounts: Editor by Another NameGCP's default compute and App Engine identities are granted project Editor — every workload attached to them carries the project.12mOpen

Storage and the Data Plane

Buckets, SAS tokens, public-access flags, and the network perimeter everyone assumes the provider already built.

  1. 01GCS: `allUsers` Means All Users, and `allAuthenticatedUsers` Still Means All UsersThe two bucket principals that put objects on the internet, and the two switches that kill the whole mistake class.14mOpen
  2. 02Azure Storage: The Account Key Is a Master Key and SAS Is a URL That Leakskey1/key2 bypass the RBAC data-plane split entirely, and Microsoft's own 38TB SAS leak is the case study.16mOpen
  3. 03The PaaS Endpoint Is Public Until You Change It0.0.0.0/0 firewall rules, enabled-from-all-networks defaults, and the private-endpoint DNS debt you actually pay.14mOpen

Secrets and Keys

Secret Manager versus Key Vault, KMS separation of duties, and where the trust boundary actually sits after you move secrets into a vault.

  1. 01Secret Manager vs Key Vault: Same Shape, Different KnivesGCP scopes secrets as individual IAM resources; Azure's vault has two auth models — and one of them lets Contributor self-grant.14mOpen
  2. 02KMS: Who Can Decrypt Is the Real Security BoundaryEnvelope encryption means useToDecrypt turns storage reads into plaintext — split encrypt, decrypt, and admin across principals.15mOpen

Logging and Breach Anatomy

What is logged by default — and what is not — plus the real incidents that wrote the defaults you run today.

  1. 01Audit Logs: What's on by Default and What Isn'tGCP Admin Activity and Azure Activity Log log control plane by default — data reads are silent until you configure them.16mOpen
  2. 02Four Breaches That Wrote Your DefaultsMicrosoft's SAS leak, Storm-0558, Midnight Blizzard, and UniSuper — each one shipped a guardrail you're now expected to run.18mOpen