Join our Newsletter — 33% off our NHI Course
Home› Guides› DDS Security: Authentication, Access Control and Encryption for…
Guide OT & IoT Security

DDS Security: Authentication, Access Control and Encryption for DDS Middleware

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 13 min read
On this page

Data Distribution Service (DDS) middleware lets any participant on a domain discover and exchange data with any other by default, so a robot, vehicle or control system built on it trusts every node it can reach unless DDS Security is configured. The Object Management Group (OMG) DDS Security specification adds pluggable authentication, access control, encryption, logging and data tagging to DDS without changing application code. This guide explains the plugin architecture, the governance and permissions documents that drive it, certificate authority management, what discovery still exposes, the performance trade-offs and how ROS 2 applies it through SROS2. It is for embedded, robotics and industrial software engineers. Specification status was checked on the OMG site on 26 November 2026: version 1.2 is the current formal version, published in February 2026.

Key takeaways

  • Security is a set of plugins. The specification defines five service plugin interfaces (Authentication, AccessControl, Cryptographic, Logging, Data Tagging) and builtin implementations that every conforming product must interoperate with.
  • Two signed XML files decide behaviour. The governance document sets domain wide protection; the permissions document sets what each participant may publish and subscribe to. Both are signed by a permissions CA.
  • Authentication without access control is not enough. SROS2 documentation notes that with authentication and encryption alone any authenticated node can publish and subscribe to any topic.
  • Some discovery data is always visible. Participant announcements carry addresses, ports, version and vendor IDs in the clear by design; topic names are protected only if governance marks them sensitive.
  • Version 1.2 deprecates older algorithms. RSA signatures, ECDSA P-256, finite field DHE and ECDHE P-256 are marked deprecated, with P-384 listed, so new systems should plan for the stronger set.

What DDS is and where it is used

DDS is an OMG publish and subscribe standard for real time data exchange. Applications join a numbered domain, create DataWriters and DataReaders on named topics and discover each other automatically using the Real Time Publish Subscribe (RTPS) wire protocol, normally over UDP multicast and unicast. There is no broker: every participant talks directly to its peers. That design gives low latency and no single point of failure, which is why DDS sits underneath ROS 2, many defence and aerospace systems, autonomous vehicles and industrial control platforms.

The same design is the security problem. Without DDS Security, any process that can send packets on the network can join the domain, read every topic and publish commands. Network segmentation helps but does not authenticate individual participants. For the wider identity picture of robots and physical agents, see Embodied AI Agent Identity; this guide stays on the middleware layer.

The DDS Security specification

VersionPublishedNotes
1.0August 2016First formal version
1.1July 2018Widely implemented version referenced in many product docs
1.2February 2026Current formal version (OMG formal/25-03-06); includes pre-shared key (PSK) builtins, LogTopicV2 and algorithm deprecations

The specification defines a security model and a service plugin interface (SPI) architecture. The DDS implementation calls the SPIs; the plugins make the decisions. Builtin plugin interoperability and the plugin framework are mandatory for conformance; the Logging and Tagging profile is optional.

SPIBuiltin pluginWhat it does
AuthenticationDDS:Auth:PKI-DH (and DDS:Auth:PSK in 1.2)Verifies participant identity with X.509 certificates and establishes a shared secret by Diffie-Hellman key agreement
AccessControlDDS:Access:Permissions (and DDS:Access:PSK)Enforces governance and permissions documents: who may join, publish, subscribe or relay
CryptographicDDS:Crypto:AES-GCM-GMAC (and DDS:Crypto:PSK)Encrypts and authenticates data, metadata and whole RTPS messages; manages keys
LoggingDDS:Logging:DDS_LogTopicRecords security events to a file and optionally publishes them on a DDS topic
Data TaggingNo dedicated builtin; tags evaluated by the Permissions pluginAssociates tags with writers and readers so permissions can depend on them

Authentication plugin

