curiouslearnerdev/online_tools-ai/binary-analysis
Claude Code and agent skill by curiouslearnerdev/online_tools-ai
- community
Checking that the SKILL.md file is still in the repository.
Binary analysis and reverse engineering workflow using checksec, strings, binwalk, radare2, ropgadget, and gdb for CTF and vulnerability research
Install
npx vskill@latest install curiouslearnerdev/online_tools-ai/binary-analysisSKILL.md
binary-analysis
Binary analysis and reverse engineering workflow for HexStrike AI. Use this skill when a user has a binary file to analyse, wants to find vulnerabilities, extract strings/firmware, build ROP chains, or debug execution.
Workflow
Step 1 — Security properties (checksec)
Always run checksec first to understand what mitigations are active:
Key properties and what they mean:
| Property | Enabled = harder to exploit | |
|---|---|---|
| NX / DEP | Stack is non-executable (no shellcode on stack) | |
| PIE | Base address randomised (ASLR applies) | |
| RELRO (Full) | GOT is read-only (no GOT overwrite) | |
| Stack Canary | Stack overflow detection | |
| FORTIFY | Safer libc functions enforced |
If no PIE + no NX + no canary → classic buffer overflow / ret2shellcode. If PIE + NX + Full RELRO → likely needs ret2libc or ROP chain.
Step 2 — String extraction (strings)
Extract human-readable strings — often reveals passwords, flags, URLs, function names:
Look for: hardcoded credentials, flag format strings, file paths, debug messages.
Step 3 — Firmware / embedded binary analysis (binwalk)
For firmware images, compressed archives, or unknown file formats:
Step 4 — Static disassembly and analysis (radare2)
Disassemble functions, find references, examine imports and exports:
Useful radare2 command reference:
| Command | Description | |
|---|---|---|
aaa | Auto-analyse all | |
afl | List all functions | |
pdf @<func> | Disassemble function | |
iz | List strings in data section | |
ii | List imports | |
ie | List exports | |
axt @<addr> | Find cross-references to address |
Step 5 — ROP gadget discovery (ropgadget)
When NX is enabled and you need a ROP chain:
Common gadgets to look for:
pop rdi; ret— set first argument (x64 calling convention)pop rsi; ret— set second argumentret— stack alignment (needed before some libc calls)syscall— for sigrop/syscall chains
Step 6 — Dynamic debugging (gdb / gdb-peda)
Run the binary under gdb to observe runtime behaviour, find offsets, and test exploits:
Typical gdb workflow for buffer overflow:
pattern create 200→ create cyclic patternrunwith pattern as input → binary crashespattern offset <crash_value>→ find offset to return address- Craft exploit with correct padding + ROP chain / shellcode
CTF pwn decision tree
Tips
- Run
stringsbefore anything else — flags are sometimes just stored plaintext. - Always check
checksecbefore spending time on ROP chain building — you may not need it. - Use radare2
pdf @mainto quickly orient yourself in the binary without a GUI. - ROP gadgets from libc are often more useful than gadgets in the binary itself — run ropgadget on libc too.
HexStrike Tool Reference
| Tool | Use case | |
|---|---|---|
checksec | Binary security properties | |
strings | Extract printable strings | |
binwalk | Firmware analysis and extraction | |
radare2 | Static disassembly and analysis | |
ropgadget | ROP gadget discovery | |
gdb | Dynamic debugging | |
gdb_peda | GDB with PEDA exploit dev enhancements |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingstorage/hexstrike-ai-community-edition-master/skills/binary-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/curiouslearnerdev/online_tools-ai/binary-analysis)