Tooluck logoTooluck
SKILL.md

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)

skills/binary-protection-bypass/SKILL.md

MITFull file
1# SKILL: Binary Protection Bypass — Expert Attack Playbook
2
3> **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.
4
5## 0. RELATED ROUTING
6
7- [stack-overflow-and-rop](../stack-overflow-and-rop/SKILL.md) — ROP chains to bypass NX, ret2libc for ASLR bypass
8- [format-string-exploitation](../format-string-exploitation/SKILL.md) — primary method for leaking canary, PIE, libc addresses
9- [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 RELRO
11
12### Advanced Reference
13
14Load [PROTECTION_BYPASS_MATRIX.md](./PROTECTION_BYPASS_MATRIX.md) for comprehensive protection × bypass × primitive matrix.
15
16---
17
18## 1. PROTECTION IDENTIFICATION
19
20```bash
21$ checksec ./binary
22[*] '/path/to/binary'
23 Arch: amd64-64-little
24 RELRO: Full RELRO ← GOT read-only
25 Stack: Canary found ← stack canary enabled
26 NX: NX enabled ← stack not executable
27…

Excerpt shown under the repository's MIT license.

More skills in hack-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates