/security-agent-skills:finding-crypto-misusefrom security-agent-skills
Finds exploitable cryptographic misuse patterns: reused nonces/IVs, ECDSA signature-randomness reuse, padding oracles, hash length-extension, and wrong-hash choices. Use when reviewing code that encrypts, signs, authenticates, or hashes.
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.
Most crypto findings that matter are not "the algorithm is broken"; they are the algorithm used wrong in a way that hands you plaintext, a key, or a forgery. A cipher is only as safe as its nonce discipline, a signature only as safe as its randomness, a MAC only as safe as its construction. Finding crypto misuse means looking for the specific misuse patterns that collapse to a concrete attack, and proving the attack rather than flagging the primitive.
Analyze crypto in code you own or are authorized to test. Demonstrate recovery or forgery only against your own keys and data. If you can't name the authorization, stop.
Inventory the crypto operations and their inputs. List every place the code encrypts, decrypts, signs, verifies, MACs, or hashes, and for each capture the primitive, the mode, and where the key, nonce or IV, and randomness come from. The misuse lives in the inputs, not the primitive name.
Hunt nonce and IV reuse. For any stream or counter/GCM mode, does a (key, nonce) pair ever repeat across messages (a fixed IV, a counter that resets, a random nonce in too small a space)? Reused keystream lets an attacker combine two ciphertexts to strip the key, and GCM nonce reuse additionally leaks the authentication key, enabling forgery. This is the highest-yield check.
Hunt signature-randomness reuse. For ECDSA or DSA, is the per-signature secret drawn fresh from a strong source every time, or can it repeat or be predictable? Two signatures under the same secret reveal the private key by simple algebra. Look for fixed, derived, or low-entropy per-signature values in signing code.
Hunt oracle and construction flaws. Does decryption or unpadding reveal, through an error, a timing difference, or a distinct response, whether padding was valid? That is a padding oracle, and it decrypts ciphertext without the key. Is a MAC built as hash(secret then message) on a length-extendable hash? That is forgeable by length extension. Check for these constructions specifically.
Hunt key and randomness hygiene. Are keys hardcoded, reused across contexts, derived from low-entropy material, or generated from a non-cryptographic random source? Is a fast hash used where a slow password hash is required, or an unsalted hash where reversal matters? Each is a concrete downgrade, not a style issue.
Prove the concrete attack and record. A crypto finding is confirmed by naming the recovery or forgery it enables (recover this key, decrypt this ciphertext, forge this token) and, where possible, demonstrating it. Rate by that impact. Kill the lead if the input discipline holds: unique nonces, fresh randomness, constant-time comparison, sound construction.
Confirm. A service encrypts each session token with a counter mode and a fixed, hardcoded IV, the same key for all users. Two tokens share keystream; combining them cancels the keystream and, with one known token, recovers the other's plaintext. Confirmed keystream reuse,
high, remediation = a unique random nonce per message, never a fixed IV, and separate keys per context.Kill. A service signs with ECDSA drawing a fresh per-signature secret from a cryptographic source, uses a distinct random nonce per encryption, compares MACs in constant time, and returns an identical error on any decrypt failure. Repeated inspection finds no reuse or oracle. Killed,
kill_reason= "unique nonces and fresh signing randomness, constant-time verification, indistinguishable decrypt failures; no recovery or forgery path."
You need to see every crypto call site with its key, nonce or IV, and randomness source, and to reason about whether any of those repeat or leak. A call graph and dataflow into the nonce and key arguments help you prove reuse; the misuse-pattern checklist and the concrete-attack requirement are the method.
adjudicating-taint-paths - tracing whether attacker-controlled or repeated values
reach a nonce or key.writing-vuln-reports - turning a recovery or forgery into a reproducible writeup.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