/security-agent-skills:mapping-pod-to-cloud-credential-reachfrom security-agent-skills
Maps the blast radius of a compromised pod by enumerating every cloud credential it holds or can reach, including workload identities, mounted tokens, and node instance roles.
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.
A pod on a cloud-hosted cluster is rarely just a container; it is a holder of cloud credentials. It may bind to a workload identity, mount a service-account token that federates to a cloud role, or simply sit on a node whose instance role is reachable through the node metadata endpoint. So the real question about a pod is not what it does but what its credentials reach: if this pod is compromised, which cloud APIs, data stores, and other identities does its token open, and can it chain from there to something larger. The dangerous pattern is a modest workload holding a broad credential, or any pod able to reach the node role, because the blast radius is the credential, not the application. You map this by identifying every credential a pod holds or can reach and enumerating what each can do.
Map credential reach only in cloud accounts and clusters you own or are authorized to assess, on non-production identities. Enumerating what a credential can do exercises real cloud APIs, so use read-only enumeration where possible and never use a reached credential to alter or exfiltrate. If you can't name the authorization, stop.
Establish each pod's intended cloud access first. Name what cloud resources each workload legitimately needs: a specific bucket, a specific queue, nothing. This is the false-positive killer: a pod bound to a narrowly scoped identity that reaches only what it needs, with the node role unreachable, is correct. Name the intended reach, then enumerate the actual reach.
Identify every credential the pod holds. List the cloud identity the pod binds to through workload identity federation and any service-account token or key mounted into it. Each is a credential a compromised process inside the pod can use. Note which identity each maps to in the cloud.
Check reachability of the node role. Determine whether the node metadata endpoint is reachable from pods. If it is, any pod can retrieve the node instance role's credentials regardless of its own binding, so the node role is effectively every pod's credential. Confirm whether metadata access is blocked from workloads or exposed.
Enumerate what each reached identity can do. For every credential a pod holds or can reach, enumerate the cloud permissions it grants: which resources it reads and writes, which APIs it calls, and whether it can assume or impersonate another identity. This is the blast radius, and it is set by the identity's policy, not the pod's role in the app.
Chain to further reach. Follow whether a reached identity can pivot: assume-role or impersonation edges, permission to read other secrets or credentials, or write access that grants control of another workload. One pod's modest-looking credential can be a first hop to a much larger reach; trace the chain, not just the first identity.
Confirm and record. Confirm by using a pod's credential (or the node role reached from a pod) to enumerate a cloud resource it should not reach, in scope and read-only, without altering or exfiltrating. Kill the lead if each pod binds only to a narrowly scoped identity reaching what it needs, the node metadata endpoint is unreachable from workloads, and no reached identity chains to a broader one. Record the pod source, the cloud-resource sink, and the over-broad or reachable credential.
Confirm. A logging sidecar pod binds to a workload identity intended only to write to one log bucket, but the node metadata endpoint is reachable from pods, and the node instance role can read a secrets store and assume an administrative role. A process in the pod retrieves the node role from metadata and enumerates the secrets store it was never meant to touch. Confirmed pod-to-cloud credential reach via the node role,
critical, remediation = block pod access to the node metadata endpoint, scope the node role to the minimum the kubelet needs, and bind each workload to a narrowly scoped identity with no assume-role chain.Kill. Each pod binds to a workload identity scoped to exactly the one resource it needs, the node metadata endpoint is unreachable from workloads so the node role cannot be retrieved from a pod, and no bound identity can assume or impersonate another or read additional secrets. A compromised pod reaches only its one intended resource. Killed,
kill_reason= "each pod bound to a least-privilege identity with the node metadata endpoint blocked and no credential chain; the blast radius is the one resource the workload needs."
You need each pod's bound cloud identity and mounted tokens, whether the node metadata endpoint is reachable from workloads, the permissions of every reachable identity, and the assume-role or impersonation chains from each. For each pod, enumerate the full reach and the chain, then compare it to the intended access. Reading the bindings and identity policies shows the granted reach; enumerating a cloud resource read-only with a reached credential shows whether the boundary holds.
hunting-container-escape-surface - a node-level escape and node-role reach compound; escape gets to the
node, this maps what the node's credentials then open.mapping-service-account-impersonation-chains - the cloud-side impersonation graph a reached identity
chains through; the two maps meet at the assume-role edge.hunting-non-human-identity-and-secret-reachability - the general machine-credential reachability discipline
this applies specifically to pods.auditing-ecs-task-metadata-boundaries - the same metadata-endpoint and task-versus-instance-role question
for container tasks outside Kubernetes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Kubernetes, AWS, GCP, Azure
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