/security-agent-skills:auditing-clickjacking-and-ui-redressingfrom security-agent-skills
Audits web applications for clickjacking and UI-redressing vulnerabilities: checks if sensitive pages can be framed, if state-changing actions are one-click, and if framing protections are missing.
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.
Clickjacking works because the browser will happily render your real, authenticated page inside a frame on
someone else's site, and the user cannot tell. The attacker loads your page in a transparent or hidden iframe,
positions it under decoy content, and lures the user into clicking what looks like the attacker's button, when
the click actually lands on your page, taken with the user's own session. So any sensitive, state-changing
action that a single click can trigger, changing a setting, confirming a purchase, granting an approval,
connecting an account, is exposed if your page can be framed by another origin. The defense is to refuse
framing by untrusted origins, with a Content-Security-Policy frame-ancestors directive (and the older
X-Frame-Options as a fallback), and, for the highest-value actions, to not make them one-click blind: a
confirmation the overlay cannot fake. Related redressing tricks, drag-and-drop and keystroke capture, exploit
the same framing to steal input. The audit checks, for every sensitive page, whether it can be framed and
whether its state-changing actions are reachable by a single hidden click. You audit this by trying to frame
the real page from another origin and drive its actions.
frame-ancestors CSP directive or X-Frame-Options, so another origin can frame it.Audit clickjacking only on applications you own or are authorized to assess. Framing the real site to demonstrate the attack uses a real authenticated session, so use test accounts and your own attacker-page test harness and never trick a real user or act on an account that is not yours. If you can't name the authorization, stop.
Establish which actions are sensitive and whether the page can be framed first. Inventory the
authenticated, state-changing actions on each page and name which are high-value (money, permissions, data
deletion, account connection). Then determine the intended framing policy: which origins, if any, may embed
the page. This is the false-positive killer: a page that refuses framing by untrusted origins via
frame-ancestors and whose highest-value actions require a confirmation an overlay cannot fake is not
clickjackable. Name the sensitive actions and the framing policy, then test framing.
Test whether the page can be framed. From an attacker-origin test page, load the target in an iframe and
confirm whether the browser renders it. Check for a frame-ancestors CSP directive and, as a fallback,
X-Frame-Options; confirm they name only trusted origins. A page that renders in an arbitrary origin's frame
is embeddable for a redress.
Map one-click state-changing actions. For each sensitive action, determine whether a single click triggers it with no further step. A framed one-click action, positioned under a decoy, is taken the moment the user clicks the decoy. Actions that change money, permissions, or data with one click are the priority targets.
Test overlay and confirmation hiding. Simulate the attack: overlay the framed page with decoy content and confirm whether the sensitive control can be positioned under an innocuous-looking click. Check whether any confirmation step is one the overlay can hide or auto-satisfy, or a genuine barrier the attacker cannot fake. A confirmation the frame can cover is not protection.
Check drag-and-drop and keystroke redressing. Beyond clicks, test whether framing enables dragging a value into a field, or capturing keystrokes the user believes go to the attacker page, to fill a sensitive form on the framed site. These redressing variants exploit the same missing framing protection.
Confirm and record. Confirm from an attacker-origin test page by framing the real page and driving a
sensitive action with a click aimed at a decoy, using a test account and your own harness, without tricking a
real user. Kill the lead if the page refuses framing by untrusted origins via frame-ancestors (with
X-Frame-Options fallback) and its high-value actions require a confirmation the overlay cannot fake. Record
the attacker page that frames the site, the unknowing state-changing click, and the missing framing
protection or unguarded one-click action.
frame-ancestors or X-Frame-Options that allows broad or wrong origins lets
an attacker-controlled or compromised origin frame the page.Confirm. An account settings page lets a user connect an external account or change a security setting with a single button click, and the page sends no
frame-ancestorsCSP directive and no X-Frame-Options. An attacker-origin test page loads it in a transparent iframe under a decoy game, positions the connect button under the decoy's "play" button, and a test user's click connects the account without their awareness. Confirmed clickjacking of a sensitive one-click action via missing framing protection,high, remediation = setframe-ancestors 'self'(and X-Frame-Options DENY or SAMEORIGIN as fallback) on sensitive pages, and require a confirmation an overlay cannot fake for high-value actions.Kill. Sensitive pages send
frame-ancestors 'self'(with X-Frame-Options as a fallback) so no untrusted origin can frame them, and the highest-value actions require a confirmation the overlay cannot hide or auto-satisfy. An attacker-origin frame is refused by the browser, so no decoy overlay can steer a click. Killed,kill_reason= "page refuses framing by untrusted origins via frame-ancestors and high-value actions require a non-fakeable confirmation; no framed click reaches a sensitive action."
frame-ancestors, not obscurity, and without it the page is embeddable by anyone.frame-ancestors since X-Frame-Options is the legacy fallback; a header set on some pages but not the
sensitive one still exposes it.frame-ancestors; the same header that constrains
script is where you refuse untrusted framers.You need the sensitive, state-changing actions on each page, the framing headers each page sends
(frame-ancestors and X-Frame-Options), whether each sensitive action is one-click, and whether its
confirmation is fakeable under an overlay. From an attacker-origin test harness, try to frame each sensitive
page and drive its actions under a decoy. Reading the response headers shows the intended framing policy; a
sensitive action driven from a framed decoy on your harness shows whether it holds.
auditing-third-party-script-and-sri-trust - the other front-end trust boundary set by response headers; CSP
carries both frame-ancestors here and the script allowlist there.auditing-cors-and-cross-origin-trust - the cross-origin trust boundary framing sits within; both decide
what another origin may do with your authenticated context, one via requests, the other via a frame.hunting-wallet-drainer-and-dapp-approval-abuse - a redressed dApp UI hides a signing prompt; UI redressing
and approval deception combine to get a user to authorize what they cannot see.mapping-attack-surface - use it to enumerate the authenticated, state-changing pages that need framing
protection before testing each.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clickjacking, ui-redressing, security-audit, csp, x-frame-options
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