Two operators at a control-room desk with a row of monitors, a laptop and keyboards

OT/ICS security

Sparkplug B protocol security: what MQTT's SCADA layer protects, and what it doesn't

Last updated:

Sparkplug B does not secure MQTT-based SCADA and IIoT data on its own — the Eclipse Foundation's own Sparkplug specification devotes an entire chapter (Chapter 7) to security, then opens it by stating plainly that the chapter "is provided for guidance only and is non-normative." Every authentication, authorization and encryption decision — client credentials, TLS, broker access-control lists — is left to whichever MQTT broker a deployment chooses, not to Sparkplug's own topic-naming and payload rules.

Key takeaways

  • Per the Eclipse Sparkplug project's own FAQ, "Sparkplug is simply a specification that defines how best to use MQTT in real-time, mission-critical industrial infrastructures." It does not modify MQTT itself.
  • Sparkplug's security chapter sets no requirements of its own.
  • Birth and Death certificates solve a reliability problem, not a security one.
  • Sparkplug inherits whatever the broker enforces, so the settings below come from the MQTT standards themselves.

What does Sparkplug B actually add on top of plain MQTT?

Per the Eclipse Sparkplug project's own FAQ, "Sparkplug is simply a specification that defines how best to use MQTT in real-time, mission-critical industrial infrastructures." It does not modify MQTT itself. The current Sparkplug 3.0.0 specification, dated 16 November 2022 on its cover, works over "MQTT v3.1.1 [MQTTV311] and MQTT v5.0 [MQTTV50]" and layers three conventions on a standard broker: a topic namespace (spBv1.0/group_id/message_type/edge_node_id/device_id), a Google Protocol Buffers payload for typed metrics, and session-state management built around Birth and Death certificates.

The same text is also an international standard. The Eclipse Foundation announced on 7 November 2023 that "the Sparkplug® 3.0 specification has been published as an International Standard" and "will also be known as ISO/IEC 20237"; the ISO/IEC 20237 first edition is dated 2023-10. A purchase specification that names ISO/IEC 20237 is therefore asking for Sparkplug 3.0, with the same non-normative security chapter.

The specification's reference architecture puts SCADA "Primary Application," "MES," "Historian" and "Analytics" host applications side by side on one broker, all consuming the same data from every Edge Node. One broker compromise therefore reaches every consumer at once.

Does Sparkplug B's own security chapter require anything at all?

Sparkplug's security chapter sets no requirements of its own. Chapter 7, "Security," opens with: "This chapter is provided for guidance only and is non-normative." Section 1.7 says the same in other words: "Security is not directly addressed in the Sparkplug Specification with normative statements," and the specification "will defer to the underlying protocols and industry standards for best practices."

The subsections point outward. Section 7.1 (TLS) notes that "the MQTT specification does not specify any TCP/IP security scheme," so Sparkplug "will not specify any TCP/IP specific security requirements" either. Section 7.2 (Authentication) states that "from a pure MQTT client perspective, the client does need to provide a unique Client ID, and an optional username and password." Section 7.3 (Authorization) observes that access control "is not mandated in the MQTT specification," though Access Control List functionality "is available for many MQTT Server implementations." Section 7.4.2 adds that on public networks with sensitive data, connections "should be encrypted," for example with TLS. Every one of those controls has to be configured on the broker; Sparkplug supplies the worked example, not the enforcement.

Do Birth and Death certificates protect against forged messages?

Birth and Death certificates solve a reliability problem, not a security one. Sparkplug's Continuous Session Awareness uses the MQTT Will Message so that a Death Certificate is delivered even after an ungraceful disconnect. The specification requires that "Birth Certificates MUST be the first MQTT messages published by any Edge Node or any Host Application," with NBIRTH for an Edge Node coming online and NDEATH, registered as the Will with QoS 1 and the retain flag false, for it going offline. Each NBIRTH carries a bdSeq number that "MUST start at zero and increment by one on every new MQTT CONNECT packet," so a Host Application can match an NDEATH to its session. Every later message carries a sequence number that "MUST have a value of one greater than the previous MQTT message from the Edge Node," wrapping after 255.

