Last updated: April 29, 2026
IoT device security testing combines firmware analysis, hardware interfacing, network protocol testing, and mobile companion app review. Many findings come from the firmware — default passwords, hardcoded keys, unsafe update mechanisms, debug ports left enabled. This module covers a practical IoT testing workflow with the tools that matter.
Scoping an IoT engagement
Before testing, agree:
- Which device(s) — model, firmware version, lab samples available?
- Which protocols and cloud APIs are in scope?
- Is hardware tampering allowed (case opening, JTAG/UART access)?
- Mobile companion apps in scope?
- Customer cloud account in scope?
- Constraints — production cloud account vs sandbox; live vs test devices
The testing surface
- Hardware — debug ports (UART, JTAG, SWD), exposed flash chips, secure boot
- Firmware — binary extracted from flash or downloaded; analyzed for credentials, vulnerable services
- Network protocols — what the device speaks (Wi-Fi, BLE, Zigbee, Z-Wave, LoRa, cellular)
- Cloud APIs — REST endpoints the device + app communicate with
- Mobile companion app — full mobile pentest scope (covered in Mobile track)
- Web management interface — if device serves a web UI
Hardware reconnaissance
Open the device. Map the board:
- Identify SoC (System on Chip) — manufacturer, model. Datasheet reveals capabilities
- Identify flash chips — usually SPI; can be read with a clip and a SPI programmer (CH341A, FlashCat)
- Look for unpopulated headers — UART (3-4 pins), JTAG (10-20 pins), SWD (4-5 pins)
- Check for test points — sometimes the same as headers, harder to interface
UART access
# Identify UART pins (TX, RX, GND) with multimeter
# (TX is the pin with periodic activity at boot; RX is silent)
# Connect USB-UART adapter at 3.3V
# Common baud rates: 115200, 57600, 38400, 9600
screen /dev/ttyUSB0 115200
# Or: minicom, picocom
# Many devices drop into a U-Boot shell or root shell
# Default credentials sometimes printed on the bootlog itself
JTAG / SWD
If UART is locked or not present, JTAG/SWD provide debug-level access to the CPU. Tools: SEGGER J-Link, Bus Pirate, OpenOCD. Can dump RAM and ROM, set breakpoints, manipulate registers. Slower setup but more powerful than UART.
Direct flash dump
Use a SPI clip + CH341A programmer + flashrom:
flashrom -p ch341a_spi -r firmware.bin
# Or with chip removed: socket reader + programmer
Firmware analysis
Whether you got firmware via flash dump, OTA download, or vendor website, analysis tools:
- binwalk — identifies and extracts embedded filesystems, kernels, archives
- firmwalker — searches extracted firmware for sensitive strings (passwords, URLs, keys)
- FACT (Firmware Analysis & Comparison Tool) — comprehensive analysis platform
- Ghidra / IDA — for binary reverse engineering of specific binaries
- EMBA — automated firmware security analyzer
binwalk -e firmware.bin # extract embedded filesystems
ls _firmware.bin.extracted/ # explore
# Common: SquashFS root filesystem
cd squashfs-root/
grep -ri "password\|api_key\|secret" etc/ usr/
strings bin/httpd | grep -iE "pass|user|admin"
cat etc/passwd # shadow with weak hashes
file usr/sbin/dropbear # SSH server, often unpatched
Common firmware findings
- Hardcoded admin passwords in
/etc/shadowor backend config files - Cloud API keys baked into firmware
- SSL/TLS private keys (used to authenticate device to cloud) embedded
- Update mechanisms without signature verification — attacker can serve malicious updates
- Old versions of dropbear, busybox, openssl with known CVEs
- Telnet enabled by default with weak credentials
- Backend interfaces protected only by URL obscurity
- Symmetric crypto with the same key across all devices of the model
Testing the device on the network
Once firmware analysis identifies services, network testing:
- Port scan from a host on the device’s network. Web services, SSH, telnet, custom ports
- Check for default credentials on found services
- Run Nmap NSE scripts for known IoT vulns
- Look for UPnP responses — many IoT devices over-share via SSDP
- Check DNS queries the device makes — what cloud services it depends on
- Capture traffic with mitmproxy to see API patterns
BLE / Bluetooth Low Energy testing
For BLE devices:
- nRF Connect (mobile or PC) — discover services, characteristics, descriptors
- bettercap ble.recon — passive scanning + interaction
- gatttool — older Linux tool for GATT operations
- Ubertooth / sniffer hardware — capture pairing exchange (relay attacks if supported)
Common BLE issues:
- Just Works pairing (no PIN); MITM trivially possible
- No encryption on characteristic reads/writes
- Authentication bypass via direct GATT manipulation
- Replay attacks on commands
Zigbee / Z-Wave / LoRa
Each requires specific hardware to test:
- Zigbee: Atmel/Atmel-based dongles, KillerBee toolkit
- Z-Wave: ZWN-Z dongle + Z-Force toolkit
- LoRa: HackRF or HopeRF radios + GNU Radio
Testing focuses on key management (factory keys, pairing weaknesses), command injection, replay.
Cloud API testing for IoT
The device-cloud and app-cloud APIs are typical mobile-API surface (covered in Mobile track). IoT-specific issues:
- Device authentication: does the cloud verify the device’s identity, or trust device-supplied IDs?
- Cross-device IDOR: can a query be modified to read another device’s data/control another device?
- Provisioning hijack: can you claim someone else’s device by knowing its serial number?
- OTA update channel: can you push a firmware update to all devices of a model?
Reporting IoT findings
Severity calibration:
- Critical: remote unauthenticated access to device control or cloud-mass-management
- High: default credentials, hardcoded keys with known scope, OTA without signature
- Medium: outdated services with known but not-easily-exploitable CVEs, weak crypto
- Low: verbose error messages, missing security headers, weak local-network controls
Vendor disclosure: IoT vendors range from responsive (Schneider, Siemens) to glacial. Use coordinated disclosure timelines (90 days standard); CERT-In coordination for India-relevant issues.
Where this leads
Module 3 enters the OT-specific layer — industrial protocols (Modbus, DNP3, OPC-UA), the attack surfaces unique to industrial control, and the safety constraints that make OT testing fundamentally different from IT.
Module Quiz · 15 questions
Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.
Custom team training + practitioner advisory
Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.