312-50 ยท IoT and OT hacking
IoT architecture and protocols
IoT layers, communication models, protocols (MQTT, CoAP, Zigbee, LoRaWAN, BLE), and common weaknesses.
Key points
- Layers: devices (sensors, actuators), gateway or network, cloud or application services, user.
- MQTT: publish/subscribe via a broker; TCP 1883 plain, 8883 with TLS.
- CoAP: compact request/response over UDP.
- Zigbee: low-power mesh. LoRaWAN: long-range, low-power WAN. BLE: short-range, low-energy.
- Weaknesses: default or hard-coded credentials, unencrypted traffic, unpatched firmware, exposed management interfaces.
Source: https://en.wikipedia.org/wiki/MQTT
Practice questions
In an MQTT deployment, which component receives published messages and forwards them to the clients subscribed to the topic?
- The broker
- The certificate authority
- The DHCP relay
- The subscriber agent
Show answer
Answer: A. The broker
The broker is the central hub of the publish/subscribe model; publishers and subscribers never talk to each other directly. A gateway bridges networks but does not implement topic routing, and a certificate authority only issues certificates.
Which are common weaknesses of IoT deployments?
- Factory-default or hard-coded passwords
- Sensitive data sent in cleartext
- Firmware that is rarely or never updated
- Mandatory per-message hardware attestation
- Overly strict firewall rules on every sensor
Show answer
Answer: A. Factory-default or hard-coded passwords, B. Sensitive data sent in cleartext, C. Firmware that is rarely or never updated
Factory-default credentials, plaintext protocols and unpatched firmware are the classic IoT weak points. Hardware attestation on every message and full-disk encryption on every sensor are not typical defaults, and their absence is not the usual root cause.
True or false: because MQTT uses a broker, traffic on its default port 1883 is encrypted.
Show answer
Answer: False
False. Port 1883 is plain MQTT and sends credentials and payloads in cleartext; encryption needs TLS, conventionally on port 8883.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
