You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 83aad86
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/security.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ It also emits `security.trust_model.multi_user_heuristic` when config suggests l
33
33
For intentional shared-user setups, the audit guidance is to sandbox all sessions, keep filesystem access workspace-scoped, and keep personal/private identities or credentials off that runtime.
34
34
It also warns when small models (`<=300B`) are used without sandboxing and with web/browser tools enabled.
35
35
For webhook ingress, it warns when `hooks.token` reuses the Gateway token, when `hooks.token` is short, when `hooks.path="/"`, when `hooks.defaultSessionKey` is unset, when `hooks.allowedAgentIds` is unrestricted, when request `sessionKey` overrides are enabled, and when overrides are enabled without `hooks.allowedSessionKeyPrefixes`.
36
-
It also warns when sandbox Docker settings are configured while sandbox mode is off, when `gateway.nodes.denyCommands` uses ineffective pattern-like/unknown entries (exact node command-name matching only, not shell-text filtering), when `gateway.nodes.allowCommands` explicitly enables dangerous node commands, when global `tools.profile="minimal"` is overridden by agent tool profiles, when open groups expose runtime/filesystem tools without sandbox/workspace guards, and when installed plugin tools may be reachable under permissive tool policy.
36
+
It also warns when sandbox Docker settings are configured while sandbox mode is off, when `gateway.nodes.denyCommands` uses ineffective pattern-like/unknown entries (exact node command-name matching only, not shell-text filtering), when `gateway.nodes.allowCommands` explicitly enables dangerous node commands, when global `tools.profile="minimal"` is overridden by agent tool profiles, when write/edit tools are disabled but `exec` is still available without a constraining sandbox filesystem boundary, when open groups expose runtime/filesystem tools without sandbox/workspace guards, and when installed plugin tools may be reachable under permissive tool policy.
37
37
It also flags `gateway.allowRealIpFallback=true` (header-spoofing risk if proxies are misconfigured) and `discovery.mdns.mode="full"` (metadata leakage via mDNS TXT records).
38
38
It also warns when sandbox browser uses Docker `bridge` network without `sandbox.browser.cdpSourceRange`.
39
39
It also flags dangerous sandbox Docker network modes (including `host` and `container:*` namespace joins).
Copy file name to clipboardExpand all lines: docs/gateway/sandbox-vs-tool-policy-vs-elevated.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ Rules of thumb:
64
64
-`deny` always wins.
65
65
- If `allow` is non-empty, everything else is treated as blocked.
66
66
- Tool policy is the hard stop: `/exec` cannot override a denied `exec` tool.
67
+
- Tool policy filters tool availability by name; it does not inspect side effects inside `exec`. If `exec` is allowed, denying `write`, `edit`, or `apply_patch` does not make shell commands read-only.
67
68
-`/exec` only changes session defaults for authorized senders; it does not grant tool access.
68
69
Provider tool keys accept either `provider` (e.g. `google-antigravity`) or `provider/model` (e.g. `openai/gpt-5.4`).
69
70
@@ -88,6 +89,7 @@ Available groups:
88
89
-`group:runtime`: `exec`, `process`, `code_execution` (`bash` is accepted as
For read-only agents, deny `group:runtime` as well as mutating filesystem tools unless sandbox filesystem policy or a separate host boundary enforces the read-only constraint.
Copy file name to clipboardExpand all lines: docs/gateway/security/audit-checks.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ exhaustive):
91
91
|`tools.exec.host_sandbox_no_sandbox_defaults`| warn |`exec host=sandbox` fails closed when sandbox is off |`tools.exec.host`, `agents.defaults.sandbox.mode`| no |
92
92
|`tools.exec.host_sandbox_no_sandbox_agents`| warn | Per-agent `exec host=sandbox` fails closed when sandbox is off |`agents.list[].tools.exec.host`, `agents.list[].sandbox.mode`| no |
93
93
|`tools.exec.security_full_configured`| warn/critical | Host exec is running with `security="full"`|`tools.exec.security`, `agents.list[].tools.exec.security`| no |
94
+
|`tools.exec.fs_tools_disabled_but_exec_enabled`| warn | Filesystem tool policy does not make shell execution read-only |`tools.deny`, `agents.list[].tools.deny`, `agents.*.sandbox.workspaceAccess`| no |
Copy file name to clipboardExpand all lines: docs/gateway/security/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,7 @@ Advisory triage guidance:
220
220
221
221
-**Inbound access** (DM policies, group policies, allowlists): can strangers trigger the bot?
222
222
-**Tool blast radius** (elevated tools + open rooms): could prompt injection turn into shell/file/network actions?
223
+
-**Exec filesystem drift**: are mutating filesystem tools denied while `exec`/`process` remain available without sandbox filesystem constraints?
223
224
-**Exec approval drift** (`security=full`, `autoAllowSkills`, interpreter allowlists without `strictInlineEval`): are host-exec guardrails still doing what you think they are?
224
225
-`security="full"` is a broad posture warning, not proof of a bug. It is the chosen default for trusted personal-assistant setups; tighten it only when your threat model needs approval or allowlist guardrails.
Copy file name to clipboardExpand all lines: docs/gateway/tools-invoke-http-api.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ If a tool is not allowed by policy, the endpoint returns **404**.
97
97
Important boundary notes:
98
98
99
99
- Exec approvals are operator guardrails, not a separate authorization boundary for this HTTP endpoint. If a tool is reachable here via Gateway auth + tool policy, `/tools/invoke` does not add an extra per-call approval prompt.
100
+
- If `exec` is reachable here, treat it as a mutating shell surface. Denying `write`, `edit`, `apply_patch`, or HTTP filesystem-write tools does not make shell execution read-only.
100
101
- Do not share Gateway bearer credentials with untrusted callers. If you need separation across trust boundaries, run separate gateways (and ideally separate OS users/hosts).
101
102
102
103
Gateway HTTP also applies a hard deny list by default (even if session policy allows the tool):
Copy file name to clipboardExpand all lines: docs/tools/exec-approvals.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,8 @@ Exec approvals are enforced locally on the execution host:
56
56
57
57
- Gateway-authenticated callers are trusted operators for that Gateway.
58
58
- Paired nodes extend that trusted operator capability onto the node host.
59
-
- Exec approvals reduce accidental execution risk, but are **not** a per-user auth boundary.
59
+
- Exec approvals reduce accidental execution risk, but are **not** a per-user auth boundary or filesystem read-only policy.
60
+
- Once approved, a command can mutate files according to the selected host or sandbox filesystem permissions.
60
61
- Approved node-host runs bind canonical execution context: canonical cwd, exact argv, env binding when present, and pinned executable path when applicable.
61
62
- For shell scripts and direct interpreter/runtime file invocations, OpenClaw also tries to bind one concrete local file operand. If that bound file changes after approval but before execution, the run is denied instead of executing drifted content.
62
63
- File binding is intentionally best-effort, **not** a complete semantic model of every interpreter/runtime loader path. If approval mode cannot identify exactly one concrete local file to bind, it refuses to mint an approval-backed run instead of pretending full coverage.
Copy file name to clipboardExpand all lines: docs/tools/exec.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@ read_when:
6
6
title: "Exec tool"
7
7
---
8
8
9
-
Run shell commands in the workspace. Supports foreground + background execution via `process`.
10
-
If `process` is disallowed, `exec` runs synchronously and ignores `yieldMs`/`background`.
9
+
Run shell commands in the workspace. `exec` is a mutating shell surface: commands can create, edit, or delete files wherever the selected host or sandbox filesystem permits. Disabling OpenClaw filesystem tools such as `write`, `edit`, or `apply_patch` does not make `exec` read-only.
10
+
11
+
Supports foreground + background execution via `process`. If `process` is disallowed, `exec` runs synchronously and ignores `yieldMs`/`background`.
11
12
Background sessions are scoped per agent; `process` only sees sessions from the same agent.
Copy file name to clipboardExpand all lines: docs/tools/multi-agent-sandbox-tools.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ Legacy `agent.*` configs are migrated by `openclaw doctor`; prefer `agents.defau
300
300
}
301
301
```
302
302
</Tab>
303
-
<Tabtitle="Safe execution (no file modifications)">
303
+
<Tabtitle="Shell execution with filesystem tools disabled">
304
304
```json
305
305
{
306
306
"tools": {
@@ -309,6 +309,11 @@ Legacy `agent.*` configs are migrated by `openclaw doctor`; prefer `agents.defau
309
309
}
310
310
}
311
311
```
312
+
313
+
<Warning>
314
+
This policy disables OpenClaw filesystem tools, but `exec` is still a shell and can write files wherever the selected host or sandbox filesystem allows. For a read-only agent, deny `exec` and `process`, or combine shell access with sandbox filesystem controls such as `agents.defaults.sandbox.workspaceAccess: "ro"` or `"none"`.
0 commit comments