Skip to content

fix(security): keep each crew apart from the others and from Botloft's data - #193

Merged
httpsphl merged 1 commit into
mainfrom
fix/crew-isolation
Oct 5, 2026
Merged

httpsphl merged 1 commit into
mainfrom
fix/crew-isolation

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Crew isolation audit follow-up. The MCP tools were already scoped to the caller's crew; these were the gaps around them:

  1. Work folder: a crew could choose another crew's folder (or one inside or around it), so its bots read and loaded the other crew's files and memory. Now refused, archived crews included; inside the bots' folders only the crew's own folder is allowed.
  2. The bot's own file tools: settings.json now denies Read and Edit on Botloft's data folder (database with every crew's chats, browser profiles, logs) and on every other crew's folders. A folder that holds one of the crew's own is left out, since a deny would win. Rewritten on every start.
  3. share_file / files panel: a file the bot wrote behind those fences no longer counts as its own.
  4. Browser: no page may open the DevTools port of any bot's browser (read from each profile's DevToolsActivePort), in any mode; other localhost addresses work as before.

Known limit, written in spec 13: a script run in the terminal can still read outside the fences; real isolation needs an OS sandbox.

Real Claude Code check (2.1.287, bypass mode, Haiku): Read and Write in a denied folder, also passed with --add-dir, both failed with "denied by your permission settings" and showed in permission_denials. Recorded in spec 19.

Tests: tests/crew_isolation.rs (folders refused, settings deny the other crew and Botloft's data), unit tests for fences, choose, loopback_port and the port files.

…s data

- A crew's work folder can no longer be inside, or hold, another crew's
  folder or chosen work folder; inside the bots' folders, only in its own.
- Each bot's settings.json now denies Read and Edit on Botloft's data
  folder and on every other crew's folders. Checked with the real Claude
  Code: the rules hold in bypass mode, even for an --add-dir folder.
- A file the bot wrote behind those fences no longer counts as its own
  for share_file and the files panel.
- No page may open the DevTools port of a bot's browser, in any mode.

Spec 5, 7.5, 8.4, 13, 19 and 21.5.
@httpsphl
httpsphl enabled auto-merge October 5, 2026 15:09
@httpsphl
httpsphl merged commit f526882 into main Oct 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant