radare2
Skill by zhaoxuya520
Analyzes binaries from the command line with radare2. It covers triage, disassembly, strings and imports, patching, binary diffing and r2 scripting, for reverse engineers and security analysts.
Install radare2
Built from the published package, never by AI.
git clone --depth 1 https://github.com/zhaoxuya520/reverse-skill /tmp/reverse-skill && mkdir -p ~/.claude/skills && cp -r /tmp/reverse-skill/skills/radare2 ~/.claude/skills/radare2Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/zhaoxuya520/reverse-skill /tmp/reverse-skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/reverse-skill/skills/radare2 ~/.gemini/antigravity-cli/skills/radare2Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through binary analysis with radare2 (r2) and its command line tools, such as rabin2, rasm2, radiff2, rahash2 and rax2. It starts with light commands to check file type, architecture, entry point, strings and imports, then moves to function analysis, disassembly, cross-references and hex views. A bundled PowerShell script, recon.ps1, runs a first-pass overview and can add an r2 auto-analysis summary.
The skill is written with Windows in mind, using PowerShell and .exe file names. Its bootstrap step can download radare2 from a GitHub release ZIP when the tools are missing. It tells the assistant to open files read-only by default and to use write mode only when the user asks for a patch. It is aimed at reverse engineers and security analysts who want a command line workflow without a GUI.
Written from the project's SKILL.md and checked against it.
What it can do
- recon.ps1Runs a standard first-pass triage with info, sections, imports, exports and strings.
- rabin2Extracts static file info, sections, symbols, imports, exports and strings.
- Interactive r2 analysisRuns auto-analysis, lists functions and strings, and disassembles from the r2 shell.
- Cross-reference lookupFinds which code references a given string or address using axt.
- Binary patchingOpens files in write mode and writes assembly or raw bytes, only when the user asks.
- rasm2Assembles and disassembles instructions for a chosen architecture and bit width.
- radiff2Compares two binaries to show differences.
- Non-interactive automationRuns r2 with -A, -q and -c to print a batch of command results.
What you need
- radiff2, rabin2 and r2 (radare2 tools) on the PATH, or auto-install from GitHub
- PowerShell to run the bundled recon.ps1 script
- Windows paths and .exe names are used in the examples
Try asking
- Use radare2 to triage this sample.exe and list its imports and strings
- Find which function references the error string in this binary
- Compare old.exe and new.exe with radiff2 and summarize the changes
Good to know
- Setup and examples are written for Windows, with PowerShell and .exe names
- Patching requires the user to ask for it, and the skill advises backing up the original file first
- If automatic install fails, radare2 must be installed manually from the releases page
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/radare2/SKILL.md, skills/radare2/scripts/recon.ps1, skills/radare2/scripts/recon.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
references/cheatsheet.md2 KB -
scripts/recon.ps13 KB -
scripts/recon.sh3 KB
Alternatives to radare2
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
radare2: common questions
Does this skill modify the files I give it?
By default it opens files read-only. It uses write mode only when the user clearly asks for a patch, and it advises a backup first.
How does it get radare2 if it is not installed?
The recon script calls a bootstrap step that downloads the radare2 Windows ZIP from GitHub Releases and unpacks it to a Tools folder under the user profile.
Does it replace IDA or a decompiler?
The source says it is for fast command line triage. For decompilation or pseudo-code it points users to the ida-reverse skill.
How do I install radare2?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is radare2 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is radare2 safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to radare2?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
