/security-agent-skills:auditing-account-recovery-and-reset-trustfrom security-agent-skills
Audits password reset and account recovery flows for takeover vulnerabilities: guessable/long-lived/reusable reset tokens, weaker recovery factors that bypass multi-factor, host-header injection in reset links, and unverified email/phone changes. For authentication systems where recovery is an alternate account access path.
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.
Every login has a back door built in on purpose: the password reset and account recovery flow. It exists so a locked-out user can get back in, which means it is, by design, a way to gain access to an account without the password. That makes it a prime takeover target, and it is frequently weaker than the front door it protects. The reset token may be guessable, long-lived, reusable, or not bound to the account, so an attacker can predict or replay it. The recovery path may verify a weaker factor than login and skip the multi-factor requirement, so recovery becomes the multi-factor bypass. The reset link's host may come from a request header an attacker controls, so the emailed token leaks to the attacker's domain. And recovery may trust an unverified email or phone change, redirecting the reset to the attacker. The audit treats recovery as an authentication path with the same rigor as login. You audit this by walking the flow and testing each trust it places.
Test recovery flows only against accounts and applications you own or are authorized to assess, on non-production accounts. Exercising reset attempts real credential changes, so use test accounts you control and never reset or take over an account that is not yours. If you can't name the authorization, stop.
Establish the intended recovery assurance first. Name what proof recovery should require and that it must be at least as strong as login, including any multi-factor requirement. This is the false-positive killer: a recovery flow with a high-entropy, single-use, short-lived, account-bound token, that enforces the same factors as login and builds the link from a server-fixed host, is correct. Name the intended assurance, then test each element.
Assess the reset token strength and lifecycle. Examine the token: its entropy (guessable or unpredictable), lifetime (short or long-lived), reuse (single-use or replayable), and invalidation (consumed on use and on a new request). A token an attacker can guess, reuse, or use long after issuance is a takeover primitive regardless of the rest of the flow.
Check token-to-account binding. Confirm the token is bound to the exact account it was issued for and cannot be used to reset a different account by changing an identifier in the request. A reset step that takes the account from a parameter while validating a token issued for another account lets an attacker reset someone else's credential with their own valid token.
Check factor strength and multi-factor bypass. Compare the assurance recovery requires to login. If recovery verifies a weaker factor, or completes without the multi-factor step login enforces, then recovery is the way to bypass multi-factor entirely. Confirm recovery does not lower the bar below login and re-checks the second factor where login requires it.
Check reset-link host and destination trust. Determine whether the reset link's host or base URL is built from a request header (such as the host header) an attacker can set, which sends the emailed token to the attacker's domain. Also confirm recovery does not trust an unverified email or phone change to redirect where the reset is delivered. The link and its destination must come from server-fixed configuration, not attacker input.
Confirm and record. Confirm by taking over a test account you control through a real weakness, a guessed or replayed token, a token rebound to another test account, a multi-factor bypass via recovery, or a reset link leaked via a spoofed host, without touching any account that is not yours. Kill the lead if the token is high-entropy, single-use, short-lived, and account-bound, recovery enforces login-equivalent factors, and the reset link and destination come from server-fixed configuration. Record the recovery request, the account-takeover sink, and the weak token, bypassed factor, or leaked reset link.
Confirm. A password-reset email builds its link host from the request host header. Requesting a reset for a test account the tester controls while supplying an attacker-chosen host header produces a reset link pointing at the attacker's domain, so when followed the valid token is delivered to the attacker, who completes the reset. The same endpoint's token is also long-lived and reusable. Confirmed account takeover via host-header reset-link poisoning with a weak token,
critical, remediation = build the reset link from server-fixed configuration only, issue a high-entropy single-use token that expires quickly and is invalidated on use, and bind the token to the requesting account.Kill. The reset token is high-entropy, single-use, short-lived, invalidated on use and on any new request, and bound to the exact account it was issued for; recovery enforces the same factors as login including multi-factor; and the reset link host and delivery destination come from server-fixed configuration, ignoring request headers and any unverified contact change. A guessed, replayed, rebound, or off-domain reset attempt fails. Killed,
kill_reason= "strong single-use account-bound token with short expiry, login-equivalent factors enforced, and server-fixed link and destination; no recovery request takes over an account."
You need the reset token's entropy, lifetime, reuse, and invalidation, its binding to the account, the factors recovery requires versus login, and how the reset link host and delivery destination are determined. Walk the flow on test accounts you control, testing token guessing and replay, cross-account rebinding, multi-factor bypass, and host-header link poisoning. Reading the recovery code shows the intended assurance; taking over a test account through a weakness shows whether it holds.
auditing-session-lifecycle-and-fixation - recovery grants a session; its lifecycle and fixation properties
are the next boundary after the reset completes.auditing-saml-and-oidc-federation-trust - federated login and account recovery are two doors to the same
account; a weak recovery undercuts strong federation.hunting-broken-object-level-authorization - the cross-account reset here is an object-authorization failure
on the reset endpoint; the two skills meet at the account identifier.auditing-webauthn-and-passkey-flows - passkeys strengthen the front door; confirm recovery does not offer a
weaker path around them.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./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-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./auditing-android-component-exposureAudit an Android app for components another app on the device can reach and drive, after the manifest export flags and permission gates are resolved. Covers an activity, service, broadcast receiver, or content provider exported without a permission gate, an intent filter that makes a component implicitly exported, a provider that grants URI access or exposes files across the app boundary, a permission declared with a weak protection level, and a component that trusts intent extras from an untrusted caller for a sensitive action. Use when reviewing the manifest and the component code that handles an inbound intent, not the deep-link URL trust that a WebView loads (that is the deep-link skill). A cross-app caller is the source, a reachable exported component acting on the intent is the sink, and a sensitive component another app can invoke unguarded is the bug.Other plugins' skills for the same job