DDS:Auth:PKI-DH uses a trusted identity certificate authority and X.509 v3 certificates in PEM format. Each participant is configured with the identity CA certificate, its own identity certificate and its private key. Two participants run a three message handshake (request, reply, final) over the builtin DCPSParticipantStatelessMessage topic, verify each other's certificates against the identity CA, check revocation through a certificate revocation list (CRL) or an OCSP responder, and derive a shared secret used to exchange keys over DCPSParticipantVolatileMessageSecure.

FunctionAlgorithms listed in v1.2Status in v1.2
Digital signatureRSASSA-PSS-MGF1SHA256+2048+SHA256, RSASSA-PKCS1-V1_5+2048+SHA256, ECDSA+P256+SHA256Deprecated
Digital signatureECDSA+P384+SHA384Listed, not deprecated
Key establishmentDHE+MODP-2048-256, ECDHE-CEUM+P256Deprecated
Key establishmentECDHE-CEUM+P384Listed, not deprecated
SymmetricAES128+GCM, AES256+GCM, and GMAC only variantsListed

The governance document can restrict which of these are acceptable through allowed_crypto_algorithms, with entries for digital_signature, digital_signature_identity_trust_chain, key_establishment and symmetric_cipher. Products built against 1.1 may not yet support the full 1.2 set, so test interoperability before tightening.

Certificate and CA management

  • Two CA roles: the identity CA issues participant certificates; the permissions CA signs the governance and permissions documents. They can be the same CA, but separating them limits the impact of either key leaking.
  • Keep CA keys off devices: the SROS2 keystore puts the identity CA private key under private/. Only the enclave material (certificate, key, signed documents, CA certificates) should ship to a robot or controller.
  • Plan revocation: PKI-DH checks CRLs or OCSP, and SROS2 documents CRL support for enclaves. A disconnected robot cannot reach an OCSP responder, so distribute CRLs as part of the deployment.
  • Rotate before expiry: device certificates and the permissions document validity window both expire. Treat them as machine identities with an owner and renewal process. See the Machine Identity, PKI and Certificate Lifecycle Guide.
  • PSK mode: the 1.2 PSK builtins let every participant share one pre-shared secret. DDS:Auth:PSK treats remote participants as unauthenticated, so PSK gives message protection, not per participant identity. Use it for bootstrapping traffic or very constrained devices, not as a substitute for certificates.

Access control: governance and permissions documents

Both documents are XML, validated against OMG schemas and signed by the permissions CA in S/MIME format. A participant presents its signed permissions document during authentication, so peers can enforce it too.

Governance document

ElementLevelWhat it controls
allow_unauthenticated_participantsDomainWhether participants that fail or skip authentication may still match non-protected topics
enable_join_access_controlDomainWhether the permissions document is checked before a participant may join the domain
discovery_protection_kindDomainProtection of secure endpoint discovery traffic
liveliness_protection_kindDomainProtection of liveliness messages
rtps_protection_kindDomainProtection of whole RTPS messages
rtps_psk_protection_kindDomainPre-shared key protection for messages not covered by exchanged keys, including bootstrap (1.2)
enable_key_revisionDomainWhether key revisions can be activated
topic_expressionTopicWhich topics the rule applies to (wildcards allowed)
enable_discovery_protection, enable_liveliness_protectionTopicWhether the topic's discovery and liveliness use the secure builtin topics
enable_read_access_control, enable_write_access_controlTopicWhether permissions are checked to read or write
metadata_protection_kind, data_protection_kindTopicProtection of submessages and of the serialised payload

Protection kinds are NONE, SIGN, ENCRYPT, SIGN_WITH_ORIGIN_AUTHENTICATION and ENCRYPT_WITH_ORIGIN_AUTHENTICATION. Domain rules and topic rules are applied first match wins in document order, so put specific topic rules before a catch all * rule. The SROS2 default governance file is a sensible baseline: unauthenticated participants disallowed, join access control on, discovery and liveliness encrypted, RTPS messages signed and every topic encrypted with read and write access control.

