clickjacking

Detect and simulate clickjacking attacks by analyzing X-Frame-Options and CSP frame-ancestors headers.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/utsavthakur/agenticskills --skill clickjacking-utsavthakur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clickjacking
Source: https://github.com/utsavthakur/agenticskills/tree/main/clickjacking
Command: npx skills add https://github.com/utsavthakur/agenticskills --skill clickjacking-utsavthakur

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps identify and mitigate clickjacking vulnerabilities on web pages, ensuring user interactions are secure.

Core Features & Use Cases

  • Vulnerability Detection: Tests if a page can be framed, X-Frame-Options or CSP frame-ancestors are properly configured.
  • Attack Simulation: Simulates various clickjacking techniques like iframe transparency tricks and X-Frame-Options bypass.
  • Use Case: When testing web applications, the Skill can help prevent unauthorized actions on sensitive pages.

Quick Start

Use the clickjacking skill to scan the website 'https://example.com' for clickjacking vulnerabilities.

Frequently Asked Questions about clickjacking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a web page for clickjacking vulnerabilities?

To test for clickjacking, you analyze the X-Frame-Options and CSP frame-ancestors headers to see if the page can be framed. You can also simulate iframe transparency tricks and JavaScript frame detection to confirm if the page is vulnerable.

What is the difference between X-Frame-Options and CSP frame-ancestors for preventing clickjacking?

Clickjacking prevention relies on X-Frame-Options or CSP frame-ancestors headers. X-Frame-Options controls framing from specific origins, while CSP frame-ancestors offers more granular control over which domains can embed the page.

Can I simulate iframe transparency attacks without external dependencies?

Yes, you can simulate clickjacking attacks like iframe transparency without external dependencies. The simulation tests page framing directly using built-in scripts to detect JavaScript frame checking.

How does JavaScript frame detection work against clickjacking?

JavaScript frame detection prevents clickjacking by checking if the web page is loaded inside an iframe. If framing is detected, the script can block interactions or break out of the frame to secure user actions.

Why is my page still vulnerable to clickjacking after setting X-Frame-Options?

Your page may still be vulnerable to clickjacking if X-Frame-Options is bypassed or misconfigured. Attackers can use iframe transparency tricks, so verifying CSP frame-ancestors is essential for complete protection.

What are the limitations of relying on X-Frame-Options for web vulnerability protection?

Relying on X-Frame-Options for clickjacking protection has limitations because it is deprecated in modern browsers. Using CSP frame-ancestors is recommended, though you should still test for bypasses and iframe transparency issues.