/secskills-offense:exploiting-memory-corruptionfrom secskills-offense
Develops working exploits from memory-corruption bugs in native binaries, turning crashes into control flow and defeating ASLR, NX, canaries, PIE, and RELRO using pwntools and ROPgadget.
Ships in secskills-offense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reverse engineering tells you a binary is buggy. Exploitation is the separate craft of turning that bug into a controlled primitive and then into code execution, against the mitigations the target actually ships. The work is a chain of conversions — bug to primitive, primitive to leak, leak to control — and each link is chosen by what the binary's protections allow, not by rote.
analyzing-binaries; do that first if the bug is not yet
understood.unpacking-protected-binaries.testing-web-applications, exploiting-deserialization); this skill is
native memory corruption only.The exploit you can build is dictated by what is turned on. Read them before
planning anything (checksec, or pwntools' checksec/ELF):
| Mitigation | What it blocks | The usual answer |
|---|---|---|
| NX / DEP | Executing your shellcode on the stack/heap | ROP / ret2libc — reuse existing executable code |
| ASLR | Hardcoding addresses | An info leak to recover a base, then compute offsets |
| Stack canary | Naive stack-return overwrite | Leak the canary, overwrite something else, or brute a forking server |
| PIE | Hardcoding the binary's own addresses | Leak a binary address; until then only relative/partial overwrites |
| Partial RELRO | Little — GOT is still writable | GOT overwrite is on the table |
| Full RELRO | GOT overwrite | Target __malloc_hook/__free_hook (pre-2.34), or a ROP-only path |
The two questions that order the work: do I have an info leak (ASLR/PIE), and where can I write (RELRO). Everything else follows from those.
Name what you have before reaching for a technique:
%n for a targeted write and %p/%s for a leak; often
both a leak and a write from one bug.The goal of this step is one of three primitives: control flow hijack, an arbitrary read, or an arbitrary write. Get to a primitive, then build.
With NX on, you execute the program's own bytes in an order you choose:
pop rdi; ret-style
register controls that set up a call.system("/bin/sh") once you have a libc base; the
most direct chain when libc is available and leaked.rdx/rsi when no clean gadget exists, using
__libc_csu_init's tail on pre-2.34 binaries.sigreturn.Match the leaked libc to a build with libc-database so the offsets are right —
a chain built against the wrong libc fails silently.
Heap work is layout work: you arrange allocations so a corruption lands on something useful. The technique depends on the glibc version, because the allocator's checks have tightened steadily.
next to return an arbitrary pointer from the next
malloc. On 2.32+ the pointer is mangled by safe-linking (XORed with the
address it is stored at, shifted right by 12), so you need a heap leak to
forge it, and 2.34 removed the __free_hook/__malloc_hook targets that used
to end the chain.main_arena
pointer; reading it leaks a libc address to defeat ASLR.Drive all of this in pwndbg or GEF — heap, bins, and tcache commands
show the state so you groom against reality, not a mental model.
Build the exploit incrementally with pwntools, and verify each conversion
before adding the next: reach the crash, prove control of the instruction
pointer, land a leak and confirm the computed base, then the write, then the
shell. When a stage misbehaves, attach with gdb.attach() at exactly that
point rather than staring at the whole chain. A working local exploit that
fails remotely is almost always an environment gap — libc version, stack
alignment (a stray ret for movaps), or an env-dependent leak.
Exploit development belongs on binaries you own, CTF targets, lab VMs, or
software you are explicitly engaged to test — the lab_only egress mode is the
default here, since a working exploit run against production is an intrusion,
not research. Two specific edges:
Generated from secskills-core/ttp-index.json — edit that file, then run
python3 scripts/sync_attack.py --write. Re-verify IDs against the
current ATT&CK release before citing them in a report.
Execution (TA0002)
performing-social-engineering, analyzing-malwarePrivilege Escalation (TA0004)
escalating-linux-privileges, escalating-windows-privilegesLateral Movement (TA0008)
enumerating-network-servicesDetection content for any of these: engineering-detections. Proactive search: hunting-threats. Post-compromise: responding-to-incidents.
analyzing-binaries — recovering the code and understanding the bug firstunpacking-protected-binaries — when the binary must be unpacked/de-virtualizedreviewing-cryptography — when the target is a crypto primitive, not memorymaintaining-engagement-state — egress modes and the lab-only default hereWhat SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Aug 12, 2026
40 skills in this plugin
/abusing-adcsEnumerate and abuse Active Directory Certificate Services with Certipy and Certify — the ESC1 through ESC16 escalation paths, vulnerable template and CA configurations, NTLM relay to web enrollment, certificate-based authentication and persistence, and the strong-mapping changes that gate several of them. Use when a domain has a certificate authority, when Certipy or BloodHound reports vulnerable templates, or when escalating from a low-privilege domain user./abusing-ci-cd-oidcExploit CI/CD pipeline misconfigurations and OIDC federation weaknesses across GitHub Actions, GitLab CI, and Jenkins -- poisoned workflows, secret exfiltration, runner compromise, overly broad OIDC trust policies, build artifact poisoning, and credential theft. Use when pentesting CI/CD infrastructure, assessing OIDC federation trust boundaries, reviewing pipeline security posture, or exploiting a path from repository access to cloud credentials./attacking-active-directoryAttack and enumerate Active Directory environments using Kerberos attacks (Kerberoasting, ASREPRoasting), credential dumping (DCSync, Mimikatz), lateral movement (PtH, PtT), and BloodHound analysis. Use when pentesting Windows domains or exploiting AD misconfigurations.npx claudepluginhub gztes/security-for-platforms --plugin trilwu-secskills-offenseOther plugins' skills for the same job