binary-analysis — скилл для Claude Code: что делает и как установить
Скилл binary-analysis помогает агенту исследовать неизвестные бинарные файлы, дампить шестнадцатеричные данные и находить скрытые строки.
MIT 146 установок ★ 60 обновлён 2026-10-25
npx skills add laurigates/claude-plugins --skill binary-analysis -a claude-codeЧто делает binary-analysis
Скилл подключает набор стандартных утилит командной строки для исследования нетекстовых файлов. Агент получает инструкции по запуску file, strings, hexdump, xxd и binwalk, а также по разбору заголовков ELF, Mach-O или сырых дампов прошивок. С его помощью агент проверяет энтропию участков данных, ищет смещения сигнатур и находит забытые токены или эндпоинты в скомпилированном коде.
Базовые утилиты вроде strings и hexdump обычно присутствуют в системе из коробки, но для работы с прошивками потребуется отдельно установить binwalk через pip или cargo.
Какие задачи решает
- определить формат неизвестного файла по сигнатуре
- извлечь печатные строки и ключи из бинарника
- проанализировать энтропию разделов прошивки
- разобрать hex-структуру файла по заданному смещению
Примеры запросов агенту
- Проверь тип файла mystery_file и покажи первые двадцать байт заголовка
- Найди в бинарнике app.bin все строки длиннее десяти символов со словом token
- Сделай анализ энтропии файла firmware.bin и извлеки вложенные разделы
Как установить binary-analysis
1Через Skills CLI (Vercel)
npx skills add laurigates/claude-plugins --skill binary-analysis -a claude-code2Вручную: положить файлы
~/.claude/skills/binary-analysis/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/binary-analysis/
1Через Skills CLI (Vercel)
npx skills add laurigates/claude-plugins --skill binary-analysis -a codex2Вручную: положить файлы
.agents/skills/binary-analysis/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add laurigates/claude-plugins --skill binary-analysis -a cursor2Вручную: положить файлы
.cursor/skills/binary-analysis/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install laurigates/claude-plugins tools-plugin/skills/binary-analysis2Вручную: положить файлы
.github/skills/binary-analysis/SKILL.md1Через Skills CLI (Vercel)
npx skills add laurigates/claude-plugins --skill binary-analysis -a gemini-cli2Командой платформы
gemini skills install https://github.com/laurigates/claude-plugins --path tools-plugin/skills/binary-analysisВручную: положить файлы
.devin/skills/binary-analysis/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add laurigates/claude-plugins --skill binary-analysis -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о binary-analysis
Как установить binary-analysis в Claude Code?
Выполните команду npx skills add laurigates/claude-plugins --skill binary-analysis -a claude-code в терминале.
Что делает скилл binary-analysis?
Он даёт ИИ-агенту сценарии и шаблоны команд для анализа структуры исполняемых файлов, дампов памяти и распаковки образов прошивок.
Какие системные утилиты нужны для его работы?
Большинство команд опираются на встроенные file, strings и xxd, а для поиска сжатых областей понадобится установленный binwalk.
Исходный текст
SKILL.md · MIT
--- name: binary-analysis description: "Binary analysis: strings, binwalk, hexdump, xxd, file, objdump. Use when identifying unknown files, extracting strings, hunting credentials, or entropy analysis." user-invocable: false allowed-tools: Bash(file *), Bash(xxd *), Bash(hexdump *), Bash(strings *), Bash(objdump *), Bash(readelf *), Bash(nm *), Read, Grep, Glob created: 2025-12-27 modified: 2026-05-09 reviewed: 2026-04-25 --- # Binary Analysis Tools for exploring and reverse engineering binary files, firmware, and unknown data. ## When to Use This Skill | Use this skill when... | Use rg-code-search instead when... | |---|---| | Identifying unknown or non-text file types (`file`, `xxd`) | Searching tracked source files for a regex | | Extracting strings or symbols from compiled binaries / firmware | Auditing a repo's text-encoded files for hardcoded patterns | | Inspecting raw hex layout of an ELF, Mach-O, or `.bin` blob | The input is human-readable code or markdown | | Use this skill when... | Use jq-json-processing instead when... | |---|---| | Reverse-engineering an opaque binary format | The data is already structured JSON awaiting transformation | | Hunting embedded files with `binwalk -e` | A field needs extraction from a parsed JSON payload | ## Quick Reference | Tool | Purpose | Install | |------|---------|---------| | `strings` | Extract printable text from binaries | Built-in (binutils) | | `binwalk` | Firmware analysis, file extraction | `pip install binwalk` or `cargo install binwalk` | | `hexdump` | Hex/ASCII dump | Built-in | | `xxd` | Hex dump with reverse capability | Built-in (vim) | | `file` | Identify file type | Built-in | ## strings - Extract Text from Binaries Find human-readable strings embedded in binary files. ```bash # Basic usage - find all printable strings (min 4 chars) strings binary_file # Set minimum string length strings -n 10 binary_file # Only strings >= 10 chars # Show file offset of each string strings -t x binary_file # Hex offset strings -t d binary_file # Decimal offset # Search for specific patterns strings binary_file | grep -i password strings binary_file | grep -E 'https?://' strings binary_file | grep -i api_key # Wide character strings (UTF-16) strings -e l binary_file # Little-endian 16-bit strings -e b binary_file # Big-endian 16-bit strings -e L binary_file # Little-endian 32-bit # Scan entire file (not just initialized data sections) strings -a binary_file ``` **Common discoveries with strings:** - Hardcoded credentials, API keys - URLs and endpoints - Error messages (hints at functionality) - Library versions - Debug symbols and function names - Configuration paths ## binwalk - Firmware Analysis Identify and extract embedded files, analyze entropy, find hidden data. ```bash # Signature scan - identify embedded files/data binwalk firmware.bin # Extract all identified files binwalk -e firmware.bin # Extract to _firmware.bin.extracted/ binwalk --extract firmware.bin # Same as -e # Recursive extraction (extract files within extracted files) binwalk -Me firmware.bin # Entropy analysis - find compressed/encrypted regions binwalk -E firmware.bin # Generate entropy graph binwalk --entropy firmware.bin # Opcode analysis - identify CPU architecture binwalk -A firmware.bin binwalk --opcodes firmware.bin # Raw byte extraction at offset binwalk --dd='type:extension' firmware.bin # Specific signature types binwalk --signature firmware.bin # File signatures only binwalk --raw='\\x1f\\x8b' firmware.bin # Search for gzip magic bytes ``` **binwalk output interpretation:** ``` DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 TRX firmware header 28 0x1C LZMA compressed data 1835008 0x1C0000 Squashfs filesystem, little endian ``` ## hexdump / xxd - Raw Hex Analysis ```bash # Hex + ASCII dump hexdump -C binary_file xxd binary_file # Dump specific byte range xxd -s 0x100 -l 256 binary_file # 256 bytes starting at offset 0x100 # Just hex, no ASCII hexdump -v -e '/1 "%02x "' binary_file # Create hex dump that can be reversed xxd binary_file > hex.txt xxd -r hex.txt > reconstructed_binary # Find specific bytes xxd binary_file | grep "504b" # Look for PK (ZIP signature) ``` ## file - Identify File Types ```bash # Basic identification file unknown_file file -i unknown_file # MIME type # Check multiple files file * # Follow symlinks file -L symlink ``` ## Common Analysis Workflows ### Unknown Binary Exploration ```bash # 1. Identify file type file mystery_file # 2. Check for embedded files binwalk mystery_file # 3. Extract strings strings -n 8 mystery_file | head -100 # 4. Look at hex header xxd mystery_file | head -20 # 5. Check entropy (compressed/encrypted?) binwalk -E mystery_file ``` ### Firmware Analysis ```bash # 1. Initial scan binwalk firmware.bin # 2. Extract everything binwalk -Me firmware.bin # 3. Explore extracted filesystem find _firmware.bin.extracted -type f -name "*.conf" find _firmware.bin.extracted -type f -name "passwd" # 4. Search for secrets grep -r "password" _firmware.bin.extracted/ strings -n 10 firmware.bin | grep -i -E "(pass|key|secret|token)" ``` ### Finding Hidden Data ```bash # Check for data after end of file binwalk -E file.jpg # Entropy spike at end = appended data # Look for embedded archives binwalk file.jpg | grep -E "(Zip|RAR|7z|gzip)" # Extract with offset dd if=file.jpg of=hidden.zip bs=1 skip=12345 ``` ## File Signatures (Magic Bytes) | Signature | Hex | File Type | |-----------|-----|-----------| | `PK` | `50 4B 03 04` | ZIP archive | | `Rar!` | `52 61 72 21` | RAR archive | | `7z` | `37 7A BC AF` | 7-Zip | | `ELF` | `7F 45 4C 46` | Linux executable | | `MZ` | `4D 5A` | Windows executable | | `PNG` | `89 50 4E 47` | PNG image | | `JFIF` | `FF D8 FF E0` | JPEG image | | `sqsh` | `73 71 73 68` | SquashFS | | `hsqs` | `68 73 71 73` | SquashFS (LE) | ## Tips - **Start with entropy**: High entropy = compressed or encrypted - **Look for strings first**: Often reveals purpose quickly - **Check file headers**: First 16 bytes often identify format - **Use recursive extraction**: Firmware often has nested archives - **Save offsets**: Note interesting locations for targeted extraction
© laurigates · MIT · laurigates/claude-plugins