
A practical MQTT security checklist for Singapore teams: TLS 1.3, mutual authentication, topic ACLs, hardening, monitoring and IMDA and CSA requirements.

MQTT Security Best Practices for Singapore Deployments

Secure an MQTT deployment in five layers: encrypt every connection with TLS, give every client its own identity, restrict each identity to the topics it needs, harden the broker and the devices around it, and monitor for abnormal behavior. Skip any one layer and the others carry more risk than they should. This guide walks through each layer for facility owners, security managers and integrators who run sensors, cameras, access control and building systems over MQTT in Singapore, and it ties the controls to the official guidance that applies locally.
TL;DR
- Use TLS on every MQTT connection. RFC 9431 recommends TLS 1.3, and mutual authentication is required unless clients only subscribe to public topics.
- Give each device a unique identity, ideally a client certificate, and never leave anonymous access or default passwords in place.
- Apply topic-level access control so a compromised sensor cannot read or publish beyond its own topics.
- Segment IoT and enterprise networks, rate-limit connections, and watch for repeated authentication attempts and topic scanning.
- Singapore operators should align with IMDA's IoT cyber security guide, and CII owners must meet Cybersecurity Act obligations, including 2-hour incident reporting.
Table of Contents
- Why MQTT needs deliberate security
- Layer 1: Encrypt every connection with TLS
- Layer 2: Give every client its own identity
- Layer 3: Restrict what each client can do
- Layer 4: Harden the broker, the devices and the network
- Layer 5: Monitor, respond and recover
- What Singapore requires and recommends
- A deployment checklist you can hand to your team
- Our perspective
- How BeyondSensor can help
- FAQ
- Sources
Why MQTT needs deliberate security
MQTT is a lightweight publish/subscribe protocol, which is why it is everywhere in sensor networks. Door contacts, environmental sensors, gateways, patrol robots and video analytics all push small messages to a broker, and dashboards and control systems subscribe to them. The same simplicity is the problem: a broker that is installed with its defaults will often accept connections it should refuse.
The evidence on real-world deployments is not comforting. An academic analysis of backends that speak MQTT and XMPP found that 99.84% of them used insecure transport protocols. The same study lists the recurring risks: weak or absent authentication, insecure transport, denial-of-service attacks on brokers, and leakage of sensitive telemetry or personal data.
For a security operation, these are not abstract. A broker carrying alarm states, visitor records or patrol events is part of your physical security control chain. If an attacker can subscribe to it, they learn when a site is quiet. If they can publish to it, they can fake a "door closed" or silence an alarm.
The main risks, in plain terms
| Risk | What it looks like on site | Layer that addresses it |
|---|---|---|
| Plaintext transport | Sensor readings and credentials readable on the network | TLS |
| Weak or absent authentication | Anonymous or default-password clients connect freely | Client identity |
| Over-broad permissions | One device can read every topic, including wildcards | Topic ACLs |
| Broker denial of service | Flood of connections or large payloads stops telemetry | Hardening and rate limits |
| Information leakage | Telemetry or personal data exposed to the wrong client | TLS plus ACLs |
| Compromised device | Stolen or tampered endpoint keeps access | Revocation and monitoring |
Layer 1: Encrypt every connection with TLS
The baseline is simple: do not run MQTT in plaintext, including on an internal network. Singapore's IMDA IoT cyber security guide says to use proven transport protocols with their security controls properly activated, and it names TLS when MQTT is the protocol.
Choose the TLS version and authentication mode
RFC 9431, the specification for running MQTT over TLS and WebSocket, recommends TLS 1.3 for confidentiality and broker authentication. It also notes that unless clients only subscribe to public topics, mutual authentication is required. In practice, that means your sensors and gateways should verify the broker, and the broker should verify them.
A sensible configuration checklist:
- Enable TLS 1.3 on the broker and permit older versions only where a legacy device genuinely cannot be upgraded. Plan the upgrade date for those devices.
- Validate the broker certificate on every client. A client that skips certificate validation gives you encryption without authentication, which a man-in-the-middle can defeat.
- Use a private certificate authority for devices rather than a public one, so you control issuance and revocation.
- Keep certificate lifetimes manageable and automate renewal. Expired certificates at 2 a.m. are how teams end up disabling TLS "temporarily".
- Protect private keys on the device. Where hardware allows, store them in a secure element or TPM rather than a readable file.
If you have a large installed base of constrained sensors, it may help to terminate TLS on a local gateway. Treat that as a design decision you document, not a shortcut: the link between sensor and gateway then needs its own protection, such as a physically controlled segment.
Layer 2: Give every client its own identity
IMDA's guidance is direct on credentials: replace default passwords, enforce strong password policies, use multi-factor authentication for impactful remote operations, and secure physical access to service ports. Apply that to MQTT in three steps.
Disable anonymous access
An open broker is the single most common failure. RabbitMQ's MQTT documentation highly discourages anonymous connections and recommends that remote clients use specific users with appropriate permissions. Its default guest account does not allow non-local connections, which is a useful reminder that defaults are a starting point, not a design.
Prefer certificates over shared passwords
One username and password baked into every sensor means that extracting it from one device compromises the fleet. This also answers a question that comes up often with mobile apps and field tools: a single shared login is a weak pattern. Issue each device or user its own credential.
Client certificates are the stronger option for devices. Mosquitto, for example, supports TLS-based authentication with valid client certificates, where the certificate identity, such as the Common Name, can serve as the username for access control and no password is needed. That removes a password to leak and ties each message to a revocable identity.
Handle people differently from devices
Humans who administer the broker or trigger impactful remote operations should use MFA, in line with the IMDA guidance. Devices should use certificates or unique per-device secrets. Keep administrative accounts separate from device accounts, and never reuse one for the other.
Layer 3: Restrict what each client can do
Authentication says who is connecting. Authorization says what they may touch. Without it, a valid but compromised temperature sensor can subscribe to the wildcard topic and read everything.
Design your topic tree so that permissions follow it. A pattern that works well in multi-site security deployments:
- A topic prefix per site and per device class, for example site, then system, then device ID.
- Devices may publish only to their own branch and subscribe only to their own command topic.
- Dashboards and analytics services get read access to the branches they need, and nothing that lets them publish commands.
- Command topics, which can unlock doors or change thresholds, are writable only by a small set of authenticated control services.
- Wildcard subscriptions are denied to everything except dedicated, audited monitoring accounts.
Brokers differ in how they express this. Mosquitto uses access control lists tied to the username or certificate identity. RabbitMQ combines topic-level authorization with queue permissions so clients are restricted to their own session queues. Whichever broker you run, test the rules by connecting as a device and trying to read and write outside its lane. The test is more convincing than the configuration file.
Layer 4: Harden the broker, the devices and the network
IMDA's guidance on hardening includes replacing default credentials, segmenting IoT and enterprise networks, using firewalls and malware mitigation where possible, limiting concurrent sessions and enforcing physical access controls.
The OASIS technical note that maps MQTT to the NIST Cybersecurity Framework adds server-side measures: automatic client disconnect mechanisms, suspicious behavior detection, dynamic access control lists by IP address or Client ID, and rate limiting or blocking. On the client side it lists tamper-proof end devices, proper storage of client certificates, and two-factor authentication. The document dates from 2014, so treat it as a framework for the thinking and pair it with current TLS recommendations.
A hardening checklist
- Network placement. Put the broker in a dedicated zone. Allow only the required inbound ports from the device segment and from management hosts. Our guide to OT network segmentation in Singapore covers how to draw those zones.
- Connection limits. Cap concurrent sessions per client and per source address, and set maximum message and packet sizes to blunt denial-of-service attempts.
- Unique client IDs. Enforce one active session per Client ID so a cloned device kicks itself off rather than running in parallel with the original.
- Management exposure. Keep admin interfaces and dashboards off the internet, behind VPN or a bastion with MFA.
- Physical security. Lock enclosures, disable unused service ports and use tamper detection on field devices. A cabinet with an exposed USB port undermines every cryptographic control above it.
- Patching. Track broker and gateway firmware releases and schedule updates. An unpatched broker is a known-vulnerability target.
- Zero trust between IT and OT. Do not let a flat network stand in for authorization. See how to bridge IT and OT with zero trust.
For a broader view of sensor estates, our IT guide to securing sensor networks and the list of must-have industrial security features extend this checklist beyond the broker.
Layer 5: Monitor, respond and recover
Controls fail, so plan for detection. The OASIS and NIST mapping suggests monitoring for repeated connection and authentication attempts, abnormal connection terminations and topic scanning. Each maps to something observable in broker logs.
| Signal | What it can indicate | First response |
|---|---|---|
| Many failed authentications from one source | Credential guessing | Block or rate-limit the source, review the targeted accounts |
| Client repeatedly connecting and dropping | Cloned device, unstable link or probing | Check Client ID conflicts, inspect the device |
| Subscriptions to wildcard or unfamiliar topics | Topic scanning | Verify ACLs held, identify the client, revoke if unknown |
| Device publishing outside its normal pattern | Compromised or malfunctioning endpoint | Disconnect, isolate, investigate |
| Sudden spike in connections or payload size | Denial-of-service attempt | Apply limits, notify network team |
The same document frames response and recovery in three moves: revoke compromised credentials, disconnect compromised devices, and restore systems. Rehearse them. If every device has its own certificate, revoking one is a routine operation. If every device shares a password, revoking it means touching the whole fleet.
Feed broker logs into the same place as your other security events, so a pattern on the broker can be correlated with a door event or a video alert. That is where exception-based monitoring pays off: you review the anomalies instead of scrolling through normal traffic.
What Singapore requires and recommends
MQTT security in Singapore sits inside a wider regulatory picture. Which parts apply to you depends on what you operate.
IMDA IoT guidance. The October 2025 IMDA IoT cyber security guide is the most directly relevant document. It covers TLS for MQTT, default password replacement, MFA for impactful remote operations, access controls for devices, networks and data, and physical access to service ports. It is a good design baseline even where it is not mandatory for you.
Critical information infrastructure. Owners of CII must meet baseline requirements under the Cybersecurity Act and the Cybersecurity Code of Practice, which are generally aligned with international practice such as IEC 62443, according to the Ministry of Digital Development and Information. If your sensors feed a CII-relevant system, such as power, water or transport operations, your MQTT layer is part of that scope.
Incident reporting. Under the Cybersecurity (Amendment) Act, in force since 31 October 2025, CII owners must report specified cybersecurity incidents within 2 hours of becoming aware, including incidents suspected of being caused by advanced persistent threats. A two-hour clock only works if your broker logs and alerting can tell you quickly that something is wrong. This is a practical argument for the monitoring layer above.

