binary-protection-bypass
Agent skill fromyaklang/hack-skills
Binary protection bypass playbook. Use when identifying and bypassing ASLR, PIE, NX/DEP, stack canary, RELRO, FORTIFY_SOURCE, CET, and MTE protections in ELF binaries to enable exploitation.
How to install binary-protection-bypass
install binary-protection-bypass
# install the hack-skills pack with the skills CLI
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/binary-protection-bypass/
# into
~/.claude/skills/binary-protection-bypass/ (all projects)
.claude/skills/binary-protection-bypass/ (one project)
1# SKILL: Binary Protection Bypass — Expert Attack Playbook23> **AI LOAD INSTRUCTION**: Expert binary protection identification and bypass techniques. Covers ASLR, PIE, NX, RELRO, canary, FORTIFY_SOURCE, stack clash, CET shadow stack, and ARM MTE. Each protection is paired with its bypass methods and required primitives. Distilled from ctf-wiki mitigation sections and real-world exploitation. Base models often confuse which protections block which attacks and miss the combinatorial effect of multiple protections.45## 0. RELATED ROUTING67- [stack-overflow-and-rop](../stack-overflow-and-rop/SKILL.md) — ROP chains to bypass NX, ret2libc for ASLR bypass8- [format-string-exploitation](../format-string-exploitation/SKILL.md) — primary method for leaking canary, PIE, libc addresses9- [heap-exploitation](../heap-exploitation/SKILL.md) — heap attacks for RELRO bypass (when GOT is read-only)10- [arbitrary-write-to-rce](../arbitrary-write-to-rce/SKILL.md) — what to overwrite when GOT is protected by RELRO1112### Advanced Reference1314Load [PROTECTION_BYPASS_MATRIX.md](./PROTECTION_BYPASS_MATRIX.md) for comprehensive protection × bypass × primitive matrix.1516---1718## 1. PROTECTION IDENTIFICATION1920```bash21$ checksec ./binary22[*] '/path/to/binary'23 Arch: amd64-64-little24 RELRO: Full RELRO ← GOT read-only25 Stack: Canary found ← stack canary enabled26 NX: NX enabled ← stack not executable27…
Excerpt shown under the repository's MIT license.
