
ROS 2 DDS security research test environment, based on ROS 2 Foxy.
This project demonstrates a privilege escalation vulnerability in the ROS 2 SROS2 security framework. By modifying signed permission files, an attacker can cause a node to subscribe to topics it should not be allowed to subscribe to.
docker build -t dds-test .
docker run -it dds-test ./poc.sh
The poc.sh script performs the following steps:
ros2 security toolchatter topic, listener can only subscribe to something_else topicchatter topicDockerfile - ROS 2 Foxy environment configurationpoc.sh - PoC demonstration scriptBuild and run Docker vulnerability environment

Run PoC

PoC Running
Configuration file description:

Normal Situation
listener cannot receive messages published by talker
Start Attack

Effect
listener can receive messages published by talker