binary-analysis

kiwamizamurai's avatarfrom kiwamizamurai

Analyzes binary files for vulnerabilities and develops exploits. Use when working with ELF/PE executables, pwn challenges, buffer overflow, heap exploitation, ROP chains, format string bugs, or shellcode development.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 18, 2025

When & Why to Use This Skill

This Claude skill provides a comprehensive environment for binary analysis and exploit development, specializing in identifying vulnerabilities within ELF and PE executables. It automates the security auditing process by integrating industry-standard tools for protection detection (checksec), vulnerability scanning (cwe_checker), and ROP chain construction, making it an essential asset for security researchers, CTF players, and software auditors.

Use Cases

  • CTF & Pwn Challenges: Rapidly solve complex pwnable challenges by automating the identification of binary protections and crafting exploits for buffer overflows, heap vulnerabilities, or format string bugs.
  • Security Auditing: Perform deep-dive security assessments of compiled binaries to detect dangerous function calls and potential memory corruption vulnerabilities before deployment.
  • Vulnerability Research: Streamline the research process by automatically calculating memory offsets and searching for ROP gadgets or one-shot gadgets to build robust proof-of-concept exploits.
  • Reverse Engineering: Utilize a structured analysis pipeline to identify binary types, security features, and critical symbols, providing a clear overview of an executable's security posture.
namebinary-analysis
descriptionAnalyzes binary files for vulnerabilities and develops exploits. Use when working with ELF/PE executables, pwn challenges, buffer overflow, heap exploitation, ROP chains, format string bugs, or shellcode development.
allowed-toolsBash, Read, Write, Grep, Glob

Binary Analysis Skill

Quick Workflow

Progress:
- [ ] Run checksec (identify protections)
- [ ] Identify binary type and dangerous functions
- [ ] Find vulnerability (BOF/format string/heap)
- [ ] Calculate offsets
- [ ] Develop exploit with pwntools
- [ ] Test locally, then remote

Quick Analysis Pipeline

# 1. File identification
file <binary>

# 2. Security features
checksec --file=<binary>

# 3. Interesting strings
strings <binary> | grep -iE "flag|ctf|password|correct|wrong|win|shell|secret"

# 4. Function symbols
nm <binary> 2>/dev/null | grep -E " T | t " | head -20

# 5. Dangerous functions
objdump -d <binary> 2>/dev/null | grep -E "gets|strcpy|sprintf|scanf|system|exec"

# 6. Auto vulnerability scan
cwe_checker <binary>

Reference Files

Topic Reference
Protections & Vuln Detection reference/protections.md
Exploitation Templates reference/exploits.md
Advanced Tools reference/tools.md

Quick Commands

# Generate cyclic pattern
python3 -c "from pwn import *; print(cyclic(200))"

# Find offset
python3 -c "from pwn import *; print(cyclic_find(0x61616167))"

# Find ROP gadgets
ROPgadget --binary <binary> | grep "pop rdi"

# Find one_gadget
one_gadget <libc>

Tools Summary

Tool Purpose
checksec Check binary protections
pwntools Exploit development
ROPgadget Find ROP gadgets
one_gadget Find libc one-shot gadgets
cwe_checker Auto vuln detection
qira Runtime analysis
Triton Symbolic execution