None of this is cryptographic. Any client authorized to publish on an Edge Node's topics, whether the real device or an attacker with its credentials, can send a well-formed NBIRTH, NDATA or NDEATH with the right numbers.

Host Applications have their own certificate: a retained JSON STATE message on spBv1.0/STATE/sparkplug_host_id with online and timestamp keys. Edge Nodes configured with a Primary Host react to it: an Edge Node "MUST disconnect from the current MQTT Server if the online JSON value is false" and must wait to publish its births "until an online=true STATE message is received." A client that can publish a forged offline STATE message can therefore push every Edge Node of that host off the broker. Only the Host Application's own credentials should be able to publish on its STATE topic.

How should the broker handle TLS and authentication?

Sparkplug inherits whatever the broker enforces, so the settings below come from the MQTT standards themselves. MQTT 3.1.1 (OASIS Standard, 29 October 2014) states that "TCP ports 8883 and 1883 are registered with IANA for MQTT TLS and non TLS communication respectively." MQTT 5.0 (OASIS Standard, 7 March 2019) adds enhanced authentication in Section 4.12, which "might involve the exchange of AUTH packets between the Client and the Server after the CONNECT and before the CONNACK packets," with an Authentication Method that "is commonly a SASL mechanism."

Control MQTT 3.1.1 MQTT 5.0 Setting for a Sparkplug broker
Transport encryption TLS, port 8883 recommended (§5.1) Same Listen on 8883 only; close 1883 or bind it to localhost
Client identity Client ID, optional username/password Same, plus AUTH challenge/response One credential or client certificate per Edge Node and per Host Application
Server identity Via TLS certificate Same Edge Nodes validate the broker certificate and hostname
Authorization Not in the standard; broker ACLs Same Per-client topic ACLs (next section)
Failed authentication CONNACK return code CONNACK reason code, e.g. 0x87 Not Authorized Log and alert on repeated failures

Port numbers alone prove nothing: a broker can run TLS on 1883 or plain TCP on 8883. Check the listener configuration, not just the port.

Worked example: which ACLs does each client in a small plant need?

Synthetic example. The plant, IDs and host names are invented for illustration.

A fictional packaging plant runs one broker, one Primary Host Application with host ID scada1, a historian, and two Edge Nodes (E1, E2) in group G1, each with attached Devices. Following the pattern of the specification's Section 7.4.3 example:

Client Publish Subscribe
Edge Node E1 spBv1.0/G1/NBIRTH/E1, NDATA/E1, NDEATH/E1, DBIRTH/E1/+, DDATA/E1/+, DDEATH/E1/+ spBv1.0/STATE/scada1, spBv1.0/G1/NCMD/E1, spBv1.0/G1/DCMD/E1/+
Edge Node E2 Same pattern with E2 Same pattern with E2
Primary Host scada1 spBv1.0/STATE/scada1, spBv1.0/G1/NCMD/+, spBv1.0/G1/DCMD/+/+ spBv1.0/G1/#, spBv1.0/STATE/scada1
Historian Nothing spBv1.0/G1/# (read only)

The specification notes that if writes to devices are not wanted, the DCMD subscription can be dropped, and that with scoped ACLs "Subscribing on # would not be allowed" for an Edge Node. In this plant, a stolen E1 credential can spoof E1 only; it cannot publish as E2, send commands, or forge scada1's STATE message.

Which MQTT broker vulnerabilities should a gateway maker track?

The broker is the security boundary, so its own flaws matter as much as configuration. Recent Eclipse Mosquitto and NanoMQ records on NVD:

CVE NVD published Product and fix Impact
CVE-2023-28366 1 Sep 2023 Mosquitto 1.3.2–2.x, fixed in 2.0.16 Memory leak from duplicate QoS 2 message IDs; CVSS 3.1 7.5
CVE-2023-0809 2 Oct 2023 Mosquitto before 2.0.16 Excessive memory allocation from malicious packets that are not CONNECT
CVE-2023-3592 2 Oct 2023 Mosquitto before 2.0.16 Memory leak from v5 CONNECT will messages with invalid property types
CVE-2024-8376 11 Oct 2024 Mosquitto up to 2.0.18a, fixed in 2.0.19 Memory leak, crash or use-after-free from crafted packet sequences; CVSS 3.1 7.5
CVE-2024-3935 30 Oct 2024 Mosquitto 2.0.0–2.0.18 bridges with topic remapping, fixed in 2.0.19 Double free and broker crash from a crafted PUBLISH
CVE-2025-59947 (our advisory) 15 Dec 2025 NanoMQ before 0.24.4 (GHSA-98f4-cmg8-x7f3) Buffer overflow when a PUBLISH matches shared and normal subscriptions

Most of these are remote denial of service, which for a Sparkplug site means every Edge Node goes stale at once. None of them is in the CISA KEV catalog (checked against catalog version 2026.11.10), so prioritize by exposure and by whether the gateway runs the vulnerable feature, as the KEV and EPSS guide explains. A gateway maker that embeds a broker should record its exact version in the firmware SBOM; the MQTT security guide covers broker CVEs outside the Sparkplug context.

What does the Ignition CVE-2025-13911 case show?

The Primary Host Application is a target in its own right. Inductive Automation's Ignition ships Sparkplug B and MQTT modules for that role. NVD's record for CVE-2025-13911 (CVSS 3.1 base score 6.4 from CISA, CWE-250 Execution with Unnecessary Privileges) states that "An authenticated user with Gateway Administrator privileges can import a malicious gateway backup (.gwbk) file containing crafted project resources, scripts, or modules, resulting in code execution on the host system." CISA's CSAF record for ICSA-25-352-01 was first released on 18 December 2025 and updated on 14 July 2026; its vendor fix points to OS-level service-account hardening in Annex A of the Ignition Security Hardening Guide. The vendor's Trust Center puts it plainly: "The default Ignition installation on Windows grants greater operating system permissions than is needed in most cases."

This is a privilege issue in the host platform, reachable only by an authenticated administrator, not a break of Sparkplug's topics, payloads or Birth/Death mechanism. It shows that the application every Edge Node's Birth certificate is addressed to needs the same hardening as any privileged OT server.

Why does this matter more when Sparkplug B feeds analytics or AI?

The reference architecture lists an "Analytics" application on the same broker as SCADA, MES and Historian, and the typed, self-describing NBIRTH metric list makes Sparkplug a convenient feed for anomaly-detection and predictive-maintenance models. An analytics consumer has no Sparkplug-level way to tell a genuine NDATA message from one published with stolen credentials, which matters more when a model acts without a person reading a dashboard. The fix is the same broker-side authentication, TLS and per-client ACLs.

What are the common pitfalls?

  • One shared credential for a whole fleet. A single leak then lets an attacker spoof every Edge Node.
  • Edge Nodes allowed to publish on spBv1.0/STATE/#. A forged offline STATE message disconnects every Edge Node that uses that Primary Host.
  • Port 8883 treated as proof of TLS. Confirm the listener actually requires TLS and that clients validate the certificate.
  • Wildcard subscriptions for convenience. An Edge Node that can subscribe to # sees the whole namespace.
  • An embedded broker that never gets updated. Gateways that ship Mosquitto or NanoMQ inherit their CVEs.

What is a workable starting point?

  1. Treat Sparkplug B as inheriting the broker's security, because Chapter 7 is non-normative.
  2. Enforce TLS on the broker, close the plain listener, and have every client validate the broker certificate.
  3. Give every Edge Node and Host Application its own credentials, with MQTT 5.0 enhanced authentication or client certificates where the broker supports them.
  4. Scope ACLs per clientas in the worked example, including the Primary Host's STATE topic.
  5. Patch and harden the Host Application and the broker, and track their CVEs by version.
  6. Verify broker controls before trusting a Sparkplug feedin an analytics or ML pipeline.

For system-level requirements behind these controls, see IEC 62443-3-3; the OPC UA guide covers the other common IIoT data layer, and the NIST SP 800-82 guide the wider OT program. NIST SP 800-82 Revision 3 notes that OT assets "often have long life cycles," so plan network segmentation around the broker rather than assuming every Edge Node will be updated.

SoftWSP's device firmware security assessment extracts an SBOM from a gateway firmware image as CycloneDX 1.6 JSON, matches components such as an embedded Mosquitto build against NVD, CISA KEV, FIRST EPSS and CISA CSAF ICS advisories, and produces an AI-drafted report with a citation for each finding, reviewed by an engineer; the SBOM can be opened in the SBOM viewer. The OT Snapshot lists, from captured traffic, which hosts serve TCP 1883 or 8883 and which clients connect to them. It does not parse MQTT or Sparkplug payloads, topics or ACLs.

This guide draws on the Eclipse Sparkplug 3.0.0 specification and FAQ, the Eclipse Foundation's ISO/IEC 20237 announcement, the OASIS MQTT 3.1.1 and 5.0 standards, Mosquitto release notes, NVD and CISA records, Inductive Automation's Trust Center and NIST SP 800-82 Revision 3. It is general information, not a substitute for a current advisory search for a specific product and version.

Put this guide to work

Frequently asked questions

Does Sparkplug B add its own authentication or encryption on top of MQTT?

No. The Eclipse Sparkplug specification devotes Chapter 7 to security, but opens that chapter with a direct disclaimer: "This chapter is provided for guidance only and is non-normative." Its three subsections describe what to rely on instead, all of it external to Sparkplug itself: Section 7.1 (TLS) states "the MQTT specification does not specify any TCP/IP security scheme as it was envisaged that TCP/IP security would (and did) change over time"; Section 7.2 (Authentication) notes only that "from a pure MQTT client perspective, the client does need to provide a unique Client ID, and an optional username and password"; Section 7.3 (Authorization) observes that "although access control is not mandated in the MQTT specification for use in MQTT Server implementations, Access Control List (ACL) functionality is available for many MQTT Server implementations." Every one of those mechanisms is a property of the MQTT broker a deployment chooses, not of the Sparkplug topic namespace, payload format, or Birth/Death session-state model the specification actually defines.

What are Sparkplug B's Birth and Death certificates, and do they protect against a forged message?

They solve a reliability problem, not a security one. Per the specification, "Birth Certificates MUST be the first MQTT messages published by any Edge Node or any Host Application," using the NBIRTH topic verb, and registering a Death Certificate (NDEATH) as the MQTT CONNECT packet's own Will Message so subscribers learn a node went offline even after an ungraceful disconnect. Each NBIRTH carries a bdSeq number that "MUST start at zero and increment by one on every new MQTT CONNECT packet," and every subsequent NDATA message carries its own sequence number that "MUST have a value of one greater than the previous MQTT message from the Edge Node" (wrapping from 255 back to 0). Host applications use these numbers to detect a dropped or out-of-order message — not to verify who sent it. Nothing in the bdSeq or sequence-number mechanism is cryptographically signed: any MQTT client holding valid broker credentials for that topic can publish a well-formed NBIRTH, NDATA, or NDEATH with the correct sequence number, and a subscriber has no spec-level way to tell it apart from the genuine Edge Node.

Has a product that implements the Sparkplug B host-application role had a disclosed, scored vulnerability?

Yes — in the platform, not in the Sparkplug specification itself. Inductive Automation's Ignition, one of the most widely deployed SCADA/IIoT platforms that ships native Sparkplug B/MQTT modules for the Primary Host Application role the specification describes, carries CVE-2025-13911 (CISA ICSA-25-352-01, CVSS v3.1 base score 6.4, CWE-250 Execution with Unnecessary Privileges). NVD's own record describes it: "Ignition by Inductive Automation, when installed with default OS service account settings, may expose the host system to an elevated code execution risk via the gateway backup restore functionality. An authenticated user with Gateway Administrator privileges can import a malicious gateway backup (.gwbk) file containing crafted project resources, scripts, or modules, resulting in code execution on the host system." Inductive Automation's own Trust Center confirms the same root cause in its own words: "The default Ignition installation on Windows grants greater operating system permissions than is needed in most cases. An Ignition administrator importing malicious project resources could lead to a system level compromise or other significant effects." Reaching that flaw requires an already-authenticated Gateway Administrator account, so it is a privilege-escalation issue in the host platform's default OS permissions, not a break of Sparkplug's topic namespace, payload format, or Birth/Death mechanism — but it lands on exactly the Primary Host Application role that receives and trusts every NBIRTH and NDATA message on the bus.

