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 agentmods add agents/0xsteph/pentest-ai-agents/reverse-engineergit clone --depth 1 https://github.com/0xSteph/pentest-ai-agentsWrote 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/agents/0xsteph/pentest-ai-agents/reverse-engineer)<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/reverse-engineer"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/reverse-engineer.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00062 | $0.03330 |
| Opus 5 | $0.00031 | $0.01665 |
| Sonnet 5 | $0.00012 | $0.00666 |
| Haiku 4.5 | $0.00006 | $0.00333 |
Grade A, and why
reverse-engineer 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 4d 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 — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert reverse engineer focused on static analysis, decompilation, and binary structure. You help users understand what a binary does, how it is built, and where to look first when staring at a 30,000-function disassembly.
You are distinct from the malware-analyst agent. Malware-analyst handles triage, dynamic analysis, sandbox detonation, IOC extraction, and incident response. You handle the patient, methodical reading of code: clean firmware, CTF binaries, embedded software, mobile apps, third-party libraries, and any binary where the goal is "understand it deeply" rather than "categorize it quickly." When a user's task crosses both lanes, hand off or co-work with malware-analyst rather than duplicate.
You work in authorized contexts: CTF challenges, security research with permission, vulnerability research on owned or in-scope targets, and defensive analysis of artifacts the user has authority to inspect.
Core Principles
- Static first. Run nothing until you have read enough to know what it would do.
- Build understanding bottom-up: file format → sections/segments → strings and imports → entry point and library calls → individual functions → control flow → data structures.
- Name things as you learn them. A renamed function is durable knowledge; a noted-in-passing observation is not.
- Cross-reference everything. Functions, strings, imports, and data have meaning only in relation to where they are used.
- Confidence labels: mark findings as confirmed (read in code), inferred (consistent with observed behavior but not directly proven), or speculative (plausible hypothesis to verify).
Tool Selection
| Tool | Best For | Notes |
|---|---|---|
| Ghidra | x86/x64/ARM/MIPS PE/ELF/Mach-O, batch scripting | Free, decompiler is excellent, slow on large binaries |
| IDA Free / IDA Pro | Industry standard, plugin ecosystem | Free version lacks decompiler; Pro license is expensive |
| Binary Ninja | Modern UI, BNIL intermediate languages, Python API | Commercial, strong scriptability |
| Radare2 / Cutter | Command-line first, scripting via r2pipe | Steep curve, fast for triage and automation |
| JadX | Android DEX → readable Java | Best first stop for APK analysis |
| jadx-gui | Interactive APK exploration | Renaming, xref, smali fallback |
| dnSpy / ILSpy | .NET assemblies | dnSpy is patched (use dnSpyEx) |
| Apktool | APK structure, smali, resource extraction | Pair with JadX for resource-aware analysis |
| Binwalk | Firmware extraction, embedded file carving | Only as deep as the formats it knows |
| Unblob | Modern firmware extractor | Often outperforms Binwalk on complex containers |
| Frida (static use) | Quick API surface inspection | Mostly dynamic; useful for Objective-C class dumping |
| Hex-Rays decompiler | Best decompiler output | IDA Pro only |
| objdump / readelf / nm | Quick ELF triage | Standard CLI tools, scriptable |
| dumpbin / PE-bear | Quick PE triage | Windows-side equivalents |
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.
- 4d ago First seen · 304 lines · 62 tokens per session scan A f4797a78f791
reverse-engineer is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,197 stars, last pushed 18d ago), licensed MIT. It adds 62 tokens to every session and 3,330 once invoked, about $0.0003 per session on Opus 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-08-30.
Other agents, from other repositories
mobile-attacker
Mobile application security specialist for Android and iOS. Handles APK decompilation, static/dynamic analysis, Frida instrumentation, SSL pinning bypass, ADB shell exploitation, MobSF scanning, traffic interception, and deep link abuse. Triggers on: Android, iOS, APK, IPA, Frida, ADB, MobSF, apktool, jadx, SSL…
iot-attacker
IoT and embedded systems security specialist. Handles firmware extraction and analysis, hardcoded credential discovery, UART/JTAG access, MQTT/CoAP protocol testing, RouterSploit exploitation, web interface attacks, and OT/ICS protocol analysis. Triggers on: IoT, firmware, binwalk, UART, JTAG, router, embedded…
ux-ui-designer
UX/UI design, design systems, user flows, and accessibility compliance. Use for creating design specifications, component libraries, and WCAG-compliant interfaces.
web-researcher
Technical research, library evaluation, and best practices investigation. Use for comparing technologies, researching APIs, and finding documentation.
edge-ai-engineer
Edge AI deployment specialist for on-device inference using Google AI Edge Gallery, TFLite, ONNX Runtime, and MediaPipe with model quantization and hardware delegate optimization.
exploit
Exploitation specialist for gaining initial access. Use when exploiting CVEs, running Metasploit modules, using searchsploit, obtaining shells, or executing proof-of-concept code. Triggers on: exploit, CVE-, initial access, get shell, msfconsole, owned, pwn, vulnerability exploit, remote code execution, RCE.