/security-agent-skills:hunting-signature-replay-and-eip712-domain-trustfrom security-agent-skills
Hunts for signature replay vulnerabilities in smart contracts and backends: missing nonces, incomplete EIP-712 domain separators, omitted action fields, and malleable signer recovery. Use when a signed message authorizes an action and the binding to one use, chain, and action is the boundary.
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 signature is an authorization, and an authorization has to be bound to exactly what it authorizes: one action, on one chain, at one contract, used once. When any part of that binding is missing, the same signature authorizes more than the signer intended. EIP-712 exists to make the binding explicit, the domain separator carries the chain id and the verifying contract, and the typed data carries the action's fields, but a contract only gets the protection it actually checks. A signature with no nonce can be submitted again, so a permit or meta-transaction replays. A domain separator missing the chain id or the verifying contract lets a signature valid on one chain or one deployment be replayed on another. Signed fields that omit something the action depends on, an amount, a recipient, a deadline, let a different action reuse the same signature. And signer recovery that accepts a malleable signature or an unchecked zero address lets a forged or duplicated signature through. The hunt is to find where a signed message is verified and check whether its binding is complete. You hunt this by taking a valid signature and trying to use it twice, elsewhere, or for something else.
Test signature replay only against contracts and services you own or are authorized to assess, on testnets or a local fork. Replaying a signature executes a real authorized action, so use test keys and deployments and never replay a signature that moves real value or acts for someone else. If you can't name the authorization, stop.
Establish what the signature is bound to first. Name the one action it authorizes, the chain and contract it is meant for, and how it is marked used: a nonce, a deadline, a consumed flag. This is the false-positive killer: a signature bound by a per-signer nonce, a domain separator carrying the chain id and verifying contract, signed fields covering every part of the action, and non-malleable recovery is used once, here, for what it says. Name the binding, then test each missing piece.
Test nonce and single-use. Take a valid signature and submit it a second time. Confirm a per-signer nonce or a consumed marker makes the replay revert. A permit or meta-transaction with no nonce, or one that is not marked used, executes again every time it is submitted.
Test cross-chain and cross-contract replay. Replay the signature on a different chain and against a different deployment of the contract. Confirm the domain separator binds the chain id and the verifying contract so the signature is valid in exactly one place. A domain missing either lets one signature act on every chain or every deployment.
Test field completeness. Compare the signed typed-data fields against everything the action depends on: amount, recipient, token, deadline, function selector. Submit the signature for a variant action that differs in an unsigned field. If the action changes but the signature still verifies, the omitted field is attacker-controlled under a valid signature.
Test recovery soundness. Probe signer recovery: submit a malleable variant of a signature (the complementary s-value), a zero or malformed signature, and confirm recovery rejects them and never treats a zero address as a valid signer. Malleable or zero-address recovery lets a signature be duplicated or forged past the check.
Confirm and record. Confirm on a test deployment by replaying a signature a second time, on another chain or contract, or reusing it for a different action, with test keys and without moving real value. Kill the lead if the signature is bound by a nonce, a chain-and-contract domain separator, complete signed fields, and non-malleable recovery. Record the reused or cross-context signature, the repeated or unintended authorized action, and the missing nonce or domain binding.
Confirm. A meta-transaction relayer verifies an EIP-712 signature over the call data and forwards it, but the signed struct includes no nonce and the contract does not mark signatures used. On a fork, the same signed meta-transaction is submitted twice and executes both times, repeating a token transfer the signer authorized once. Confirmed signature replay via missing nonce,
high, remediation = include a per-signer nonce in the signed struct, increment and check it on use so each signature executes once, and add a deadline.Kill. The signed struct includes a per-signer nonce that is checked and incremented on use, the domain separator binds the chain id and verifying contract, the typed data covers every field the action depends on (amount, recipient, deadline), and recovery rejects malleable and zero-address signatures. A second submission reverts on the nonce, a cross-chain replay fails the domain, a varied action fails verification, and a malleable variant is rejected. Killed,
kill_reason= "signature bound by nonce, chain-and-contract domain, complete signed fields, and non-malleable recovery; it authorizes one action, once, here."
You need the signed struct's fields, the domain separator's contents (chain id and verifying contract), how the signature is marked used (nonce or consumed flag), and how signer recovery handles malleability and the zero address. On a fork or test service, replay a signature twice, on another chain and contract, and for a varied action, and submit malleable and zero signatures. Reading the verification code shows the intended binding; a signature that executes twice, elsewhere, or for a different action shows what the binding omits.
auditing-account-abstraction-and-paymaster-trust - account validation verifies signatures over user
operations; the nonce and domain binding here is exactly what that validation must enforce.auditing-cross-chain-bridge-and-message-trust - bridge attestations are signatures over cross-chain events;
replay and domain binding decide whether one event authorizes one action.hunting-wallet-drainer-and-dapp-approval-abuse - a permit is a signature that grants spending; replayable or
overbroad permits are how drainers move funds.auditing-oauth-token-audience-and-scope-trust - the same binding idea off-chain: a token, like a signature,
must be bound to one audience and scope or it is replayable out of context.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