Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 24 November 2026. Part of Ports, protocols and services.
In one sentence: Port 1883 is the standard unencrypted door to an MQTT broker, the message hub that connects sensors, machines and building systems, and anyone who can reach it may be able to read and send those messages.
What runs on this port
MQTT is a publish and subscribe messaging protocol. The OASIS standards body describes it as lightweight, open and simple, designed for constrained environments such as machine to machine and Internet of Things (IoT) use, and running over TCP/IP.
In plain terms, devices (publishers) send messages to a central broker under a topic name, such as a room’s temperature. Other systems (subscribers) ask the broker for the topics they want. The broker passes messages along.
Schneider Electric’s building automation documentation states that 1883 is defined at IANA as MQTT over TCP and that 8883 is the default port for MQTT over TLS, the encrypted version. You find MQTT in smart buildings, manufacturing lines, cold storage monitoring, vehicle trackers and home automation. Popular brokers include Eclipse Mosquitto.
Why attackers look for it
Exposed services are found by scanning the internet, not by guessing your company name. Airbus Protect’s pentesting blog shows that searching the Shodan device search engine for MQTT on port 1883 returned 606,533 brokers when they ran the search, and that Shodan displays a connection code, where code 0 means the broker accepts clients with no authentication. That is a point-in-time figure from their 2024 article, not a current count.
Attackers like it because the payoff is data about physical systems and, sometimes, the ability to send commands.
How it gets attacked
- No login. Airbus Protect notes MQTT authentication is optional. The Mosquitto manual says that if no other options are given, the simplest option, no authentication at all, applies. It also says that in Mosquitto 1.6.x and earlier, anonymous access defaulted to true unless another security option was set. Newer versions default to refusing anonymous clients unless no listeners are defined, in which case connections are allowed from the local machine only.
- Passwords sent in clear. The Mosquitto manual warns that with a password file you must use network encryption or the username and password can be intercepted. Plain 1883 is not encrypted.
- Login but no limits. Authentication alone does not decide which topics a client may read or write. Mosquitto supports access control lists (ACLs) for that.
- Software flaws. Airbus Protect lists Mosquitto CVEs including CVE-2017-7650 (insecure default configuration without authentication in some brokers), CVE-2023-28366 (a remote memory leak with QoS 2 messages that can cause denial of service) and CVE-2023-5632 (excessive CPU use from an empty connection request). The Mosquitto manual itself describes CVE-2017-7650 as a case where special characters in a username or client ID could be used to get around an ACL check.
- Other listeners. Mosquitto can also open WebSockets and an HTTP API listener. The manual says the HTTP API listener has no authentication and should be bound to loopback behind a reverse proxy.
Who it affects and how badly
Manufacturing, construction and building managers, retail and hospitality (refrigeration and heating sensors), care providers, SaaS start-ups building IoT products, telecoms and councils running smart city sensors. Size matters less than exposure.
Illustrative worst cases: – Small business: a smart heating or camera system is controlled by a stranger, or its data is read. – Mid-sized business: production or stock data leaks, and false messages could mislead operators or automation. – Regulated business: sensor data that identifies people or sites can become personal data, so exposure may raise data protection duties.
How to check whether yours is exposed
Safe checks only, on assets you own: 1. List every system you know that uses MQTT, including building, camera and sensor vendors. Ask suppliers. 2. Check your firewall and router rules for inbound TCP 1883 (and 8883) from the internet. 3. Look at the broker configuration for listeners, allow_anonymous, password files and ACL settings. Mosquitto’s manual describes these options. 4. From a different network, check with a tool you are authorised to use whether the port answers. Our guide to checking open ports is at How to check which ports are open. 5. Run our free web vulnerability scan for the web side of your estate.
What we check on a test
In an authorised test where MQTT is in scope, a Wolfcore tester looks at: – Whether the broker answers from the internet or from guest and office networks it should not reach. – Whether a client needs credentials, and whether any default or shared credentials exist. – Whether credentials and messages cross the network unencrypted. – Whether one device’s credentials can read or write topics it should not (the ACL question). – Whether the broker version has known issues, and which other listeners are enabled. – What a reader of the topics could learn, such as locations, schedules or customer data.
Worked example (illustration, not a real case)
A 30-person cold storage firm installs temperature sensors that publish to a broker the installer set up on the office network, then opens port 1883 on the router so the supplier can check readings. Anonymous access is left on. A stranger finds it through a device search engine and subscribes to every topic. They can read stock locations and, because publishing needs no login, send false readings. A false “all fine” reading hides a failing freezer, and the firm loses a week of stock. The fix costs far less than the stock: close the port, require logins, restrict each device to its own topics and use TLS.
How to secure it
- Do not expose 1883 to the internet. Bind it to the internal network or loopback. Airbus Protect advises avoiding internet exposure if possible.
- Require authentication. In Mosquitto set allow_anonymous to false and use password files or the Dynamic Security plugin.
- Turn on encryption. Use a TLS listener (conventionally 8883) with certfile and keyfile, and set tls_version to tlsv1.2 or tlsv1.3 as the minimum.
- Prefer client certificates (require_certificate) so each device has its own identity rather than a shared password. Airbus Protect recommends unique key pairs per client.
- Add ACLs so each client can read or write only its own topics.
- Keep the broker updated. Airbus Protect lists several fixed Mosquitto CVEs.
- Limit connections (max_connections) and turn on connection logging (connection_messages and log_type subscribe).
- Disable listeners you do not use, especially WebSockets and the HTTP API.
Related terms
Port 6379 (Redis), Port 11211 (Memcached), How to check which ports are open, What is a honeypot, Nessus, Wireshark
FAQ
What is port 1883 used for? It is defined at IANA as MQTT over TCP, per Schneider Electric’s documentation, and is the default port for an unencrypted MQTT broker.
What is the secure version? Schneider Electric lists 8883 as the default port for MQTT over TLS.
Is an MQTT broker secure by default? Not necessarily. Airbus Protect says MQTT authentication is optional, and Mosquitto 1.6.x and earlier allowed anonymous access unless other security options were set.
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan and see penetration testing. If the broker has a web dashboard, see our web application penetration testing. Prices are on our pricing page.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call