re-radare2

re-radare2 is a skill for Claude Code from dslsdzc/rev-skills. It costs 43 tokens per session (2,446 once invoked), scanned A, original, Apache-2.0.

A command-line toolkit guide for inspecting compiled programs and firmware. It focuses on Rizin and radare2, tools that can disassemble machine code and show where functions and instructions are referenced.

In plain words
What is it for?
Use it for scripted batch analysis, quick disassembly, cross-reference searches, firmware inspection, and generating pseudocode with the rz-ghidra plugin.
Why use it?
It supports analysis from a terminal, over SSH, in CI, or on machines with limited memory where a graphical reverse-engineering tool may be impractical.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for scripted batch analysis, quick disassembly, cross-reference searches, firmware inspection, and generating pseudocode with the rz-ghidra plugin.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-radare2
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.

Any agent
npx skills add dslsdzc/rev-skills --skill re-radare2
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

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 re-radare2

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-radare2/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-radare2)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-radare2"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-radare2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-radare2

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-radare2"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-radare2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00043 $0.02446
Opus 5 $0.00022 $0.01223
Sonnet 5 $0.00009 $0.00489
Haiku 4.5 $0.00004 $0.00245

Measured 9d ago against content hash cdd1f334a55b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

re-radare2 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 9d 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.

.claude/skills/re-radare2/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

rizin/radare2 命令行分析

何时使用 / 何时不用

  • 用:命令行/脚本化分析;内存 <4GB 或远程环境(GUI 反编译器跑不动);快速反汇编与交叉引用;pdf/V 模式探索;固件/批量样本脚本化分析
  • 用:无 GUI 的 SSH/CI 环境(rz 纯终端,-q -c 一行批处理)
  • 不用:需要成熟 GUI 反编译与类型传播(走 [[re-ghidra]])
  • 不用:只需初勘结论([[re-triage]])
  • 不用:Windows 用户态调试为主([[re-x64dbg]] / [[re-windbg]] 更顺手;rz 调试器在 Windows 上能力有限)

工具准备

参考 [[platform-tips]]——命令行工具适配远程/低内存环境;平台分支的 Wine/QEMU 用户态仿真经验同样适用。

rizin(radare2 的活跃分支)

  • macOS: brew install rizin
  • Arch: pacman -S rizin
  • Fedora 43+/RHEL(EPEL): dnf install rizin(EPEL 8/9 也有包;Fedora 42 及更早版本用官方 release 二进制)
  • Debian/Ubuntu: 官方 release 二进制(GitHub rizinorg/rizin releases:static tar.xz / Windows zip / macOS pkg)或 rz-pm 安装——Debian 仓库无 rizin 包,apt install rizin 会失败
  • Windows: 官方 release zip 解压即用(rz-bin.exe
  • 验证: rizin -vrz-bin -V

radare2 兼容层(旧命令体系)

  • Linux: apt install radare2 / dnf install radare2 / pacman -S radare2
  • macOS: brew install radare2
  • Windows: choco install radare2
  • 验证: r2 -v
  • 注意: rz 与 r2 命令基本兼容(pdf/axt/V 相同),但插件名与个别命令有差异(下文标注)

rz-ghidra 反编译插件

  • 全平台: rz-pm -ci rz-ghidra(rizin 包管理,需网络与编译工具链)
  • 验证: rizin 内 pdg @ main 能输出伪 C

操作步骤

  1. rizin -A 全自动分析

    rizin -A sample
    

    等待分析完成提示(大文件按 p 分页观察)。-A 等同 aaa(全量自动分析: 函数/交叉引用/字符串引用)。只做浅层时用 -a x86 等按需参数。退出: q

    • 无参数直接进交互模式后补分析: aaa;轻量版 aa(函数+字符串引用,大文件首选)
    • 函数列表: afl;单函数信息: afi @ main;手工定义函数: af @ 0x401000
  2. pdf 反汇编函数

    [0x00001040]> pdf @ sym.main
    
    • 无符号(stripped)时先找入口: izz~entryaf @ 0x401000 手工定义函数后再 pdf @ 0x401000
    • pdf = print disassembly function;pd 20 = 打印 20 条指令;pdr 打印带引用
    • 混入分析噪声时用 pdf @ <addr> | grep call 过滤调用
    • 重命名: afn 新名字 @ 地址;注释: CCu 注释 @ 地址
  3. axt 交叉引用

    [0x00001040]> axt @ 0x403000     # 谁引用 0x403000
    [0x00001040]> axf @ sym.main     # main 引用了谁
    

    字符串引用: izz 列出全部字符串,axt @ str.<名称> 找引用点(字符串已被自动命名)。

    • 定位链: izz 找关键字符串 → axt @ str.xxx → 跳到引用函数 s <地址>pdf——与 [[re-ida]] 的 Alt+T→x→F5 同思路

Read the full file on GitHub · 144 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 144 lines · 43 tokens per session scan A cdd1f334a55b

Subscribe to this mod's changes

re-radare2 is a skill published in the GitHub repository dslsdzc/rev-skills (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,446 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

deobfuscating-powershell-obfuscated-malware

Systematically deobfuscates multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure. Use during incident response or malware analysis when a PowerShell script is obfuscated with encoding, string manipulation, or…

Youngmaidainon/Agent-Level-Up · 90 tokens

conducting-malware-incident-response

Respond to malware infections across enterprise endpoints by identifying the malware family, determining infection vectors, assessing spread, and executing containment, analysis, eradication, and recovery procedures aligned to MITRE ATT&CK. Use when responding to a confirmed or suspected malware infection, including…

Youngmaidainon/Agent-Level-Up · 78 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-network-covert-channels-in-malware

Detect and analyze covert communication channels used by malware, including DNS tunneling, ICMP exfiltration, steganographic HTTP, and other protocol abuse used for C2 and data exfiltration. Use when investigating suspicious DNS/ICMP/HTTP traffic patterns, hunting for hidden C2 channels in network captures, or…

Youngmaidainon/Agent-Level-Up · 90 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

Mikaru0Mystic/sectinel · 40 tokens