/firmware-reverse-engineering:firmware-static-analysisfrom firmware-reverse-engineering
Performs systematic static analysis of ELF firmware binaries using file, strings, readelf, objdump, and xxd. Guides architecture identification, metadata extraction, symbol analysis, and structured report generation for ARM, MIPS, x86, RISC-V, and PowerPC.
Ships in firmware-reverse-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Follow this workflow when analyzing firmware binaries. Always start from Step 1 and proceed sequentially:
Identify the target architecture and basic characteristics.
file <binary>
Extract these details:
Architecture reference: If unfamiliar with the detected architecture, read references/architectures.md for architecture-specific details including calling conventions and common use cases.
Extract all printable strings to understand program behavior and inputs.
strings -a <binary> > strings.txt
Analyze for:
usage|help|--)%s|%d|%x)error|fail|invalid)/etc/|/tmp/|/var/)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
Examine what functions the binary imports and exports.
readelf --dyn-syms --wide <binary>
Look for:
authenticate, encrypt, parse, etc.)Alternative command:
objdump -T <binary>
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
Analyze the binary's internal structure.
readelf -h <binary>
Key information:
readelf -lW <binary>
Check for:
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 informationVerify 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>
readelf -d <binary>
Extract:
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 does not prove absence in
stripped, static or inlined code. Inspect relevant functions when reporting.
readelf -h <binary> | grep Type
Type: EXEC (Executable file) = Non-PIE (fixed addresses)Type: DYN (Shared object file) = PIE candidate OR shared library. Check FLAGS_1: PIE, loader metadata and intended use.readelf -dW <binary> | grep -E 'BIND_NOW|FLAGS.*NOW'
readelf -lW <binary> | grep -E 'GNU_RELRO|GNU_STACK'
readelf -Ws <binary> | grep -E '__stack_chk_fail|__(memcpy|memmove|strcpy|strncpy|sprintf|snprintf|printf)_chk'
Look for:
__stack_chk_fail)__memcpy_chk or __snprintf_chkExtract compiler and build information.
readelf -p .comment <binary>
strings <binary> | grep -i -E 'gcc|clang|build|version'
Look for:
arm-linux-gnueabihf-gcc)readelf -n <binary> # Build ID and ABI info
If symbols are present, disassemble key functions.
readelf -Ws <binary> | grep ' main$'
readelf -Ws <binary> | grep -E '<function_name>'
objdump -d --disassemble=main <binary>
objdump -d --disassemble=<function_name> <binary>
Analysis tips:
printf@plt, strcmp@plt)When symbols are removed, adapt the analysis approach.
cp <binary> <binary>_stripped
strip <binary>_stripped
# Compare before/after
readelf -Ws <binary>
readelf -Ws <binary>_stripped
# Name-based disassembly will fail:
objdump -d --disassemble=main <binary>_stripped # FAILS
# Instead, dump entire .text section:
objdump -d -j .text <binary>_stripped | less
Function identification strategies:
push {r11, lr}, x86: push rbp)atoi@plt, printf@plt)Create a structured markdown report with all findings. Use this template:
# Firmware Static Analysis Report
**Binary:** <filename>
**Analysis Date:** <date>
## Executive Summary
[2-3 sentence overview of the binary: purpose, architecture, and key findings]
## Binary Characteristics
- **File Type:** [ELF type]
- **Architecture:** [CPU architecture, bitness, endianness]
- **Entry Point:** [address]
- **Link Type:** [static/dynamic]
- **PIE:** [Yes/No/Unknown; evidence]
- **ASLR:** [Runtime tested / Not tested; evidence]
- **Stripped:** [Yes/No]
## Architecture Details
- **CPU:** [ARM/MIPS/x86/RISC-V/etc.]
- **Bitness:** [32-bit / 64-bit]
- **Endianness:** [Little-endian / Big-endian]
- **Calling Convention:** [ABI details]
## Symbol Analysis
### Imported Functions
[List key imported functions and what they suggest about behavior]
- `printf` - Formatting and output
- `socket` - Network communication
- `strcmp` - String comparison
- etc.
### Exported Functions
[List exported functions if any]
### Key Functions Identified
[List main and other important functions found]
## String Analysis
### Interesting Strings
[List notable strings found, categorized by type]
**Configuration/Paths:**
- `/etc/config.conf`
- etc.
**Credentials/Keys:**
- `admin:default_password` [⚠️ SECURITY CONCERN]
- etc.
**Error Messages:**
- "Invalid input"
- etc.
**Network/URLs:**
- `http://update.example.com`
- etc.
## Structure Analysis
### Segments
[List key program segments with addresses and permissions]
### Sections
[List important sections with sizes]
- `.text`: [size] - Code
- `.rodata`: [size] - Read-only data
- etc.
### Dynamic Dependencies
[List required shared libraries]
- `libc.so.6`
- `libssl.so.1.1`
- etc.
## Security Analysis
### Mitigations Detected
- PIE: [Yes/No/Unknown; evidence]
- ASLR: [Runtime result/Not tested]
- RELRO: [Full/Partial/None/Unknown; evidence]
- Stack canary evidence: [Observed/Not observed/Unknown; coverage unverified]
- Stack execute request: [Non-executable/Executable/Missing; runtime unverified]
- Fortify evidence: [Observed/Not observed/Unknown]
### Security Concerns
[List any security issues found]
- Hardcoded credentials
- Weak/no ASLR
- Missing stack protection
- etc.
## Metadata
### Compiler Information
- **Compiler:** [GCC/Clang version]
- **Target:** [Toolchain target triplet]
- **Build Date:** [if available]
### Build ID
[Build ID from notes section]
## Disassembly Highlights
### main() Function
[Brief description of what main does based on disassembly]
### Other Key Functions
[Brief description of other important functions]
## Recommendations for Further Analysis
1. [Specific next steps based on findings]
2. [Tools to use next: Ghidra, IDA, Binary Ninja, etc.]
3. [Specific functions or areas to focus on]
4. [Dynamic analysis recommendations]
## Appendix
### Full Symbol Table
[Attach or reference full symbol list if relevant]
### Complete String Dump
[Reference to strings.txt file]
references/architectures.md for architecture-specific calling conventions and characteristicsreferences/toolchain.md for detailed command syntax and optionsstrings -a binary > strings.txt)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/firmware-emulationComprehensive firmware dynamic analysis and emulation using QEMU (user-mode and system-mode), GDB debugging, network traffic analysis, and automated tools (Firmadyne/FirmAE). Use when the agent needs to run extracted firmware for dynamic analysis. Covers: (1) Deciding between automated vs manual emulation approaches, (2) QEMU user-mode emulation for individual binaries, (3) QEMU system-mode emulation for full firmware stack, (4) Advanced GDB debugging with gdb-multiarch, (5) Network traffic capture and protocol analysis, (6) MITM attacks and traffic manipulation, (7) Automated emulation with Firmadyne/FirmAE, (8) Troubleshooting boot failures and network issues. Requires extracted firmware (use firmware-extraction skill first). Complements firmware-static-analysis skill with runtime behavior observation./firmware-extractionExtract firmware images and embedded filesystems using unblob first, summarize its JSON report, and investigate unresolved regions with Binwalk or filesystem-specific tools. Use for device dumps and manufacturer update images, including nested, unsupported, encrypted, or damaged formats. For individual ELF analysis use firmware-static-analysis; for execution use firmware-emulation.npx claudepluginhub orbitcurve/firmware-reverse-engineering --plugin firmware-reverse-engineeringOther plugins' skills for the same job