1. Hardware-Level Attack Surfaces
While web applications operate at Layer 7, Internet of Things (IoT) edge hardware introduces physical attack surfaces where an adversary possesses physical access to the device:
ARCHITECTURE DIAGRAMSYSTEM SCHEMATIC
Physical IoT Printed Circuit Board (PCB):
+------------------------------------------------------+
| |
| [ Flash Memory Chip ] [ SoC / CPU ] |
| (SPI 8-Pin SOIC) (ARM Cortex-A) |
| - Stores OS & Firmware | |
| | | |
| | SPI Bus | |
| +----------------------------+ |
| |
| ( o o o o ) [ UART Test Header: GND, TX, RX, VCC ] |
| (Direct serial console shell with root access!) |
| |
| ( o o o o o ) [ JTAG Debug Header: TMS, TCK, TDI, TDO, TRST ]
+------------------------------------------------------+§
2. Dumping and Reverse Engineering Firmware
When auditing a smart device or edge gateway:
- 1Locating UART Serial Headers: Using a digital multimeter or logic analyzer, the security auditor identifies ground (
GND), transmission (TX), and reception (RX) test pads. Connecting a USB-to-TTL serial adapter (at baud rate 115200) frequently reveals an unauthenticated Linux root console shell during boot! - 2SPI Flash Dumping: If serial consoles are locked, auditors clip a hardware programmer (such as a Bus Pirate or CH341A) directly onto the SPI Flash EEPROM chip:
BASHSYSTEM SCHEMATIC
# Dump raw flash memory to binary file
flashrom -p ch341a_spi -r firmware_dump.bin- 1Firmware Extraction with Binwalk:
BASHSYSTEM SCHEMATIC
# Scan and recursively extract embedded filesystems
binwalk -e -M firmware_dump.binBinwalk scans the binary for magic byte signatures (gzip, lzma, SquashFS), decompressing the target operating system. Auditors inspect /etc/shadow, hardcoded private SSH keys, and unauthenticated API backend endpoints embedded inside the binary!