firmware-static-analysis
БесплатноБез исполняемых скриптовНе проверенSystematic static analysis of ELF firmware binaries using command-line tools (file, strings, readelf, objdump, xxd). Use when the agent needs to perform…
от lza6★ 19 звёзд на GitHubОб этом скилле
Firmware Static Analysis
Perform comprehensive static analysis of ELF firmware binaries using command-line reconnaissance tools. This skill guides systematic metadata extraction and binary characterization before deeper reverse engineering.
Analysis Workflow
Follow this workflow when analyzing firmware binaries. Always start from Step 1 and proceed sequentially:
- Binary identification - Determine architecture, bitness, endianness
- String extraction - Find human-readable strings and clues
- Symbol analysis - Examine imports, exports, and functions
- Structure analysis - Analyze segments, sections, and entry points
- Security analysis - Check PIE, RELRO, stack canaries
- Metadata extraction - Find compiler info and build metadata
- Report generation - Create structured markdown report
Step 1: Binary Identification
Identify the target architecture and basic characteristics.
file <binary>
Extract these details:
- CPU architecture (ARM, MIPS, x86, RISC-V, PowerPC, etc.)
- Bitness (32-bit or 64-bit)
- Endianness (LSB/little-endian or MSB/big-endian)
- Link type (dynamically linked, statically linked, or not linked)
- Binary type (executable, shared object, relocatable)
Architecture reference: If unfamiliar with the detected architecture, read references/architectures.md for architecture-specific details including calling conventions and common use cases.
Step 2: String Extraction
Extract all printable strings to understand program behavior and inputs.
strings -a <binary> > strings.txt
Analyze for:
- Usage/help text patterns (
usage|help|--) - Format strings (
%s|%d|%x) - Error messages (
error|fail|invalid) - File paths and directories (
/etc/|/tmp/|/var/) - URLs and network addresses
- Hardcoded credentials (common in firmware!)
- Library names and debug paths
- Version strings and build info
Targeted searches:
strings -a <binary> | grep -i -E 'usage|error|%d|%s'
strings -a <binary> | grep -i -E 'password|admin|root|key'
strings -a <binary> | grep -E '^/|^\.' # File paths
Step 3: Symbol Analysis
Examine what functions the binary imports and exports.
Dynamic Symbols (when .dynsym is present, including many stripped binaries)
readelf --dyn-syms --wide <binary>
Look for:
- Imported functions (from libc, libssl, custom libraries)
- Exported functions (what this binary provides)
- Function names that hint at behavior (
authenticate,encrypt,parse, etc.) - Standard library usage patterns
Alternative command:
objdump -T <binary>
Function Discovery
Identify key functions for later disassembly:
readelf -Ws <binary> | grep ' main$'
readelf -Ws <binary> | grep -E 'FUNC.*GLOBAL'
Common firmware functions to look for: main, init, setup, parse_config, handle_request, authenticate, encrypt, decrypt
Step 4: Structure Analysis
Analyze the binary's internal structure.
ELF Header
readelf -h <binary>
Key information:
- Entry point address - Where execution begins
- Type - ET_EXEC (non-PIE) or ET_DYN (PIE/shared object)
- Machine - Confirm architecture
- Section headers - Number and locations
Program Headers (Segments)
readelf -lW <binary>
Check for:
- INTERP segment - Dynamic linker path (if dynamically linked)
- LOAD segments - Memory layout (addresses, permissions)
- DYNAMIC segment - Dynamic linking information
- GNU_STACK - Stack permissions (NX bit)
Section Headers
readelf -S <binary>
Important sections:
.text- Code section (note size and address).rodata- Read-only data (strings, constants).data- Initialized data.bss- Uninitialized data.dynsym/.dynstr- Dynamic symbols and strings.plt/.got- Procedure linkage table and global offset table.comment- Compiler information
Verify symbol tables directly:
# Get .dynsym and .dynstr offsets from readelf -S
xxd -s 0x<DYNSYM_OFFSET> -l 256 <binary>
xxd -s 0x<DYNSTR_OFFSET> -l 256 <binary>
Dynamic Section
readelf -d <binary>
Extract:
- NEEDED - Shared library dependencies
- SONAME - Shared object name (if present)
- RPATH/RUNPATH - Library search paths
- FLAGS - Dynamic linking flags
Step 5: Security Analysis
Assess available evidence, retaining an unknown/not observed result where needed.
PT_GNU_RELRO is a program header. For conventional dynamically linked ELF,
that segment plus immediate binding (BIND_NOW or FLAGS/FLAGS_1 containing
NOW) indicates full RELRO; the segment alone indicates partial RELRO.
Absent dynamic tags in a static binary require a different assessment.
GNU_STACK without E requests a non-executable stack. A missing header is
unknown and depends on the ABI/kernel. Canary or _chk symbols show some
instrumentation, not complete coverage; absence
Установить firmware-static-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл firmware-static-analysis?
Systematic static analysis of ELF firmware binaries using command-line tools (file, strings, readelf, objdump, xxd). Use when the agent needs to perform initial reconnaissance on firmware/embedded binaries before reverse engineering, specifically for (1) Identifying architecture and binary characteristics, (2) Extracting metadata, strings, and imports, (3) Analyzing symbols, sections, and entry points, (4) Understanding binary structure and dependencies, (5) Generating structured analysis reports. Covers ARM, MIPS, x86, RISC-V, PowerPC architectures. Does NOT handle firmware extraction/unpacking (use separate skill for that).
Как установить скилл firmware-static-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл firmware-static-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic