/security-agent-skills:reviewing-rate-limiting-and-abuse-controlsfrom security-agent-skills
Reviews rate limiting and abuse controls for sensitive/expensive endpoints, checking coverage, keying, and global counting. Use when auditing authentication, payment, or costly operations for missing or bypassable limits.
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.
Rate limiting is not a taint flow; it is a coverage-and-keying question. For each endpoint where repetition is the attack, guessing a password, brute-forcing a one-time code, enumerating accounts, draining a costly query, three things have to hold: a limit exists somewhere on the path, it is keyed on something the caller cannot rotate, and it counts globally rather than per process. The failures are an endpoint with no limit at all, a limit keyed on a header or field the attacker changes per request to get a fresh bucket, a counter in local memory that multiplies by the number of instances, and a throttle that resets cleanly forever with no lockout. The discipline that makes this review honest is checking every layer, because the enforcement often lives at a gateway the handler never mentions.
Drive repetition against endpoints only on systems you own or are authorized to test, and coordinate: a brute-force or enumeration demonstration can lock out real accounts or load a shared service. If you can't name the authorization, stop.
Inventory the sensitive and expensive endpoints, then look for a limit on every layer. List the repetition-sensitive and per-call-expensive endpoints. For each, check for a limiter not only in the handler but in the middleware chain and the gateway or edge configuration. An absence in the handler is not a missing limit until the other layers are clear; this step is first because it kills the most common false positive.
Check what the limit is keyed on. Read the expression that forms the counter key. If it derives from a client-supplied value, a forwarded client-address header the app does not pin to a trusted proxy, or a username, account, or device field on an unauthenticated endpoint, the attacker rotates it to get a fresh bucket per request and the limit is theater. A limit is real only when keyed on something server-trusted.
Check global versus per-instance counting. A counter kept in process memory, a local map or in-process cache, enforces its limit once per instance, so with several instances the effective limit is multiplied. Confirm the counter is a shared store, or that the service genuinely runs as a single instance, before trusting the number.
Check for lockout and backoff, and the right endpoint. A fixed window that fully resets each period with no escalating delay, temporary lock, or step-up permits slow, indefinite brute force. And confirm the limit is on the endpoint that verifies or mutates, not only on the sibling that sends or reads: a throttle on issuing a one-time code does nothing if verifying it is unbounded.
Check the enumeration oracle and window bypasses. An endpoint that reveals whether an account exists, by response, status, or timing, and is unthrottled, is a mass-enumeration tool. And a limit keyed on a path or method is bypassable if the path normalizes to the same handler under a different key, or if the limiter runs after the expensive work rather than before it.
Confirm and record. Confirm by exercising the endpoint past its limit with the bypass in hand, rotating the key, spreading across instances, or crossing the reset window, and showing the work still proceeds. Kill the lead if a limit is enforced at a gateway or middleware layer the handler does not show, if the forwarded-address header is pinned to a trusted proxy hop, if a spoofable key is backstopped by a second server-trusted key and a lockout, if the counter is a shared store, if the service is single-instance, or if the endpoint is neither sensitive nor expensive. Record the endpoint, the missing or spoofable control, and the volume achieved.
Confirm. The one-time-code verification endpoint has no limiter in the handler, the middleware chain, or the gateway configuration; codes are six digits valid for ten minutes; and the only counter in the system is a local in-memory map on the send endpoint, across four instances. An attacker brute-forces the code space against a target account faster than the code expires. Confirmed unbounded one-time-code verification enabling account takeover,
critical, remediation = enforce a shared, server-keyed attempt limit with lockout on the verify endpoint, bound to the target account, before any code check.Kill. The credential-reset endpoint shows no limiter in the handler, but the gateway configuration enforces a shared per-client-address limit on that path with the address resolved from the trusted proxy hop rather than a client header, and a separate per-account lockout escalates after a few failures. Rotating a forwarded header does not create a new bucket, and the counter is shared across instances. Killed,
kill_reason= "limit enforced at the gateway on a server-trusted, proxy-pinned key with a shared counter and a per-account lockout; header rotation and multiple instances do not bypass it."
You need the list of sensitive and expensive endpoints, the limiter present at each layer of each path, the exact key each limit is formed on and whether it is server-trusted, whether the counter is shared or per process, the lockout and backoff behavior, and which of a send-and-verify pair is bounded. For each endpoint, decide whether repetition is actually stopped and whether a key rotation, an extra instance, or a reset window bypasses it. Reading the layers tells you what exists; exceeding the limit with the bypass in hand tells you whether it holds.
hunting-business-logic-flaws - an unmetered sensitive action is a resource the logic forgot to limit;
both hunt a missing bound on how often something can be done.hunting-redos-and-complexity-dos - an expensive endpoint with no per-caller cost limit is the
single-request cousin of the repetition abuse this skill meters.auditing-multi-tenant-isolation - a sibling systemic-property audit whose strongest signal is also an
asymmetry: one path enforces and a peer does not.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