2389-research/binary-re/static-analysis
Claude Code and agent skill by 2389-research/binary-re
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Performs static analysis of binary code using radare2 and Ghidra — function enumeration, cross-reference tracing, decompilation, and control flow graphs without executing the binary. Use when disassembling or decompiling code, mapping functions, tracing data flow, or building hypotheses before dynamic verification.
Install
npx vskill@latest install 2389-research/binary-re/static-analysisSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as 2389-research/binary-re/static-analysis.
Static Analysis (Phases 2-3)
Purpose
Understand binary structure and logic without execution. Map functions, trace data flow, decompile critical code.
When to Use
- After triage has established architecture and ABI
- To understand specific functions identified as interesting
- When dynamic analysis is impractical or risky
- To build hypotheses before dynamic verification
Two-Stage Approach
Stage 1 (Light): Function enumeration, strings, imports - fast, broad coverage Stage 2 (Deep): Targeted decompilation, CFG analysis - slow, focused
Stage 1: Light Analysis (radare2)
Analysis Depth Selection
| Binary Size | Command | Tradeoff | |
|---|---|---|---|
| < 500KB | aaa | Full analysis, may be slow | |
| 500KB - 5MB | aa; aac | Functions + all call targets | |
| > 5MB | aa + targeted af @addr | Fast, manual depth control |
Session Setup
Critical settings:
anal.timeout=120- Prevent runaway analysisanal.maxsize=67108864- 64MB max function size- Use
aa; aacfor medium binaries,aaaonly for small ones
Handling Unanalyzed Call Targets
If axtj returns empty for known imports:
Function Enumeration
Cross-Reference Analysis
String-Function Correlation
Import/Export Mapping
Quick Disassembly
Stage 2: Deep Analysis
r2ghidra Availability Check
Before attempting decompilation, verify r2ghidra is installed:
If r2ghidra unavailable: Rely on disassembly (pdf) and cross-reference analysis (axt/axf).
Targeted Decompilation (r2ghidra)
Ghidra Headless (Large Binaries)
For complex functions or when r2ghidra struggles:
Processor strings:
- ARM 32-bit:
ARM:LE:32:v7orARM:LE:32:Cortex - ARM 64-bit:
AARCH64:LE:64:v8A - x86_64:
x86:LE:64:default - MIPS LE:
MIPS:LE:32:default - MIPS BE:
MIPS:BE:32:default
Control Flow Analysis
Data Structure Recovery
Analysis Patterns
Pattern: Network Function Tracing
Pattern: Configuration File Analysis
Pattern: Crypto Identification
r2 JSON Commands Reference
| Command | Output | Use Case | |
|---|---|---|---|
aflj | Functions list | Map code structure | |
axtj @addr | Xrefs TO address | Who uses this? | |
axfj @addr | Xrefs FROM address | What does it call? | |
pdfj @addr | Disassembly | Understand instructions | |
pdgj @addr | Decompilation | Pseudo-C output | |
afbj @addr | Basic blocks | Control flow | |
izj | Data strings | Configuration, URLs | |
iij | Imports | External dependencies | |
iEj | Exports | Public interface | |
afvj @addr | Local variables | Stack analysis |
Output Format
Record analysis findings as structured facts:
Knowledge Journaling
After static analysis, record findings for episodic memory:
Example Journal Entry
Decision Points
After static analysis:
- Identified critical functions? → Ready for dynamic verification
- Unclear behavior? → Try dynamic analysis for runtime observation
- Crypto detected? → Document key handling, note for security review
- Anti-analysis patterns? → Consider Unicorn snippet emulation
Next Steps
→ binary-re:dynamic-analysis to verify hypotheses with runtime observation → binary-re:synthesis if sufficient understanding reached
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/static-analysis/SKILL.md
Popularity
- Repository stars
- 18
- Repository forks
- 3
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/2389-research/binary-re/static-analysis)