/security-agent-skills:testing-web-cache-attacksfrom security-agent-skills
Tests web cache poisoning and deception attacks against CDNs, reverse proxies, and shared HTTP caches. Covers mapping cache keys, finding unkeyed inputs, poisoning via headers, and deceiving path-based caching.
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 trades correctness for speed by serving one stored response to many users, and that sharing is the vulnerability. If an attacker can influence what gets stored (poisoning), everyone downstream receives their payload; if an attacker can make the cache store someone else's private response under a key the attacker controls (deception), they read data that was never theirs. Both live in the gap between what the cache keys on and what actually determines the response.
Test caches and apps you own or are authorized to test. Use benign markers and your own accounts; do not poison responses served to real users or read real users' data. If you can't name the authorization, stop.
Map the cache and its key. Identify the caching layer in front of the app and determine the cache key: which parts of the request (path, query, some headers) decide whether two requests share a stored response. Everything the response depends on but the key ignores is an unkeyed input, and unkeyed inputs are where both attacks live.
Find what is cacheable. Determine which responses the cache stores and for how long: static-looking paths, extensions, explicit cache headers, and any response the cache decides to keep. A response that is cached but depends on request data the key omits is a poisoning candidate.
Test cache poisoning through unkeyed input. Send a request whose unkeyed header or parameter changes the response (a reflected header, a header that sets a link or script origin, a header that triggers an error page), then confirm the poisoned response is stored and served to a normal request without your input. If a later clean request receives your payload, the cache is poisoned for every user of that key.
Test cache deception. Request an authenticated, private page but shape the URL so the cache treats it as a static cacheable resource (appending a path segment or an extension the cache stores while the app still returns the private content). If the private response is stored under that URL, an attacker who requests the same URL retrieves the victim's data. Confirm what the cache keys on versus what the app authorizes on.
Rate impact and record. Poisoning that injects script or redirects affects every downstream user of the key (high to critical); deception that exposes another user's authenticated data is a direct confidentiality breach. Record confirmed poisoning and deception paths, and configurations where the cache key covers every response-affecting input and refuses to cache authenticated content (killed) in the schema.
Confirm. A page reflects an unkeyed header into an absolute script URL. The attacker sends a request with that header pointing at their host; the cache stores the response and serves it, with the attacker-controlled script origin, to every subsequent visitor of that path. Confirmed cache poisoning,
critical, remediation = include the header in the cache key or stop reflecting it, and do not cache responses that vary on unkeyed input.Kill. A profile page returns private, authenticated content with a directive that forbids shared caching, the cache refuses to store any authenticated response, and the cache key includes every input that changes the response. A deception attempt (appended static extension) is not stored because the response is marked non-cacheable. Killed,
kill_reason= "authenticated responses are non-cacheable; cache key covers all response-affecting inputs; no unkeyed lever."
You need to observe the caching layer's behavior: the cache key, which responses are stored, and how the app responds to unkeyed inputs and to deception-shaped URLs. Comparing keyed versus unkeyed requests and reading the cache hit/miss and age signals on responses is enough; the key-versus-response analysis is the method.
mapping-attack-surface - locating the caching layers and shared infrastructure in
front of the app.testing-llm-insecure-output-handling - a poisoned cached response is one more sink
that serves attacker content.writing-vuln-reports - a poisoning or deception finding to a reproducible writeup.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cache-poisoning, cache-deception, web-security, http-cache, cdn-testing
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