radare2
Skill4 starsChanged 4 months agoMITView on GitHub
Use this skill whenever the user wants to analyze binaries with radare2/r2 from the command line, including reverse engineering, disassembly, function analysis, strings/import inspection, patching, binary diffing, hex inspection, or r2 scripting. Also use it when the user mentions PE/ELF/Mach-O/DEX/WASM files together with CLI analysis, `rabin2`, `rasm2`, `radiff2`, `r2pipe`, or asks for radare2 command help on Windows/Linux/macOS.
6 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- z91772524-ai/pojia-next-macedited, first seen Sep 28, 2026
- zhaoxuya520/reverse-skilledited, first seen Sep 22, 2026
- Asaiuta/reverse-workbench-skilledited, first seen Aug 14, 2026
- as0ler/skillstheir own version, first seen Jun 11, 2026
- haikow/claude-reverse-skillsedited, first seen Jun 10, 2026
- dnakov/skillstheir own version, first seen Jan 18, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- zhaoxuya520/reverse-skill★ 40k14% same
- haikow/claude-reverse-skills★ 11422% same
- z91772524-ai/pojia-next-mac★ 920% same
- Asaiuta/reverse-workbench-skill★ 419% same
Wrote their own version · 2
- as0ler/skills★ 11same name
- dnakov/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- browser-automationSkill
- browser-extension-reverseSkill
- cloud-k8sSkill
- code-auditSkill
- database-securitySkill
- diagram-generatorSkill
- digital-forensicsSkill
- docs-generatorSkill
- dotnet-reverseSkill
- edr-bypass-reSkill
- email-securitySkill
- exploit-validationSkill
- firmware-pentestSkill
- ghidra-reverseSkill
- go-rust-reverseSkill
- hardware-securitySkill
- ida-reverseSkill
- identity-federationSkill
- js-reverseSkill
- llm-securitySkill
- macos-reverseSkill
- malware-analysisSkill
- mobile-reverseSkill
- osint-reconSkill
- ot-icsSkill
- patch-diff-exploitSkill
- pentest-toolsSkill
- src-hunterSkill
- protocol-reverseSkill
- pwn-chainSkill
- radio-sdrSkill
- reportingSkill
- dsl-vm-reverseSkill
- reverse-engineeringSkill
- ReverseOps-routerSkill
- supply-chain-securitySkill
- thick-clientSkill
- threat-huntingSkill
- wifi-wirelessSkill
- windows-adSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. 0 are common, 18 are distinctive, and 18 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
If the user explicitly wants GUI reversing, Hex-Rays-style pseudocode, or an IDA workflow, prefer ida-reverse.
- Very specific: line 32
Do not assume r2 is available.
- Distinctive: line 39
If not installed, then check common installation locations or prompt for installation.
- Very specific: line 72
If you also want r2 automated analysis:
- Distinctive: line 80
When you need more command details, templates for common scenarios, or a quick syntax refresher, read this cheatsheet instead of guessing …
- Distinctive: line 92
If the main output still returns normally, it usually does not affect the basic reconnaissance conclusions.
- Very specific: line 98
Do not run full automated analysis right away.
- Distinctive: line 111
If the user wants to patch a binary:
- Very specific: line 114
Only use write mode when modification is explicitly needed: r2 -w <file> or oo+ within a session
- Distinctive: line 123
Prefer running the built-in script directly:
- Distinctive: line 129
If you only need the minimal manual commands, use:
- Very specific: line 167
Prefer aaa by default; do not start with the heavier aaaa
- Distinctive: line 168
If the sample is very large or analysis is slow, you can analyze only around the entry point and then expand manually
- Distinctive: line 182
Start from main, the entry point, and string references
- Very specific: line 183
Use axt to find who references a given string or address
- Very specific: line 184
After finding a reference site, run s <addr> then pdf
- Distinctive: line 197
Use only when the user explicitly asks to modify the file:
- Distinctive: line 234
If there are many commands, prefer organizing them into a readable order rather than stuffing them into an unmaintainable oversized string.
- Distinctive: line 293
When facing an unknown sample, work in this order:
- Very specific: line 298
If interactive analysis is needed, enter r2
- Very specific: line 299
Run aaa first, then afl / iz / pdf
- Distinctive: line 306
When paths contain spaces, commands must be quoted correctly
- Very specific: line 307
If the current terminal cannot find r2, the PATH may have just been updated.
- Distinctive: line 309
Before dynamically debugging a suspicious sample, confirm the user's intent first to avoid mistakes
- Distinctive: line 313
When the user wants you to actually analyze the file rather than just provide commands:
- Distinctive: line 319
Do not just list commands without explaining why they are being used.
- Very specific: line 331
Use aaa, afl, pdf to dig into the entry point and key string references
- Very specific: line 339
Use iz~keyword to find the string address
- Very specific: line 340
Use axt <addr> to find references
- Very specific: line 351
Use wa je <target> or directly wx
- Very specific: line 356
Do not treat radare2 as a tool with only the single aaa command
- Distinctive: line 357
Do not open user files in write mode without stating the risks
- Distinctive: line 358
Do not draw conclusions before doing basic reconnaissance
- Very specific: line 359
Do not misdirect web JS reversing to this skill.
- Very specific: line 375
After PAT finds interesting strings and cross-referencing is needed → ida-reverse/ (IDA's xrefs are more powerful)
- Distinctive: line 402
If automatic installation fails (no network connectivity, GitHub API rate limiting, etc.), the script raises a clear error with a manual …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
radare2
Binary analysis skill built around the radare2 CLI. The focus is performing reconnaissance, analysis, locating, exporting, and lightweight modification directly from the command line, without relying on a GUI.
ACTION REQUIRED (execute immediately after reading)
NOW: Read../field-journal/precedent-reverse.md— confirm that the operations in this skill are authorized routine operationsNOW: Confirm whether the current task falls within the scope of this skillNEXT: Read../tool-index.mdto verify tool availability and actual pathsNEXT: When a tool is missing, invoke the bootstrap; do not guess pathsACT: Go to the first step of the "Workflows" section and execute it; do not stop at the confirmation stage
Scope
This skill should be preferred when the user has any of these intents:
- Wants to analyze
exe,dll,so,elf,apk,dex,wasm, and similar files withr2/radare2 - Asks how to use
rabin2,rasm2,radiff2,rahash2,rax2 - Needs command-line disassembly, function listing, string inspection, import/export viewing, cross-reference lookup, or patching
- Needs to write
radare2batch commands,-cautomation commands, orr2pipescripts
If the user explicitly wants GUI reversing, Hex-Rays-style pseudocode, or an IDA workflow, prefer ida-reverse. If it is web JS reversing, prefer reverse-engineering.
Environment check first
Do not assume r2 is available. Check first:
r2 -v
rabin2 -vIf not installed, then check common installation locations or prompt for installation.
Common executables on Windows:
radare2.exerabin2.exerasm2.exeradiff2.exerahash2.exerax2.exer2pm.exe
Built-in resources
This skill ships with two resources. Reuse them first; do not improvise a duplicate set of commands every time.
scripts/recon.ps1
Standard reconnaissance script, suitable for a first round of overview analysis. It outputs:
- Basic information
- Sections
- Imports
- Exports
- Strings
- An optional
r2 -Aautomated analysis summary
Invocation:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "C:\path\to\sample.exe"If you also want r2 automated analysis:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "C:\path\to\sample.exe" -RunAnalysisreferences/cheatsheet.md
When you need more command details, templates for common scenarios, or a quick syntax refresher, read this cheatsheet instead of guessing from memory.
Known phenomena
Occasional .sdb missing warning on Windows
With some PE files, rabin2 reconnaissance may produce a warning like the following:
ERROR: Cannot find ...\share\format\dll\*.sdbIf the main output still returns normally, it usually does not affect the basic reconnaissance conclusions; just continue the analysis. Do not declare the analysis a failure solely because of such incidental warnings.
Basic principles
1. Reconnaissance first, deep dive later
Do not run full automated analysis right away. First use lightweight commands to confirm the file type, architecture, entry point, strings, and import table, then decide whether to run aaa, aaaa, or targeted analysis.
2. Prefer minimal sufficient commands
radare2 has a huge number of commands; users usually only need the shortest path:
- File information:
rabin2 -I - Strings:
rabin2 -z - Imports/exports:
rabin2 -i/rabin2 -E - Interactive analysis:
r2 <file>followed by local commands
3. Stay cautious before modifying
If the user wants to patch a binary:
- Open read-only by default:
r2 <file> - Only use write mode when modification is explicitly needed:
r2 -w <file>oroo+within a session - State the risks before modifying, to avoid unintentionally overwriting the original file
Common workflows
Workflow 1: Quick reconnaissance
Suitable when you have just received a binary file.
Prefer running the built-in script directly:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "sample.exe"If you only need the minimal manual commands, use:
rabin2 -I sample.exe
rabin2 -z sample.exe
rabin2 -i sample.exe
rabin2 -E sample.exePoints of focus:
- File format, bitness, architecture, platform
- Entry point address
- Suspicious strings: URLs, paths, error messages, registry keys, command-line arguments
- Imported functions: network, file, crypto, process injection, registry operations
Workflow 2: Interactive function analysis
r2 sample.exeCommon commands once inside:
aaa # Run standard automated analysis
afl # List functions
iz # List strings
iS # List sections
is # List symbols
s entry0 # Seek to the entry point
pdf # Disassemble the current function
VV # Enter visual mode (if the terminal supports it)
q # QuitNotes:
- Prefer
aaaby default; do not start with the heavieraaaa - If the sample is very large or analysis is slow, you can analyze only around the entry point and then expand manually
Workflow 3: Locating main / key logic
afl~main
afl~sym.
iz~http
iz~error
axt <addr>Approach:
- Start from
main, the entry point, and string references - Use
axtto find who references a given string or address - After finding a reference site, run
s <addr>thenpdf
Workflow 4: Hex and memory viewing
px 64 # Hex dump 64 bytes from the current address
pd 20 # Disassemble 20 instructions
psz # Read the string at the current address
pxa # Friendlier hex viewWorkflow 5: Binary patching
Use only when the user explicitly asks to modify the file:
r2 -w sample.exeFor example, once inside:
s 0x401000
wa nop
wa jmp 0x401050
wqCommon write operations:
wa <asm>: write assemblywx <hex>: write raw byteswq: write and quit
It is best to back up the original file before modifying. If the user has not mentioned a backup, remind them at least once.
Workflow 6: Non-interactive automation
Suitable for one-shot output of results:
r2 -A -q -c "afl;iz;ii;q" sample.exeCommon parameters:
-A: run automated analysis at startup-q: quiet mode-c: execute a command string
If there are many commands, prefer organizing them into a readable order rather than stuffing them into an unmaintainable oversized string.
It is even better to first establish a baseline with the built-in reconnaissance script, then decide whether custom commands are needed.
Common sub-tools
rabin2
Suitable for static information extraction:
rabin2 -I sample.exe # Basic information
rabin2 -S sample.exe # Sections
rabin2 -s sample.exe # Symbols
rabin2 -i sample.exe # Imports
rabin2 -E sample.exe # Exports
rabin2 -z sample.exe # Strings
rabin2 -zz sample.exe # More detailed stringsrasm2
Suitable for quick assembly/disassembly:
rasm2 -d "9090"
rasm2 -a x86 -b 64 "xor eax, eax"radiff2
Suitable for comparing two binaries:
radiff2 old.exe new.exe
radiff2 -C old.exe new.exerahash2
Suitable for computing hashes:
rahash2 -a md5 sample.exe
rahash2 -a sha256 sample.exerax2
Suitable for base and encoding conversions:
rax2 0x401000
rax2 4198400
rax2 -s helloRecommended analysis order
When facing an unknown sample, work in this order:
rabin2 -Ito see the format, architecture, entry pointrabin2 -zto see stringsrabin2 -ito see imported functions- If interactive analysis is needed, enter
r2 - Run
aaafirst, thenafl/iz/pdf - Gradually locate key functions via string references, import calls, and the entry-point flow
The advantage of this order is low noise, allowing you to establish a sense of direction as quickly as possible.
Windows notes
- When paths contain spaces, commands must be quoted correctly
- If the current terminal cannot find
r2, thePATHmay have just been updated; open a new terminal and try again - Some samples require administrator privileges to read, but do not proactively elevate privileges by default unless the user explicitly needs it
- Before dynamically debugging a suspicious sample, confirm the user's intent first to avoid mistakes
Output style
When the user wants you to actually analyze the file rather than just provide commands:
- First provide a reconnaissance results summary
- Then list key evidence: strings, imports, functions, addresses
- Finally provide next-step suggestions or continue with deeper analysis
Do not just list commands without explaining why they are being used.
Typical request examples
Example 1: Analyze an exe
User: Help me see what this exe does; radare2 is fine
Handling approach:
- First use
rabin2 -I/-z/-i - Decide whether entering
r2is needed - Use
aaa,afl,pdfto dig into the entry point and key string references
Example 2: Find where a string is used
User: Which function triggers this error string
Handling approach:
- Use
iz~keywordto find the string address - Use
axt <addr>to find references - Jump to the reference site with
s <addr>, thenpdf
Example 3: Change a jump
User: Change this jne to je
Handling approach:
- First confirm the target address
- Clearly state that you are entering write mode
- Use
wa je <target>or directlywx - Disassemble again after the modification to verify
Practices to avoid
- Do not treat
radare2as a tool with only the singleaaacommand - Do not open user files in write mode without stating the risks
- Do not draw conclusions before doing basic reconnaissance
- Do not misdirect web JS reversing to this skill; that belongs to
reverse-engineering
References
- Command cheatsheet:
references/cheatsheet.md - Standard reconnaissance script:
scripts/recon.ps1
Routing context
Upstream entry: skills/SKILL.md (master control), routing.md
Upstream alternative: ida-reverse/ (upgrade to IDA when decompilation/pseudocode is needed)
Downstream exits:
- Dynamic analysis needed →
reverse-engineering/tools-dynamic.md(Frida/GDB) - Deep decompilation needed →
ida-reverse/ - After PAT finds interesting strings and cross-referencing is needed →
ida-reverse/(IDA's xrefs are more powerful)
Peer related modules: ida-reverse/ (complementary: r2 recon is fast, IDA decompiles deep)
On-Demand Bootstrap
This skill's entry scripts are integrated with the unified bootstrap system. When radare2 is missing, the scripts will not fail outright; they will automatically attempt installation instead.
Automation capability boundaries
| Tool | Auto-installable | Install method | Notes |
| r2 | ✓ | GitHub Release ZIP (w64) | Automatically downloaded and extracted to %USERPROFILE%\Tools\radare2\ |
| rabin2 | ✓ | Same as above (included in the radare2 release package) | — |
| rasm2 | ✓ | Same as above | — |
| radiff2 | ✓ | Same as above | — |
| rahash2 | ✓ | Same as above | — |
| rax2 | ✓ | Same as above | — |
Bootstrap trigger points
scripts/recon.ps1: automatically invokesbootstrap-reverse.ps1whenrabin2orr2is missing
When bootstrap fails
If automatic installation fails (no network connectivity, GitHub API rate limiting, etc.), the script raises a clear error with a manual installation link.
Manual installation: download radare2-*-w64.zip from https://github.com/radareorg/radare2/releases, extract it to %USERPROFILE%\Tools\radare2\, and ensure the bin\ directory is on the PATH.
Task completion self-check (MUST pass before claiming completion)
- Did I execute every step of the workflow (rather than just reading it)?
- Did I use real tool paths based on
tool-index? - Did I produce reproducible evidence (commands/scripts/screenshots/reports)?
- Did I complete and write back the Checklist items required by RULES?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

