/security-agent-skills:auditing-mfa-enrollment-and-reset-abusefrom security-agent-skills
Audits MFA enrollment, reset, recovery, and step-up flows for weaknesses that let attackers add their own factor or bypass checks. Use when a stolen first factor could lead to full account takeover through weak identity re-proofing.
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.
Multi-factor authentication assumes the attacker who has the password still cannot pass the second factor, and that assumption lives or dies in three places most audits skip: how a factor is enrolled, how it is reset or recovered, and how a step-up is enforced. If an account with only the first factor satisfied can enroll a new authenticator without re-proving identity, an attacker with a stolen password simply adds their own second factor and now passes MFA legitimately. If the reset or recovery flow is guarded only by a weak signal, an email link to an inbox the attacker controls, a knowledge question, a support request that does not verify hard, then MFA resets back to attacker control and the second factor is decorative. If a step-up prompt on a sensitive action can be skipped, or backup codes are weak, reusable, or handed out without authentication, or a push approval lands on a single tap so fatigue or bombing gets an accidental yes, the factor is bypassed rather than broken. The audit treats enrollment and reset as privileged actions that must re-prove identity, and checks that every step-up is actually enforced. You audit this by holding only the first factor and trying to add, reset, or skip the second.
Test MFA enrollment and reset only against accounts and systems you own or are authorized to assess, with test accounts. Enrolling, resetting, and bypassing factors changes real authentication state, so use test identities and never add a factor to, reset, or take over an account that is not yours. If you can't name the authorization, stop.
Establish what enrolling and resetting a factor should require first. Name the identity proof each privileged authentication action demands: what re-authentication enrolling a new factor requires, what resetting or recovering a factor requires, when a step-up is mandatory, and how backup codes are issued. This is the false-positive killer: a system that requires a fresh strong proof to enroll or reset a factor, enforces step-up on every sensitive action, issues strong single-use backup codes only after authentication, and requires deliberate push approval is behaving correctly. Name the intended proof, then test each path.
Test factor enrollment from a first-factor-only session. With only the password satisfied (no second factor yet passed on this session), attempt to enroll a new authenticator. Confirm the system requires a fresh, strong identity proof before adding a factor. If a stolen-password session can add its own second factor without re-proving identity, the attacker owns MFA from that point on.
Test the reset and recovery flow. Exercise every way a factor can be reset or recovered and identify what guards each: an email or SMS link, a knowledge question, a support-driven reset, a recovery code. Confirm the guard is a strong proof, not a weak signal an attacker with the first factor also controls. A reset guarded only by an email link to a takeable inbox resets the factor back to the attacker.
Test step-up enforcement. For each sensitive action that should demand a step-up (changing security settings, viewing secrets, high-value operations), attempt it without satisfying the step-up, by skipping the prompt, replaying a prior state, or calling the action directly. Confirm the step-up is enforced server-side on the action, not just shown in the UI. A skippable step-up is no step-up.
Test backup codes and push approval. Check how backup or recovery codes are generated (strength, single-use, count) and whether they can be issued or viewed without authentication. Separately, test push approval: whether repeated prompts (fatigue or bombing) can be sent and whether a single tap approves without context or number matching. Weak or unauthenticated backup codes and single-tap push are both factor bypasses.
Confirm and record. Confirm with test accounts by enrolling an attacker factor from a first-factor-only session, resetting a factor through a weak recovery guard, skipping an unenforced step-up, or approving via backup-code or push weakness, without touching real accounts. Kill the lead if enrollment and reset require a fresh strong proof, step-up is enforced server-side, backup codes are strong single-use and post-auth, and push requires deliberate approval. Record the enrollment or reset request, the attacker-controlled factor or bypassed check, and the missing identity proof or skippable step-up.
Confirm. After entering a valid password, but before satisfying any second factor, the account settings page lets the session enroll a new authenticator app and does not require the existing second factor or any fresh proof. On a test account, an attacker holding only the stolen password enrolls their own authenticator and from then on passes MFA legitimately, locking the real user's factor out of the decision. Confirmed attacker factor enrollment from a first-factor-only session,
high, remediation = require a fresh strong proof (the existing second factor, or full re-authentication) before enrolling, changing, or removing any authenticator.Kill. Enrolling, changing, or removing a factor requires the existing second factor or full re-authentication; reset and recovery are guarded by a strong proof, not a weak email or knowledge signal; every sensitive action enforces step-up server-side; backup codes are strong, single-use, and issued only after authentication; and push requires number matching with limits on repeated prompts. A first-factor-only session cannot add a factor, a weak recovery signal does not reset one, and a step-up cannot be skipped. Killed,
kill_reason= "enrollment and reset require a fresh strong proof, step-up is enforced server-side, backup codes are strong single-use post-auth, and push needs deliberate approval; a stolen first factor cannot add, reset, or bypass the second."
You need the enrollment flow's re-authentication requirement, every reset and recovery path and its guard, which actions demand a step-up and how it is enforced, and how backup codes and push approvals work. With test accounts, hold only the first factor and try to enroll a new factor, reset an existing one, skip a step-up, and approve via backup code or push. Reading the enrollment and reset handling shows the intended proof; an attacker factor added or a check bypassed from a first-factor-only session shows what the proof fails to require.
auditing-account-recovery-and-reset-trust - the account-level recovery flow; MFA reset is a specific factor
reset that shares the weak-recovery-signal failure mode.auditing-webauthn-and-passkey-flows - the enrollment and step-up mechanics for passkeys; adding a
phishing-resistant factor still depends on proving identity at enrollment.auditing-session-lifecycle-and-fixation - the session that enrollment and step-up act on; whether a factor
change re-issues or elevates the session is shared ground.reviewing-rate-limiting-and-abuse-controls - push-bombing and code-guessing are rate-limit failures; that
skill covers the abuse controls this one depends on.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.Other plugins' skills for the same job