Skills for Real Engineers. Straight from my .agents directory.
dns-rebinding-attacks
Agent skill fromyaklang/hack-skills
DNS rebinding attack playbook. Use when testing applications that trust DNS resolution for origin checks, interact with internal services from browser context, or when SSRF is not possible server-side but the target has client-side fetch/XHR to attacker-controlled domains.
How to install dns-rebinding-attacks
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/dns-rebinding-attacks/
# into
~/.claude/skills/dns-rebinding-attacks/ (all projects)
.claude/skills/dns-rebinding-attacks/ (one project)
1# SKILL: DNS Rebinding — Expert Attack Playbook23> **AI LOAD INSTRUCTION**: Expert DNS rebinding techniques for bypassing same-origin policy via DNS manipulation. Covers TTL tricks, browser cache bypasses, attack variants (HTTP, WebSocket, TOCTOU), internal service targeting, and tool usage. Base models confuse DNS rebinding with SSRF — this skill clarifies the client-side nature and unique exploit paths.45## 0. RELATED ROUTING67- [ssrf-server-side-request-forgery](../ssrf-server-side-request-forgery/SKILL.md) — server-side variant; DNS rebinding is the **client-side** counterpart8- [cors-cross-origin-misconfiguration](../cors-cross-origin-misconfiguration/SKILL.md) — when CORS misconfig allows direct cross-origin reads instead910---1112## 1. CORE PRINCIPLE1314The browser same-origin policy binds `protocol + host + port`. The **host** is resolved via DNS at connection time. If an attacker controls the DNS server for `attacker.com`, they can:15161. First resolution → attacker IP (serve malicious JS)172. Second resolution → internal IP (victim's network)183. Browser considers both responses same-origin (`attacker.com`)194. Malicious JS reads responses from internal services2021```22Victim visits attacker.com23 │24 ▼25DNS query: attacker.com → 1.2.3.4 (attacker server)26Browser loads malicious JS from 1.2.3.427 │28 ▼29TTL expires (or forced flush)30 │31 ▼32JS triggers new request to attacker.com33DNS query: attacker.com → 192.168.1.1 (internal target)34…
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.
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
Production-grade engineering skills for AI coding agents.
