TL;DR: Cloud identity risk is increasingly about reachable permission paths, not isolated misconfigurations, according to OFFENSAI. OFFENSAI reports that its autonomous offensive agent solved all 122 Datadog Pathfinding Labs in AWS, with an average of 9 turns and a longest path of 17 turns, showing that contextual discovery can outperform static scanning in real privilege-escalation chains.
At a glance
What this is: This is an analysis of an autonomous offensive agent solving 122 AWS privilege-escalation labs, with the key finding that live contextual reasoning beat static pattern matching across every path.
Why it matters: It matters to IAM practitioners because cloud risk now depends on how identities, roles, and service permissions connect in practice, not just whether individual settings look safe in isolation.
By the numbers:
- The agent solved all 122 live labs, with an average of 9 turns and a longest single solve of 17 turns.
- The simplest paths were resolved in 1 to 3 turns, while the hardest SageMaker category averaged 14.6 turns.
- Only 5.7% of organisations have full visibility into their service accounts.
👉 Read OFFENSAI's analysis of autonomous cloud privilege escalation across 122 AWS labs
Context
Autonomous attack tooling is changing how cloud identity risk should be evaluated. In AWS, a single misconfiguration rarely matters on its own; the real exposure comes from how roles, permissions, and cross-account trust paths compose into a reachable escalation route. That is especially relevant for IAM teams, because attackers do not need a complete map at entry, only enough access to build one.
The article tests that idea with a low-privilege foothold and shows that the agent could discover and execute privilege-escalation chains without prior knowledge of the lab answers. For identity programmes, the lesson is direct: security controls need to measure reachable privilege, not just entitlement count. That is consistent with the broader NHI problem, where service accounts and keys often outnumber human identities and remain poorly governed.
The same logic applies to AI agents operating inside cloud environments. Once an agent can inspect state, chain permissions, and select actions, it starts to behave like a non-human identity that must be governed as such. That intersection between agentic AI and NHI management is where the article has its strongest practitioner relevance.
Key questions
Q: What breaks when cloud IAM is judged only by misconfigurations?
A: Teams miss the attack path. A single policy statement may look harmless, but attackers chain ordinary permissions into escalation routes that scanners do not model. The right question is whether a low-privilege identity can reach admin, data exposure, or cross-account movement through live relationships in the account.
Q: Why do service accounts and AI agents need different controls from human users?
A: Service accounts and AI agents authenticate and act without the predictable patterns that human identity systems expect. They can operate across runtimes, scale quickly, and carry permissions into automated workflows. That means access decisions should consider workload context, runtime behaviour, and time-bound authority rather than relying only on user-centric IAM patterns.
Q: How do security teams know whether reachable privilege is under control?
A: Look for evidence that low-privilege identities cannot traverse role chains, mint new credentials, or reach privileged services through unexpected API combinations. If your review process only counts entitlements, you are measuring access volume, not exploitability.
Q: What frameworks should teams use for cloud attack-path governance?
A: Use NIST CSF and NIST SP 800-53 for access and monitoring controls, and add NHI governance for service accounts, keys, and autonomous agents. If AI systems can act in the environment, align them with AI governance and limit their tool scope to the minimum necessary.
Technical breakdown
Why static scanning misses privilege escalation paths
Static cloud scanners answer a narrow question: does this environment match a known risky pattern? They are good at finding exposed settings, but they do not reason over the sequence of permissions an attacker can chain after landing on a low-privilege identity. In AWS, escalation often depends on relationships between actions such as PassRole, CreateAccessKey, or role assumption, plus service-specific quirks in Lambda, ECS, SageMaker, or CodeBuild. The issue is not one bad control. It is whether several ordinary permissions become an attack path when combined in the live account state.
Practical implication: assess reachable escalation paths, not just misconfiguration counts.
How autonomous agents build a cloud attack graph
An autonomous offensive agent works by iterating through enumeration, hypothesis, action, and verification. It observes what the identity can see, tests which APIs respond, and updates its search based on new evidence. A knowledge graph helps by storing relationships between identities, roles, permissions, and resources so the agent can navigate the account like an attack graph rather than a flat policy list. That is why contextual reasoning matters: the model is not memorising a known exploit, it is inferring which primitive is reachable in this specific environment.
Practical implication: model cloud identities as traversable graphs and review the edges, not just the nodes.
Why AI agents create a new identity governance problem
When an AI agent can independently select actions and timing, it starts to behave like an identity-bearing workload with operational intent. That makes access boundaries, session scope, and delegation rules central governance issues. The risk is not only that the agent can act, but that it can discover new actions once it has enough visibility into cloud state. In practice, this pushes IAM and NHI governance closer together, because the same controls that limit service accounts also govern agentic systems that touch cloud APIs and secrets.
Practical implication: govern AI agents with the same lifecycle and access discipline used for high-risk NHIs.
Threat narrative
Attacker objective: The objective is to turn minimal foothold access into administrative control or access to sensitive cloud resources by discovering and executing the shortest viable escalation path.
- Entry begins with a low-privilege AWS identity that can only identify itself and query a small amount of metadata.
- Escalation occurs when the agent enumerates the account, discovers reachable permission chains, and chains service permissions into privilege escalation or cross-account movement.
- Impact is administrative access or sensitive bucket access, achieved without prior solution knowledge and through live reasoning over the target environment.
NHI Mgmt Group analysis
Cloud attack paths are now the unit of risk, not isolated misconfigurations. The article shows that an attacker or agent can start with almost no access and still discover a viable escalation route by chaining ordinary permissions. That is a governance problem, because most cloud reviews still measure standing entitlements rather than reachable privilege. Practitioners should treat attack-path analysis as a core IAM control, not an advanced extra.
Autonomous agents are becoming identity consumers that need lifecycle governance. Once an agent can enumerate state and choose actions, it is no longer just a script. It is a non-human actor whose permissions, session scope, and delegated access need explicit ownership, review, and revocation. That places the control problem squarely in NHI governance, where service accounts, tokens, and AI-driven workloads should follow the same lifecycle discipline.
Privilege escalation in cloud environments is increasingly graph-shaped. The named concept here is reachable privilege, meaning the access an identity can actually assemble through a sequence of allowed actions. That concept is more useful than raw entitlement counts because it captures the attacker's real path to impact. Practitioners should map privilege as a graph, then remove the edges that create unexpected traversal.
Smaller models can still produce high-risk outcomes when context is strong. The article does not prove that model scale alone drives offensive capability. It shows that structured environmental context can make a modest model effective enough to navigate cloud permissions with little human input. For governance teams, that means the control question shifts from model size to runtime access, tool scope, and the trust placed in autonomous execution.
Cloud security and NHI governance are converging operationally. The same identity controls that govern service accounts now need to govern AI agents that inspect infrastructure, query roles, and chain credentials. That does not turn every agent into an autonomous attacker, but it does mean the access model must assume dynamic decision-making. Practitioners should align cloud IAM, PAM, and NHI controls around that convergence.
What this signals
Reachable privilege is becoming the more useful governance metric. Cloud programmes that only track entitlements will keep missing the path-based exposure that autonomous agents and attackers can exploit. The practical next step is to pair cloud IAM review with attack-graph analysis and to anchor service-account governance in the Ultimate Guide to NHIs.
The broader signal is that AI agents, service accounts, and workload identities are converging into a single control problem. If an autonomous system can inspect cloud state and take actions, it needs the same ownership, expiry, and revocation discipline as any other high-risk NHI. That makes identity lifecycle control a cloud security issue, not just an IAM one.
Teams should expect more environments where the exploitable weakness is not a single secret or role, but the sequence that links them. That is why practitioner programmes need runtime visibility, access-path testing, and a tighter connection between cloud security review and NIST AI Risk Management Framework style governance when agents are in play.
For practitioners
- Map reachable privilege paths Build attack-path reviews for AWS identities that start from low-privilege footholds and trace what can be reached through PassRole, role assumption, key creation, and service-level delegation.
- Classify AI agents as governed NHIs Assign owners, scopes, and expiration rules to any agent that can inspect cloud state or call AWS APIs, and revoke access as you would for a high-risk service account.
- Prioritise services with weak public playbooks Focus additional review on SageMaker, App Runner, Batch, Cognito Identity, and similar services where escalation chains depend on environment-specific discovery rather than obvious misconfigurations.
- Test for chained permission abuse Use simulations to verify whether individually acceptable permissions become dangerous when combined, especially across accounts, roles, and compute services.
Key takeaways
- The main risk is not one bad permission, but the chain of ordinary permissions that becomes exploitable once an attacker or agent can reason over the environment.
- The evidence is strong enough to matter operationally: all 122 labs were solved, and the hardest service categories still resolved through live contextual discovery rather than memorised exploits.
- Practitioners should shift from entitlement counting to reachable privilege analysis, then extend NHI governance to any AI system that can act inside the cloud.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | TA0007 , Discovery; TA0004 , Privilege Escalation; TA0008 , Lateral Movement | The article centres on discovery-driven cloud escalation chains and cross-account movement. |
| OWASP Non-Human Identity Top 10 | NHI-03 | The risk pattern is privilege growth through unmanaged non-human access paths. |
| NIST CSF 2.0 | PR.AC-4 | Reachable privilege is an access-control issue within cloud identity governance. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege is the core control challenged by chained AWS escalation paths. |
| NIST Zero Trust (SP 800-207) | The article reinforces continuous verification of access paths in cloud environments. |
Apply PR.AC-4 to verify that permissions stay least-privilege under real account traversal, not just on paper.
Key terms
- Reachable privilege: Reachable privilege is access that an attacker can plausibly obtain from an exposed system or compromised account without extraordinary effort. It matters because the risk is not only who has access today, but what access becomes available once a system is taken over.
- Action Graph: The set of actions an autonomous system is permitted to sequence, combine, and execute. Unlike static permission lists, an action graph captures what the actor can actually do at runtime, which is why it matters when agents can chain tool use into outcomes no human explicitly approved.
- Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.
What's in the full article
OFFENSAI's full analysis covers the operational detail this post intentionally leaves for the source:
- The full lab-by-lab category breakdown for IAM, Lambda, ECS, Glue, SageMaker, and cross-account paths
- The engineering description of the Universal Offensive Ontology and how it grounds the agent's reasoning
- The exact benchmark methodology, including the 30-turn fail threshold and category-level solve timings
- The discussion of private, self-hosted deployment trade-offs for teams evaluating autonomous offensive tooling
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It helps practitioners connect cloud access risk, service-account governance, and agentic AI oversight into one operational model.
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org