/security-agent-skills:hunting-iam-privilege-escalation-pathsfrom security-agent-skills
Hunts privilege-escalation paths in cloud IAM by analyzing the identity-to-permission-to-resource graph, escalation primitives (role-passing, policy rewrites, loose trust conditions), and boundary controls. Use when reviewing cloud IAM roles, policies, and trust relationships.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cloud access is a graph. Principals hold policies, policies grant permissions, and some of those permissions let a principal change the graph itself: pass a role, rewrite a policy, assume another identity. Privilege escalation is a path through that graph from where an attacker starts to a principal that can read the data or run the workloads that matter. No single permission looks alarming. The bug is the reachable chain, and you only see it when you follow the edges.
Audit identity configuration in accounts you own or are authorized to test, with credentials provisioned for the review. If you can't name the authorization, stop.
Build the identity graph. Inventory every principal, the policies attached to it, the permissions those policies grant, and the resources they touch. Represent it as edges: principal grants permission on resource. The whole method is reachability over this graph, so the graph is the first artifact.
Enumerate the escalation primitives. Mark every permission that lets a principal change the graph rather than just use it: passing a more privileged role to a compute or automation service, creating or rewriting a policy version, attaching a policy to yourself, updating a function or task that already runs as a privileged role, or minting credentials for another identity. These edges are how one node reaches another's privilege.
Map trust relationships and their conditions. For each assumable identity, read who is allowed to assume it and under what condition. A trust that names a broad set of principals, a wildcard, or a condition that an attacker can satisfy is an edge into that identity. A precise trust condition is not.
Search for a path from an untrusted start to a privileged target. Starting from a low-privileged or externally reachable principal, follow escalation and trust edges toward any principal that can read sensitive data or administer the account. Record the exact sequence of permissions the path uses.
Check the boundary controls. A path is only real if nothing stops it. Confirm whether an organization guardrail, a permission boundary, or a session policy denies a step on the chain. A boundary that caps the effective permission breaks the path; its absence leaves the path live.
Confirm and record. Confirm a path by walking it with the starting credentials in an authorized account and reaching the target privilege. Kill the lead if a boundary denies a step, the trust condition cannot be met, or no escalation edge connects the start to any privileged node. Record the full witness path: each principal, each permission used, and the target reached.
Confirm. A build principal may pass any role to the automation service and may update the automation job definition. It passes a role that has administrative policies, points a job at it, and runs the job, which now executes as admin. Walking it from the build credentials reaches account administration. Confirmed role-pass to admin,
critical, remediation = restrict which roles the principal may pass to the exact roles it needs, and separate job-definition rights from role-passing rights.Kill. A principal can rewrite policy versions, which looks like an escalation primitive, but a permission boundary on that principal caps its effective permissions to a read-only set, and every privileged role's trust condition names a specific service under a condition the principal cannot satisfy. Walking every candidate path dead-ends at the boundary. Killed,
kill_reason= "permission boundary caps effective permissions; privileged trust conditions unsatisfiable from this principal; no path reaches a privileged node."
You need the full set of policy and trust documents, a way to compose them into a reachability graph rather than reading each in isolation, and authorized credentials to walk a candidate path to the target. A graph that treats principals as nodes and identity-changing permissions and trust conditions as edges is ideal, because the finding is a path and a path is a graph query; the walk from the starting credential is the confirmation.
auditing-cicd-oidc-trust - the pipeline identity that often is the untrusted
starting principal for one of these paths.hunting-non-human-identity-and-secret-reachability - the leaked machine
credential that lands an attacker on the starting node.auditing-declarative-authorization - the application-layer counterpart, where
authorization is configuration rather than identity-graph edges.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job