Reverse-engineering workflow (Tier 2) — static and dynamic analysis of binaries, firmware, mobile/native libs, and malware-adjacent samples with Ghidra, IDA, radare2/rizin, and a debugger. Use to understand an unknown binary, locate a vulnerable routine, extract secrets/algorithms, or recover protocol/crypto logic. Analysis-focused; running untrusted samples is gated.
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 Reverse Engineer Anything?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-reverse-engineer-anything)
---
name: reverse-engineer-anything
description: Reverse-engineering workflow (Tier 2) — static and dynamic analysis of binaries, firmware, mobile/native libs, and malware-adjacent samples with Ghidra, IDA, radare2/rizin, and a debugger. Use to understand an unknown binary, locate a vulnerable routine, extract secrets/algorithms, or recover protocol/crypto logic. Analysis-focused; running untrusted samples is gated.
---
# Reverse Engineer Anything (static + dynamic)
Understand a binary you don't have source for: find the vulnerable function, recover an algorithm (crypto/licensing/protocol), extract secrets, or map logic for exploitation. Static first for safety; dynamic in an isolated lab. Running an untrusted/unknown sample is gated.
## Trigger phrases
`reverse engineering, ghidra, ida, radare2, rizin, decompile, disassemble, static analysis, dynamic analysis, binary analysis, unpack, deobfuscate`
## Execution gate
Record in `./.zazy/scope.md`:
(a) **Authorized + isolated lab to execute the sample?** → yes = dynamic analysis in an isolated VM (no network or controlled `inetsim`), snapshot before run.
(b) No → **static only**: disassemble/decompile without executing. Treat any unknown/untrusted binary as hostile — never run it on the engagement host; put it in its own directory and pass paths as arguments.
## Method
1. **Triage:** `file`, `strings -a`, `binwalk` (embedded data/firmware), `nm`/`objdump -d`, `checksec`, entropy (packed?), imports/exports. Detect packers (`DIE`/`Detect It Easy`, `PEiD`).
2. **Static analysis:** load into **Ghidra** (free, decompiler), **IDA**, or **radare2/rizin+Cutter**. Identify `main`/entry, strings cross-refs to reach interesting code, imports (`recv`/`strcpy`/`system`/`CryptEncrypt`) to find sinks. Rename/annotate as you go.
3. **Find the target:** for a bug, trace tainted input to unsafe ops (overflow/format-string/command-exec); for an algorithm, follow the data transform; for secrets, xref hardcoded keys/strings.
4. **Dynamic analysis (lab, gated):** `gdb`+`gef`/`x64dbg`/`WinDBG`/`Frida`; set breakpoints at the interesting function, inspect args/memory at runtime, patch/skip checks, dump decrypted/unpacked memory. `ltrace`/`strace`/API-monitor for behavior.
5. **Unpack/deobfuscate:** run to OEP and dump (packed PE), or use `unipacker`/scripted memory dumps; resolve string/API obfuscation with emulation (`unicorn`/`qiling`) or Ghidra scripts.
6. **Recover logic:** reimplement the algorithm/protocol in Python to confirm understanding (keygen-style validation, protocol parser).
## Modern / rare techniques
- **[NEW] Emulation with Qiling/Unicorn** to run isolated functions (string decryptors, firmware routines) without the full environment.
- **[RARE] Ghidra P-Code / headless scripting** for bulk automated analysis and custom deobfuscation passes.
- **[NEW] Frida instrumentation** for live hooking of mobile/native apps (ties into Android/iOS skills) — bypass checks, dump keys, trace calls.
- **[RARE] Diffing (`bindiff`/`diaphora`)** patched vs unpatched binaries to locate a silently-fixed vulnerability (n-day discovery).
## Escalation / chaining
Located vuln routine → `crash-analysis`/`exploit-development`. Firmware → `iot`. Mobile native libs → Android/iOS skills. Recovered protocol/crypto → feeds `fuzzing` harness or a protocol attack. Extracted creds/keys → relevant service skill.
## Backend & tooling
Kali/WSL-Kali: Ghidra, radare2/rizin+Cutter, IDA (if licensed), `gdb`+`gef`, `Frida`, `qiling`/`unicorn`, `binwalk`, `DIE`, `bindiff`/`diaphora`; isolated VM for any execution. Keep analysis scripts in a separate directory from the sample.
## Verification (background, before reporting)
Confirm understanding by an independent check — reimplement the algorithm and match outputs, or reproduce the behavior under the debugger. Cross-check decompiler output against the raw disassembly (decompilers can mislead). Report conclusions you reproduced.
## Evidence
Disassembly/decompilation of the key routine, the recovered logic/secret (redacted), behavioral trace, and the reproduction (reimplementation or debugger session). Remediation depends on finding (patch vuln, remove hardcoded secrets, add obfuscation/anti-tamper only as defense-in-depth, strengthen the weak algorithm).