clickjacking

A security review for clickjacking, an attack where another site tricks a logged-in user into clicking controls on a hidden or disguised copy of your page.

In plain words
What is it for?
It checks framing protections and related risks such as prefilled form values, multi-step overlays, and client-side frame-busting code.
Why use it?
It helps find sensitive pages that can be opened inside another site's frame, where a single click could change account settings, approve payments, or delete data.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/emre-guler/websec/clickjacking
Any agent
npx skills add emre-guler/websec --skill clickjacking
Clone the repo
git clone --depth 1 https://github.com/emre-guler/websec

Made for: Claude Code, Codex.

Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,385 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00111 $0.05385
Opus 5 $0.00056 $0.02693
Sonnet 5 $0.00022 $0.01077
Haiku 4.5 $0.00011 $0.00539

Measured 2d ago against content hash 8d601f32644a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

clickjacking scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/clickjacking/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clickjacking Detection

Overview

Clickjacking is an interface attack: the attacker loads a genuine page of the target application inside a nearly invisible frame, positions it above a decoy of their own, and lines up a specific control under something the victim wants to click. The victim clicks the decoy, the click lands on the real application in their own authenticated session, and a real action fires — change the account email, delete the account, approve a payment, grant a permission. Because the request is produced by the authentic page, it carries that page's own anti-forgery token, so token-based defences do not help; the correct control is a response header that refuses framing. The attacker is a remote site the victim is lured to visit while logged in, and the cost is one real interaction — which also caps likelihood, since no click means no attack. Variants extend it: values prefilled from the URL let the attacker decide the outcome in advance, stacked overlays walk the victim through multi-step flows, and a framed page carrying a script sink turns one click into code execution. This skill locates every sensitive page together with the framing controls that do or do not cover it, checks each one in parallel, and merges results into <output_dir>/clickjacking-results.md.

What it is NOT

  • Cross-site request forgery (/websec:csrf): forgery fabricates a request with no victim interaction and is stopped by a per-session token. Clickjacking needs a real click and defeats tokens because the framed authentic page supplies a valid one. Test: does the attack require the victim to interact with a rendered copy of the real page? Yes is this class, and the fix is a framing header, not a token.
  • Cross-site scripting (/websec:xss) and other client-side sinks (/websec:dom-based): framing injects nothing. When a framed page reaches script execution, the injection flaw is the finding and belongs to /websec:xss; record here only that framing supplies the interaction it needs. A sink reached through a URL parameter without framing is not this class at all.
  • Broken access control (/websec:access-control): if the action should have been refused for this caller in the first place, the missing check is authorisation. Clickjacking borrows an authority the victim genuinely holds.
  • Cross-origin read policy (/websec:cors): sharing headers govern whether script may read a response; framing headers govern whether a document may be embedded. They are separate mechanisms and neither substitutes for the other.
  • Content spoofing and embedding-based phishing: framing a purely informational public page so an attacker's site looks legitimate is a presentation and brand issue with no state change behind it. No skill in this set owns it. Test: name the action a victim's click would perform in the framed page; if there is none, it is out of scope — say so and move on rather than reaching for a neighbouring class.
  • Not a finding: a page that sends X-Frame-Options: DENY/SAMEORIGIN or a CSP frame-ancestors directive restricting framers to 'none' or 'self' — the browser simply refuses to render it, however sensitive the action; a frameable page with no state-changing single-click control; a page whose sensitive action requires an unpredictable interaction the attacker cannot pre-aim, such as re-authentication, a one-time code, or typing a value only shown on that page; framing deliberately permitted for a named partner origin via an explicit frame-ancestors allowlist that the architecture documents.

Read the full file on GitHub · 163 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 163 lines · 111 tokens per session scan A 8d601f32644a

Subscribe to this mod's changes

clickjacking is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 5d ago), licensed MIT. It adds 111 tokens to every session and 5,385 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vantage

Autonomous, artifact-driven SAST (Static Application Security Testing) for web AND mobile app repositories, plus optional code-level remediation. Use whenever the user asks to security-review, pentest, audit, or scan a codebase for vulnerabilities — web (SQLi, XSS, IDOR/BOLA, auth bypass, SSRF, XXE, hardcoded secrets…

tinoimammp/vantage-security-agent · 230 tokens

prowler-ui

Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).

prowler-cloud/prowler · 64 tokens

prowler-test-api

Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).

prowler-cloud/prowler · 62 tokens

prowler-pr

Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…

prowler-cloud/prowler · 84 tokens

tailwind-4

Tailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables are involved (no var() in className).

prowler-cloud/prowler · 47 tokens

prowler-docs

Prowler documentation style guide and writing standards. Trigger: When writing documentation for Prowler features, tutorials, or guides.

prowler-cloud/prowler · 31 tokens