Mobile Platform, IoT, and OT Hacking · Topic 3 of 4

IoT Hacking

Learn IoT architecture, protocols, the OWASP IoT Top 10, common IoT attacks such as Mirai, the IoT hacking methodology and the countermeasures for CEH v13.

  • 5 min
In a nutshell
  • IoT has four layers: device, gateway, cloud and application.
  • Hardcoded and default passwords lead the OWASP IoT Top 10.
  • Mirai is the textbook IoT botnet using default credentials.

What it is

The Internet of Things (IoT) is the set of physical devices with sensors, software and network access: cameras, thermostats, smart locks, wearables and medical devices. They are often small, cheap and hard to update.

This page covers IoT concepts, attacks, the hacking methodology and countermeasures. The exam asks for the right architecture layer, protocol, attack name, methodology step or fix.

Sensing devicecollects dataGatewaybridges protocolsCloudstores and analyzesApplicationuser interface

How it works

IoT concepts

An IoT system has four layers: devices and sensors, a gateway that translates between local protocols and the internet, a cloud platform for storage and analysis, and a user application.

ProtocolNotes
MQTTA lightweight publish and subscribe messaging protocol. TCP port 1883, or 8883 with TLS.
CoAPConstrained Application Protocol. A lightweight request and response protocol over UDP, port 5683.
ZigbeeLow power mesh networking for home and industrial automation
Z-WaveLow power wireless protocol for smart homes
Bluetooth Low EnergyShort range, low power link, used by wearables
LoRaWANLong range, low power wide area networking
RFID and NFCShort range identification and payment
6LoWPAN and ThreadIPv6 based networking for constrained devices

IoT devices have limited processing power, so strong encryption and updates are often skipped. Many ship with default credentials.

OWASP IoT Top 10 (2018)

  1. Weak, guessable or hardcoded passwords
  2. Insecure network services
  3. Insecure ecosystem interfaces
  4. Lack of secure update mechanism
  5. Use of insecure or outdated components
  6. Insufficient privacy protection
  7. Insecure data transfer and storage
  8. Lack of device management
  9. Insecure default settings
  10. Lack of physical hardening

IoT attacks

AttackDescription
Default credential abuse and botnetsDevices with factory logins are taken over and joined to a botnet. The Mirai botnet did this and launched large distributed denial of service (DDoS) attacks.
DDoS from IoT devicesCompromised devices flood a target
Replay and rolling code attacksA captured radio signal (for example from a key fob) is replayed or its code sequence is predicted
JammingRadio interference blocks the device
Sybil attackOne malicious node pretends to be many nodes in a network
Firmware attacksInsecure or unsigned firmware is modified or extracted to find secrets
Side channel attacksPower use or timing is measured to learn secrets
Man-in-the-middleUnencrypted device to cloud traffic is read or changed
Ransomware and data theftDevices or their data are locked or stolen
BlueBorne and Bluetooth flawsAttack through the wireless stack without pairing
Physical attacksDebug ports such as UART and JTAG are used to reach the device software

IoT hacking methodology

  1. Information gathering: identify devices, vendors and exposed services. Search engines for devices, such as Shodan, Censys and Thingful, list internet facing devices.
  2. Vulnerability scanning: find open ports and weak services using tools such as Nmap, and IoT specific scanners.
  3. Launching attacks: for example sniffing radio traffic, replaying commands or attacking the firmware.
  4. Gaining remote access: obtain a shell or control interface on the device.
  5. Maintaining access: keep a persistent foothold on the device or its gateway.

Tools by purpose:

PurposeTools
Find exposed devicesShodan, Censys, Thingful
Capture network trafficWireshark
Radio analysisHackRF One, Software defined radio tools
Firmware analysisBinwalk, Firmwalker
Port and service scanningNmap

Countermeasures

  • Change default credentials and use unique strong passwords per device.
  • Update firmware, and enable signed, automatic updates where the vendor supports it.
  • Disable services and ports that are not needed, such as UPnP and Telnet.
  • Segment IoT devices on a separate network or VLAN.
  • Encrypt data in transit and at rest, using TLS for device to cloud links.
  • Use device authentication, certificates and a device management system.
  • Monitor for unusual traffic and block outbound connections that are not required.
  • Disable physical debug ports and harden the hardware.

A worked example

A company installs network cameras. A week later its internet link slows badly. Traffic logs show the cameras sending large amounts of traffic to an outside address.

The cameras still use the factory username and password, and are reachable from the internet. They have joined a botnet like Mirai. The fix is to change credentials, update firmware, remove internet exposure, and move the cameras to their own segment.

How the exam asks about this

  • "Which botnet used default credentials on IoT devices to launch DDoS attacks?" → Mirai.
  • "Which protocol is a lightweight publish and subscribe messaging protocol common in IoT?" → MQTT.
  • "Which search engine lists internet connected devices and their banners?" → Shodan.

What to remember for the exam

  • IoT has four layers: device, gateway, cloud and application.
  • Hardcoded and default passwords lead the OWASP IoT Top 10.
  • Mirai is the textbook IoT botnet using default credentials.
  • Shodan, Censys and Thingful support information gathering.
  • Segmentation, updates and unique credentials are the core fixes.
Watch out

A rolling code attack targets the code sequence of a remote, such as a car key fob. It is not the same as a simple replay of a fixed code.

Common mistakes

Treating IoT as harmless. Small devices are used as footholds and as DDoS tools, even if they hold no valuable data.

Relying on the manufacturer's defaults. The default login is public knowledge.

Skipping the gateway. The gateway links device protocols to the internet, so it deserves the same patching as a server.

Check yourself

  • What does MQTT do?

    It carries messages between devices and a broker using publish and subscribe, usually on port 1883 or 8883 with TLS.

  • What was the main weakness Mirai exploited?

    Default or weak credentials on internet reachable IoT devices.

  • Name two IoT countermeasures.

    Change default credentials and segment IoT devices on a separate network.

Topic 3 of 4 in Mobile Platform, IoT, and OT Hacking

Test yourself on Mobile Platform, IoT, and OT Hacking

The full EC-Council 312-50 question bank has 1,000 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by EC-Council. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.