惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
雷峰网
雷峰网
量子位
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
T
Tailwind CSS Blog
月光博客
月光博客
博客园 - 【当耐特】
博客园_首页
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
人人都是产品经理
人人都是产品经理
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: clarify sub-agent security boundaries · openclaw/op...
steipete · 2026-05-07 · via Recent Commits to openclaw:main

@@ -126,6 +126,65 @@ Use this as the quick model when triaging risk:

126126

| Node pairing and node commands | Operator-level remote execution on paired devices | "Remote device control should be treated as untrusted user access by default" |

127127

| `gateway.nodes.pairing.autoApproveCidrs` | Opt-in trusted-network node enrollment policy | "A disabled-by-default allowlist is an automatic pairing vulnerability" |

128128129+

## Multi-agent and sub-agent boundaries

130+131+

OpenClaw can run many agents inside one Gateway, but those agents still sit

132+

inside the same trusted-operator boundary unless you split the deployment by

133+

Gateway, OS user, host, or sandbox. Treat sub-agent delegation as a tool-policy

134+

and sandboxing decision, not as a hostile multi-tenant authorization layer.

135+136+

Expected behavior inside one trusted Gateway:

137+138+

- An authenticated operator can route work to sessions and agents they are

139+

allowed to use by config.

140+

- `sessionKey`, session id, labels, and sub-agent session keys select

141+

conversation context. They are not bearer credentials and are not per-user

142+

authorization boundaries.

143+

- Sub-agents have separate sessions by default. Native `sessions_spawn` uses

144+

isolated context unless the caller explicitly asks for `context: "fork"`;

145+

thread-bound follow-up sessions use forked context because they continue the

146+

conversation thread.

147+

- A forked sub-agent can see the transcript context it was deliberately given.

148+

That is expected. It becomes a security issue only if it receives context that

149+

policy said it must not receive.

150+

- Tool access comes from the effective profile, channel/group/provider policy,

151+

sandbox policy, per-agent policy, and the sub-agent restriction layer. A broad

152+

tool profile intentionally gives broad capability.

153+

- Sub-agent auth profiles are resolved by target agent id. Main-agent auth can

154+

be available as fallback unless you split credentials/deployments; do not rely

155+

on sub-agent identity alone for strong secret isolation.

156+157+

What counts as a real boundary bypass:

158+159+

- `sessions_spawn` works even though the effective tool policy denied it.

160+

- A child runs unsandboxed even though the requester is sandboxed or the call

161+

required `sandbox: "require"`.

162+

- A child receives session tools, system tools, or target-agent access that the

163+

resolved config denied.

164+

- A leaf sub-agent controls, kills, steers, or messages sibling sessions that it

165+

did not spawn.

166+

- A sub-agent sees transcript, memory, credentials, or files that were excluded

167+

by an explicit policy or sandbox boundary.

168+

- A Gateway/API caller without the required Gateway auth or trusted-proxy/device

169+

identity can trigger agent or tool execution.

170+171+

Hardening knobs:

172+173+

- Keep `sessions_spawn` denied unless an agent truly needs delegation.

174+

- Prefer `tools.profile: "messaging"` or another narrow profile for agents that

175+

talk to external channels.

176+

- Set `agents.list[].subagents.requireAgentId: true` for agents that may spawn

177+

work, so target selection is explicit.

178+

- Keep `agents.defaults.subagents.allowAgents` and

179+

`agents.list[].subagents.allowAgents` narrow; avoid `["*"]` for agents that

180+

receive untrusted input.

181+

- Use `tools.subagents.tools.allow` to make sub-agent tools allow-only instead

182+

of inheriting a broad parent profile.

183+

- For workflows that must remain sandboxed, use `sessions_spawn` with

184+

`sandbox: "require"`.

185+

- Use separate gateways, OS users, hosts, browser profiles, and credentials when

186+

agents or users are mutually untrusted.

187+129188

## Not vulnerabilities by design

130189131190

<Accordion title="Common findings that are out of scope">

@@ -139,6 +198,10 @@ a real boundary bypass is demonstrated:

139198

- Claims that classify normal operator read-path access (for example

140199

`sessions.list` / `sessions.preview` / `chat.history`) as IDOR in a

141200

shared-gateway setup.

201+

- Claims that treat expected `context: "fork"` transcript inheritance as a

202+

boundary bypass when the requester explicitly forked that context.

203+

- Claims that treat broad sub-agent tool access as a bypass when the configured

204+

profile or allowlist intentionally granted those tools.

142205

- Localhost-only deployment findings (for example HSTS on a loopback-only

143206

gateway).

144207

- Discord inbound webhook signature findings for inbound paths that do not