Integrators supplying CII owners should read these obligations as a procurement requirement: customers will ask how your MQTT layer supports detection and reporting. Our notes on compliance for security integrators, compliance frameworks across Southeast Asia and a step-by-step compliance guide for sensing systems can help you map this to a project.
A deployment checklist you can hand to your team
- Inventory every MQTT client, broker and bridge, with owner and location.
- Enable TLS 1.3 everywhere practical and validate certificates on clients.
- Issue unique certificates per device from a private CA, with a documented revocation process.
- Disable anonymous access and remove all default accounts.
- Write ACLs from the topic tree, deny wildcards by default, and test them from a device's point of view.
- Place the broker in its own network zone and expose management only via VPN with MFA.
- Set session, rate and payload limits.
- Log connections, failures, subscriptions and disconnects, and alert on the signals in the table above.
- Write and rehearse the revoke, disconnect and restore playbook, including the 2-hour reporting path if you are a CII owner.
- Review the configuration after every firmware change, new integration or site onboarding.
Our perspective
Most MQTT incidents we see discussed are not clever attacks. They are open brokers, shared passwords and flat networks that nobody revisited after commissioning. Security projects fail in the handover, when a working system is declared finished.
We think the answer is to treat the messaging layer as part of the security product, not as plumbing underneath it. A virtual patrol, a visitor workflow or a video analytics dashboard is only as trustworthy as the events that reach it. That is why our approach is a unified platform with multi-vendor integration and localized technical validation for Southeast Asian deployments, so that identity, access and monitoring are designed once and applied consistently across sensors, software and sites.
The same logic favors exception-based monitoring. AI never blinks, but it needs trustworthy inputs. When every device has its own identity and every topic has a clear owner, automation can flag the one event that matters instead of burying operators in noise.
Eumir
How BeyondSensor can help
If you are planning or reviewing a sensor-based security deployment, we can help you design the messaging, identity and monitoring layers alongside the hardware and software. Our Solution Integration service supports integrators and solution providers who need multi-vendor systems to work together under one security model.

