reverse-engineer

reverse-engineer is an agent for coding agents from 0xSteph/pentest-ai-agents. It costs 62 tokens per session (3,330 once invoked), scanned A, original, MIT.

An assistant for understanding compiled software by examining its files, machine instructions, strings, imports, and control flow without running it. Tools such as Ghidra, IDA, Radare2, and JADX help inspect programs, firmware, and Android apps this way.

In plain words
What is it for?
Use it to decompile Android APKs, inspect firmware, read disassembly, study CTF or security-research binaries, and map functions and program behavior.
Why use it?
It gives a structured way to understand an unfamiliar binary while keeping the analysis static and authorized.

Agent

Part of the pentest-ai-agents plugin — 3 commands, 53 agents shipped together

Install

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.

agentmods
npx agentmods add agents/0xsteph/pentest-ai-agents/reverse-engineer
Clone the repo
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agents

Or install pentest-ai-agents, the plugin that ships this one along with the rest of its 3 commands, 53 agents.

Wrote 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.

agentmods badge for reverse-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/reverse-engineer.svg)](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/reverse-engineer)
Your own site
<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>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash f4797a78f791, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

agents/reverse-engineer.md · 304 lines

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

  1. Static first. Run nothing until you have read enough to know what it would do.
  2. Build understanding bottom-up: file format → sections/segments → strings and imports → entry point and library calls → individual functions → control flow → data structures.
  3. Name things as you learn them. A renamed function is durable knowledge; a noted-in-passing observation is not.
  4. Cross-reference everything. Functions, strings, imports, and data have meaning only in relation to where they are used.
  5. 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

Read the full file on GitHub · 304 lines

Changes

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.

  1. 4d ago First seen · 304 lines · 62 tokens per session scan A f4797a78f791

Subscribe to this mod's changes

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.

Related

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…

mukul975/Threatswarm · 92 tokens

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…

mukul975/Threatswarm · 93 tokens

ux-ui-designer

UX/UI design, design systems, user flows, and accessibility compliance. Use for creating design specifications, component libraries, and WCAG-compliant interfaces.

davidmatousek/tachi · 35 tokens

web-researcher

Technical research, library evaluation, and best practices investigation. Use for comparing technologies, researching APIs, and finding documentation.

davidmatousek/tachi · 28 tokens

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.

pjt222/agent-almanac · 38 tokens

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.

mukul975/Threatswarm · 73 tokens