Marks / Execution controls / Credential handling
openclaw · Credential handling
Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking
Level
Criteria for this column
- 0
Full environment inherited, credentials stored in plaintext readable by agent code, no filtering
- 1
Some protection (keychain option, redaction of output, per-command secret injection), but the full environment is still inherited by default
- 2
Default denylist filtering of the environment, but known provider keys or credential files remain reachable by agent code
default - 3
Default cleared environment plus allowlist for agent processes; credential stores may still be readable on the same filesystem
best - 4
Level 3, plus provider credentials held outside the agent's reach (separate process or broker) and auxiliary processes (MCP stdio) also get an allowlisted environment
What the source review found
Host exec inherits the Gateway env minus a denylist (AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL, gateway credentials). Provider *_API_KEY names are not on that list, so they pass. Docker sandbox env defaults to LANG only and blocks forwarding of *_API_KEY/TOKEN/PASSWORD/SECRET. Log redaction is on by default; tool output sent to the model is not redacted. [opt: egress-proxy secret substitution]. X85X86X87X88X89
Pinned evidence
Cited by the mark
- X85
host exec env: copy all keys except blocked ones
- X86
blocked: AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL (no *_API_KEY)
openclaw/openclaw src/infra/host-env-security-policy.json L256-L263
- X87
sandbox/SSH forwarding blocks *_API_KEY/TOKEN/PASSWORD/SECRET names
openclaw/openclaw src/agents/sandbox/sanitize-env-vars.ts L15-L19
Also cited by the review finding
- X88
log redaction mode tools by default
- X89
[opt] egress proxy via HTTP(S)_PROXY env
openclaw/openclaw src/secrets/egress-proxy/environment.ts L3-L13
Two independent graders
- Grader A
- 2 / 3
- Grader B
- 2 / 3
- Final
- 2 / 3