Full exploit-development workflow (Tier 2, crash-risky) — modern memory-corruption exploitation with mitigation bypass: controlling EIP/RIP, ROP chains for DEP/NX, info-leaks for ASLR/PIE, stack-canary defeat, and heap techniques at a methodology level. Use to weaponize a confirmed memory-corruption bug into reliable control in a lab or with explicit authorization.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Exploit Development?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-exploit-development)
---
name: exploit-development
description: "Full exploit-development workflow (Tier 2, crash-risky) — modern memory-corruption exploitation with mitigation bypass: controlling EIP/RIP, ROP chains for DEP/NX, info-leaks for ASLR/PIE, stack-canary defeat, and heap techniques at a methodology level. Use to weaponize a confirmed memory-corruption bug into reliable control in a lab or with explicit authorization."
---
# Exploit Development (modern, lab)
Turn a confirmed memory-corruption primitive into reliable code execution against real mitigations (DEP, ASLR/PIE, stack canaries, CFG/CET). High crash risk — develop against a lab clone/snapshot and keep PoCs benign outside RoE.
## Trigger phrases
`exploit development, rop chain, dep bypass, aslr bypass, pie leak, stack canary, got overwrite, ret2libc, heap exploitation, gadgets`
## Execution gate
Record in `./.zazy/scope.md` before any detonation:
(a) **Lab/authorized to exploit/research?** → yes = full workflow.
(b) No → **dry run only**: document the bug class, the control primitive, affected version, and theoretical exploitability — no weaponization/detonation. Production exploitation requires explicit written RoE and ideally a snapshot target.
## Method (lab)
1. **Characterize the primitive:** overflow / UAF / type-confusion / OOB-write / format-string; what you control (RA, function pointer, size, where/what write) and how precisely. (Crash triage → `crash-analysis`.)
2. **Enumerate mitigations:** `checksec`/`!mona mod` — NX/DEP, ASLR/PIE, RELRO, canary, CFG/CET, Fortify. This dictates the chain.
3. **Defeat the canary:** leak it (format-string/OOB-read), brute per-byte (forking servers), or avoid it (overwrite past it / SEH / function pointer).
4. **Defeat ASLR/PIE:** find an info-leak (format-string, uninitialized read, GOT/PLT leak, partial overwrite of a known low-entropy field) to recover a module base; compute gadget/libc addresses from the leak.
5. **Defeat DEP/NX with ROP:** build a chain (`ROPgadget`/`ropper`/`!mona rop`) to `mprotect`/`VirtualProtect` the payload region, or `ret2libc`/`ret2system`, or a `execve("/bin/sh")` chain; stack-pivot if buffer is small.
6. **GOT/PLT & format-string writes:** arbitrary write to GOT entry / `__free_hook`/`__malloc_hook` (older glibc) / function pointers.
7. **Heap (methodology):** tcache/fastbin poisoning, unsafe-unlink, UAF-to-arbitrary-write, House-of-* families — shape the heap, corrupt metadata, redirect a pointer.
8. **Stabilize:** make the exploit reliable (cleanup, avoid secondary crashes); keep the final payload a benign demonstrator unless RoE allows a real shell.
## Modern / rare techniques
- **[NEW] One-gadget / `ret2dlresolve`** to pop a shell without a libc leak.
- **[RARE] SROP (sigreturn-oriented programming)** when gadgets are scarce.
- **[NEW] CET/CFG-aware chains** — note shadow-stack/indirect-branch tracking limits classic ROP; pivot to data-only or JOP where applicable.
- **[RARE] Partial-overwrite ASLR defeat** using known page offsets.
## Escalation / chaining
Reliable RCE → payload delivery is out of scope here (Tier-3 weaponized loaders are NOT authored by Zazy). Crash discovery → `fuzzing`/`overflow-probe`; triage → `crash-analysis`; binary understanding → `reverse-engineer-anything`; kernel targets → `linux-kernel-exploits`/`windows-kernel-exploits`.
## Backend & tooling
Kali/WSL-Kali lab VM / snapshot: `pwntools`, `gdb`+`gef`/`pwndbg`, `ROPgadget`/`ropper`, `one_gadget`, `checksec`, `patchelf`/`pwninit`; Windows lab: `x64dbg`/WinDBG + `mona.py`. Clear the gate before using `zazy-orchestrator` backends.
## Verification (background, before reporting)
Run the exploit multiple times from a clean state to measure reliability; confirm each mitigation bypass independently (leak reproduces, chain lands). Demonstrate control with a benign marker before claiming RCE. Report reproducible results with a measured success rate.
## Evidence
The bug primitive, mitigation inventory, the working chain/leak, a benign PoC proving execution, and reliability notes. Remediation: patch the root cause, enable all mitigations (full RELRO, PIE, canaries, CET/CFG), modern allocator hardening, and input validation.