Permissions document

  • Grant: one per participant identity, matched by subject_name (the certificate subject) or subject_name_expression.
  • Validity: not_before and not_after; an expired document stops the participant from matching.
  • Rules: allow_rule and deny_rule blocks, each naming domains and publish, subscribe or relay actions with topics, partitions and data_tags conditions. Conditions combine with AND; entries within one condition combine with OR.
  • Default: ALLOW or DENY when no rule matches. If the default is missing the specification treats it as DENY. Always write DENY explicitly.

Write permissions per participant, not per system: a camera node should publish only its image topics, a planner should subscribe to them and publish only plan topics. This is least privilege for machine identities, applied at topic level.

Cryptographic plugin

DDS:Crypto:AES-GCM-GMAC uses AES-GCM for authenticated encryption, or GMAC for integrity only, with 128 or 256 bit keys. It can protect three layers, chosen through the governance protection kinds.

  • Payload (data_protection_kind): the serialised user data. Encrypted end to end between writer and reader, so a relay or recording service that forwards data cannot read it without keys.
  • Submessage (metadata_protection_kind): RTPS submessages, including sequence numbers and heartbeats, which protects against forged Heartbeat attacks the specification describes.
  • Message (rtps_protection_kind): the whole RTPS message between participants.

The origin authentication variants add receiver specific message authentication codes, so one authorised reader cannot forge messages that appear to come from the writer to other readers. Session keys are replaced when max_blocks_per_session would be exceeded, and the specification defines key revision so new master keys can be activated without rebuilding the domain.

Performance trade-offs

ChoiceCostWhen it is worth it
SIGN instead of ENCRYPTLower CPU, data visible on the wireNon-confidential telemetry where integrity matters most
Origin authenticationOne extra MAC per receiver per message, growing with reader countSafety relevant commands with several readers
Data protection plus RTPS protectionDouble cryptographic processingUntrusted networks, or where metadata must be hidden
Discovery protection on every topicSlower discovery and more handshake traffic at start upSystems where topic names reveal mission or capability
Large domains with PKI-DHHandshake per participant pair, so start up cost grows quickly with node countAlways for authentication; split large systems into domains or use partitions

The specification makes no performance claims, and results depend on the implementation and hardware. Measure latency and CPU on target hardware with your actual topic rates, starting with GMAC on high rate sensor topics and ENCRYPT on commands and sensitive data.

Logging and data tagging

DDS:Logging:DDS_LogTopic writes security events to a file and, if distribute is set, publishes them on the topic DDS:Security:LogTopicV2 (the older DDS:Security:LogTopic is optional in 1.2). Options are log_level, log_file and distribute, with severities from EMERGENCY to DEBUG. Reading the log topic needs a grant in the permissions document, so give it only to your monitoring participant.

Monitor: authentication failures and certificate validation errors, permission denials for publish or subscribe, participants matching with unexpected subject names, certificate and permissions document expiry dates and plugin load failures at start up. Forward events to your SIEM; see the OT Security Guide for the monitoring architecture.

Metrics: percentage of participants running with security enforced; percentage of topics with access control enabled; days until the nearest certificate or permissions expiry; count of permission denials per week (a spike signals misconfiguration or probing); time to revoke a compromised device's certificate across the fleet.

Data tagging lets permissions depend on labels attached to writers and readers. An allow condition matches when the entity's tags are a subset of the listed tags; a deny condition matches when they intersect. Use tags to separate classification levels or tenants on shared topics.

ROS 2 SROS2 considerations

