[Paper Review] Credential Masquerading and OpenSSL Spy: Exploring ROS 2 using DDS security
This paper identifies critical security vulnerabilities in ROS 2's DDS security implementation, specifically credential masquerading and OpenSSL spy attacks, by exploiting misconfigured security files and runtime manipulation of OpenSSL. The authors demonstrate how attackers can bypass authentication and exfiltrate credentials in user-space ROS 2 systems, highlighting the lack of runtime integrity checks and proposing mitigation strategies for robotic platforms deploying DDS security.
The trend toward autonomous robot deployments is on an upward growth curve. These robots are undertaking new tasks and are being integrated into society. Examples of this trend are autonomous vehicles, humanoids, and eldercare. The movement from factory floors to streets and homes has also increased the number of vulnerabilities that adversaries can utilize. To improve security, Robot Operating System (ROS) 2 has standardized on using Data Distributed Services (DDS) as the messaging layer, which supports a security standard for protecting messages between parties with access control enforcement. DDS security is dependent on the OpenSSL and a security configuration file that specifies sensitive data location. DSS Security assumes that the underlining Operating System (OS) is secure and that the dependencies are consistent, but ongoing integrity checks are not performed. This paper looks at two vulnerabilities that we exploit using an OpenSSL spy process and a security property file manipulation. An overview of each exploit is provided with an evaluation of mitigation technologies that may be employed in client computers, servers, and other areas. Since, ROS 2 and DDS run in user space, these processes are prone to vulnerabilities. We provide recommendations about mitigation technology, as currently autonomous platforms are being deployed without safe-guards for on or off-line threats. The Trust Platform Module (TPM) is new to robotic systems, but the standard usage model does not provide risk mitigation above the OS layer for the types of attacks we discuss.
Motivation & Objective
- To analyze the security assumptions in ROS 2's DDS security stack, particularly the trust in user-space processes and system-level dependencies.
- To identify and demonstrate practical attack vectors—credential masquerading and OpenSSL spy attacks—against ROS 2's security configuration and OpenSSL integration.
- To evaluate the effectiveness of existing mitigation technologies, such as TPM, in protecting against runtime attacks on ROS 2 systems.
- To provide actionable recommendations for securing ROS 2 deployments against both online and offline threats in real-world autonomous robot applications.
Proposed method
- Exploiting the DDS security configuration file to manipulate credential paths and enable credential masquerading, allowing unauthorized access.
- Implementing an OpenSSL spy process that intercepts and logs cryptographic operations during TLS/DTLS handshakes in ROS 2's user-space communication.
- Demonstrating that the DDS security stack assumes OS-level trust and lacks runtime integrity verification of dependencies like OpenSSL.
- Using process injection and file manipulation techniques to subvert the security configuration without altering the core ROS 2 or DDS libraries.
- Evaluating the limitations of the Trust Platform Module (TPM) in mitigating attacks that occur above the OS layer in user-space environments.
- Conducting proof-of-concept exploits on a ROS 2 test system to validate the feasibility and impact of the identified vulnerabilities.
Experimental results
Research questions
- RQ1How can an attacker bypass DDS security in ROS 2 by manipulating the security configuration file to impersonate valid credentials?
- RQ2To what extent can an OpenSSL spy process intercept and log sensitive cryptographic data in ROS 2's user-space communication?
- RQ3Why are current mitigation mechanisms, such as the TPM, ineffective against attacks that occur entirely within the user space of ROS 2 systems?
- RQ4What are the key architectural weaknesses in ROS 2’s trust model that allow runtime manipulation of security-critical components?
- RQ5What practical mitigation strategies can be implemented to protect ROS 2 systems from credential-based and spy-based attacks?
Key findings
- An attacker can successfully perform credential masquerading by modifying the DDS security configuration file to point to a malicious credential, allowing unauthorized access to secure ROS 2 topics.
- An OpenSSL spy process can intercept and log TLS/DTLS handshake data, including private keys and certificates, in user-space, demonstrating a critical information leak vector.
- The DDS security stack assumes the OS and its dependencies are trustworthy, but does not perform runtime integrity checks, leaving systems vulnerable to manipulation.
- The Trust Platform Module (TPM) does not provide effective protection against these attacks because the exploitation occurs above the OS layer, outside the trusted execution environment.
- Current mitigation technologies, including standard cryptographic libraries and system-level hardening, are insufficient to defend against these specific user-space attacks in ROS 2.
- The research confirms that ROS 2 systems are exposed to both online and offline threats due to the lack of runtime verification of security-critical components.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.