/security-agent-skills:hunting-dns-rebinding-and-ssrf-pivotsfrom security-agent-skills
Hunts SSRF and DNS rebinding vulnerabilities where a server's outbound fetcher can be steered to internal services. Covers time-of-check/time-of-use gaps, redirect following, and cloud metadata endpoints.
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.
Server-side request forgery is a position bug: a server sits inside the network with a fetcher that will connect to a destination the caller influences, and internal services around it trust callers by where they come from rather than who they are. So if an attacker can steer the server's outbound request, the server becomes their proxy into internal space, the cloud metadata endpoint, an admin port, a database that assumes anyone who can reach it belongs. DNS rebinding is the technique that defeats the usual defense: the server validates the hostname, sees a public address, and allows it, but between that check and the actual connection the attacker's DNS answer changes to an internal address, so the connection lands somewhere the check never approved. The same slip happens through a redirect the fetcher follows. The hunt is for caller-influenced destinations and for the gap between validating and connecting. You hunt this by finding server fetchers and testing whether the destination they connect to can be moved after the check.
Test SSRF and rebinding only against systems you own or are authorized to assess, on non-production endpoints. A confirmed pivot reaches real internal services and credentials, so stop at proof of reach, do not read or exfiltrate internal data, and use benign markers. If you can't name the authorization, stop.
Establish the fetcher's intended destinations first. Name where each server-side fetch is legitimately supposed to go: a specific allowed host, a public API, never internal space. This is the false-positive killer: a fetcher restricted to an allowlist that is re-checked at connect time, with internal services that authenticate rather than trust position, cannot be pivoted. Name the intended destinations, then find where the caller can influence them.
Find caller-influenced destinations. Locate every place a caller sets or shapes an outbound target: a URL parameter, a webhook or callback address, an import-from-URL, a link previewer, an avatar or document fetch. Each is an SSRF candidate; note whether the value is a full URL, a hostname, or an address the caller controls end to end.
Check validation versus connection timing. For each fetch, determine whether the destination is validated once and then resolved again at connect time. If the hostname is checked (public, allowed) but the socket resolves the name independently later, a rebinding DNS answer swaps the address between check and connect. A single resolution used for both check and connect closes this; two separate resolutions open it.
Test redirects and address forms. Check whether the fetcher follows redirects into internal space, and whether address encodings (alternate IP notations, IPv6 mappings, wildcard DNS names) slip past a blocklist. A validator that blocks obvious internal literals but follows a redirect to them, or misses an encoded form, is bypassed without rebinding at all.
Map what the reached internal service grants. For each internal destination the server can be steered to, determine what it exposes to a caller by position: the metadata endpoint yields node or instance credentials, an admin port yields control, an internal datastore yields data. This sets severity, and it is high whenever the reached service trusts the network rather than authenticating.
Confirm and record. Confirm by steering a server fetch to a benign internal marker you control, or demonstrating a rebinding or redirect reaches an internal address the check should have blocked, without reading real internal data. Kill the lead if destinations are allowlisted and re-checked at connect time, redirects into internal space are refused, encoded internal forms are blocked, and internal services authenticate rather than trust position. Record the caller-controlled destination, the internal-service sink, and the time-of-check rebinding or unvalidated fetch that reached it.
Confirm. A link-preview feature fetches a caller-supplied URL and validates that the hostname resolves to a public address, then the HTTP client resolves the name again to connect. Using an attacker-controlled domain whose DNS answer flips to an internal address after the check, the preview fetch connects to the cloud metadata endpoint and returns instance role credentials to the caller. Confirmed SSRF via DNS rebinding to the metadata endpoint,
critical, remediation = resolve the destination once and connect to that exact validated address, block internal ranges including the metadata endpoint at connect time, refuse redirects into internal space, and require the metadata endpoint to use a session mechanism that a proxied fetch cannot satisfy.Kill. The fetcher resolves each destination once, validates that resolved address against an allowlist that excludes all internal ranges and the metadata endpoint, connects to that same address so no rebinding window exists, refuses redirects that leave the allowlist, normalizes and blocks encoded internal forms, and the internal services it can reach authenticate callers rather than trusting position. A rebinding domain is refused at connect time. Killed,
kill_reason= "single-resolution allowlist enforced at connect time with no internal ranges, redirects and encoded forms blocked, and position-independent internal auth; the destination cannot be moved after the check."
You need every caller-influenced outbound destination, whether validation and connection use one resolution or two, the redirect and address-encoding handling, and what each reachable internal service grants by position. For each fetch, test whether the connected address can be moved after the check. Reading the fetcher code shows the intended destinations; steering a fetch to a benign internal marker shows whether the boundary holds.
mapping-pod-to-cloud-credential-reach - the metadata endpoint SSRF reaches is that skill's subject; SSRF is
one way a workload's position becomes cloud credentials.auditing-webhook-authenticity-and-callback-trust - webhook and callback URLs are prime SSRF sources; the
two skills meet at the caller-supplied outbound address.hunting-http-request-smuggling-and-desync - a smuggled request can target an internal path much as SSRF
does; both abuse where a request appears to originate.adjudicating-taint-paths - use it to confirm a caller-controlled value reaches the fetcher's connect call
through validation and redirect indirection.What SKILL.md sets; muted values are Claude Code's defaults
194 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.npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skillsOther plugins' skills for the same job