Skip to content

DEF CON 34 talks are here: 354 talks, summarized and searchable.

Browse DEF CON 34

MQTT: Tiny Protocol, Big Vulnerabilities

Tracie Martin

ReconTalks41 minIntermediateOpen on YouTube ↗

Where

Talks
CactusCon 9

Duration

41 min

Explains how exposed MQTT brokers are found on the internet and how their weak defaults can be enumerated.

Summary

The talk introduces MQTT, a lightweight publish-subscribe messaging protocol designed for unreliable links such as oil rigs and small sensors. It walks through the roles of publishers, brokers, subscribers and topics, and gives a simple home automation example. Common uses are shown in connected cars, smart homes and industrial plants. The speaker explains that the protocol was built for trusted parties, so security was not a core goal.

The middle section reviews the main weak points: denial of service through broker overload and client ID spoofing, weak or missing authentication, shared device certificates, loose topic authorization with wildcards, unpatched software, and unencrypted transport on the standard port. The speaker then scans the internet with Masscan, a fast nmap-style scanner, after a subnetting mistake widened a run to about 16 million hosts. Roughly 1,000 hosts answered on the unencrypted port. A script filtered for brokers that accepted anonymous connections, and the mqtt-pwn toolkit was used to browse topics on a few of them. The talk stresses that scanning is only legal and ethical when authorized.

The closing argument is that cloud migration brings default TLS, identity integration and anomaly detection, but also widens exposure and often drops redundancy practices. The takeaways are that MQTT is widespread, often misconfigured, lacks native encryption and authentication, and makes per-device credentials hard to manage. Compromising one device to steal a certificate is therefore a common foothold.

Related talks