Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add trilwu/secskills --skill exploiting-memory-corruptiongit clone --depth 1 https://github.com/trilwu/secskillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/trilwu/secskills/exploiting-memory-corruption)<a href="https://agentmods.dev/skills/trilwu/secskills/exploiting-memory-corruption"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/exploiting-memory-corruption/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/trilwu/secskills/exploiting-memory-corruption"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/exploiting-memory-corruption.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Prompt Injection · line 164 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
- high YARA Match · line 174 YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.02533 |
| Opus 5.5 | $0.00047 | $0.01013 |
| Sonnet 5.5 | $0.00024 | $0.00507 |
| Haiku 4.5 | $0.00012 | $0.00253 |
Grade A, and why
exploiting-memory-corruption scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Exploiting Memory Corruption
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.
When to Use
- You have a crash or a known bug class in an ELF/PE and need to assess exploitability and build a working exploit
- Constructing a ROP/JOP chain, a ret2libc, or a heap-grooming sequence
- Defeating a specific mitigation set (ASLR, NX/DEP, canary, PIE, RELRO) on a lab or CTF target
- Working an authorized binary-exploitation task or a CTF pwn challenge
When NOT to Use
- Recovering what the binary does — disassembly, decompilation, algorithm
recovery — is
analyzing-binaries; do that first if the bug is not yet understood. - Unpacking or de-virtualizing a protected binary before you can even see
the code — use
unpacking-protected-binaries. - Web, deserialization, or injection bugs — those are their own skills
(
testing-web-applications,exploiting-deserialization); this skill is native memory corruption only. - Kernel/driver exploitation specifically — the primitives differ enough (no libc, SMEP/SMAP/KASLR, syscall context) that it is out of scope here; the userland method still informs it.
- Fuzzing to find the bug — that is a discovery step; this skill starts once you have a crash.
Enumerate the Mitigations First
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 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 194 lines · 118 tokens per session scan A 73f929f48fc6
exploiting-memory-corruption is a skill published in the GitHub repository trilwu/secskills (211 stars, last pushed 2mo ago), licensed MIT. It adds 118 tokens to every session and 2,533 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
exploiting-memory-corruption compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| exploiting-memory-corruptiontrilwu/secskills | Skill | 211 | 2mo ago | MIT | A | 118 | Claude Code |
| pathways-workloadgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 178 | Claude Code, Codex |
| gke-workload-scaling-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 170 | Claude Code, Codex |
| api-gateway-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 196 | Claude Code, Codex |
| gke-node-notreadygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 112 | Claude Code, Codex |
| gke-ai-troubleshooting-jobset-interruptiongoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| bigquery-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 140 | Claude Code, Codex |