Skip to main content
5 min read Intermediate IoT

iOT Pentesting

IoT and Embedded Device Security involves assessing the security of connected devices, embedded systems, firmware, and hardware components to identify vulnerabilities that could lead to unauthorized access, data exposure, or device compromise. The assessment includes firmware extraction and analysis, reverse engineering, secure boot validation, hardware interface testing (UART, JTAG, SWD), flash memory analysis, and the identification of hardcoded credentials, insecure configurations, and exposed debug interfaces.

The security review also covers device communication protocols and embedded system controls, including MQTT, BLE, Zigbee, CoAP, and other network services. Key activities include evaluating authentication and authorization mechanisms, encryption implementations, secure storage practices, firmware update processes, and device-to-device or device-to-cloud communications. The objective is to strengthen the security posture of IoT and embedded environments by identifying risks and providing remediation recommendations aligned with industry security best practices

Baiscs Concept of iOT

IoT Core Concepts Cheat Sheet
AreaCore ConceptWhat You Should Understand
IoT BasicsDefinitionPhysical devices connected to internet for data exchange and control
ArchitectureDevice → Cloud → AppIoT systems are layered: device, communication, cloud, application
Device LayerEmbedded SystemHardware (MCU/SoC) running firmware controlling sensors/actuators
FirmwareEmbedded SoftwareLow-level code stored in flash memory controlling device behavior
OS in IoTRTOS / Embedded LinuxLightweight operating systems used in devices
SensorsData InputComponents that collect real-world data (temperature, motion, light, etc.)
ActuatorsPhysical OutputComponents that perform actions (motor, lock, relay, etc.)
CommunicationData TransferHow device talks to cloud/app using protocols
ProtocolsMQTT / HTTP / CoAPLightweight communication protocols used in IoT systems
Wireless TechWi-Fi / BLE / ZigbeeCommon connectivity methods in IoT devices
Cloud LayerBackend SystemStores data, manages devices, provides APIs
APIsDevice ControlInterfaces used by apps/cloud to control IoT devices
Mobile AppUser InterfaceApp used to control and monitor IoT devices
Data FlowEnd-to-End FlowSensor → Device → Network → Cloud → App
Boot ProcessDevice StartupHow firmware loads and initializes hardware
Secure BootIntegrity CheckEnsures only trusted firmware runs on device
OTA UpdatesFirmware UpdatesRemote updates pushed to devices
Debug InterfacesUART/JTAG/SWDHardware access points used for debugging/testing
MemoryFlash / RAMStorage for firmware and runtime execution
ConstraintsLimited ResourcesLow CPU, memory, and power in IoT devices
Security ModelWeak by DesignOften minimal security compared to servers
IoT & Embedded Device Pentesting Scope

Firmware Security

  • Firmware extraction and unpacking
  • File system analysis
  • Reverse engineering of binaries
  • Hardcoded credential discovery
  • Configuration review
  • Firmware update mechanism assessment
  • Secure boot validation

Hardware Security

  • UART interface assessment
  • JTAG/SWD interface testing
  • Flash memory extraction
  • Debug interface enumeration
  • Physical attack surface identification
  • Hardware tamper resistance evaluation

Communication Security

  • MQTT security assessment
  • BLE security testing
  • Zigbee protocol analysis
  • CoAP security evaluation
  • Device-to-device communication testing
  • Device-to-gateway communication assessment
  • Encryption and certificate validation

Embedded Device Assessment

  • Authentication mechanism review
  • Access control validation
  • Privilege escalation testing
  • Sensitive data storage analysis
  • Configuration security review
  • Service enumeration and attack surface mapping

Objectives

  • Identify vulnerabilities in firmware, hardware, and communication protocols.
  • Assess device security posture against unauthorized access and compromise.
  • Evaluate exposed debug interfaces and embedded services.
  • Validate secure implementation of authentication, encryption, and update mechanisms.
  • Provide remediation guidance to improve the security of IoT and embedded systems.
Tools

Firmware Analysis

ToolPurpose
BinwalkFirmware extraction, file system identification, and analysis.
FirmwalkerDiscovery of credentials, keys, configuration files, and sensitive data within firmware.
StringsExtraction of readable text for identifying hardcoded secrets and configurations.
GhidraStatic analysis, decompilation, and reverse engineering of firmware binaries.
IDA FreeAdvanced binary analysis and reverse engineering.
Radare2Open-source framework for firmware analysis and debugging.

Firmware Extraction & Debug Access

ToolPurpose
ddRaw memory and firmware extraction from storage devices.
FlashromReading, writing, and verification of SPI flash memory.
CH341A ProgrammerHardware-based firmware dumping and recovery.
FTDI/UART AdapterAccess to serial consoles for device interaction and analysis.
OpenOCDAccess to JTAG and SWD debugging interfaces.

Network & Communication Testing

ToolPurpose
WiresharkPacket capture and protocol analysis.
TcpdumpCommand-line network traffic capture and monitoring.
NmapNetwork discovery, service enumeration, and attack surface identification.
MitmproxyTraffic interception and communication analysis.

IoT Protocol Testing

ToolPurpose
MQTT ExplorerMQTT broker and topic analysis.
Mosquitto Pub/SubMQTT communication testing and message manipulation.
BLEah / GatttoolBluetooth Low Energy enumeration and security assessment.
Zigbee2MQTTZigbee traffic monitoring and protocol analysis.
CoAP ToolsConstrained Application Protocol testing and validation.

Hardware Security Assessment

ToolPurpose
UART-to-USB AdapterSerial communication and console access.
Logic AnalyzerDigital signal capture and protocol decoding.
OscilloscopeElectrical signal analysis and hardware debugging.
JTAGulatorIdentification of UART, JTAG, and debug interfaces.
MultimeterHardware diagnostics and circuit verification.
Soldering KitPhysical access and hardware modification.