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
Agent can self-modify openclaw.json to bypass auth and CORS controls #514
An AI agent running inside the NemoClaw sandbox can modify openclaw.json to weaken its own security controls. This was publicly reported by @ZackKorman on X on 2026-03-20 (1.7K views).
Attack chain
Agent uses its standard write/edit/exec tools to modify /sandbox/.openclaw/openclaw.json
Changes gateway.auth.token to a trivial value (e.g. "123")
Changes gateway.controlUi.allowedOrigins to ["*"]
Restarts the gateway via exec
Result: any website the user visits can now connect to their bot via websocket and issue commands
Root cause
openclaw.json is inside the /sandbox read_write zone defined in nemoclaw-blueprint/policies/openclaw-sandbox.yaml (line 29), and no tool-level deny list prevents the agent from writing to it. After startup, the config file remains writable by the sandbox user.
Proposed fix (minimum)
After fix_openclaw_config completes in scripts/nemoclaw-start.sh, change ownership and permissions so the agent cannot modify the file:
The gateway only needs read access after startup, and the agent process runs as sandbox user per the sandbox policy, so it cannot modify a root-owned read-only file.
Defense-in-depth (follow-up)
Add .openclaw/ paths to SandboxToolPolicy.deny for write/edit/exec tools
Move config outside /sandbox writable zone to a read-only mount
Change Landlock from best_effort to enforce
Re-evaluate allowInsecureAuth: True and dangerouslyDisableDeviceAuth: True defaults
Activity
fix: lock openclaw.json after startup to prevent agent config tampering
fix: lock gateway config via Landlock filesystem policy (#514)
fix: lock gateway config via Landlock filesystem policy (#555)
fix: resolve openclaw.json permissions conflict and scope Dockerfile …
fix: resolve openclaw.json permissions conflict and scope Dockerfile …
fix: make openclaw.json immutable at runtime, move config to build ti…
fix(sandbox): allow openclaw.json writes for channel configuration (f…
harden sandbox config: tool policy deny list, move config to /etc, lo…
harden sandbox config: tool policy deny list, move config to /etc, lo…
harden sandbox config: tool policy deny list, move config to /etc, lo…
harden sandbox config: tool policy deny list, move config to /etc, lo…
9 remaining items
fix(sandbox): add missing exec-approvals.json symlink (NVIDIA#1027)
fix(sandbox): add missing exec-approvals.json symlink (NVIDIA#1027)
fix: harden sandbox against agent config tampering (defense-in-depth) (…
fix: harden sandbox against agent config tampering (defense-in-depth) (…
test: add regression guards for sandbox config provisioning (NVIDIA#1027
fix(onboard): clarify --resume error and add NEMOCLAW_AGENT_TIMEOUT (#…
test: add regression guards for sandbox config provisioning (#1027, #514
test: add regression guards for sandbox config provisioning (NVIDIA#1027
build(fabric): pin Fabric v0.6.0-rc.1 for runtime health checks (#13946)