What should a device maker or integrator using Sparkplug B check first?

Treat Sparkplug B's security posture as entirely a function of the underlying MQTT broker, because that is exactly what the specification itself says to do. Configure TLS on the broker and confirm it is actually enforced, not merely available, since Sparkplug inherits whichever transport the broker was given. Issue every Edge Node its own MQTT client credentials — never share one set across a fleet — and scope broker ACLs per the specification's own worked example in Section 7.4.3, which restricts a client to publishing only its own `NBIRTH`/`NDATA`/`NDEATH`/`DBIRTH`/`DDATA`/`DDEATH` topics and subscribing only to its Primary Host's `STATE` topic and the `NCMD`/`DCMD` topics addressed to it; the spec states this "offer[s] some security in preventing compromised credentials from being able to be used to spoof Edge Nodes, write to other Edge Node outputs, or see all messages flowing through the MQTT Server." Patch and harden the Host Application platform itself (Ignition or any other SCADA/MQTT engine) with the same discipline as any other privileged server, since CVE-2025-13911 shows the platform receiving every Birth and Death certificate on the bus is a target in its own right. And because NIST SP 800-82 Revision 3 observes that OT assets "often have long life cycles" and that equipment running outdated security capabilities "is at greater risk of attacks," do not assume a Sparkplug-speaking Edge Node will ever receive a security-relevant firmware update — segment the MQTT broker and its network path the same way you would any other OT-critical server.

Sources

  1. Eclipse Foundation: Sparkplug Specification Version 3.0.0 (16 November 2022) — Chapter 2 (Principles of Operation) and Chapter 7 (Security)
  2. Eclipse Sparkplug: Frequently Asked Questions (what Sparkplug is, the Sparkplug Compatible program)
  3. NVD: CVE-2025-13911 — Inductive Automation Ignition gateway-backup-restore privilege issue (CVSS v3.1 6.4, CWE-250)
  4. Inductive Automation Trust Center: Security Advisories (vendor description of CVE-2025-13911 and coordinated disclosure with CISA)
  5. CISA ICS Advisory ICSA-25-352-01: Inductive Automation Ignition (Update A)
  6. NIST Special Publication 800-82 Revision 3, Guide to Operational Technology (OT) Security (September 2023) — defense-in-depth and legacy OT equipment risk
  7. Eclipse Foundation: Sparkplug 3.0 published as International Standard ISO/IEC 20237 (7 November 2023)
  8. OASIS: MQTT Version 3.1.1, OASIS Standard, 29 October 2014 (section 4.2 IANA ports 1883/8883, chapter 5 Security)
  9. OASIS: MQTT Version 5.0, OASIS Standard, 7 March 2019 (section 4.12 Enhanced authentication, section 3.15 AUTH)
  10. Eclipse Mosquitto: Version 2.0.16 released (16 August 2023; CVE-2023-28366, CVE-2023-0809, CVE-2023-3592)
  11. Eclipse Mosquitto: Version 2.0.19 released (2 October 2024; security fixes)
  12. NVD: CVE-2024-8376 — Eclipse Mosquitto up to 2.0.18a, crafted packet sequences (CVSS v3.1 7.5)
  13. NVD: CVE-2023-28366 — Eclipse Mosquitto memory leak with duplicate QoS 2 message IDs (CVSS v3.1 7.5)
  14. NVD: CVE-2023-0809 — Eclipse Mosquitto before 2.0.16, excessive memory allocation before CONNECT
  15. NVD: CVE-2023-3592 — Eclipse Mosquitto before 2.0.16, MQTT v5 will-message memory leak
  16. NanoMQ security advisory GHSA-98f4-cmg8-x7f3 (CVE-2025-59947, fixed in 0.24.4)
  17. CISA CSAF: ICSA-25-352-01 Inductive Automation Ignition (Update A), JSON record (initial release 2025-12-18, current 2026-07-14)
Was this guide helpful?

In this cluster

Sparkplug B protocol security: what MQTT's SCADA layer protects, and what it doesn't