Clickjacking (Missing Frame Protection)

Detects missing X-Frame-Options or Content-Security-Policy frame-ancestors directives.

zakirkun 6e5febb 2 files · 2.7 KB Updated

File contents

Clickjacking (Missing Frame Protection)

Overview

Clickjacking embeds a target website in a transparent iframe on an attacker's page. The victim is tricked into clicking UI elements on the invisible iframe (e.g., approve a transfer, change settings, delete account).

Detection Strategy

Look for HTTP responses that do not set either:

  • X-Frame-Options: DENY or X-Frame-Options: SAMEORIGIN
  • Content-Security-Policy: frame-ancestors 'none' or 'self'

Remediation

Use CSP frame-ancestors (modern, preferred) or X-Frame-Options (legacy).

X-Frame-Options: DENY
Content-Security-Policy: frame-ancestors 'none';

zakirkun/ice-tea/tree/main/skills/web/clickjacking commit 6e5febb421

Frequently asked questions

npx skillmds@latest add zakirkun/clickjacking-missing-frame-protection