Skip to content

Comments

security: add mDNS discovery config to reduce information disclosure#1882

Merged
steipete merged 2 commits intoopenclaw:mainfrom
orlyjamie:fix/mdns-info-disclosure
Jan 26, 2026
Merged

security: add mDNS discovery config to reduce information disclosure#1882
steipete merged 2 commits intoopenclaw:mainfrom
orlyjamie:fix/mdns-info-disclosure

Conversation

@orlyjamie
Copy link
Contributor

mDNS broadcasts can expose sensitive operational details like filesystem paths (cliPath) and SSH availability (sshPort) to anyone on the local network. This information aids reconnaissance and should be minimized for gateways exposed beyond trusted networks.

Example..

https://www.shodan.io/search?query=clawdbot
image

Changes:

  • Add discovery.mdns.enabled config option to disable mDNS entirely
  • Add discovery.mdns.minimal option to omit cliPath/sshPort from TXT records
  • Update security docs with operational security guidance

Minimal mode still broadcasts enough for device discovery (role, gatewayPort, transport) while omitting details that help map the host environment. Apps that need CLI path can fetch it via the authenticated WebSocket.

orlyjamie and others added 2 commits January 26, 2026 13:19
mDNS broadcasts can expose sensitive operational details like filesystem
paths (cliPath) and SSH availability (sshPort) to anyone on the local
network. This information aids reconnaissance and should be minimized
for gateways exposed beyond trusted networks.

Changes:
- Add discovery.mdns.enabled config option to disable mDNS entirely
- Add discovery.mdns.minimal option to omit cliPath/sshPort from TXT records
- Update security docs with operational security guidance

Minimal mode still broadcasts enough for device discovery (role, gatewayPort,
transport) while omitting details that help map the host environment.
Apps that need CLI path can fetch it via the authenticated WebSocket.
@steipete steipete force-pushed the fix/mdns-info-disclosure branch from ccf00f0 to 15d4738 Compare January 26, 2026 13:32
@steipete steipete merged commit a1f9825 into openclaw:main Jan 26, 2026
41 of 43 checks passed
@steipete
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build (pnpm test skipped per request)
  • Land commit: 15d4738
  • Merge commit: a1f9825

Thanks @orlyjamie!

@orlyjamie
Copy link
Contributor Author

Likewise thanks @steipete