Cloud & IAMidentityandaccessmanagementiam

Identity and Access Management (IAM)

An IAM decision binds a principal, action, resource and conditions; a wildcard in any dimension expands blast radius.

▶ Run the labFollow the failure

Frame the problem

Security starts with a concrete asset, attacker capability and trust crossing.

Asset
Cloud resources and the control-plane actions that change them.
Attacker & capability
Someone who obtains a human, service, CI or agent identity.
Trust boundary
Authenticated identity → authorized cloud API action
AssetThreatAttack SurfaceTrust BoundaryVulnerabilityExploit PathImpactMitigationDefense in DepthResidual Risk

Why the system fails

A role allows broad actions/resources, can be assumed by too many principals, or is never reviewed after temporary escalation.

The important question is not “what is Identity and Access Management (IAM)?” but “which assumption let untrusted data or an over-scoped identity cross authenticated identity → authorized cloud api action?” Trace the decision at the boundary, then constrain what can happen after the first control fails.

Design the control in layers

Start with the control closest to the interpretation or privilege boundary: Scope actions, resources and trust relationships Then add a control that reduces blast radius and telemetry that proves the decision was enforced.

The resulting design is not labelled secure. Record the identified controls, the known failure paths, the remaining exposure, and the evidence you would need during an incident.

PreventDetectRecover
Scope actions, resources and trust relationships · Separate deployment, runtime and break-glass roles · Review effective access and unused permissionsDenied calls, unusual role assumptions and sensitive API actionsContain the affected identity or component, scope impact from audit evidence, and preserve a regression test.

Key points

  • Asset: Cloud resources and the control-plane actions that change them.
  • Boundary: Authenticated identity → authorized cloud API action
  • Primary control: Scope actions, resources and trust relationships
  • Detection signal: Denied calls, unusual role assumptions and sensitive API actions
  • Always ask what limits damage when the primary control fails.

IAM Policy Boundary

Change the system and observe which assumption moves.

Boundary control check
Untrusted input / identity
Trust boundary
Privileged asset
Prevention may fail silently.

Follow the attack

Safe conceptual simulation: capability → missing control → crossed boundary → asset impact.

  1. 1
    Attacker starts with: Someone who obtains a human, service, CI or agent identity.
  2. 2
    A role allows broad actions/resources, can be assumed by too many principals, or is never reviewed after temporary escalation.
  3. 3
    The weak or missing boundary control is crossed: Authenticated identity → authorized cloud API action
  4. 4
    Impact: Everything the effective policy permits, often across many resource types.
Blast radius
  • Everything the effective policy permits, often across many resource types.

Defend, detect, recover

One prevention is a single point of security failure. Layer it and make failure observable.

Prevent
  • • Scope actions, resources and trust relationships
  • • Separate deployment, runtime and break-glass roles
  • • Review effective access and unused permissions
Detect
  • • Denied calls, unusual role assumptions and sensitive API actions
Respond & recover
  • • Contain the affected identity or component.
  • • Scope access from audit evidence.
  • • Fix the boundary and add a regression test.
Residual risk
  • • Misconfiguration and new access paths can bypass the intended control.
  • • A privileged insider or compromised control plane may still reach the asset.

Misconceptions

Claim
“A single scope actions, resources and trust relationships control makes this safe.”
Reality
One control changes risk; it does not erase it. Design prevention, detection, recovery, and blast-radius limits together.