Cloud security reviews often produce long lists of permissions and configuration observations. An offensive assessment asks a different question: which identities can reach which sensitive resources through which trust relationships? That shift turns configuration review into attack-path analysis.
1. Identify entry identities
Start with realistic footholds: application workloads, CI/CD identities, developer roles, support accounts, exposed access keys and federated identities. Build an inventory of where credentials originate and what they can call.
2. Map trust relationships
Role assumption, workload identity federation, cross-account trust and service-to-service permissions create edges in the attack graph. Review both sides of the relationship: who can assume the role and what the assumed role can do.
| Edge | Test | Question |
|---|---|---|
| Identity → role | Assume/attach permissions | Can the principal obtain the role? |
| Role → resource | Action/resource pair | What can it actually access? |
| Account → account | Cross-account trust | Is the trust broader than intended? |
| Workload → secret | Runtime identity | Can the workload retrieve sensitive material? |
3. Look for privilege transitions
Common transitions include modifying a role or policy, passing a role to a compute service, changing a workload identity, reading a deployment secret or using an overly broad service role. The exact mechanisms differ across cloud providers, so document the provider, service and permission semantics in the finding.
Attack-path builder
4. Validate the resource boundary
Prove access against a dedicated test object or synthetic secret where possible. The goal is to show that the identity path crosses a security boundary, not to retrieve production data unnecessarily.
5. Quantify blast radius
Document what the compromised identity could read, modify, delete or delegate. Separate theoretical permissions from verified reachable actions. This distinction makes remediation more actionable and prevents inflated severity claims.
6. Reduce the path
- Apply least privilege to workload identities.
- Constrain role trust policies to specific principals.
- Remove unused permissions and stale identities.
- Separate administrative and runtime roles.
- Protect secrets with identity-aware access controls.
- Monitor role assumptions and sensitive permission changes.
- Review cross-account and federation boundaries regularly.
Assessment references
Use the cloud provider’s IAM documentation alongside your organization’s threat model. The important output is an evidence-backed path from entry identity to sensitive resource—not a generic list of permissions.
