Firmware analysis, UART sniffing, partition parsing, secure-boot checks, and AI-assisted string review for ESP32 and ESP8266 hardware. Six focused Python tools, one command-line flow.
Six Python scripts that cover the basics of ESP32 hardware security research: read the flash, sniff the bus, parse the layout, verify the boot chain, and (optionally) let an LLM review the strings you pulled out.
Read the full SPI flash over UART using esptool. Custom baud, size, and output path.
sudo python3 flash_dump.py --port /dev/ttyUSB0Capture raw boot-ROM and runtime UART output. Boot ROM uses 74880 baud, runtime 115200.
python3 uart_sniffer.py --baud 74880Quick-look at a flash image: ESP32 magic byte, NVS partition, printable strings.
python3 firmware_inspect.py flash.bin --stringsParse the partition table from a dump and label each entry by type (app/data) and subtype.
python3 partition_table.py flash.binHeuristic check for secure boot and flash crypto from a flash dump. Pairs with espefuse.py.
python3 secure_boot_check.py flash.binOptional: send extracted strings to OpenAI or Anthropic for a security review. Local heuristics flag obvious secrets first; the LLM catches the rest. Fully offline by default.
python3 llm_firmware_review.py flash.bin --provider openaiA typical flow: pull the firmware off the chip, look at what's inside, and figure out whether the device is doing what it claims.
No custom dev board required. Any ESP32 dev kit and a $3 USB-to-UART bridge is enough to get started.
Clone, install, and dump your first ESP32 flash in under a minute. Drop your LLM key in if you want the AI review pass.