Skip to content
← RegistryDossier · 6 steps · 5 edges

Exposed UART → root shell → firmware extraction

Open the IoT device, locate TX/RX/GND pads, attach a USB-UART, get an unauthenticated root prompt, dump firmware for offline analysis + 0-day hunting.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: physical access to a consumer / SMB IoT device. PCB has standard 3.3V UART headers exposed (the norm for consumer routers / cameras / IoT hubs).

§ Steps

  1. 01
    Open the deviceInitial Access
    T1078Valid Accounts
  2. 02
    Drop into U-Boot / Linux init shellExecution
    T1059Command and Scripting Interpreter
  3. 03
    binwalk + ghidra for 0-dayDiscovery
    T1518Software Discovery
  4. 04
    Attach USB-UART at 115200Initial Access
    IOT-UART-CONSOLEUART Debug Console
  5. 05
    Find UART pins (multimeter / Bus Pirate)Initial Access
    IOT-UART-CONSOLEUART Debug Console
  6. 06
    dd /dev/mtdblock* → firmware imageCollection
    IOT-FW-EXTRACTFirmware Extraction (binwalk / dump)

§ References

§ Frequently asked

What is the "Exposed UART → root shell → firmware extraction" attack path?
Open the IoT device, locate TX/RX/GND pads, attach a USB-UART, get an unauthenticated root prompt, dump firmware for offline analysis + 0-day hunting. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Open the device (T1078) — a initial access primitive. Assumed environment: physical access to a consumer / SMB IoT device.
What is the final impact of this kill-chain?
The final step lands on dd /dev/mtdblock* → firmware image (IOT-FW-EXTRACT), which falls under Collection. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers