/security-agent-skills:testing-client-side-dom-vulnerabilitiesfrom security-agent-skills
Tests DOM-based vulnerabilities that never reach the server: DOM XSS, DOM clobbering, prototype pollution, unsafe cross-window messaging, client-side open redirects, and cross-origin leaks. Use when reviewing SPAs, heavy client-side JS, or browser extensions.
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 whole class of vulnerabilities never touches the server: the tainted input is read and the dangerous action taken entirely in the browser, so server-side review and server logs see nothing. The source is a URL fragment, a message, a piece of markup, or a global the attacker can influence; the sink is a script execution, a corrupted object, or a leaked cross-origin fact. Testing them means tracing taint inside the page, from client source to client sink.
Test pages and extensions you own or are authorized to test. Use benign markers and your own browser session. If you can't name the authorization, stop.
Enumerate client-side sources and sinks. List where the page reads attacker-influenceable input in the browser (the URL and its fragment, message data, referrer, storage, the DOM itself) and where it writes to a dangerous sink (HTML insertion, script or event execution, navigation, object property assignment). A source reaching a sink without sanitization is the bug.
Test DOM-based cross-site scripting. Does any client source flow into a markup or code sink (assigning HTML, writing an attribute that executes, building a handler) without encoding? If a value from the fragment or a message becomes executable in the page, it is DOM XSS, and it fires without the server ever seeing the payload.
Test DOM clobbering. Can attacker-injected markup, in a context that allows some HTML but not script, define named elements that shadow the globals or properties the page's script relies on, redirecting logic or supplying a value the script trusts? Look for script that reads a global that markup could define.
Test prototype pollution. Can attacker-controlled keys reach a recursive merge, a query or path parser, or an assignment that walks into a base object's prototype, injecting a property every object then inherits? Trace whether a polluted property later reaches a gadget (a sink that reads it) to turn corruption into script execution or a logic bypass.
Test cross-window messaging and navigation. Does a message handler act on data without verifying the sender origin, or does client-side routing take a path or target from input that can become an open redirect or a client-side path traversal? An unauthenticated message handler that writes to a sink is an injection channel from any window.
Test cross-origin leaks and record. Can another origin infer state (whether you are logged in, a value) from an observable side channel the page exposes? Rate by impact: script execution and account actions are high; a pure information leak is lower. Record confirmed source-to-sink flows and inputs proven encoded or origin-checked (killed) in the schema.
Confirm. A single-page app reads a value from the URL fragment and assigns it into an element's HTML to render a section label, with no encoding. A crafted fragment injects a markup payload that executes in the page. The server never receives the fragment. Confirmed DOM-based XSS,
high, remediation = write the value as text or encode for the HTML context, never assign untrusted input as markup.Kill. A message handler verifies the sender origin against an allowlist before acting, all client sources are written to sinks as text through a context-correct encoder, object merges reject prototype-walking keys, and routing matches paths against a fixed table. Injected fragments, messages, and keys reach no executable or logic sink. Killed,
kill_reason= "origin-checked messaging, text-only encoded sinks, prototype-safe merges, table-matched routing; no client source reaches a dangerous sink."
You need to trace taint inside the page, from client sources to client sinks, and to influence those sources (fragment, message, markup, storage) while observing the sink. Browser tooling and client-side dataflow tracing are enough; the source-to-sink map inside the browser is the method.
adjudicating-taint-paths - the same source-to-sink discipline, applied inside the
browser.testing-llm-insecure-output-handling - a rendered sink that trusts untrusted
content, on the output side.What SKILL.md sets; muted values are Claude Code's defaults
194 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.npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skillsOther plugins' skills for the same job