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
| Version | Published | Notes |
|---|---|---|
| 1.0 | August 2016 | First formal version |
| 1.1 | July 2018 | Widely implemented version referenced in many product docs |
| 1.2 | February 2026 | Current 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.
| SPI | Builtin plugin | What it does |
|---|---|---|
| Authentication | DDS: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 |
| AccessControl | DDS:Access:Permissions (and DDS:Access:PSK) | Enforces governance and permissions documents: who may join, publish, subscribe or relay |
| Cryptographic | DDS:Crypto:AES-GCM-GMAC (and DDS:Crypto:PSK) | Encrypts and authenticates data, metadata and whole RTPS messages; manages keys |
| Logging | DDS:Logging:DDS_LogTopic | Records security events to a file and optionally publishes them on a DDS topic |
| Data Tagging | No dedicated builtin; tags evaluated by the Permissions plugin | Associates 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.
| Function | Algorithms listed in v1.2 | Status in v1.2 |
|---|---|---|
| Digital signature | RSASSA-PSS-MGF1SHA256+2048+SHA256, RSASSA-PKCS1-V1_5+2048+SHA256, ECDSA+P256+SHA256 | Deprecated |
| Digital signature | ECDSA+P384+SHA384 | Listed, not deprecated |
| Key establishment | DHE+MODP-2048-256, ECDHE-CEUM+P256 | Deprecated |
| Key establishment | ECDHE-CEUM+P384 | Listed, not deprecated |
| Symmetric | AES128+GCM, AES256+GCM, and GMAC only variants | Listed |
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
| Element | Level | What it controls |
|---|---|---|
allow_unauthenticated_participants | Domain | Whether participants that fail or skip authentication may still match non-protected topics |
enable_join_access_control | Domain | Whether the permissions document is checked before a participant may join the domain |
discovery_protection_kind | Domain | Protection of secure endpoint discovery traffic |
liveliness_protection_kind | Domain | Protection of liveliness messages |
rtps_protection_kind | Domain | Protection of whole RTPS messages |
rtps_psk_protection_kind | Domain | Pre-shared key protection for messages not covered by exchanged keys, including bootstrap (1.2) |
enable_key_revision | Domain | Whether key revisions can be activated |
topic_expression | Topic | Which topics the rule applies to (wildcards allowed) |
enable_discovery_protection, enable_liveliness_protection | Topic | Whether the topic's discovery and liveliness use the secure builtin topics |
enable_read_access_control, enable_write_access_control | Topic | Whether permissions are checked to read or write |
metadata_protection_kind, data_protection_kind | Topic | Protection 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) orsubject_name_expression. - Validity:
not_beforeandnot_after; an expired document stops the participant from matching. - Rules:
allow_ruleanddeny_ruleblocks, each namingdomainsandpublish,subscribeorrelayactions withtopics,partitionsanddata_tagsconditions. 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
DENYexplicitly.
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
| Choice | Cost | When it is worth it |
|---|---|---|
| SIGN instead of ENCRYPT | Lower CPU, data visible on the wire | Non-confidential telemetry where integrity matters most |
| Origin authentication | One extra MAC per receiver per message, growing with reader count | Safety relevant commands with several readers |
| Data protection plus RTPS protection | Double cryptographic processing | Untrusted networks, or where metadata must be hidden |
| Discovery protection on every topic | Slower discovery and more handshake traffic at start up | Systems where topic names reveal mission or capability |
| Large domains with PKI-DH | Handshake per participant pair, so start up cost grows quickly with node count | Always 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.
- Create a keystore:
ros2 security create_keystorecreates the CA material. Keep it on a build or provisioning host, not on robots. - Create enclaves:
ros2 security create_enclaveissues a certificate and key per enclave path. Use one enclave per node or per trust boundary, not one for the whole robot. - Add access control:
ros2 security create_permissionturns a policy file into signed permissions. Restrict each enclave to the topics, services and actions it needs. - Enforce: set
ROS_SECURITY_ENABLE=true,ROS_SECURITY_STRATEGY=EnforceandROS_SECURITY_KEYSTORE. Use Enforce so a node that cannot find its security files fails rather than starting without security. - 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.
- 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_participantstrue, a permissionsdefaultof 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 feature | NIST SP 800-53 Rev 5 | Threat addressed (ATT&CK) |
|---|---|---|
| PKI-DH participant authentication | IA-3 Device Identification and Authentication; IA-5(2) Public Key-based Authentication | T1557 Adversary-in-the-Middle |
| Governance and permissions enforcement | AC-3 Access Enforcement; AC-4 Information Flow Enforcement | Unauthorised publish or subscribe |
| AES-GCM-GMAC protection | SC-8 Transmission Confidentiality and Integrity; SC-8(1) Cryptographic Protection | T1040 Network Sniffing |
| Identity and permissions CAs, key revision | SC-12 Cryptographic Key Establishment and Management; SC-17 Public Key Infrastructure Certificates | Forged identities |
| Logging plugin | AU-2 Event Logging | Detection 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_participantsto false andenable_join_access_controlto 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=Enforceand remove debugging enclaves from production. - Benchmark latency and CPU on target hardware before and after enabling protection.
Standards and references
- Object Management Group: DDS Security specification
- Object Management Group: DDS Security 1.2 (PDF)
- ROS 2: SROS2 tools and documentation
- ROS 2: Try SROS2 in Linux
- NIST: SP 800-53 Rev 5, Security and Privacy Controls
- MITRE ATT&CK: T1557 Adversary-in-the-Middle
Related NHI Mgmt Group resources: Embodied AI Agent Identity · Robotics Security Guide · Machine Identity, PKI and Certificate Lifecycle Guide · mTLS Guide