Reverse Tabnapping
Detects anchor tags with target="_blank" without rel="noopener noreferrer", allowing opened pages to manipulate the opener.
by zakirkun★ 40 GitHub stars
Install Reverse Tabnapping in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Reverse Tabnapping
Overview
When an <a> tag uses target="_blank" without rel="noopener noreferrer", the opened page gets a reference to the opener window via window.opener. A malicious opened page can redirect the original tab to a phishing page (window.opener.location = 'https://phishing.com').
Remediation
Always add rel="noopener noreferrer" to links with target="_blank":
Vulnerable:
<a href="https://external.com" target="_blank">Visit</a>
Safe:
<a href="https://external.com" target="_blank" rel="noopener noreferrer">Visit</a>
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- patterns.yaml
FAQ
What does the Reverse Tabnapping skill do?
Detects anchor tags with target="_blank" without rel="noopener noreferrer", allowing opened pages to manipulate the opener.
How do I install the Reverse Tabnapping skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Reverse Tabnapping skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…