Skip to main content
CTFWorld
HardwareDifficulty: Intermediate -> Elite

Hardware, IoT & RF

Hardware, IoT, and Radio Frequency (RF) challenges bridge the physical and digital worlds. Even in online CTFs, you receive real logic-analyzer traces, raw flash dumps, simulated microcontrollers, or IQ radio captures to dissect and unlock.

Core Attack Classes & Concepts

Firmware Extraction & Emulation

Unpacking router/IoT flash dumps to find hardcoded credentials, vulnerable CGI binaries, or backdoors.

Key Techniques: binwalk -e, SquashFS extraction, QEMU user-mode emulation for MIPS/ARM binaries.

Serial & Bus Protocol Analysis

Decoding UART, SPI, I2C, JTAG, and CAN bus captures from logic analyzers or hardware badges.

Key Techniques: PulseView / sigrok protocol decoders, baud-rate calculation, and SPI flash dump reconstruction.

Software-Defined Radio (SDR) & RF

Demodulating OOK, FSK, ASK, or LoRa transmissions from raw IQ files.

Key Techniques: Universal Radio Hacker (URH), GNU Radio flowgraphs, and waterfall spectrogram inspection.

Side-Channel & Fault Injection

Recovering secret keys from timing differences, power traces (DPA/CPA), or voltage glitching.

Key Techniques: Correlation Power Analysis (CPA) against AES S-box operations and ChipWhisperer traces.

Competition Methodology Checklist

  1. 1

    Inspect capture metadata and file headers: determine sample rate (RF/logic) or architecture/endianness (firmware).

  2. 2

    Visualize signals before writing code—PulseView for digital traces and Inspectrum/URH for RF waterfalls.

  3. 3

    For firmware blobs, run binwalk and entropy graphs to separate compressed filesystems from encrypted regions.

  4. 4

    Emulate extracted ARM/MIPS services under QEMU to inspect behavior dynamically without owning the physical device.

Reference Pattern

Inspecting & Extracting a Firmware Image
bash
# Scan entropy and embedded filesystems, then extract cleanly
binwalk -E router_dump.bin
binwalk -eM router_dump.bin
file _router_dump.bin.extracted/squashfs-root/bin/busybox

Entropy scans immediately reveal whether a firmware image is plaintext, compressed, or encrypted.

Recommended Practice Progression

Challenge / TrackPlatformLevelFocus
Hardware Category TrackHack The BoxBeginnerLogic captures, firmware extraction, and simulated IoT
Embedded Security CTF (Microcorruption)MicrocorruptionIntermediateMSP430 assembly lock-picking and embedded memory bugs
DEF CON Hardware & Badge ChallengesDEF CON VillagesAdvancedPhysical PCB, UART/JTAG, and RF puzzles

Defensive Engineering Takeaway

Disable debug interfaces (JTAG/UART) in production silicon, enforce signed Secure Boot with rollback protection, and never ship shared default credentials inside firmware images.