/security-agent-skills:testing-web-cache-deceptionfrom security-agent-skills
Tests web cache deception attacks where a crafted static-looking URL causes a shared cache to store an authenticated dynamic response. Covers extension-based caching, path/delimiter confusion, and cache-key vs origin-routing mismatches.
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 shared cache and an origin server can disagree about what a URL is. The origin routes by matching a pattern and often ignores a trailing segment, so a request for an account page with a made-up static suffix still returns the account page, authenticated and personal. The cache, meanwhile, decides what to store by a simpler rule, often the apparent file extension or path prefix, and treats that same URL as a harmless static asset it may cache for everyone. When both are true at once, an attacker lures a logged-in victim to the crafted URL, the origin serves the victim's private response, and the cache stores it under a key the attacker can then request unauthenticated, retrieving the victim's data. This is distinct from cache poisoning: nothing in the response is altered; a private response is simply cached where it should never be. The bug is a cacheability decision that diverges from the origin's notion of the same, authenticated resource. You find it by comparing what the cache stores against what the origin actually served.
Test cache deception only against systems you own or are authorized to assess, on non-production infrastructure, using two test accounts you control so any cached private response is your own, never a real user's data. A confirmed case exposes an authenticated response to an unauthenticated request, so keep every probe within the authorized scope and prefer an isolated instance. If you can't name the authorization, stop.
Establish whether the origin serves authenticated content for the crafted path and the cache stores it, both at once, first. Confirm two things together: that the origin returns the same private, authenticated response for the static-looking URL as for the real one, and that the shared cache actually stores that response. This is the false-positive killer: if the origin returns a not-found or a login redirect for the crafted path, or the cache does not store the response, there is no deception, and a URL that merely looks static is not a finding. Name both behaviors before claiming impact.
Map the cache's cacheability rule. Determine what makes the cache store a response: a list of extensions, a static path prefix, the absence of certain headers, or a pattern. This is the rule an attacker will try to satisfy with a URL the origin still treats as the authenticated resource.
Craft the static-looking variant. Depending on the rule, append a cacheable-looking extension after the real path, add a path segment or a delimiter the origin ignores but the cache reads as a different or static resource, or use an encoded separator that the two parse differently. The goal is one URL the cache deems cacheable and the origin routes to the private response.
Verify the origin still returns the private response. Request the crafted URL as an authenticated user and confirm the response is the personal, authenticated content, not an error or a static file. If the origin instead returns a generic asset or refuses, the deception does not hold for that variant.
Verify the cache stores and serves it to a different requester. Request the crafted URL again without the victim's session, from a second account or unauthenticated, and confirm the cache returns the first user's private response rather than re-authenticating. Cache-status headers, timing, and the returned personal content distinguish a stored hit from a fresh origin fetch.
Confirm and record. Confirm end to end on an isolated instance with two test accounts: user one loads
the crafted URL, user two (or an unauthenticated request) retrieves user one's private response from the
cache. Kill the lead if the origin does not serve authenticated content for the crafted path, if the cache
does not store the response, if the cache re-validates authorization, or if the cache key already
distinguishes the authenticated resource. Record the crafted URL, the cache rule, the origin behavior, and
the retrieved private content, or set a kill_reason.
Confirm. An account page is served by the origin for its path with an appended made-up static extension, returning the same authenticated content, while the shared cache stores any response whose URL ends in that extension. User one visits the crafted URL and the cache stores their personal account page; an unauthenticated request for the same URL returns user one's data from the cache on an isolated instance. Confirmed web cache deception exposing authenticated content,
high, remediation = cache by the origin's content type and explicit cache-control rather than the apparent extension, do not cache responses to authenticated requests, and make the origin reject or normalize unexpected suffixes and delimiters instead of ignoring them.Kill. The origin returns a not-found for the appended-extension URL rather than the account page, the cache honors the origin's no-store on authenticated responses and keys on the normalized path, and a repeat request without the session re-authenticates at the origin. The crafted URL yields no stored private response. Killed,
kill_reason= "the origin does not serve authenticated content for the crafted path and the cache does not store authenticated responses; no private response is ever cached for an attacker to retrieve."
You need the cache's cacheability rule, the origin's routing tolerance for suffixes, extra segments, and delimiters, and the cache key it computes for each URL shape. For each authenticated resource, craft a static-looking variant, confirm the origin still returns the private response, and confirm a second requester retrieves it from the cache. Two test accounts on an isolated instance make the theft observable end to end; cache-status headers and the returned personal content confirm a stored hit rather than a fresh fetch.
testing-web-cache-attacks - the poisoning side of shared-cache abuse, where the response is altered rather
than stolen; the two share the cache-key and cacheability analysis from opposite directions.hunting-host-header-and-url-parsing-trust - the origin-versus-cache disagreement about a URL is a
parser-differential problem that skill treats generally, including cache keying.hunting-broken-object-level-authorization - cache deception discloses another user's authenticated
response, reaching the same private data that skill pursues through direct authorization flaws.auditing-error-handling-and-information-exposure - a cached authenticated response is sensitive
information reaching an unauthorized requester, the exposure that skill audits by another route.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-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.Other plugins' skills for the same job