/security-agent-skills:exploiting-ssrf-to-cloud-metadatafrom security-agent-skills
Guides exploitation of SSRF to reach cloud instance metadata endpoints and retrieve credentials. Covers proving attacker-steered fetches, reaching link-local/internal addresses, defeating filters via DNS rebinding and URL confusion, and blind out-of-band confirmation.
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 server that fetches a URL an attacker can influence is only dangerous if that fetch reaches something worth reaching. The highest-value target in a cloud environment is the instance metadata service, a link-local endpoint that returns the workload's credentials to anything that can make it a request. Turning an SSRF lead into a real finding means proving the request is steerable, reaches an internal target, survives the filters, and returns something that matters, usually a credential.
Test only infrastructure you are authorized to assess. Retrieve credentials solely from your own instances and revoke them after. If you can't name the authorization, stop.
Confirm the fetch is attacker-steered. Find the feature that makes a server-side request and confirm the destination, or part of it, comes from your input. If you cannot influence where the request goes, there is no SSRF; if you can, establish exactly which part (scheme, host, path, port).
Establish internal reach. Point the request at addresses the server should never fetch on your behalf: loopback, link-local, and internal ranges, and internal hostnames. Use an out-of-band listener to confirm the server actually made the request when the response is not reflected. Reaching an internal address at all is the core of the primitive.
Aim at the metadata endpoint. Direct the fetch at the cloud instance metadata address and its credential path. If the environment does not require the hardened, header-bound request flow, or the feature can be made to supply the required header, the endpoint returns the instance role's temporary credentials. Retrieving those is the critical outcome.
Defeat the filters. If an allowlist or blocklist stands in the way, test the known bypasses: DNS rebinding (a name that resolves to an allowed address on check and the target address on fetch), URL parser confusion (embedded credentials, fragments, redirects, alternate encodings that split the validator's view from the fetcher's), and redirects from an allowed host to an internal one. A filter that parses the URL differently from the HTTP client is bypassable.
Handle the blind case. When no response comes back, confirm exploitation out of band (an interaction on your listener) and exfiltrate small facts through timing or differential responses. A blind SSRF that reaches metadata is still critical if you can prove the request and stage credential retrieval to a channel you observe.
Rate and record. SSRF to instance credentials is critical, a foothold into the cloud account; SSRF limited to non-sensitive internal endpoints is lower but real. Kill the lead if the destination is not attacker-controlled, the fetch cannot leave an allowed set proven robust against rebinding and parser tricks, and metadata access requires a flow the feature cannot satisfy. Record with the exact reach proven.
Confirm. An avatar-import feature fetches a user-supplied URL. It blocks internal literals, but a hostname under attacker control resolves to an allowed address at validation and to the link-local metadata address at fetch time (rebinding). The fetch retrieves the instance role credentials, which authenticate to the cloud account. Confirmed SSRF to metadata,
critical, remediation = fetch only through a pinned-resolution allowlist, block link-local and internal ranges at the socket, and require the hardened metadata flow.Kill. A link-preview service resolves the host once, pins that address for the actual connection, rejects loopback, link-local, and internal ranges at the socket layer, follows no redirects, and the metadata service requires a header-bound session the feature cannot produce. Rebinding and parser tricks cannot move the fetch off the pinned public address. Killed,
kill_reason= "destination pinned after validation, internal ranges blocked at the socket, no redirects, hardened metadata flow unreachable."
You need the feature that fetches a URL, control over the destination or its DNS, an out-of-band listener for blind confirmation, and knowledge of the environment's metadata endpoint and its hardening. A proxy plus a controlled domain and listener works; the reach-and-filter analysis and the metadata objective are the method. Only target infrastructure you are authorized to test.
adjudicating-taint-paths - proving your input reaches the request destination.mapping-attack-surface - finding the features that make server-side requests.adjudicating-dependency-cve-reachability - the same reachability discipline,
applied to a request destination.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ssrf, cloud-metadata, security-testing, dns-rebinding, credential-theft
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./auditing-account-abstraction-and-paymaster-trustAudit an ERC-4337 account-abstraction deployment for trust misplaced in the user-operation lifecycle: a smart account whose validation accepts a signature or nonce it should reject, a paymaster that agrees to sponsor gas for operations it should not so an attacker drains its deposit, a bundler or entry-point assumption that lets a user operation be replayed or reordered for gain, and validation logic that reads mutable state or reaches outside its allowed scope. Covers smart-contract wallets, paymasters, bundlers, and the entry point in an account-abstraction stack where a user operation is validated and sponsored before it executes. Use when a user operation is validated, paid for, and executed by separate parties and that trust split is the boundary. The crafted user operation is the source, the drained paymaster or unauthorized execution is the sink, and the over-permissive validation or sponsorship rule is the bug./auditing-account-recovery-and-reset-trustAudit password reset and account recovery flows for the trust that lets an attacker take over an account: a reset token that is guessable, long-lived, reusable, or not bound to the account it was issued for, a recovery path that verifies a weaker factor than login and bypasses multi-factor, a reset link whose host comes from an attacker-controllable header so the token leaks, and a recovery that trusts an unverified email or phone change to redirect the reset. Covers the recovery surface of authentication systems, where resetting a credential or recovering access is the alternate door into an account. Use when an application offers password reset or account recovery and that flow is a path to authentication. The attacker-driven recovery request is the source, the account it takes over is the sink, and the weak token, bypassed factor, or leaked reset link that grants it is the bug./auditing-admission-control-policy-gapsAudit cluster admission control for gaps that let a non-compliant or hostile workload through: a validating webhook that fails open when its backend is unreachable, a policy that scopes by namespace or label and misses the namespaces that matter, a mutating webhook whose changes are trusted downstream, and an ordering or exemption that lets a privileged pod bypass the checks meant to stop it. Covers Kubernetes admission webhooks and policy engines that are supposed to enforce workload security at create and update time. Use when admission policies are the control that keeps privileged, unsigned, or over-permissioned workloads out of the cluster. The workload submitted for admission is the source, the admitted resource is the sink, and the policy gap that let it through is the bug./auditing-ai-agent-permissionsAudit what an AI agent is actually allowed to do versus what its task needs. Covers excessive agency (tools, scopes, and autonomy beyond the job), missing human-in-the-loop gates on irreversible actions, over-broad credentials and their blast radius, sandbox and code-interpreter escape, unfiltered egress, and unbounded resource or spend (denial-of-wallet). Use when granting an agent a tool or scope, reviewing an agent's permission posture, or deciding which actions need approval. The model's restraint is not a control; permissions are.Other plugins' skills for the same job