HACKING PROJECT · forensics · Advanced

UART / JTAG / SPI Debug & Bus-Sniffing Rig

Build a reproducible hardware debug and bus-sniffing rig with a documented methodology for firmware extraction and hardware attack-surface assessment.

**The problem**
Most IoT and embedded devices expose debug and inter-chip interfaces (UART consoles, JTAG/SWD, SPI/I2C flash buses) that manufacturers leave enabled or unprotected, giving attackers a direct path to firmware extraction, credential recovery, and code injection. Security teams and researchers need reliable hardware tooling and methodology to assess these physical attack surfaces during product security reviews. Without a systematic bus-sniffing and debug rig, firmware and secret extraction remain ad hoc and non-reproducible.

**What you'll build**
Assemble a documented hardware/software rig for identifying, probing, and interacting with UART, JTAG/SWD, and SPI/I2C interfaces, including logic-analyzer capture, flash dumping, and glitch-assisted debug unlock where applicable. Standardize a methodology to enumerate test points, dump firmware, extract secrets, and re-flash modified images for analysis. Feed extracted firmware into a reverse-engineering and vulnerability-analysis workflow.

**Objective** — Build a reproducible hardware debug and bus-sniffing rig with a documented methodology for firmware extraction and hardware attack-surface assessment.

**Expected outcome** — A functioning bench rig plus a written hardware-assessment methodology and a case study extracting firmware/secrets from a target device.

**Difficulty** — Advanced — requires soldering, signal analysis, protocol identification, and hands-on hardware debugging under real electrical constraints.

**Primary category** — Hardware Penetration Testing; Secondary = Firmware Reverse Engineering, Embedded Forensics

**Security domains** — Primary = Red Team; Secondary = Security Research, Digital Forensics (chip-off/firmware), Malware Analysis (extracted firmware RE)

**Technical focus** — UART discovery, JTAG/SWD boundary scan and debug, SPI/I2C flash dumping, logic analysis, protocol decoding, voltage glitching/fault injection basics, firmware extraction, PCB reconnaissance

**Core technologies** — Languages: Python, C; Frameworks/Libraries: pyserial, OpenOCD, flashrom, spiflash, pySigrok; Security Tools: JTAGulator, Bus Pirate/Tigard, Saleae/PulseView logic analyzer, ChipWhisperer (glitching), Binwalk, Ghidra; Cloud/Infra: bench lab, USB-serial adapters, SOIC clips; AI/Data: optional ML-assisted baud/protocol detection; Databases: firmware image repository, findings tracker

**Where it's valued** — Product security labs, IoT/hardware vendors, automotive, medical devices, consulting/red-team firms, law enforcement forensics

**Careers it builds toward** — Hardware Security Researcher, Embedded/Hardware Penetration Tester, Firmware Reverse Engineer, IoT Security Consultant, Product Security Engineer

**Framework alignment**
• MITRE ATT&CK: Hardware Additions (T1200), Firmware extraction/modification supporting Pre-OS Boot (T1542), Component Firmware (T1542.002); physical-access exploitation of debug interfaces; ATT&CK for ICS physical/engineering-workstation adjacency.
• NIST CSF 2.0: Identify (attack-surface and vulnerability discovery), Protect (informs disabling debug ports, fuse locking); adversary-emulation supports Detect/Respond validation.
• OWASP: IoT Top 10 — I6 Insufficient Privacy Protection, I9 Insecure Default Settings (debug enabled), firmware-extraction/insecure-update themes.
• CIS Controls v8: 4 Secure Configuration (disable debug), 1 Asset Inventory, 7 Continuous Vulnerability Management, 3 Data Protection (secret extraction risk).

**Innovation** — Improved Existing Solution — the tooling exists, but a rigorously documented, reproducible methodology and rig (including ML-assisted interface discovery) has strong training and consulting value. Scores: Innovation 6/10, Startup 5/10, Enterprise-Readiness 6/10, Patent = No.

Browse all projects →