SROS2 is the ROS 2 tooling that generates DDS Security artefacts. Its documentation states it has been tested with Eclipse Cyclone DDS, eProsima Fast DDS and RTI Connext (implementations listed alphabetically), and that secure communication between different DDS vendors is not supported.

  1. Create a keystore: ros2 security create_keystore creates the CA material. Keep it on a build or provisioning host, not on robots.
  2. Create enclaves: ros2 security create_enclave issues a certificate and key per enclave path. Use one enclave per node or per trust boundary, not one for the whole robot.
  3. Add access control: ros2 security create_permission turns a policy file into signed permissions. Restrict each enclave to the topics, services and actions it needs.
  4. Enforce: set ROS_SECURITY_ENABLE=true, ROS_SECURITY_STRATEGY=Enforce and ROS_SECURITY_KEYSTORE. Use Enforce so a node that cannot find its security files fails rather than starting without security.
  5. Test: confirm encrypted traffic in a packet capture, confirm a node is refused on a topic outside its policy, then roll out by robot or cell. Roll back by redeploying the previous signed permissions, not by disabling security.
  6. Revoke: generate a CRL from the identity CA and distribute it with enclave files.

Command line tools need an enclave too: SROS2 uses ROS_SECURITY_ENCLAVE_OVERRIDE for this. Give debugging enclaves narrow, read only permissions and remove them from production. For the broader robotics threat picture see the Robotics Security Guide.

Common failure patterns

  • Authentication only: certificates deployed but no access control, so any authenticated node can publish commands on any topic.
  • Permissive defaults: allow_unauthenticated_participants true, a permissions default of ALLOW, or a leading * topic rule that shadows stricter rules because of first match evaluation.
  • CA keys on devices: the whole keystore copied to robots, so one stolen device can mint new identities and sign new permissions.
  • Silent fallback: ROS 2 running without Enforce, so nodes start insecure when files are missing.
  • Expired documents in the field: certificates or permissions validity windows lapse on deployed systems that cannot be updated quickly, forcing emergency workarounds.
  • Assuming discovery is hidden: participant announcements always reveal addresses, ports and vendor IDs, and topic names leak unless discovery protection is on.

Framework mapping

DDS Security featureNIST SP 800-53 Rev 5Threat addressed (ATT&CK)
PKI-DH participant authenticationIA-3 Device Identification and Authentication; IA-5(2) Public Key-based AuthenticationT1557 Adversary-in-the-Middle
Governance and permissions enforcementAC-3 Access Enforcement; AC-4 Information Flow EnforcementUnauthorised publish or subscribe
AES-GCM-GMAC protectionSC-8 Transmission Confidentiality and Integrity; SC-8(1) Cryptographic ProtectionT1040 Network Sniffing
Identity and permissions CAs, key revisionSC-12 Cryptographic Key Establishment and Management; SC-17 Public Key Infrastructure CertificatesForged identities
Logging pluginAU-2 Event LoggingDetection of probing and misconfiguration

In industrial deployments, place DDS domains within the zones and conduits of your IEC 62443 Guide design.

Practitioner checklist

  • Confirm which DDS Security version your implementation supports and whether all nodes use the same vendor.
  • Run separate identity and permissions CAs, keep their keys offline and ship only enclave material to devices.
  • Set allow_unauthenticated_participants to false and enable_join_access_control to true.
  • Write per participant permissions with an explicit DENY default and specific topic rules before any wildcard.
  • Choose protection kinds per topic: ENCRYPT for commands and sensitive data, origin authentication where several readers act on commands.
  • Prefer ECDSA P-384 and ECDHE P-384 for new deployments where your implementation supports them.
  • Distribute CRLs and track certificate and permissions expiry dates.
  • Enable the logging plugin and forward events to monitoring.
  • In ROS 2, set ROS_SECURITY_STRATEGY=Enforce and remove debugging enclaves from production.
  • Benchmark latency and CPU on target hardware before and after enabling protection.

Standards and references

Related NHI Mgmt Group resources: Embodied AI Agent Identity · Robotics Security Guide · Machine Identity, PKI and Certificate Lifecycle Guide · mTLS Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.