clickjacking

clickjacking is a skill for Claude Code from PurpleAILAB/Decepticon. It costs 43 tokens per session (1,451 once invoked), scanned A, original, Apache-2.0.

A web security testing guide for clickjacking, where an attacker places a real page inside an invisible or misleading frame. A victim’s click can then trigger a sensitive action on the framed site.

In plain words
What is it for?
Checking framing protections such as X-Frame-Options and Content Security Policy, and testing sensitive pages for frame-based and click-interception attacks.
Why use it?
It helps detect pages that can be embedded by other sites without adequate protection. This reduces the risk of unwanted account changes, transfers, approvals, or administrative actions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Checking framing protections such as X-Frame-Options and Content Security Policy, and testing sensitive pages for frame-based and click-interception attacks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/purpleailab/decepticon/clickjacking
About the project

Decepticon is an autonomous red-team agent that coordinates AI agents, security tools, sandboxes, and supporting services for authorized cybersecurity assessments. Security researchers and red teams can run it through its Docker stack, cloud service, command-line interface, or Python SDK, with the catalogue entries representing its available skills.

PurpleAILAB/Decepticon · 5,471 stars · on GitHub · decepticon.red

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.

Any agent
npx skills add PurpleAILAB/Decepticon --skill clickjacking
Clone the repo
git clone --depth 1 https://github.com/PurpleAILAB/Decepticon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clickjacking

README.md
[![agentmods](https://agentmods.dev/badge/skills/purpleailab/decepticon/clickjacking/github.svg)](https://agentmods.dev/skills/purpleailab/decepticon/clickjacking)
Your own site
<a href="https://agentmods.dev/skills/purpleailab/decepticon/clickjacking"><img src="https://agentmods.dev/badge/skills/purpleailab/decepticon/clickjacking/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clickjacking

Your own site · 80×15
<a href="https://agentmods.dev/skills/purpleailab/decepticon/clickjacking"><img src="https://agentmods.dev/badge/skills/purpleailab/decepticon/clickjacking.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 22
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Prompt Injection · line 70
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.1 $0.00043 $0.01451
Opus 5 $0.00022 $0.00726
Sonnet 5 $0.00009 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 6d ago against content hash 0eddaec7f2f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

clickjacking scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -D- -o /dev/null "https://<TARGET>$path" \
packages/decepticon/decepticon/skills/standard/exploit/web/clickjacking/SKILL.md · 116 lines

How it starts

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

Clickjacking Playbook

Framing a sensitive UI under an attacker page lets a single victim click trigger a privileged action (delete account, transfer funds, grant OAuth scope, confirm 2FA). Severity = severity of the framed action. Pages without X-Frame-Options and without Content-Security-Policy: frame-ancestors are framable.

1. Detection — framing controls

# Inspect headers on every sensitive page (settings, transfer, oauth/consent, delete, admin)
for path in / /account /account/email /account/delete /transfer /oauth/authorize /admin; do
  echo "== $path =="
  curl -s -D- -o /dev/null "https://<TARGET>$path" \
    | grep -iE "x-frame-options|content-security-policy"
done

# Quick "is it framable?" probe — save to disk, open in a browser
cat > /tmp/cj.html <<'EOF'
<!doctype html><title>frame test</title>
<iframe src="https://<TARGET>/account/delete" width="900" height="600"></iframe>
EOF
# If the iframe renders the target UI → framing allowed.

Server-side allow:

  • no X-Frame-Options header and
  • no frame-ancestors directive in Content-Security-Policy (or frame-ancestors * / overly broad).

2. Misconfig matrix

Class Server behaviour Exploit
No XFO, no CSP frame-ancestors full framing allowed classic overlay
XFO: ALLOW-FROM only ignored by modern browsers full framing in Chromium/Firefox
frame-ancestors * explicit allow-all full framing
frame-ancestors 'self' *.target.com trusts every subdomain host PoC on a takeable subdomain
Frame-buster JS only (if (top!=self) top.location=self.location) client-side defense sandbox="allow-forms allow-scripts" (no allow-top-navigation) defeats it
204-frame-buster response replaces self <iframe csp="sandbox" ...> or pre-empt with onbeforeunload
Drag-and-drop sinks sensitive textarea framable drag attacker-controlled string onto target form
Cursorjacking custom cursor + offset misalign visible vs. real pointer
Double-clickjacking first click opens prompt, second confirms two-stage overlay (Paulos Yibelo 2024)
Touch / pointer gestures mobile swipe consent overlay with transparent gesture target
Permissions-Policy missing camera/mic in iframe request perms in nested iframe over consent UI

Read the full file on GitHub · 116 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. 6d ago First seen · 116 lines · 43 tokens per session scan A 0eddaec7f2f7

Subscribe to this mod's changes

clickjacking is a skill published in the GitHub repository PurpleAILAB/Decepticon (5,471 stars, last pushed 10d ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,451 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.