← Lab /Security & privacy

MQTT lacks robust encryption and authentication, exposing critical risks

MQTT implementations are vulnerable to eavesdropping, tampering, DoS, and brute-force attacks due to missing encryption and authentication

Security & privacy arXiv 15 May 2026 Measurement Simulation evidence

Published as “Security Analysis of a Communication Protocol: MQTT”

Why it matters

Deployers of MQTT in IoT must enable TLS and strict ACLs, and consider additional rate-limiting, otherwise critical confidentiality and availability risks remain.

Summary

All four attacks-eavesdropping, tampering, denial-of-service, and brute-force credential cracking-succeeded in the simulated smart-home testbed, showing that default MQTT deployments are highly vulnerable. The eavesdropping script captured clear-text temperature and door state messages, the ARP-spoofing MiTM altered sensor data to 999.9°C, the MQTT Stresser flooded 3,000 clients causing latency to rise from ~7 ms to over 60 s, and a 4-character password was cracked in about one hour. Evidence comes from concrete experimental measurements, though the paper does not test the proposed mitigations, limiting the strength of its conclusions.

What they found 4

  1. Eavesdropping captured clear-text sensor data

    “The script successfully captured sensitive plain-text payloads, including {"temperature": 23.4} and {"door_state": "open"}.”

  2. Tampering altered temperature readings without breaking MQTT framing

    “The proxy adulterated the payload while carefully maintaining the original byte size to avoid corrupting the MQTT Remaining Length header. Consequently, the Node-RED dashboard displayed a tampered temperature of 999.9°C instead of the legitimate 24.56°C.”

  3. Four-character password cracked in ~1 hour

    “a 4-character password (1234) was cracked in roughly 3,760 seconds (about one hour).”

  4. Large proportion of public MQTT brokers allow unauthenticated access

    “approximately 425,000 public MQTT backends, of which 59% allowed direct connections without any trust relationship”

Caveats 3

  • The paper reports that the broker "did not crash" during the DoS test, suggesting that while service was degraded, the impact may be less catastrophic than implied by the "critical risk" label
  • Proposed mitigation strategies (TLS, ACLs, etc.) were not implemented or evaluated, so their effectiveness remains unverified in the presented environment
  • these defensive measures were not practically implemented and tested against the simulated attacks in the lab environment

What’s new here 4

  • Demonstrates practical exploitation of MQTT in a Docker-based smart-home simulation
  • Quantifies latency degradation under a 3,000-client DoS flood
  • Measures brute-force cracking time for a 4-character password on Mosquitto
  • Shows successful payload tampering via ARP spoofing while preserving MQTT packet structure