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 8c2d5f9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(security): warn on main-scoped group rooms (#125054)
* fix(security): warn on main-scoped group rooms
* fix(security): ignore direct-only group scope bindings
* fix(security): honor group binding precedence
Copy file name to clipboardExpand all lines: docs/cli/security.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
@@ -30,7 +30,8 @@ If Gateway password auth is supplied only at startup, pass the same value with `
30
30
31
31
**DM/trust model**
32
32
33
-
- Warns when multiple DM senders share the main session and recommends secure DM mode: `session.dmScope="per-channel-peer"` (or `per-account-channel-peer` for multi-account channels) for shared inboxes. This is cooperative/shared-inbox hardening, not isolation for mutually untrusted operators; split trust boundaries with separate gateways (or separate OS users/hosts) for that. The same caveat applies to `session.groupScope: "main"` bindings, which merge every member of the matched room into the main session — reserve them for trusted rooms (see [Groups](/channels/groups#session-keys)).
33
+
- Warns when multiple DM senders share the main session and recommends secure DM mode: `session.dmScope="per-channel-peer"` (or `per-account-channel-peer` for multi-account channels) for shared inboxes. This is cooperative/shared-inbox hardening, not isolation for mutually untrusted operators; split trust boundaries with separate gateways (or separate OS users/hosts) for that.
34
+
- Emits `security.trust_model.group_scope_main` when global `session.groupScope="main"` or a binding override merges group/channel rooms into the main session. Every member of each matched room shares that context, so reserve this for trusted rooms (see [Groups](/channels/groups#session-keys)).
34
35
- Emits `security.trust_model.multi_user_heuristic` when config suggests likely shared-user ingress (for example open DM/group policy, configured group targets, or wildcard sender rules) — OpenClaw's default trust model is personal-assistant (one operator), not hostile multi-tenant isolation. For intentional shared-user setups: sandbox all sessions, keep filesystem access workspace-scoped, and keep personal/private identities or credentials off that runtime.
35
36
- Warns when small models (`<=300B` parameters) are used without sandboxing and with web/browser tools enabled.
'- session.groupScope="main" (global: all group/channel rooms unless a binding overrides it)',
1255
+
);
1256
+
}
1257
+
if(mainGroupScopes.length>0){
1258
+
findings.push({
1259
+
checkId: "security.trust_model.group_scope_main",
1260
+
severity: "warn",
1261
+
title: "Group rooms share the main session",
1262
+
detail:
1263
+
"The following group routing scopes merge room conversations into the agent main session:\n"+
1264
+
mainGroupScopes.join("\n")+
1265
+
"\nEvery member of each affected room shares the main-session context. Use this only for mutually trusted rooms.",
1266
+
remediation:
1267
+
'Use session.groupScope="per-group" globally and remove binding overrides, or reserve "main" for rooms whose members you trust: https://docs.openclaw.ai/channels/groups#session-keys',
0 commit comments