For operations teams, BeyondSecure, BeyondWatch, BeyondPatrol and BeyondVisitor bring surveillance, virtual guard tours and visitor management into one environment. To discuss your architecture, start from beyondsensor.com. For the wider context on connected devices in security, read our 2026 guide to the role of IoT in security.
FAQ
Is MQTT secure by default?
No. The protocol is designed to be lightweight, and security depends on how you configure the broker and clients. Research on real-world backends found that nearly all MQTT and XMPP backends examined used insecure transport. Turn on TLS, authentication and access control explicitly.
Should I use passwords or client certificates?
For devices, certificates are the stronger choice because each device gets its own revocable identity, and brokers such as Mosquitto can use the certificate identity for access control without a password. Where passwords are unavoidable, make them unique per client, strong and never default. IMDA also recommends MFA for impactful remote operations by people.
Is a VPN or private network enough instead of TLS?
Not on its own. Network segmentation reduces exposure, and IMDA recommends it, but it does not authenticate individual devices or protect data if one segment host is compromised. RFC 9431 recommends TLS 1.3 with mutual authentication unless clients only subscribe to public topics. Use segmentation and TLS together.
What should I log and monitor on an MQTT broker?
Watch for repeated connection and authentication attempts, abnormal disconnections and topic scanning, as the OASIS mapping to the NIST framework suggests. Also log subscriptions to wildcard topics and unusual publishing patterns. Send these logs to your central security monitoring so they can be correlated with physical events.
Do Singapore rules apply to my MQTT deployment?
That depends on your role. IMDA's IoT guide is a recommended baseline for IoT deployments generally. If you own critical information infrastructure, the Cybersecurity Act, the Code of Practice and the 2-hour incident reporting duty apply. Confirm your status with the Cyber Security Agency of Singapore.
Sources
- Large-Scale Security Analysis of Real-World Backends (RAID 2024)
- IMDA Guidelines: Internet of Things (IoT) Cyber Security Guide
- RFC 9431: MQTT and Transport Layer Security
- mosquitto.conf man page, Eclipse Mosquitto
- MQTT Plugin, RabbitMQ
- MQTT and the NIST Cybersecurity Framework Version 1.0, OASIS
- MDDI response to PQ on strengthening protection for Singapore's CII
- CSA: Provisions in the Cybersecurity (Amendment) Act to come into force on 31 October 2025
Recommended
Read More Articles

Preventive Maintenance for CCTV: A Singapore Guide
A practical preventive maintenance plan for CCTV in Singapore: checklist, inspection rhythm, SPF-aligned SLA terms, fault logging and what to put in a contract.

Thermal Camera Calibration: Methods, Intervals and Singapore Checks
How thermal camera calibration works, how often to do it, how to read a certificate, and what to check with Singapore labs before you rely on the readings.

Line of Sight Survey: Methods, Tools and Site Checks
What a line of sight survey is, how surveyors and GIS analysts run one, and how to record results for CCTV, wireless and sensor deployments in Singapore.

Single Sign-On Security: Risks, Controls and a Checklist
Is single sign-on secure? See how SSO works, where it fails, and the MFA, key protection and monitoring controls Singapore security teams should require.
Let's Build YourSecurity Ecosystem.
Whether you're a System Integrator, Solution Provider, or an End-User looking for trusted advisory, our team is ready to help you navigate the BeyondSensor landscape.
Direct Advisory
Connect with our regional experts for tailored solutioning.