Skip to content

Security register ​

Security issues found in guilds.run, fixed or still open. Unlike the other chapters, this one keeps history. Each entry says what was exposed, how it was fixed or what fixing it takes, and what risk remains. Entries are not removed once fixed. Newest first. Ids are never reused. A status is Open, Open, accepted (the risk is kept by design), Fixed with its date, or Closed with its date (the code that held the issue is removed).

IdIssueStatus
SEC-77A Cursor turn loads the plugins of the account it runs onOpen
SEC-76Cursor loaded a repository's MCP server on an approval stored in the agent's homeFixed 2026-11-17
SEC-75Work a harness turn started went on after the turn ended, and could push with a credential it had already readFixed 2026-11-17
SEC-74An agent on a key holds a git token and a clone on its machine, and what it reads can steer what it does with themOpen
SEC-73A repository an agent only reads, on a host other than GitHub, is read-only by its clone's push URL aloneOpen, accepted
SEC-72A sandbox on the hosted VM reached the metadata server, private addresses, and CaddyFixed 2026-11-16
SEC-71A sandbox on the hosted VM reached Cloud SQL's private address and every port of the VMFixed 2026-11-16
SEC-70Customers' harness logins sit in their agents' homes on the hosted VM and in its backupsOpen
SEC-69A subscription agent's MCP token crosses the hosted VM's Docker bridge in plain HTTPOpen, accepted
SEC-68Every organisation's sandboxes on the hosted VM reach the one MCP listenerOpen, accepted
SEC-67Cursor and Antigravity run a subscription agent's turn under their vendor's own system promptOpen, accepted
SEC-66A subscription agent's harness pushes to its repositories, and what it reads can steer the pushOpen
SEC-65An image attached to a subscription agent's message is a file every process on its machine readsOpen
SEC-64A subscription agent's MCP token lets any process on its machine call its Guilds toolsOpen
SEC-63On Docker Desktop every sandbox reaches the operator appOpen
SEC-62A subscription agent's harness holds its whole prompt beside its secrets and the networkOpen
SEC-61A repository's access token is long-lived and written to its agents' machineOpen
SEC-60Text holding a NUL or an unpaired surrogate failed the write of a messageFixed 2026-11-15
SEC-59Every member who saw a guild could change how many turns of tool results its agents' prompts keepFixed 2026-11-14
SEC-58A recipe captured from a private guild, and an apply into one, were open to every memberFixed 2026-11-03
SEC-57An operator could see a private guild's notes and files through an organisation rowFixed 2026-11-03
SEC-56Deleting a private guild showed the history of its notes and files to every operatorFixed 2026-11-03
SEC-55A note's or a file's reach came from its owner as well as its access listFixed 2026-11-02
SEC-54While a browse call runs, any process on the orchestrator's host can drive the agent's Chrome through its CDP bridgeOpen, accepted
SEC-53An agent's DevTools relay answers any process on its machine's container network without authenticationOpen, accepted
SEC-52The sandbox proxy sent a request to any host a proxied path namedFixed 2026-10-29
SEC-51A recipe capture copies the notes of private guilds its operator does not operateFixed 2026-10-28
SEC-50An operator's read of a Memory revision path is not limited to its organisationFixed 2026-10-28
SEC-49A run's diff and a code task's log were served unredacted when the agent's secrets could not be readFixed 2026-10-27
SEC-48A run that listed a login's tools for the first time was offered the ones that start OffFixed 2026-10-26
SEC-47GitHub content an agent reads through its tools can steer its writes to the login's repositoriesOpen
SEC-46Deleting an agent, a guild, or an organisation leaves its files' bytes in the blob storeOpen
SEC-45Shared files carry arbitrary bytes between agents and operatorsOpen, accepted
SEC-44A recipe preview confirms a private guild's table and its column typesOpen
SEC-43Studio shows a private guild's tables and records to operators who cannot see that guildFixed 2026-10-21
SEC-42A Task can embed a private guild's note that its runs and Studio then showFixed 2026-10-22
SEC-41An organisation could be left without an ownerFixed 2026-10-18
SEC-40A tool binding written before a server listed the tool turned it onFixed 2026-10-18
SEC-39An operator could take an agent's name in a guild they operateFixed 2026-10-18
SEC-38The Antigravity harness loads a repository's customisations and runs with its permission prompts offOpen
SEC-37Any organisation member can read and change a private guild's notes and databases through organisation-wide routesFixed 2026-10-18
SEC-36Evidence the Studio coach reads can steer a proposed routine that wakes an agent unattendedOpen, accepted
SEC-35Evidence the Studio coach reads can steer a proposal to widen an agent's accessOpen, accepted
SEC-34A Studio session kept working after its user could no longer see the guildFixed 2026-10-17
SEC-33Any organisation owner or admin can find users by name and add them without their consentOpen
SEC-32The harness log the app reads is redacted only with the agent's secret valuesClosed 2026-11-16
SEC-31Cursor runs a repository's hooksOpen, accepted
SEC-30Personal harness subscriptions used inside a shared organisation may fall outside the vendor's termsOpen
SEC-29A repository can carry configuration its coding harness loadsOpen
SEC-28A coding harness runs with its permission prompts offOpen
SEC-27Harness subscription tokens and logins are readable on the agent's machineOpen
SEC-26A member could place an agent beside a private guild's agentsFixed 2026-10-13
SEC-25The machine list named the agents and guilds of private guildsFixed 2026-10-13
SEC-24Agents on one machine can read each other's homes, tokens, and sessionsOpen, accepted
SEC-23A runtime connector may declare an instance key of its ownFixed 2026-10-10
SEC-22The GitHub App manifest callback takes a creation code from the browserFixed 2026-10-10
SEC-21Platform keys are written through the APIFixed 2026-10-10
SEC-20Connector code installed at runtime runs inside the orchestratorOpen, accepted
SEC-19A registry's index is unsigned, so verified is only that registry's wordFixed 2026-10-09 where REGISTRY_PUBLIC_KEY is set
SEC-18A connector installed at runtime could claim the box's credentialsFixed 2026-10-09
SEC-17An organisation's own MCP server makes the orchestrator call a URL it choseOpen, accepted
SEC-16A listed tool whose name reads as harmless now starts OnOpen, accepted
SEC-15Outside session mode the API answers requests from any web originFixed 2026-10-06
SEC-14A box outside the GCP cut encrypts under the all-zero development keyFixed 2026-10-06
SEC-13Chat image uploads could persist unsanitized bytes or leak across organisationsFixed 2026-10-03
SEC-12The GitHub App's private key mints tokens for every installationOpen
SEC-11A GitHub install callback could name another account's installationFixed 2026-09-30
SEC-10A coding agent's repository token is readable by any process in its sandboxOpen
SEC-9Graft's hosted features can send repository history to its vendorFixed 2026-10-13
SEC-8Content a coding agent reads can steer its commandsClosed 2026-11-16
SEC-7A coding agent's workspace can fill the shared diskOpen
SEC-6Coding agents run commands as root in the containerOpen
SEC-5Background commands make the SEC-3 race practicalOpen
SEC-4Package installs run third-party code beside the agent's secretsOpen
SEC-3Check-then-open race on agent workspace pathsOpen
SEC-2Any organisation member could write organisation-wide secretsFixed 2026-09-30
SEC-1Links planted in an agent workspace redirect orchestrator file accessFixed 2026-09-30

SEC-77 — A Cursor turn loads the plugins of the account it runs on ​

Status: open.

Found: 2026-11-17, reading the tool catalog of a headless Cursor session on a CURSOR_API_KEY: it listed an MCP server of a plugin of that account's, awaiting its sign-in.

Where: the Cursor driver in runtime/guilds-harness, pinned to the Cursor CLI 2026.11.13-eacade1, and the Cursor account the agent's CURSOR_API_KEY or login in its home belongs to.

Exposure: when it starts, the Cursor CLI fetches from Cursor's servers the plugins in effect for the account it runs on, its own and those a team distributes, installs them in the home, and loads them into the turn. A plugin carries MCP servers, and can carry rules, skills, and hooks. Their MCP servers load without the approval a workspace's server needs. A turn then has tools outside the agent's bindings, which the run's offer gate and max_tool_calls never see, and instructions beside the guild's rule (SEC-67). A plugin's server that needs no sign-in, or that Cursor signs in with the account's own token, acts as that account wherever the model decides to call it, with what the turn reads steering it (SEC-28). That plugins carry rules, skills, and hooks, and that the CLI signs some servers in with the account's token, is read from the CLI's code; a live session showed only a plugin's MCP server.

Control in place: none keeps the plugins out. The CLI has no flag, variable, or setting that does: not in its --help, its cli-config.json, or the variables it reads; it turns account plugins off only in its local modes, which run off the Cursor subscription; and --approve-mcps, which the driver never passes, does not gate them. Before every call the driver removes ~/.cursor/plugins/, which the CLI fills again, and each workspace's MCP sign-ins, ~/.cursor/projects/*/mcp-auth.json, so a sign-in made in the home to a plugin's server, from the CLI tab or by an earlier turn, does not reach the next call. A Cursor agent's credential is one its operator grants or logs in with.

Fix to make: none in the driver while the CLI has no switch. An operator runs a Cursor agent on an account with no plugin installed or turned on, outside any team that distributes plugins as Required, or picks Claude Code or Codex, which load no plugin (SEC-29).

SEC-76 — Cursor loaded a repository's MCP server on an approval stored in the agent's home ​

Status: fixed 2026-11-17.

Found: 2026-11-17, giving a Cursor turn that starts in the agent's home its Guilds tools.

Where: the Cursor driver in runtime/guilds-harness, pinned to the Cursor CLI 2026.11.13-eacade1, and the approvals that CLI keeps per workspace in the agent's home, ~/.cursor/projects/<workspace>/mcp-approvals.json.

Exposure: the Cursor CLI loads a server of a workspace's own .cursor/mcp.json once an approval stored for that workspace names the server's exact configuration; agent mcp enable <name>, run in the workspace, stores one. Before every call the driver removed the configuration Cursor reads in the home, but not these approvals. A process on the agent's machine that ran agent mcp enable in a repository's working tree, such as a command the agent or a steered harness runs (SEC-28), a package install (SEC-4), or another agent on the machine (SEC-24), made every later turn in that repository load the repository's server: a command that runs when it loads, with the agent's secrets in its environment, without the model deciding to run it (SEC-29), until the repository changed that server's configuration.

Fix: before every call the driver removes each workspace's stored MCP approvals and disabled servers, ~/.cursor/projects/*/mcp-approvals.json and ~/.cursor/projects/*/mcp-disabled.json. The only approval a turn has is the one the driver gives its own server. A turn that starts in the home, where Cursor reads the home's ~/.cursor/mcp.json as the workspace's configuration too, runs agent mcp enable guilds there once the turn's configuration is written: its approval names the guilds server with the turn's URL and token, and the home alone.

Residual risk: between the reset and the start of the CLI, another process on the machine can store an approval again; the window is the time of one exec, as for the rest of the configuration the reset removes (SEC-29).

SEC-75 — Work a harness turn started went on after the turn ended, and could push with a credential it had already read ​

Status: fixed 2026-11-17.

Found: 2026-11-17, when a harness started a force-push seconds before its turn's time limit, and the push reached the repository about three minutes after the turn was stopped and the agent's tokens file emptied.

Where: op_stop and supervise in runtime/guilds-harness, the end of a harness turn in apps/orchestrator/src/generation/harness-loop.ts, and CodingRuns.releaseRepositories in apps/orchestrator/src/generation/coding.ts.

Exposure: stop signalled the CLI's process group alone. A harness can run a command in a session or process group of its own, as Cursor does with a command it moves to the background when it runs long, and such a process, with everything it started, outlived every stop: the time limit, a cancel, a stop the MCP server's calls asked for, three failed polls, and the stop of a turn an orchestrator restart cut short. A CLI that exited by itself left the same processes running. The stop answered that the turn had stopped, and the orchestrator ended the generation, emptied the tokens file, and revoked the turn's MCP token, while the process went on with what it had already read. git push asks the credential helper for the token before it runs the repository's pre-push hook, so a push held up by a long hook reached the remote after the turn had ended, with a token still valid for the rest of its hour. Such a process ran until the container's idle stop, with the agent's granted secrets in its environment (SEC-62), and nothing in the run showed it.

Fix: the supervisor that runs a turn's CLI is the turn's child subreaper (PR_SET_CHILD_SUBREAPER), so a process the turn starts stays below it whatever session or process group it moves to, after its parent exits too. stop sends SIGTERM to the CLI's process group and to every process below the supervisor, SIGKILL ten seconds later to each one left until none is, and answers that the turn stopped only once no process of the turn is left; otherwise the turn records that its harness did not stop. A CLI that exits by itself has every process of its turn ended the same way before the supervisor records the exit, so a poll sees the turn end only once nothing it started runs. The tokens file is emptied after that. stop walks from the supervisor's pid only while that pid still runs the call's supervisor, so it never signals the processes of the CLI tab, the browser, or another agent's turn.

Residual risk: a process a command of the turn has a service outside the turn start is not below the supervisor. A turn whose supervisor is killed leaves its processes running until the container stops, and so does a process SIGKILL cannot end, for which stop answers that the turn did not stop. A token the turn read before it ended stays valid for the rest of its hour wherever the turn sent it (SEC-66). A process a script of an agent on a key leaves running still runs until the idle stop (SEC-5).

SEC-74 — An agent on a key holds a git token and a clone on its machine, and what it reads can steer what it does with them ​

Status: open.

Found: 2026-11-17, letting an agent on a key pick repositories.

Where: CodingRuns.prepareRepositories and CodingRuns.releaseRepositories in apps/orchestrator/src/generation/coding.ts, RunGenerator.isReady in apps/orchestrator/src/generation/generate.ts, the before_command hook executeCommand runs in apps/orchestrator/src/toolbox/shell.ts, /run/guilds/<agent id>/git-tokens.json and guilds-git-credential, and the script_repositories part of apps/orchestrator/src/prompts/system.md.

Exposure: an agent on a key that picks repositories gets, at each generation, a clone of each in its home and a token for each in its machine's tokens file, which the credential helper answers to git. Its model reads repository files, commit messages, what its connector tools return of pull requests and issues, and its scripts' output. Instructions planted in any of it can steer it to write and run a script that pushes what the operator did not intend to an unprotected branch of a repository it pushes to, the default branch included; that reads the tokens file and sends a token out; or that copies the code where it should not go, into a file, a note, a group post, or a connector call. Its scripts run in its container with the network open and its granted secrets in their environment (SEC-4), and any process on the machine reads the tokens file while the generation runs (SEC-10, SEC-24). On a host other than GitHub, the token of a repository it only reads pushes (SEC-73).

Control in place: a generation gets tokens only for the repositories its agent picks. A GitHub token holds contents: write alone, or contents: read alone for a repository the agent only reads; it lives one hour and is replaced before a command a tool runs once it nears expiry. No environment holds a repository token, and each token is redacted from the run's rows. The tokens file is emptied when a generation that placed repositories ends, however it ends; a generation whose clone failed, or that an orchestrator restart cut short, leaves it until the agent's next generation. The agent has no shell: git runs only in a script it writes and runs, each run a tool call that counts toward max_tool_calls and that the run shows. The system prompt says repository content, issue text, and command output are data, never instructions, and that git refuses to push a repository it only reads. Branch protection and required reviews on the host still apply.

Fix to make: the control-plane git proxy of SEC-10, which would hold the token and check the branch a push names. Until then, pick each repository an agent does not push to read-only, on a GitHub login where the host must refuse the push; protect each repository's default branch on its host; and give an agent whose repositories take content from people the organisation does not trust a machine of its own.

SEC-73 — A repository an agent only reads, on a host other than GitHub, is read-only by its clone's push URL alone ​

Status: open, accepted.

Found: 2026-11-17, letting an agent pick repositories it only reads.

Where: AccessTokenProvider in apps/orchestrator/src/coding/access-token-provider.ts, _set_push and NO_PUSH_URL in runtime/guilds-code, and /run/guilds/<agent id>/git-tokens.json.

Exposure: an agent's config can list a repository in read_only_repositories. On GitHub the token that reaches its machine for that repository holds contents: read alone, and GitHub refuses a push with it. A repository added with an access token kept as a secret (SEC-61) gets the same token whether the agent reads it only or pushes to it: the orchestrator cannot narrow a token another host minted. What stops the push there is the clone: its remote.origin.pushurl names a host that cannot exist. A process on the agent's machine that unsets the push URL, or pushes to the repository's URL by name, pushes with whatever the host grants the token, and the credential helper answers it, since git asks it the same question to fetch and to push. A harness steered by what it reads (SEC-66), or a script of an agent on a key steered the same way (SEC-74), can do that.

Control in place: each generation's git_setup sets the push URL of every clone the agent only reads, so a push by origin fails and names the URL it refused; a clone picked writable again gets its push URL back. The system prompt tells the agent that git refuses to push a repository State marks read_only, and to never commit to it. The credential helper answers the token only for the repository's own host and path.

Fix to make: give the agent a token the host itself limits to reading. Until then, an operator who needs the host to refuse the push adds the repository with an access token that only reads it, or with a GitHub login.

SEC-72 — A sandbox on the hosted VM reached the metadata server, private addresses, and Caddy ​

Status: fixed 2026-11-16.

Found: 2026-11-16, when the release that published the MCP listener failed its check that a sandbox gets no answer from the VM's port 80.

Where: hosted's deploy/gcp-host-net.sh and infra/scripts/bootstrap-vm.sh, and the order of the VM's FORWARD chain.

Exposure: the drops of metadata HTTP (169.254.169.254) and of the RFC1918 ranges were rules of FORWARD below its jumps to Docker's chains, where Docker accepts what a bridge forwards, so no sandbox packet reached them. A process in any organisation's sandbox could ask the metadata server for the VM service account's token, which reads the platform's secrets in Secret Manager, and could open connections to the VM's subnet. Docker forwards a connection to a port it publishes, which INPUT never sees, so a sandbox also reached Caddy, the operator app, at the bridge's gateway. Whether a sandbox used any of this is not known: the VM keeps no log of forwarded connections.

Fix: what a sandbox may forward is decided in GUILDS-SANDBOX, a chain DOCKER-USER jumps to for each connection a sandbox opens; Docker runs DOCKER-USER before its own chains. It lets through the MCP listener's published port and metadata DNS, and drops every other published port, link-local addresses, and the RFC1918 ranges. Each release replaces the chain whole and checks, from a container on the bridge, that the MCP listener answers and that port 80 and the metadata server do not; it prints the rules when a check fails.

Residual risk: sandboxes on docker0 reach each other. A sandbox still reaches metadata DNS and the internet. The VM service account's credentials were within a sandbox's reach until the fix; rotating the secrets it reads is the operator's decision.

SEC-71 — A sandbox on the hosted VM reached Cloud SQL's private address and every port of the VM ​

Status: fixed 2026-11-16.

Found: 2026-11-16, opening the hosted VM's MCP listener to sandboxes.

Where: hosted's deploy/gcp-host-net.sh and infra/scripts/bootstrap-vm.sh.

Exposure: the release accepted forwarded traffic to Cloud SQL's private IP from any interface, above the RFC1918 drop, so a process in any organisation's sandbox could open a connection to the platform database, which then asked only for its password. Nothing filtered what a sandbox sent to the VM's own addresses: from docker0 it reached Caddy at the bridge's gateway and the VM's subnet address, which is the operator app as the internet sees it, sshd, and any other port the VM listened on.

Fix: the Cloud SQL accept matches only traffic that does not come from docker0, and the unscoped rule is removed. INPUT drops every new connection from docker0 to a port the VM itself listens on, sshd among them, and keeps the answers to connections the VM opened.

Residual risk: INPUT does not see a connection to a port Docker publishes, Caddy's among them, and the Cloud SQL rule sat beside drops that did not take effect: SEC-72.

SEC-70 — Customers' harness logins sit in their agents' homes on the hosted VM and in its backups ​

Status: open.

Found: 2026-11-16, running subscription agents on the hosted VM.

Where: each agent's home under /srv/workspaces/<machine id>/<agent id> (~/.claude/.credentials.json, ~/.codex/auth.json, and the Cursor and Antigravity logins), and hosted's deploy/backup.sh, which tars workspaces into the backup bucket every night.

Exposure: a customer who logs a harness in from an agent's CLI tab leaves that vendor login, a personal Claude, ChatGPT or Google sign-in, as a file in the agent's home on the platform's VM. Every process on the agent's machine reads it (SEC-24, SEC-27). Whoever holds root on the VM or the Docker socket, and whoever reads the backup bucket, reads every customer's login for the bucket's 30 days. With it they use the customer's subscription as the customer. A token granted as a secret is encrypted in the database, but its value sits in the environment of every turn's CLI.

Control in place: a machine never spans organisations. SSH to the VM is IAP only. The backup bucket is private to the project, and only the VM's service account writes it.

Fix to make: leave the harnesses' credential files out of the workspace backup, or encrypt the backup under a key the bucket's readers do not hold, and give customers a way to revoke a login the platform holds. Until then, prefer a vendor key granted as a secret over a CLI login on the hosted VM.

SEC-69 — A subscription agent's MCP token crosses the hosted VM's Docker bridge in plain HTTP ​

Status: open, accepted.

Found: 2026-11-16, publishing the MCP listener on the hosted VM's bridge.

Where: HARNESS_MCP_URL, http://<docker0 gateway>:8090, written by hosted's deploy/render-env.sh, and the docker-proxy between docker0 and the orchestrator's Compose network.

Exposure: each harness call carries its generation's bearer token in plain HTTP from the sandbox to the bridge's gateway, and through docker-proxy to the orchestrator. Whoever can read traffic on the VM reads it: root on the VM, and a process with the Docker socket, such as OpenSandbox's server. With the token they call the agent's Guilds tools until the generation ends (SEC-64).

Control in place: sandboxes run without NET_RAW and NET_ADMIN, so one sandbox cannot capture or redirect another's traffic on the bridge. The address is not routed off the VM. The token lasts one generation and is checked only at its agent's path.

Fix to make: none while the listener and its callers share one VM: whoever can read the bridge already holds the VM.

SEC-68 — Every organisation's sandboxes on the hosted VM reach the one MCP listener ​

Status: open, accepted.

Found: 2026-11-16, publishing the MCP listener on the hosted VM's bridge.

Where: the MCP port published on the docker0 gateway by hosted's compose/docker-compose.hosted.yml, and its accept in deploy/gcp-host-net.sh.

Exposure: every organisation's machines share the VM's docker0, so a process in any customer's sandbox reaches the listener that serves every subscription agent of every organisation. It can call /mcp/<any agent id>, where a request without that generation's token answers 401, and send requests that load the listener for every organisation's harness turns. A defect in the listener's request handling would be reachable from every tenant.

Control in place: the listener serves only /mcp/<agent id> and /health. A request needs a running generation's 32-byte token, valid only at its own agent's path, and a body over 1 MiB is refused. The port is open only at the gateway, only from docker0, and no GCE firewall rule opens it. Hosted's routes are not on it.

Fix to make: a dedicated sandbox host per organisation that needs isolation, and a rate limit per source address on the listener.

SEC-67 — Cursor and Antigravity run a subscription agent's turn under their vendor's own system prompt ​

Status: open, accepted.

Found: 2026-11-16, running a subscription agent's turns on Cursor and Antigravity.

Where: the Cursor and Antigravity drivers in runtime/guilds-harness, which write the run's system prompt to ~/.cursor/rules/guilds.mdc and ~/.gemini/GEMINI.md in the agent's home; harnessNeedsRepository and assertSubscriptionAgent in apps/orchestrator/src/coding/harnesses.ts and apps/orchestrator/src/agents/validation.ts; and the harness_rules part of apps/orchestrator/src/prompts/system.md.

Exposure: neither CLI takes a system prompt in place of its own. Each turn runs under the vendor's own system prompt, which the operator neither sees nor controls and the vendor changes with the CLI; the run's composed prompt reaches the model only as a rule beside it. Where the two disagree, the vendor's prompt can win: on what the agent does with its tools, what it writes, and whether it follows the guild's instructions on branches, pushes, and what is data. Antigravity caps one rules file at 24,000 bytes and cuts a longer one at a line, so the end of a long prompt (Memory, part of State) can be lost; whether Antigravity reads a global rule at all when the CLI runs outside Google's sign-in could not be observed. Both CLIs also read a repository's own instruction files (AGENTS.md, GEMINI.md, .cursor/rules, .agents/) beside the guild's rule (SEC-29, SEC-38). A repository's .cursor/mcp.json that names a server guilds takes the place of the platform's in Cursor's merged configuration; Cursor loads a repository's server only on an approval the driver never gives, so the turn then has no Guilds tool. Claude Code and Codex are not exposed: the run's prompt replaces theirs.

Control in place: a Cursor or Antigravity subscription agent is created, and saved, only with a repository: one that does code work, whose turns the run checkpoints and records. A run of one whose repositories are all gone fails at start. The rule tells the model that the vendor's prompt stays in force and that the guild's rules govern the guild's work. The rules file is mode 0600, outside every repository's working tree, removed when the turn ends, and the place it sits is cleared before every call, with every other rule the CLI reads in the home: since 2026-11-16 also the AGENTS.md, CLAUDE.md, and CLAUDE.local.md Cursor reads in the home and in ~/repos/, and Antigravity's ~/.gemini/config/ rules.

Fix to make: none while the CLIs take no system prompt of their own. An operator who needs the guild's prompt to govern every turn picks Claude Code or Codex, or turns Cursor and Antigravity off with HARNESSES_OFF.

SEC-66 — A subscription agent's harness pushes to its repositories, and what it reads can steer the push ​

Status: open.

Found: 2026-11-16, letting a subscription agent work in the repositories it picks.

Where: CodingRuns.prepareTurnRepositories and CodingRuns.endTurnInRepositories in apps/orchestrator/src/generation/coding.ts, the push scope of GithubProvider in apps/orchestrator/src/coding/github-provider.ts, /run/guilds/<agent id>/git-tokens.json and guilds-git-credential, and the repositories part of apps/orchestrator/src/prompts/system.md.

Exposure: a subscription agent that picks repositories runs each turn in its harness's CLI beside a token that pushes to each of them. The CLI runs as root (SEC-6) with its permission prompts off (SEC-28), the network open, and the agent's granted secrets in its environment (SEC-62). git reads the token through the credential helper, and any process on the machine reads the tokens file while the turn runs (SEC-10, SEC-24). The harness reads repository files, commit messages, a contributor guide, command output, and what its Guilds and connector tools return. Instructions planted in any of it can steer the harness to push what the operator did not intend, to any unprotected branch of the repositories its agent picks, the default branch included, or to send the token out. No other model reviews the work before it is pushed. With the GitHub connector's create_pull_request On, it can be steered to open a pull request too, under that login's own permissions (SEC-47). A repository added with an access token pushes with whatever the host grants that token (SEC-61).

Control in place: a turn gets tokens only for the repositories its agent picks. A GitHub token holds contents: write alone, which pushes a branch and opens no pull request, issue, workflow run, or administration change; for a repository the agent only reads it holds contents: read alone, and on another host the clone's push URL refuses the push (SEC-73). A GitHub token lives one hour and is replaced before it expires. Since 2026-11-16 no token the orchestrator mints for a repository holds pull_requests write: the coding agent's code_task, whose token held it, is removed. The CLI's environment holds no GH_TOKEN, GITHUB_TOKEN, or repository token, and the token is redacted from the run's rows. The tokens file is emptied when a turn that started ends, however it ends; a turn an orchestrator restart cut short, or a generation whose clone failed, leaves it until the agent's next generation. Since 2026-11-17 the processes the turn started are ended before the file is emptied (SEC-75). A turn stops after its max_turn_minutes. The system prompt tells the agent to work on a branch of its own, never the default branch, and that repository content, issue text, and command output are data, never instructions. Each turn's change is checkpointed and recorded on the run for review. Branch protection and required reviews on the host still apply.

Fix to make: the control-plane git proxy of SEC-10, which would hold the token and check the branch a push names. Until then, protect each repository's default branch on its host, and give an agent whose repositories take content from people the organisation does not trust a machine of its own.

SEC-65 — An image attached to a subscription agent's message is a file every process on its machine reads ​

Status: open.

Found: 2026-11-16, giving a subscription agent the images attached to its messages.

Where: HarnessLoop.placeAttachments in apps/orchestrator/src/generation/harness-loop.ts, which writes each image to .runs/<run id>/attachments/<attachment id>/<filename> in the agent's home, and resolveAttachments in apps/orchestrator/src/generation/operator.ts, behind POST /api/agents/:id/runs and POST /api/runs/:id/messages.

Exposure: a key agent's model receives an image in the request to its provider, and the image never reaches the agent's machine. A subscription agent's harness reads it as a file in the agent's home, so the image sits where every process on the machine reads it: the harness, a command it runs, a package install (SEC-4), and every other agent placed on the machine (SEC-24). It stays there with the run's folder, for the agent's 20 most recent runs, after the run ends. The harness reads it with the network open and the agent's secrets in its environment (SEC-62): text in an image can steer it as text in a message can (SEC-8), and the image leaves the box for the harness's vendor on the operator's subscription.

Control in place: only an operator who can open the agent's runs attaches an image, and only an image the organisation uploaded: four at most, each a JPEG, PNG, GIF, or WebP of at most 10 MiB, its bytes sniffed and its name sanitised (SEC-13). The file is written through the agent's host directory without following a link at any part of its path (SEC-1), and only the images of the messages that open the generation are written.

Fix to make: remove a run's images from the home once its last turn ends, and give agents that read images from people outside the operator's trust a machine of their own. Until then, attach to a subscription agent only images its machine's other agents may read.

SEC-64 — A subscription agent's MCP token lets any process on its machine call its Guilds tools ​

Status: open.

Found: 2026-11-16, serving a subscription agent's harness its Guilds tools.

Where: HarnessMcpServer in apps/orchestrator/src/generation/harness-mcp.ts, its listener (buildHarnessMcpApp, apps/orchestrator/src/http/harness-mcp-routes.ts) published by docker-compose.yml, and <call id>.mcp.json in the turn's run folder, .runs/<run id>/ in the agent's home, written by start in runtime/guilds-harness; since 2026-11-16 also the environment of a Codex turn's CLI, which the supervisor in runtime/guilds-harness sets from that file, and the MCP configuration a Cursor or Antigravity turn's CLI reads in the agent's home, ~/.cursor/mcp.json or ~/.gemini/config/mcp_config.json.

Exposure: the MCP listener is reachable from every sandbox on the host: on a Linux engine every container reaches the bridge's gateway, and on Docker Desktop every container reaches the host's loopback (SEC-63). While a subscription agent's generation runs, its bearer token sits in the configuration file in the agent's home, and, since 2026-11-16 on Codex, in the environment of the Codex process, which every process running as root on the machine reads at /proc/<pid>/environ. Since 2026-11-16 on Cursor and Antigravity it sits in the CLI's own MCP configuration in the home, where each reads it: neither reads one from a path a call names, nor from outside the home. A turn whose result was never read, such as one an orchestrator restart cut short, leaves that file until the agent's next call clears it; its token is revoked by then. Any process on the agent's machine can read it: the harness itself, a command it runs, a package install (SEC-4), a steered harness (SEC-8), and every other agent placed on the machine (SEC-24), as it can read a repository token (SEC-10). With the token, a process calls every Guilds tool the run offers, as the agent: it writes and deletes notes, records, and files the agent may write, posts to the group chat, sets routines and wake-ups, reads and runs scripts, drives the agent's browser, stores secrets, files issues, and calls every connector tool the agent's logins offer, such as a GitHub write (since 2026-11-16 the GitHub connector's create_pull_request, which the system prompt of a subscription agent with repositories names when it is On), until the generation ends: for up to 30 minutes until 2026-11-16, and since then for up to the agent's max_turn_minutes, 30 by default, which an operator can raise.

Control in place: the token is 32 bytes from the platform's random source, one per generation, kept only in the orchestrator's memory, compared by its SHA-256 digest in constant time, and redacted from the run's rows. It is valid only at its own agent's path, only while that generation runs: it is revoked when the generation ends, however it ends, and a restart revokes every token. Each request that holds no grant answers 401 and nothing more. The listener is a port of its own, apart from the operator app, and serves /mcp/<agent id> and /health alone; a body over 1 MiB is refused. Each call goes through the run's offer gate, narrowed to the agent's live bindings on every list and call, never a tool the generation was not offered nor a code tool; through redaction and the byte cap; counts toward max_tool_calls; and is kept in the run as the agent's own call. The URL and the token are on no command line: the start request travels through a request file only root reads, and the configuration file is mode 0600, removed with the turn's other private files. Until 2026-11-16 only Claude Code took the server, and the token was in no environment. A Codex turn takes it as -c overrides for that one call, which name the variable GUILDS_MCP_TOKEN instead of the token, so the token is on no command line and in no configuration file of Codex's home; the supervisor sets the variable in the CLI's own environment alone, not in its own nor in guilds-harness's, and Codex leaves it out of the commands its model runs (shell_environment_policy.exclude). A Cursor or Antigravity turn's configuration file holds the one server and the token as its header, mode 0600; the token is on no command line and in no environment, the file goes with the turn's state, and every call first removes whatever the home holds there, so no earlier server survives. A token found after the generation ended answers 401.

Fix to make: none of a token's reach can be narrowed below the machine while agents share a machine. An operator gives an agent that holds connector access, or writes that matter, a machine of its own.

SEC-63 — On Docker Desktop every sandbox reaches the operator app ​

Status: open.

Found: 2026-11-16, publishing the MCP listener where a sandbox reaches it.

Where: the operator app's port, published on 127.0.0.1:${ORCHESTRATOR_PORT} by docker-compose.yml, on a box whose Docker engine is Docker Desktop.

Exposure: Docker Desktop resolves host.docker.internal in every container and forwards it to the host's loopback, so every container, every agent's machine included, reaches every port published on 127.0.0.1. A process on any machine reaches the operator app. In compat-cookie mode whoever reaches the port is the operator, and a request that names 127.0.0.1 as its Host passes the host check (SEC-15), which guards a browser, not a process that writes its own headers. Such a process can then act as the operator: read and change every guild, agent, secret's access, and connection, and start runs. A Linux engine is not exposed: a container on the bridge does not reach a port published on loopback.

Control in place: none in compat-cookie mode. trusted-header mode takes the user from a proxy that sends a secret (TRUSTED_PROXY_SECRET) a sandbox does not hold, so a box in that mode refuses such a request.

Fix to make: an operator app that a container on the host's bridge cannot reach on Docker Desktop, or a credential every API request carries. Until then, a box on Docker Desktop is a development box: run agents whose content is untrusted on a Linux engine, or in trusted-header mode.

SEC-62 — A subscription agent's harness holds its whole prompt beside its secrets and the network ​

Status: open.

Found: 2026-11-16, running a subscription agent's turns on its harness.

Where: HarnessLoop in apps/orchestrator/src/generation/harness-loop.ts, and start with a system_prompt and the Claude Code driver in runtime/guilds-harness; since 2026-11-16 the Codex, Cursor, and Antigravity drivers as well.

Exposure: each turn of a subscription agent hands its harness, Claude Code and since 2026-11-16 Codex, the run's whole composed system prompt: the Guidelines, the Task, State (the roster, the recent group-chat messages, the collections the agent reads, the names of its secrets, its connectors' State), and Memory. Its prompt is whatever opened the generation: an operator's message, the group chat's latest messages, a routine's instruction, or a wake-up's note. The CLI runs as root in the agent's container with every secret granted to the agent in its environment, its permission prompts off (SEC-28), and the network open. Text in any of that, or in a file, command output, or page the CLI reads, can steer it to send its secrets, State, or Memory wherever the container reaches (SEC-8). The prompt leaves the box for the vendor's API on the operator's subscription: Anthropic's for Claude Code, OpenAI's for Codex, and since 2026-11-16 Cursor's and Google's for Cursor and Antigravity. While the turn runs, the system prompt is also a file in the agent's home, readable by any process on the machine (SEC-24); Codex reads it through model_instructions_file, as its own instructions, and Cursor and Antigravity as a rule in their own configuration in the home, beside their vendor's prompt (SEC-67). Since 2026-11-16 the harness also calls the run's Guilds tools, connector tools included, on the orchestrator's MCP server (SEC-64): steered text can make it write the agent's notes, records, files, and Memory, post to the group chat, set routines, and call its connectors. Since 2026-11-16 a subscription agent that picks repositories also runs each turn beside a token that pushes to them, and reads their content, which can steer its pushes (SEC-66).

Control in place: until 2026-11-16 the harness was offered no tool and no connection of the platform. The tools it calls now go through the run's offer gate, narrowed to the agent's live bindings, and count toward max_tool_calls; the code tools are never among them, and it reaches no connection's credentials. What it writes into the run is redacted with the run's secret values before it is stored, and each tool result is capped. The system prompt file is mode 0600 and goes with the turn's state. The driver removes the variables that would move the CLI onto a metered key and turns off hooks, plugins, and project MCP servers; Codex also loads no config.toml or rules from the home. A turn stops after 30 minutes; since 2026-11-16 after the agent's max_turn_minutes, 30 by default. The organisation's model keys never reach the sandbox. Until 2026-11-16 a box offered subscription agents only with SUBSCRIPTION_AGENTS=1; since then every box offers them to whoever creates agents, and a box that wants none turns Claude Code and Codex off with HARNESSES_OFF; since 2026-11-16 Cursor and Antigravity as well. Since 2026-11-16 a subscription agent is the only agent that runs a harness, and the only one that works in repositories.

Fix to make: start the harness with only its own credential in its environment, and limit what the agent's container reaches. Until then, grant a subscription agent only the secrets, tools, and connectors its work needs.

SEC-61 — A repository's access token is long-lived and written to its agents' machine ​

Status: open.

Found: 2026-11-15, adding repositories on any HTTPS git host.

Where: AccessTokenProvider in apps/orchestrator/src/coding/access-token-provider.ts, /run/guilds/<agent id>/git-tokens.json, guilds-git-credential, and requireManagedSecret in apps/orchestrator/src/secrets/service.ts, behind POST /api/guilds/:id/repositories.

Exposure: a repository added with an access token gives every agent of its guild that picks it the value of the secret it names, for each of its turns (SEC-66); until 2026-11-16 that included each coding agent of the guild, for each of its runs. The orchestrator writes that value to the agent's tokens file at each generation start, as it writes a GitHub token. Unlike a GitHub token, it does not expire after an hour and is not limited by the box to one repository: it carries whatever the host grants it, often every repository of an account, until the operator revokes it on the host. Any process on the agent's machine can read the file (SEC-10, SEC-24).

Control in place: only a member who manages the secret may add a repository with it, the rule that guards changing the secret; the secret must be one of the guild's organisation. The credential helper answers it only to the repository's own host, port included, and path, so git does not send it to another host or another repository on the same host. It answers no entry whose username or token spans lines, and the orchestrator refuses a secret whose value does, so a value cannot add fields to git's credential protocol. The secret joins no environment unless it is also granted. The token is kept off the workspace disk and redacted from tool results.

A subscription agent's turn cannot narrow such a token as it narrows a GitHub token to contents: write; the tokens file is emptied when the turn ends. Since 2026-11-17 the same holds for each generation of an agent on a key that picks the repository (SEC-74), and for a repository an agent only reads, which gets the same token (SEC-73).

Fix to make: the control-plane git proxy of SEC-10, which would keep the token in the orchestrator. Until then the token's reach is the host's: an operator gives a token limited to the repository, with the shortest expiry the host allows, and rotates the secret's value when the token changes.

SEC-60 — Text holding a NUL or an unpaired surrogate failed the write of a message ​

Status: fixed 2026-11-15.

Found: 2026-11-12, from production errors where PostgreSQL refused a run's tool-call message.

Where: every JSONB parameter the orchestrator writes under apps/orchestrator/src/db/ and apps/orchestrator/src/seed/: run, Studio and Builder messages and the other JSONB columns.

Exposure: JSON.stringify writes a NUL character as \u0000 and an unpaired UTF-16 surrogate as its \u escape, and PostgreSQL refuses both in JSONB. Text a model writes, a tool returns, or a web page, file or connector supplies reached a message's payload or metadata unchanged, so one such character failed the message's write and the run or session that wrote it.

Fix: formatJsonb in apps/orchestrator/src/db/codecs.ts writes every JSONB parameter and stores each NUL and unpaired surrogate, in a string or an object key, as U+FFFD. Every other character, escape-like text included, is stored as it is. test/unit/codecs.test.ts and test/integration/jsonb-text.test.ts pin it.

Residual risk: a stored value differs from the written one at each replaced character, and two object keys that differ only there become one key. A NUL in a TEXT parameter is still refused by PostgreSQL.

SEC-59 — Every member who saw a guild could change how many turns of tool results its agents' prompts keep ​

Status: fixed 2026-11-14.

Found: 2026-11-14, reviewing the guild's tool-result turns.

Where: createAgent and reconfigureAgent in apps/orchestrator/src/agents/service.ts, which POST /api/guilds/:id/agents and PUT /api/agents/:id/config write an agent's config through; updateGuildSettings in apps/orchestrator/src/guilds/service.ts, behind PUT /api/guilds/:id; destinationGuild in apps/orchestrator/src/recipes/plan.ts, which a preview and an apply check their destination with.

Exposure: an agent's keep_tool_result_generations decides how many user turns of full tool output, such as web pages and files, each model call replays. Every member who saw the guild set it on any of its agents, to any whole number, so an agent's later turns carried every earlier tool result and each call grew towards max_input_tokens on the organisation's model key.

Fix: the guild holds the value its agents take (guilds.keep_tool_result_generations), and an agent's own value is optional. Only a guild admin changes the guild's value, creates an agent with a value of its own, changes or clears an agent's value, or applies into an existing guild a recipe whose roles carry one; anyone else gets 403. A save that leaves the value as it is passes. Agents change neither: no tool writes a guild's settings or an agent's config. test/integration/tool-result-turns-setting.test.ts pins it.

Residual risk: the agent's other run limits, max_steps, max_tool_calls, max_input_tokens and max_wake_ups, stay open to every member who sees the guild. A recipe applied into a new guild sets its roles' values; its applier is that guild's first admin.

SEC-58 — A recipe captured from a private guild, and an apply into one, were open to every member ​

Status: fixed 2026-11-03.

Found: 2026-11-03, reviewing the home guild of notes and files.

Where: orgRecipes, orgRecipe, and deleteOrgRecipe in apps/orchestrator/src/recipes/library.ts, which every recipe route reads a recipe through; destinationGuild in apps/orchestrator/src/recipes/plan.ts, which a preview and an apply check their destination with; orgApply in apps/orchestrator/src/recipes/lifecycle.ts, which every route under /api/applies/:id reads an apply through.

Exposure: a capture reads a guild only for a user who can see it, but the draft it stores was listed, read, exported, edited, applied, and deleted by every member of the organisation. A recipe captured from a private guild holds that guild's agents' Tasks, routines, and setup, and the notes the capture included, so a member outside the guild read them in its document. A preview or an apply named its destination by guild_id and checked only that the guild was of the organisation and empty, so a member could fill a private guild they do not operate with agents. An apply into a private guild was read by every member with its plan and checklist, and its overlays, step checks, activation, and abort were run by every member.

Fix: a recipe whose source_guild_id names a private guild the user does not operate is left out of GET /api/recipes and is 404 on every route that names it. A destination guild hidden from the user is 404 destination guild not found, as an unknown one is, and the apply creates its skeleton in the guild the preview checked. An apply whose guild is a private guild the user does not operate is 404 apply not found on GET /api/applies/:id and on its overlays, step verify and confirm, activate, and abort routes. test/integration/recipe-capture.test.ts pins it.

Residual risk: a recipe keeps what it captured after its source guild is deleted or made visible: its source_guild_id is then null or names a guild every member sees, and every member reads it. A recipe drafted by the Builder or imported from a file names no source guild and is open to every member. An apply whose guild is deleted names no guild, and every member reads it.

SEC-57 — An operator could see a private guild's notes and files through an organisation row ​

Status: fixed 2026-11-03.

Found: 2026-11-02, giving notes and files a home guild.

Where: hiddenScope in apps/orchestrator/src/db/artifacts.ts and isHiddenItem in apps/orchestrator/src/artifacts/store.ts, which every operator listing, read, write, search, access-list route, and change history of notes and files goes through, and Prompt Studio's actors (apps/orchestrator/src/studio/).

Exposure: an operator was kept from a note or a file by its access rows alone: it was hidden while every row named a private guild they do not operate or an agent of one. A note or a file made in a private guild, by one of its agents or one of its operators, that also had a row for the organisation, another guild, or another guild's agent, was listed, read, written, searched, and shown in history to every operator of the organisation, those the guild is private from included: its name, its text or bytes, who wrote it and when. Opening a private guild's note to the organisation, so that every agent reads it, opened it to every operator too. The hiding rule read nothing about where an item was made: artifacts.origin_guild_id was written at insert, null on an operator's write, and read by nothing.

Fix: a note's or a file's origin_guild_id is its home guild (Artifact store). An item homed in a guild of the operator's hidden set, a private guild they do not operate, is hidden from them whatever its rows say, and an item homed in a guild they can see is visible to them whatever its rows say: hiddenScope and isHiddenItem decide by the home when there is one, and by the rows only for an item with no home. An operator's write names the home: the app sends the page's guild, as home_guild_id on a note and X-Home-Guild on an upload, and a home naming an unknown guild, or one hidden from the writer, is 404 unknown guild. Prompt Studio's actors carry the operator's hidden set, so its state list, references, and tools apply the same rule. Where an operator is shown a Task with its embeds inlined, the Studio inspector and studio_get_agent_context's effective prompt, the embeds resolve as the Task's agent and a note, file, or table hidden from that operator takes the unreachable marker (embedSourceShownTo in apps/orchestrator/src/artifacts/embeds.ts), and the state they are shown, the inspector's and studio_get_agent_context's and the one inside both effective prompts, lists the agent's tables less the own tables of guilds hidden from that operator (previewStateShownTo in apps/orchestrator/src/studio/preview.ts). The Task hashes those views compare with a run's task_prompt_hash are computed from the Task as the agent reads it (nextRunTaskHash); a hash shows no content. test/integration/studio-home-guild.test.ts pins it. Migration 0021_home_guild.sql nulls every origin_guild_id that names no guild of the item's organisation; gives a live or deleted note or file with no home the one guild its access list names, when the list has no organisation row and its guild rows and the guilds of its agent rows all name that guild; and adds the foreign key artifacts_origin_guild_id_fkey (ON DELETE SET NULL) and the index artifacts_by_origin_guild. The home never enters an agent's mode, a guild's scope, Studio's reach, or a starting row. test/integration/artifacts.test.ts, test/integration/home-guild.test.ts, and test/integration/migrations.test.ts pin it.

Residual risk:

  • Hiding is for operators only, by design. A private guild's note or file with an organisation row is read by every agent of the organisation, and with a row for another guild or its agents by those agents, while the operators outside the private guild do not see it. Such an agent can copy what it read into a note, a file, a group chat, or a run that those operators see.
  • A run stores what its agent read: its opening system message holds the Task with every embed inlined as the agent reads it, and its transcript the results of its note and file reads. The run's System tab and transcript show them to every operator who sees the agent's guild, a private guild's note an organisation row lets the agent read included.
  • A Studio draft's preflight composes the proposed Task as the agent's next run reads it: its token_estimate counts the text of every note, file, and table it inlines, and the tables in its state, those hidden from the operator included, so the estimate reflects the size of what is hidden from them. Its prior_effective_hash is the hash of the live Task as the agent reads it, as the inspector's is.
  • A name is one live note or one live file across the organisation. An operator's write or upload at a name a hidden item holds is 422 (write not allowed), so it tells them the name is taken, though not what holds it.
  • A note or a file an operator created before migration 0021 has no recorded home when its access list has an organisation row or names more than one guild. It stays the organisation's, and an organisation row shows it to every operator. An agent's item keeps the guild recorded when it was inserted.

SEC-56 — Deleting a private guild showed the history of its notes and files to every operator ​

Status: fixed 2026-11-03.

Found: 2026-11-02, giving notes and files a home guild.

Where: deleteGuild in apps/orchestrator/src/db/guilds.ts and deleteAgent in apps/orchestrator/src/db/agents.ts.

Exposure: a note or a file is hidden from an operator while its access rows all name private guilds they do not operate or those guilds' agents, and a deleted one keeps its rows so the rule covers its tombstone and its change history. Deleting a guild or an agent removed the rows naming it. A live item whose every row named a private guild or one of its agents was soft-deleted with no row left, and a tombstone in the same case lost its rows. An item with no row is hidden from no one, so every operator of the organisation read its change history: its display path, who wrote it and when, the runs that did, and the access-list changes logged against it.

Fix: deleting a private guild removes, before its access rows go, every note and file, live or deleted, homed in it whatever its rows, and every one with no home whose access list is not empty and names only the guild or its agents, each with its access list, its file_changes rows, and the config_changes rows of its access list (purgePrivateGuildNotesAndFiles in apps/orchestrator/src/db/artifact-access.ts). Deleting an agent of a private guild first homes in that guild every note and file, live or deleted, with no home whose access list is not empty and names only the agent (homeAgentOnlyNotesAndFiles), so it stays hidden by its home once the agent's rows go. A note or a file homed in a guild an operator can see is never hidden from them by its rows, so the rows a deletion removes from it hide nothing. Deleting a guild that is not private, or an agent of one, removes only the access rows naming it: its items hid nothing, and a guild's stay as the organisation's. test/integration/private-guild-artifacts.test.ts and test/integration/artifact-files.test.ts pin it.

Residual risk: a live file removed with its guild keeps its bytes in the blob store, no longer named by any row (SEC-46).

SEC-55 — A note's or a file's reach came from its owner as well as its access list ​

Status: fixed 2026-11-02.

Found: 2026-11-02, giving notes and files an access list and nothing else.

Where: artifactModeSql and hiddenScope in apps/orchestrator/src/db/artifacts.ts, artifactMode in apps/orchestrator/src/artifacts/store.ts, and the access routes /api/notes/:id/access and /api/files/:id/access (apps/orchestrator/src/artifacts/access-lists.ts).

Exposure: two rules outside the access list decided who reached a note or a file. The agent that owned an agent-level item read and wrote it whatever its list said, and the list refused a row naming that agent, so an operator could neither lower nor remove the owner's reach and the Access panel showed no row for it. An operator's view hid an item by its owner: a guild-level item of a private guild the operator does not operate, or an agent-level item of one of its agents, stayed hidden even once its list opened it to the organisation, while an item owned elsewhere whose list named only a private guild's agents showed to every operator.

Fix: an agent's mode on a note or a file is its access list alone, through agentModeSql and effectiveAccess: its own row, none shutting it out, else the better of its guild's and the organisation's rows. An item is hidden from an operator when its list is not empty and every row names a private guild the operator does not operate or an agent of such a guild; an item with no row is hidden from no one. Creating an item writes one row: an agent its own at write, an operator the subject it names. Migration 0020_access_list_only.sql gives every live agent-level note and file a row for its agent at write, so no agent loses what it reached. A deleted note or file keeps its rows, so its tombstone and its change history stay hidden by the same rule. Deleting a guild or an agent deletes the rows naming it, and with them every note and file those rows alone reached, recorded as a deletion by the operator who deleted it. Memory, the Task, and scripts stay bound to their agent and hidden with its guild. test/integration/artifacts.test.ts, test/integration/private-guild-artifacts.test.ts, and test/integration/migrations.test.ts pin the rules and the migration.

Residual risk: an operator who removes every row of a private guild's note on its Access panel makes it visible, and writable, to every operator of the organisation; creation never leaves an item without a row. Since 2026-11-03 a note or a file homed in that guild stays hidden by its home (SEC-57). The tombstone of a note or a file deleted with its guild or agent has no row left, so its change history shows to every operator of the organisation; since 2026-11-03 such an item homed in a deleted private guild is removed with its history instead (SEC-56). A file deleted that way keeps its bytes in the blob store (SEC-46).

SEC-54 — While a browse call runs, any process on the orchestrator's host can drive the agent's Chrome through its CDP bridge ​

Status: open, accepted, by design since 2026-10-30. Fastbrowse runs in the orchestrator so that the System One key and the model key stay out of the machine's container.

Found: 2026-10-30, building the browse tool.

Where: openCdpBridge in apps/orchestrator/src/browse/bridge.ts, opened by runBrowse in apps/orchestrator/src/browse/runner.ts for each browse call.

Exposure: fastbrowse's CDP client connects only to a local port and adds no headers, so each browse call opens a bridge on an ephemeral port of the orchestrator's loopback interface. The bridge forwards Chrome's /json endpoints and /devtools/ WebSockets to the agent's DevTools relay with the sandbox host's headers added, and asks nothing of its clients. While the call runs, any process on the orchestrator's host that finds the port has full DevTools control of that agent's Chrome, as SEC-53 describes, without the sandbox host's credentials.

Control in place: the bridge listens on 127.0.0.1 only, on a port the system picks, for one call, and is closed with every connection it holds when the call ends, however it ends. It forwards only the DevTools paths and only to the one relay it was opened for; any other path answers 404. The sandbox host's headers never leave the orchestrator. The TypeSafe and model keys stay in the orchestrator's fastbrowse process and never enter the machine's container.

Residual risk: a process on the orchestrator's host is already trusted with the orchestrator's own credentials. Closing the window takes a per-call secret the client presents, which fastbrowse's CDP client cannot send.

SEC-53 — An agent's DevTools relay answers any process on its machine's container network without authentication ​

Status: open, accepted, by design since 2026-10-30. The relay is the agent-optimized browser's way into Chrome from the orchestrator.

Found: 2026-10-30, building the agent-optimized browser.

Where: the gost relay runtime/agent-browser-start starts per browser slot, on port 9400+slot of every interface of the machine's container, forwarding to Chrome's loopback DevTools port (SlotPorts.cdpRelay, apps/orchestrator/src/machines/index.ts).

Exposure: the relay forwards bytes and sets each request's Host to Chrome's; it checks no credential. Any process that reaches the container's network address on that port has full DevTools control of the agent's Chrome: it can read and change every page, the profile's cookies and logins, and type into any site the agent is signed in to. That covers every process in the container, as SEC-24 already allows through Chrome's loopback port, and any other client the sandbox host's network routes to the container.

Control in place: a machine's container is one organisation's (SEC-24), and a relay serves one agent's Chrome on one slot. Outside the container, the orchestrator reaches the relay through the sandbox host's endpoint, which requires the host's credentials, as the Browser tab's noVNC port does: the same exposure class. The relay runs only while the agent's browser runs and stops with it.

Residual risk: a process able to reach the container's address directly on the sandbox host's network drives the agent's Chrome. Closing that takes the relay listening only where the sandbox host's endpoint connects from, or a credential on the DevTools connection.

SEC-52 — The sandbox proxy sent a request to any host a proxied path named ​

Status: fixed 2026-10-29.

Found: 2026-10-29, from a code-scanning alert (CWE-918) on the proxy's URL construction.

Where: joinUpstream in apps/orchestrator/src/http/sandbox-proxy.ts, reached by /api/agents/{id}/browser/vnc/* and /api/agents/{id}/cli/tty/* over HTTP and WebSocket (src/http/sandbox-routes.ts).

Exposure: the proxy resolved the requested path against the sandbox daemon's base URL with new URL(path, base). A path that was itself a URL (http://host/…) or began with two backslashes replaced the base entirely, so the orchestrator sent the request to that host from its own network position, with the client's headers and the sandbox seat's authorization header, and returned the response to the client. Any user who could see an agent whose sandbox was running could reach any address the orchestrator can, internal services and the cloud metadata endpoint included. .. segments were already refused by filePathParam (src/http/request.ts), and a path starting with // stayed on the daemon.

Fix: joinUpstream keeps the daemon's origin and sets only the URL's pathname from the base path and the requested path, so a path written as a URL is a path on the daemon; a result that leaves the base path is a 404. test/unit/sandbox-proxy.test.ts pins the three forms against a second server, which receives nothing.

Residual risk: none known. Every path under the daemon's base stays reachable to a user who can see the agent, as the browser and terminal views need.

SEC-51 — A recipe capture copies the notes of private guilds its operator does not operate ​

Status: fixed 2026-10-28.

Found: 2026-10-28, giving artifacts/ one function for the notes a capture names with their access lists.

Where: captureGuild in apps/orchestrator/src/recipes/capture.ts, which builds its operator actor without hidden guilds (line 563) and reads the notes it includes through notesNamed (line 445); notesNamed in apps/orchestrator/src/artifacts/notes.ts (line 292); POST /api/guilds/:guild_id/recipes in apps/orchestrator/src/http/recipe-routes.ts, which passes the request's include_notes through as they are (line 189).

Exposure: a capture acts as an operator actor that carries no hidden guilds, so it reads every live note of the organisation, the guild and agent notes of private guilds included. It keeps each note whose display path or file name is one of include_notes or one of the roles' Task embeds, and copies its text into the recipe draft the route returns and stores. A user who can see one guild and names a private guild's note in include_notes, by its display path or only by its file name, gets that note's text in the draft. A file name also takes every other note of that name in the organisation.

Control in place: the route captures only a guild the user can see (requireVisibleGuild). A Task cannot embed a private guild's note (SEC-42), so the embeds alone do not reach one. Tables are captured only when they are the guild's own or the organisation's.

Fix: the route builds the capture's actor with loadOperatorActor (apps/orchestrator/src/artifacts/actors.ts), which carries the private guilds the user does not operate, and captureGuild in apps/orchestrator/src/recipes/capture.ts takes that actor, so notesNamed leaves their notes out, by display path and by file name.

Residual risk: none known. A capture carries a private guild's note only for a user who operates that guild.

SEC-50 — An operator's read of a Memory revision path is not limited to its organisation ​

Status: fixed 2026-10-28.

Found: 2026-10-28, giving artifacts/ one function for what a display path holds.

Where: readRevision in apps/orchestrator/src/artifacts/notes.ts (lines 308-316), which getByDisplayPath calls for a history-archive path (line 280).

Exposure: readRevision lets an operator actor through when reachesOwner says it reaches the agent. That check only looks at the actor's hidden guilds, not at its organisation. It then reads the revision with the organisation id the path names. An operator actor of one organisation that is handed another organisation's revision path, with that agent's id and the revision's stamp, gets that agent's archived Memory text.

Control in place: no caller passes such a path through today. artifactAt in apps/orchestrator/src/artifacts/notes.ts refuses a path outside the actor's organisation before it reads, and the Studio reads through it. readEmbeddableNotes and lastSavedRow in apps/orchestrator/src/artifacts/host-files.ts drop a revision and keep only a live row. An agent actor never reaches readRevision's read: the archive is the operator's.

Fix: readRevision in apps/orchestrator/src/artifacts/notes.ts refuses a revision path whose organisation is not the actor's with 404 (artifact is not in this organisation) before any other check, so getByDisplayPath reads a revision only in the actor's organisation, whatever its caller checked.

Residual risk: none known.

SEC-49 — A run's diff and a code task's log were served unredacted when the agent's secrets could not be read ​

Status: fixed 2026-10-27.

Found: 2026-10-27, moving the coding-run steps out of the generation loop.

Where: runDiff and harnessLog in apps/orchestrator/src/generation/coding.ts, behind GET /api/runs/:run_id/changes/:repository/diff, GET /api/runs/:run_id/tasks/:call_id/diff, and GET /api/runs/:run_id/tasks/:call_id/log.

Exposure: both read the agent's secret values to redact what they return. When that read failed, they redacted with no values and served the output as written. A diff or a harness log that printed a secret then showed it to any member who can see the run's guild.

Fix: a failure to read the agent's secrets refuses the request with 503; the output is never served without them.

Residual risk: what SEC-32 describes: values that are not the agent's secrets show as written.

Since 2026-11-16 harnessLog, the run-level changes diff, and the task diff and log routes are removed with the coding agent (SEC-32). A turn's diff keeps the fix.

SEC-48 — A run that listed a login's tools for the first time was offered the ones that start Off ​

Status: fixed 2026-10-26.

Found: 2026-10-26, checking the GitHub connector's tools on a live login.

Where: agentRuntime in apps/orchestrator/src/access/runtime.ts and httpAccess in apps/orchestrator/src/http/access.ts.

Exposure: both read the bindings covering the agent, then synced each login's tools, then resolved those tools against the bindings they had read. A sync writes the Off binding of each tool it lists for the first time (SEC-16), after that read. A run whose start listed a login's tools for the first time, or a tool the server had just added, was offered every such tool that starts Off: tools that write, delete, send, or merge, on any connector. The run's agent could call them. The access view showed them On until the next load.

Fix: both read the bindings again after the syncs and resolve tools against those.

Residual risk: a run or a view that started before the fix and listed a tool for the first time was offered it once. The Off binding it wrote stands, so later runs are not.

SEC-47 — GitHub content an agent reads through its tools can steer its writes to the login's repositories ​

Status: open.

Found: 2026-10-26, giving the GitHub connector its tools.

Where: apps/orchestrator/src/connectors/github/connector.json, mintLoginToken in apps/orchestrator/src/github/tokens.ts, and the pool's GitHub App session in apps/orchestrator/src/mcp/login-auth.ts.

Exposure: any agent a GitHub login's connector is on for, coding or not, reads issues, pull requests, comments, files, and CI logs through GitHub's hosted MCP server. Anyone who can write to those repositories, or comment on a public one, writes that text. Instructions planted in it can steer the agent to call the writing tools that are On: comment, edit issues, open, review, or merge pull requests, write files, push, or trigger workflows, on any repository the login picked. The token the session sends holds every permission the installation grants, which is broader than a repository token's contents: write. A login at the organisation or a guild serves every agent below it.

Control in place: the token stays in the orchestrator and never enters a sandbox. GitHub limits it to the login's picked repositories by id, and it expires within an hour. Tools that write start Off (What starts Off). Creating and forking repositories are not listed. Branch protection and required reviews on GitHub still apply to the App.

Fix: not yet. Fixing it takes minting the tool token with only the permissions its toolsets use, and keeping writes on untrusted content behind an operator's approval.

Residual risk: an agent with a GitHub writing tool On can be steered to use it on any repository its login picked. Content it reads can also steer its other tools, as it can a subscription agent's harness (SEC-66). Since 2026-11-16 a subscription agent that picks repositories opens its pull requests with this connector's create_pull_request, which its system prompt names when it is On, and pushes the branch with a token of its own that holds contents: write alone (SEC-66); the connector's session token stays broader.

SEC-46 — Deleting an agent, a guild, or an organisation leaves its files' bytes in the blob store ​

Status: open.

Found: 2026-10-26, designing shared files.

Where: ArtifactFiles in apps/orchestrator/src/artifacts/files.ts writes each file version to the blob store under <org_id>/files/<artifact id>/v<version>; agent, guild, and organisation deletion in apps/orchestrator/src/http/routes.ts and apps/orchestrator/src/db/ removes artifacts rows by cascade.

Exposure: file_delete, DELETE /api/files/:file_id, and a replace remove the object they retire. A cascade does not: the rows go, the objects stay. Bytes an operator meant to remove by deleting an agent or a guild survive on disk or in the bucket, unreferenced, until someone removes them by hand. Nothing serves them: every read goes through a live row and its access list.

Control in place: the objects cannot be reached through the API. The per-organisation cap counts live rows only, so orphans do not block new files.

Fix: not yet. Fixing it takes removing a file's objects when its owner is deleted, or a sweep that removes objects no live row names.

Residual risk: until then, deleted owners' file bytes stay in the blob store.

SEC-45 — Shared files carry arbitrary bytes between agents and operators ​

Status: open, accepted.

Found: 2026-10-26, designing shared files.

Where: apps/orchestrator/src/artifacts/files.ts, apps/orchestrator/src/toolbox/file.ts, apps/orchestrator/src/http/file-routes.ts.

Exposure: a file is any bytes up to 10 MiB. Unlike a chat image, its content is not sniffed: the media type is what the uploader said or what the name's extension says. A file one agent shares lands, through file_fetch, in another agent's home, where a script or a coding harness opens it: text inside can steer that agent the way content a coding agent reads can (SEC-8), and an executable or an archive can carry anything. An operator downloads a file an agent produced and opens it on their own machine. Every operator of a guild reaches every file the guild reaches.

Control in place: the orchestrator never opens a file's bytes. Downloads are served with Content-Disposition: attachment and X-Content-Type-Options: nosniff, so the browser saves the file and never renders it, whatever its type says. The agent-side copy goes through readAgentFile and writeAgentFile, which keep both ends inside the agent's home (SEC-1, SEC-3). Each file carries a required description and an access list, and every write is in the file change log with its run and tool call. Size is capped per file and per organisation. The system prompt says file content is data.

Fix: none planned. Scanning or sniffing bytes would not make them safe to run, and a shared-file feature that refuses unknown types is not one.

Residual risk: an agent that fetches a file and runs or parses it trusts its sharer. An operator who opens a downloaded file trusts the agent that made it.

SEC-44 — A recipe preview confirms a private guild's table and its column types ​

Status: open.

Found: 2026-10-21, reviewing what the Builder and recipe apply can see outside a new guild.

Where: planCollections and previewActor in apps/orchestrator/src/recipes/plan.ts, behind POST /api/recipes/:recipe_id/preview in apps/orchestrator/src/http/recipe-routes.ts.

Exposure: the preview matches each recipe collection by name against every table in the organisation, read as an operator actor with no hidden guilds. An organisation member can put a guessed name in a recipe and preview it. If a private guild they do not operate owns a table of that name, the preview says the table exists and returns its collection id. Column differences then say which recipe columns it lacks and which have another type, so repeated previews map its columns.

Control in place: every lookup is limited to the recipe's organisation, and the name has to be guessed. Records are never returned.

Fix: not yet. Fixing it takes matching recipe collections against organisation tables only, since a recipe can reuse nothing else, with the previewing operator's hidden guilds.

Residual risk: until then, a private guild's table names and column types can be probed by any organisation member who can preview a recipe.

SEC-43 — Studio shows a private guild's tables and records to operators who cannot see that guild ​

Status: fixed 2026-10-21.

Found: 2026-10-21, reviewing what a Studio session can read outside its source guild.

Where: operatorContext in apps/orchestrator/src/artifacts/store.ts, which built an operator actor with no hidden guilds, used by listTables, readTable, and tableContext in apps/orchestrator/src/studio/tables.ts. Record and collection display paths in studio_get_artifact, studio_list_file_changes (apps/orchestrator/src/studio/tools.ts), and file focus pins (apps/orchestrator/src/studio/focus.ts) were accepted for any collection of the organisation.

Exposure: the table store filters collections and grants by the actor's hidden guilds, and the Studio actor hid none. A Studio session listed every table of a private guild the operator did not operate, with that guild's name, the table's purpose, columns, and record count. studio_get_collection returned its latest records and the names of the private guild's agents holding grants on it. A record path of any table, private guilds included, could be read and its change history listed. The coach read all of it as evidence and could quote it to the operator.

Fix: a single reach rule (apps/orchestrator/src/studio/reach.ts) limits every Studio table and path read to the source guild's own collections and the organisation's, so no other guild's own collection or record is in reach. Table reads build the operator actor with the operator's hidden guilds, so grants held in a private guild they do not operate are left out of what an organisation collection shows.

Residual risk: none known for collections.

SEC-42 — A Task can embed a private guild's note that its runs and Studio then show ​

Status: fixed 2026-10-22.

Found: 2026-10-19, building the Studio's References view.

Where: inlineTaskEmbeds and snapshotTaskEmbeds in apps/orchestrator/src/artifacts/embeds.ts, which were called with an operator actor that carried no hidden guilds: run creation in apps/orchestrator/src/generation/index.ts, the Studio agent inspector in apps/orchestrator/src/studio/index.ts, draft previews in apps/orchestrator/src/studio/drafts.ts, and studio_get_agent_context in apps/orchestrator/src/studio/tools.ts.

Exposure: saving a Task does not check what its embeds name. An operator of one guild could embed the display path of a guild- or agent-level note of a private guild they do not operate. Each run of that agent then carried the note's text in its system prompt, which the run's System tab shows to everyone who can see the agent's guild. The Studio Prompt tab of that agent showed it too, in the effective prompt. Reading it this way took knowing the note's display path, which holds the private guild's id.

Fix: every place that inlines a Task's embeds, run creation and the three Studio previews, resolves them as the Task's own agent (taskEmbedActor in apps/orchestrator/src/artifacts/embeds.ts), so a note is inlined only when its access list gives that agent, its guild, or the organisation read or write. Any other embed becomes a marker that names the path and says the file is not reachable; the note's text never enters the prompt. The embed status route and the Studio's References view check each Task as its agent the same way and report such an embed as not reachable.

Residual risk: a private guild's note reaches another guild's runs only when its access list gives that guild, one of its agents, or the organisation a row, which an operator of the private guild chose.

SEC-41 — An organisation could be left without an owner ​

Status: fixed 2026-10-18.

Found: 2026-10-18, reviewing organisation membership changes.

Where: DELETE /api/users/:id, PUT and DELETE /api/orgs/:id/members/:user_id in apps/orchestrator/src/http/routes.ts; deleteUser in apps/orchestrator/src/db/users.ts; updateMemberRole and deleteMember in apps/orchestrator/src/db/orgs.ts.

Exposure: deleting a user refused the last owner only when the organisation had guilds. An organisation with other members and no guild lost its only owner, and no member left could name an owner, since only an owner manages owners. Demoting and leaving counted the owners and then wrote in a separate statement, so two owners demoted or leaving at the same moment could both pass the count.

Fix: the repository refuses, with 409, to delete, demote, or remove the organisation's only owner while it has other members or guilds. Each change first locks the owner rows of the organisations it touches, so owner changes in one organisation run one at a time and each sees the owners the one before it left.

Residual risk: an organisation already left without an owner stays without one.

SEC-40 — A tool binding written before a server listed the tool turned it on ​

Status: fixed 2026-10-18.

Found: 2026-10-18, reviewing tool switches.

Where: PUT /api/bindings in apps/orchestrator/src/http/routes.ts; isListedMcpTool in apps/orchestrator/src/db/mcp.ts.

Exposure: an mcp_tool binding took any non-empty catalog_id. A binding written On for a name no server listed took effect when a server later listed a tool by that name. The Off a destructive tool starts with is written only where no binding exists (SEC-16), so that tool started On.

Fix: an mcp_tool binding needs the namespaced name of a tool a server visible to the organisation lists; any other name is 404.

Residual risk: bindings written before the fix stay. A tool a server stops listing keeps its binding, and the binding applies again if the server lists the tool once more.

SEC-39 — An operator could take an agent's name in a guild they operate ​

Status: fixed 2026-10-18.

Found: 2026-10-18, reviewing the guild tag checks.

Where: PATCH /api/auth/me in apps/orchestrator/src/http/me-routes.ts; updateUserProfile in apps/orchestrator/src/db/users.ts.

Exposure: agents and operators share a guild's tags. Adding an operator, creating an agent, and renaming an agent refuse a name the other side holds, but a user renaming themselves did not. An operator could take the name of an agent in a guild they operate, so one tag named both: a mention meant for the agent could reach the operator, and the operator's group messages read as the agent's.

Fix: renaming refuses, with 409, a name an agent holds in any guild the user operates. The check and the write run in one transaction.

Residual risk: like the other tag checks, the check takes no lock, so an agent created with the same name at the same moment can still clash.

SEC-38 — The Antigravity harness loads a repository's customisations and runs with its permission prompts off ​

Status: open.

Found: 2026-10-18, auditing the architecture documentation.

Where: the Antigravity driver in runtime/guilds-harness, pinned to the Antigravity CLI ANTIGRAVITY_VERSION in runtime/Dockerfile and started through runtime/agy.

Exposure: every call runs agy with --dangerously-skip-permissions, and the driver writes the CLI's settings with toolPermission and artifactReviewPolicy set to always-proceed. The harness runs every command and edit it decides on, as root (SEC-6), with the agent's granted secrets in its environment, and through the machine with every agent on it (SEC-24). The CLI has no switch to ignore customisations: a repository's own .agents/, GEMINI.md, and AGENTS.md load. Whoever can push to a repository an Antigravity agent works on can steer it, as with the instruction files of SEC-28. Whether a repository's .agents/ can also carry code that runs on load, as Cursor's hooks do (SEC-31), is not checked. The Google sign-in is ~/.gemini/antigravity-cli/antigravity-oauth-token in the agent's home, readable by every process on the machine (SEC-27), and everyone who starts the agent's runs uses that subscription (SEC-30).

Control in place: before every call the driver removes the user-level customisations in ~/.gemini/ (GEMINI.md, AGENTS.md, hooks, MCP configuration, skills, plugins, workflows, and sidecars) and rewrites the CLI's settings. It passes --disable-slash-commands. It removes from the harness's environment the variables that would move it off the Google sign-in (GEMINI_API_KEY, GOOGLE_GEMINI_BASE_URL, AGY_ADC_AUTH, AGY_LLM_GATEWAY_URL, AGY_ACCOUNT, and the Google Cloud project variables), and GH_TOKEN and GITHUB_TOKEN like every harness. The settings never spend paid credits past the plan and turn telemetry off. The image the release workflow publishes carries no Antigravity CLI.

Since 2026-11-16 Antigravity runs only as a subscription agent's harness, and only for an agent that picks a repository (SEC-67): the coding agent's code_task, whose brief told it not to push, is removed. Its turn now holds the token that pushes to the repositories its agent picks (SEC-66), beside the repository customisations it loads.

Fix to make: establish what a repository's .agents/ can run on load. Until then an operator who wants no repository customisation to reach the harness picks Claude Code or Codex for that agent.

SEC-37 — Any organisation member can read and change a private guild's notes and databases through organisation-wide routes ​

Status: fixed 2026-10-18.

Found: 2026-10-18, auditing the architecture documentation.

Where: GET /api/org/embeddable-notes, /api/collections and its record routes, and GET /api/file-changes in apps/orchestrator/src/http/routes.ts; operatorFor in apps/orchestrator/src/http/artifact-notes.ts; canReadLevel, accessibleCollections, and readableCollectionsSql in apps/orchestrator/src/artifacts/store.ts.

Exposure: these routes check only that the user is a member of the organisation. They then act as an operator actor, which reads every level in the organisation. A private guild is visible only to its operators (canSeeGuild), but through these routes any member:

  • lists up to 500 notes of the organisation with their content, agent and guild notes of private guilds included, and reads any note by its display path (/api/org/embeddable-notes)
  • lists every collection of the organisation, a private guild's own tables included, and reads, writes, and deletes their records, columns, and the tables themselves (/api/collections…)
  • reads the change history of any display path in the organisation: who wrote it, when, and from which run and tool call (/api/file-changes, which checks no read access at all)

Control in place: every query is limited to the caller's organisation. Guild-scoped routes use ownedGuild, which refuses a guild the user cannot see.

Fix: the operator actor of a request carries the private guilds of the organisation the user does not operate, with their agents (operatorFor and hiddenGuildsFor). The artifact store leaves their guild- and agent-level notes, Memory revisions, and own tables out of every read, listing, search, and write, refuses them as a table's guild or a grant's subject, and leaves them out of a table's grant listing. The file-change routes answer only for display paths the user can read.

Since 2026-10-22, access to notes and collections is one explicit access list per item, the artifact_access table (apps/orchestrator/src/artifacts/access.ts). A row gives the organisation, a guild, or one agent read or write, and an agent row may be none. An agent's own row wins; otherwise it takes the better of its guild's row and the organisation's row; no row is no access. A note's level and a collection's owning guild are placement only. Operators reach every note and collection except those of the private guilds they do not operate, by the rule above. The access routes (/api/notes/:note_id/access, /api/collections/:collection_id/access) leave out the rows of those guilds and their agents, keep them unchanged on a PUT, and refuse those guilds and agents as subjects. The reach routes leave out their items. Every change to a list is logged in config_changes.

The migration (apps/orchestrator/drizzle/0012_artifact_access.sql) carried every row of the previous collection grants over, and wrote a guild write row for each guild's own collection and each guild note, and an organisation read row for each organisation note and each organisation collection that had no organisation row. An organisation collection no guild had been granted therefore became readable by every agent of the organisation. It deleted every note grant binding (artifact_grant) at every scope without carrying it over. An agent, a guild, or an organisation whose note reach was set apart from the defaults therefore follows the new rows: one that was held back from guild or organisation notes reads them again, and one that could write organisation notes no longer can, until an operator adds an agent or guild row on those notes. A new organisation collection or note starts with the organisation at read, so every agent of the organisation reads it from creation.

Residual risk: an organisation table a private guild is granted stays visible to every member, as every organisation table is; only the grant to that guild is hidden. The same holds for an organisation note with a row for a private guild. The operator actors that recipe apply, capture, and generation build carry no hidden guilds; each acts for one guild its caller can see.

SEC-36 — Evidence the Studio coach reads can steer a proposed routine that wakes an agent unattended ​

Status: open, accepted.

Found: 2026-10-18, adding routine requests to Prompt Studio.

Where: studio_edit_routine (actions create and edit) in apps/orchestrator/src/studio/routine-tools.ts and apps/orchestrator/src/studio/routines.ts.

Exposure: the coach reads run transcripts, notes, Memory, group messages, and data from logins the operator granted to the session. Any of it can carry text written to steer a model. Steered text could lead the coach to propose a routine, or a new instruction for one, that hands an agent attacker-chosen work on every wake-up, with no one posting, using whatever tools that agent holds.

Control in place: the coach writes nothing. A routine request is a card the operator applies or declines. The card shows the agent, the timing, and the complete instruction before and after, and says when the agent wakes. Applying writes only that routine, as the operator, after checking its agent, timing, description, instruction, and pause have not moved since the request. The routine's instruction reaches the agent as a user message on a schedule run, which offers no schedule tools, so a routine cannot create further routines. The Studio template treats everything it reads as evidence, never instructions.

Since 2026-10-19, every routine create, edit, pause, resume, and delete appends a config_changes row with its actor. A routine applied from a Studio card links to the session and the coach message that proposed it; one an agent changed links to its run and tool call. A steered routine can be traced back to the proposal or the step that made it. The log records; it blocks nothing.

Residual risk: an operator who applies a request without reading the instruction can schedule steered work. Closing it fully takes refusing routine creation and instruction changes from Studio and leaving them to the Routine tab.

SEC-35 — Evidence the Studio coach reads can steer a proposal to widen an agent's access ​

Status: open, accepted.

Found: 2026-10-17, adding access requests to Prompt Studio.

Where: studio_edit_access in apps/orchestrator/src/studio/access-tools.ts and apps/orchestrator/src/studio/access.ts.

Exposure: the coach reads run transcripts, notes, Memory, group messages, and data from logins the operator granted to the session. Any of it can carry text written to steer a model. Steered text could lead the coach to propose turning on, for one agent, a native tool, a file level, a connection, or a connection tool that changes data in an external service.

Control in place: the coach writes nothing. An access request is a card the operator applies or declines, and applying writes only that agent's own bindings, as the operator, after checking the agent's resolved access has not moved since the request. The card shows the access before and after, marks each connection tool that changes data, and names every such tool the request gives back. The Studio template treats everything it reads as evidence, never instructions. A request that widens access is marked as such, and Apply all skips it: it needs its own apply (added 2026-10-19, with the workspace's approval tray).

Residual risk: an operator who applies a request without reading it can give an agent a tool that changes data. Closing it fully takes refusing access widening from Studio and leaving it to the Access pane.

SEC-34 — A Studio session kept working after its user could no longer see the guild ​

Status: fixed 2026-10-17.

Found: 2026-10-17, checking who may apply a Studio access request.

Where: StudioService.getOwnedSession and listSessions in apps/orchestrator/src/studio/index.ts.

Exposure: Studio checked that its user could see the source guild only when a session was created. A user later removed from a private guild's operators, or whose guild became private, kept the sessions they had opened: they could read the guild's evidence through the coach, publish Task drafts, and apply edits to Memory, notes, tables, and access.

Fix: every session request loads the source guild and answers 404 when the user cannot see it, and the session list leaves out sessions on such guilds.

Residual risk: none known. A session whose guild was deleted stays readable, as before; its live tools are off.

Status: open.

Found: 2026-10-17, adding members by name from Settings, Members.

Where: POST /api/orgs/:id/members in apps/orchestrator/src/http/routes.ts.

Exposure: the route takes a user's name as well as their id. Names are short, readable, and unique on the box, so they can be guessed, unlike ids. A 404 for an unknown name and a 201 or 409 for a known one tell the caller whether that name holds an account. Every user owns their personal organisation, so on trusted-header every user can test names that the user directory would hide from them, and add the account they find to an organisation of theirs. The added user is not asked. The organisation then shows in their switcher, a guild admin there can make them an operator, and that guild's agents can tag them into their Inbox. On compat-cookie whoever reaches the box already reads the whole directory, so the route reveals nothing new there.

Control in place: only an owner or admin of the organisation adds a member, and only an owner adds an owner. The added user can leave with DELETE /api/orgs/:id/members/<their id>; the app has no control for leaving. No data of theirs is shared with the organisation.

Residual risk: on a box shared by several teams behind a proxy, anyone can list who has an account by trying names, and can place someone in an organisation they did not choose. Fixing it takes an invitation the user accepts before the membership exists, or keeping name lookups to the instance admin.

SEC-32 — The harness log the app reads is redacted only with the agent's secret values ​

Status: closed 2026-11-16.

Found: 2026-10-16, adding the Log view of a code_task call.

Where: GET /api/runs/:id/tasks/:call_id/log (apps/orchestrator/src/http/coding-routes.ts), harnessLog in apps/orchestrator/src/generation/coding.ts, readHarnessLog in apps/orchestrator/src/toolbox/harness-ops.ts, and the log op of runtime/guilds-harness.

Exposure: a harness's event log is stored unredacted in the agent's home. It holds what the harness read and ran, which can include values that are not the agent's secrets: the GitHub tokens minted for the run, a login file's values (SEC-27), and whatever a file in a repository or the home holds. The endpoint serves the log to any member who can see the run's guild.

Control in place: the log passes redaction with the agent's secret values before it leaves the machine's helper output, and its progress lines are cut at 240 characters like live progress. Only a code_task result naming its harness and log can be read, from the run's own .runs/ folder, by call id; the helper refuses ids that are not a single safe path segment and a log that is a symlink. The same members can already open the agent's terminal and read the file unredacted.

Residual risk: a value that is not one of the agent's secrets shows as written. A run's GitHub tokens expire within the hour, so a log read later shows an expired token.

Closed: 2026-11-16. The route, harnessLog, readHarnessLog, and the log op are removed with the Log view of a code_task call. No route serves a harness's event log; the log stays in the agent's home, which the members who see the run's guild reach through the agent's terminal.

SEC-31 — Cursor runs a repository's hooks ​

Status: open, accepted on 2026-10-13: Cursor stays available for every repository.

Found: 2026-10-13, removing the local state of coding harnesses.

Where: the Cursor driver in runtime/guilds-harness, pinned to the Cursor CLI 2026.10.01-e373342.

Exposure: the Cursor CLI runs the hooks a repository declares in .cursor/hooks.json (or .cursor/hooks/) on events of its turn, without the model deciding to run them, and has no flag or variable to turn project hooks off. Whoever can push to a repository a Cursor agent works on can run commands in that agent's sandbox, as root (SEC-6), with its granted secrets in their environment and its git token through the credential helper (SEC-10), and through the machine with every agent on it (SEC-24).

Control in place: none on the hooks themselves. The driver removes user-level hooks from ~/.cursor/ before every call, so only the repository's own hooks run, and those are versioned in the repository, where review sees them. Claude Code and Codex run no project hooks (SEC-29). The guild's repositories are the ones its operators add.

Since 2026-11-16 Cursor runs only as a subscription agent's harness, and only for an agent that picks a repository (SEC-67): the coding agent's code_task is removed. A repository's Cursor hooks now run beside the token that pushes to the repositories the agent picks (SEC-66).

Residual risk: a Cursor agent on a repository that takes pushes from people the organisation does not trust runs their hooks. An operator who wants no repository hook to run picks Claude Code or Codex for that agent.

SEC-30 — Personal harness subscriptions used inside a shared organisation may fall outside the vendor's terms ​

Status: open.

Found: 2026-10-13, building coding harnesses.

Where: a coding agent's harness credential: the secret its harness's token variable reads (CLAUDE_CODE_OAUTH_TOKEN or CURSOR_API_KEY, or the secret secret_aliases maps it to) granted to it, or a login stored in its home (runtime/guilds-harness; Antigravity has only the login, SEC-38), the Harness select on Create agent and agent Settings (apps/web/src/features/agent/settings/HarnessFields.tsx), and the Subscription token select under it (apps/web/src/features/agent/settings/HarnessReadiness.tsx).

Exposure: a harness runs on a subscription, often an operator's personal one. In an organisation, everyone who can start the agent's runs uses it: direct runs, group and schedule wakes, and other agents on its machine that read the credential (SEC-27). A vendor's terms may restrict a personal subscription to its holder or to interactive use. The vendor may then suspend the account.

Control in place: the note under the Harness select reads "Tasks run on your own subscription. Ensure shared use complies with your vendor plan." A harness runs only on a credential someone granted to the agent or logged in with. The Subscription token select lets each agent run on a token its own operator added, under any secret name, so a shared agent need not run on another member's subscription. Organisation model keys never reach the sandbox.

Residual risk: whether a use complies with the vendor's terms is the operator's call. The platform does not check it.

SEC-29 — A repository can carry configuration its coding harness loads ​

Status: open.

Found: 2026-10-13, building coding harnesses.

Where: the drivers' command lines in runtime/guilds-harness, and runtime/claude-code-managed-settings.json, copied to /etc/claude-code/managed-settings.json by runtime/Dockerfile.

Exposure: a coding CLI reads configuration from the repository it works in: for Claude Code .claude/ (settings, hooks, commands, agents) and .mcp.json, for Codex .codex/, for Cursor .cursor/ (rules, mcp.json, hooks.json). A hook or an MCP server is code that runs on load, without the model deciding to run it. Whoever can push to a guild repository could then run commands in the agent's sandbox, with its secrets.

Control in place: every call runs Claude Code with --setting-sources "", so no user, project, or local settings are loaded; --strict-mcp-config, so no MCP server loads that the call does not pass, and it passes none; skills off; and --settings with disableAllHooks. The managed settings, which no user or project file overrides, turn hooks off and project MCP servers off. Every Codex call ignores config.toml and execution-policy rules, disables hooks, plugins, apps, and memories, and sets mcp_servers empty. Cursor calls never pass --approve-mcps; since 2026-11-17 no MCP approval stored in the home survives the reset either, and a Cursor turn that starts in the home approves only the platform's own server (SEC-76). Before every call the driver removes the harness's user-level configuration and memory from the agent's home, so what the agent, its commands, an earlier harness turn, or another agent on the machine (SEC-24) wrote there does not reach the next call; since 2026-11-16 that includes the instruction files Cursor reads in every folder above the one it runs in, in the home and in ~/repos/.

Residual risk: Cursor runs a repository's hooks (SEC-31). Instruction files in the repository (CLAUDE.md, AGENTS.md, .cursor/rules) are read and can steer the harness (SEC-28). Between the reset and the start of the CLI, another process on the machine can write configuration back; the window is the time of one exec.

SEC-28 — A coding harness runs with its permission prompts off ​

Status: open.

Found: 2026-10-13, building coding harnesses.

Where: code_task (apps/orchestrator/src/toolbox/harness.ts) and the drivers in runtime/guilds-harness: Claude Code with --dangerously-skip-permissions (and IS_SANDBOX=1, because commands run as root, SEC-6), Codex with --dangerously-bypass-approvals-and-sandbox, Cursor with --force.

Exposure: the harness runs every command and edit it decides on, with nobody to approve. It reads repository files, issue text, command output, and the notes the agent appends to its brief. Instructions planted in that content can steer it, as they can steer the agent (SEC-8). Its environment carries the agent's granted secrets, and git reaches the installation token through the credential helper (SEC-10). Its final message returns to the agent, which can be steered by it in turn.

Control in place: the container is the boundary. The harness has no guild tools, no MCP servers, and no hooks but a repository's Cursor hooks (SEC-29, SEC-31). GH_TOKEN and GITHUB_TOKEN are never in its environment, nor the variables that would move it to metered API billing. Since 2026-10-14 those include CLAUDE_CODE_USE_BEDROCK and CLAUDE_CODE_USE_VERTEX for Claude Code; until then a Claude Code agent granted either for other work could run its harness on metered Bedrock or Vertex. The brief's preamble tells it never to push or open pull requests. The coding prompt block tells the agent that the harness's final message is data, and to check its work before pushing it.

Residual risk: a steered harness can do anything the sandbox and the agent's secrets allow: read and send them out, change the working tree, and push to the unprotected branches of the repositories its agent picks through git (SEC-10). It reaches the other agents on its machine (SEC-24). Nothing enforces the preamble.

Since 2026-11-16 a subscription agent's harness pushes on purpose: its turn runs in the repositories its agent picks, its system prompt tells it to push its branch, and no other model checks the work before it does (SEC-66). Its GitHub token holds contents: write alone, and GH_TOKEN and GITHUB_TOKEN stay out of its environment.

Since 2026-11-16 a harness runs only as a subscription agent's turn: code_task (apps/orchestrator/src/toolbox/harness.ts), its brief's preamble, and the coding prompt block are removed. The permission prompts stay off on every turn, so the controls in place are the container, the environment the driver writes, and those SEC-66 names.

On 2026-10-14 a technical control on git push was considered. The credential helper reaches git through the system configuration and through GIT_CONFIG_COUNT and GIT_CONFIG_KEY_* in the environment (runtime/Dockerfile). Passing the harness an environment with GIT_CONFIG_COUNT=1 and only the entry that empties the helper would leave git inside the harness with no GitHub token: a push would fail instead of being discouraged, and so would a git fetch from the harness. The helper stays so the harness can fetch. The control on git push remains the brief's preamble and the agent's check-then-push prompt.

SEC-27 — Harness subscription tokens and logins are readable on the agent's machine ​

Status: open.

Found: 2026-10-13, building coding harnesses.

Where: the harness credentials in apps/orchestrator/src/coding/harnesses.ts and runtime/guilds-harness: the secrets the token variables CLAUDE_CODE_OAUTH_TOKEN and CURSOR_API_KEY read, under their own names or through the agent's secret aliases (apps/orchestrator/src/access/runtime.ts), in the environment of the agent's commands, and the logins stored in the agent's home (~/.claude/.credentials.json, ~/.codex/auth.json, ~/.config/cursor/auth.json, and the Antigravity Google sign-in under ~/.gemini/antigravity-cli/, SEC-38).

Exposure: a subscription token granted as a secret is in the environment of every command the agent runs, its harness included. A login is a file in its home. Every agent on the machine runs as root in the same container (SEC-24): any of their processes can read the login file at any time, and the token while a command of this agent runs. So can whatever a package install or a steered harness starts (SEC-4, SEC-28). With the token or the login, the operator's subscription can be used from anywhere.

Control in place: the token reaches a command only by grant, through that command's environment, never the container's, and its value joins run redaction like every secret; an alias is the same value, so redaction covers it under either name. The driver never writes the login or account files. The operator picks the machine an agent goes on, and the operator app says that agents on one machine can read each other's files and sessions.

Residual risk: a token or login read on the machine works until the operator revokes it with the vendor. A login file's values are not in the redaction set, so reading the file back shows them in the run's transcript.

SEC-26 — A member could place an agent beside a private guild's agents ​

Status: fixed 2026-10-13, before machines shipped.

Found: 2026-10-13, reviewing machines.

Where: PUT /api/agents/:id/machine, agent create, PUT /api/agents/:id/config with machine_id, and a recipe apply (apps/orchestrator/src/http/, apps/orchestrator/src/recipes/apply.ts; the rule is in apps/orchestrator/src/machines/access.ts).

Exposure: any member who sees a guild can place its agents. The target machine could host agents of a private guild that member cannot see. Agents on one machine reach each other (SEC-24). The member's agent then had same-user access to those agents':

  • homes
  • git tokens
  • Chrome cookies and logins
  • Chrome DevTools ports

Fix: a placement is refused with 403 when the target machine hosts an agent of a guild the caller cannot see. The refusal covers agent create, a machine_id in the agent configuration, a move, and a recipe apply (the blocking finding machine.private).

Residual risk: owners and admins see every guild, so they can still place agents of different guilds on one machine (SEC-24).

SEC-25 — The machine list named the agents and guilds of private guilds ​

Status: fixed 2026-10-13, before machines shipped.

Found: 2026-10-13, reviewing machines.

Where: GET /api/orgs/:id/machines (apps/orchestrator/src/http/machine-routes.ts).

Exposure: every member of the organisation could list its machines. Each machine listed its agents with their names and their guilds' names, private guilds included.

Fix: the list leaves out every agent of a guild the caller cannot see and gives their number as hidden_agents. They still count toward the machine's slots and planned memory.

Residual risk: a member learns that a machine holds agents they cannot see, and how many.

SEC-24 — Agents on one machine can read each other's homes, tokens, and sessions ​

Status: open, accepted, by design since 2026-10-13. A machine is one trust boundary inside an organisation.

Found: 2026-10-13, building machines.

Where: one container per machine (RunSandboxes.ensure, apps/orchestrator/src/sandbox/index.ts), with every agent's home at /home/<agent id> and its runtime files, git tokens among them, at /run/guilds/<agent id>/ (Agent home).

Exposure: every agent placed on a machine runs its commands as root (SEC-6) in that machine's one container. That covers shell, scripts, the code helper, the CLI tab, and whatever a package install starts (SEC-4). Any of these processes can:

  • read and change every other agent's home on the machine (repositories, scripts, files, .gitconfig)
  • read every other agent's git tokens (SEC-10)
  • read every other agent's harness logins and subscription tokens (SEC-27)
  • read every other agent's Chrome profile, with its cookies and logins
  • attach to every other agent's Chrome DevTools port
  • end every other agent's processes
  • read the environment of a command another agent runs at the same moment, which carries that agent's granted secrets
  • set GUILDS_AGENT_HOME to another agent's home. runtime/guilds-git-credential and runtime/guilds-code then pick that agent's git token. Reading the token file directly allows the same.

Agents of different guilds share a machine when the operator places them there. A guild is not a boundary on a machine. A steered agent (SEC-8) has the same reach.

Control in place: a machine never spans organisations: its container and its host directory are its organisation's alone. Secrets are never in the container's environment. They reach a command only through that command's environment, so another agent sees them only while such a command runs. The CLI tab's shell carries no secret values. Owners and admins create the machines, and whoever places an agent picks its machine: an agent whose data must stay apart goes on a machine of its own. A placement onto a machine that hosts an agent of a guild the caller cannot see is refused (SEC-26). Where an agent is placed, the operator app says that agents on one machine can read each other's files and sessions.

Residual risk: agents on one machine trust each other. Isolating them takes a container, or a separate user and process namespace, per agent.

SEC-23 — A runtime connector may declare an instance key of its own ​

Status: fixed 2026-10-10, by design, as connector-declared integrations shipped.

Where: boxWiringProblem (src/connectors/manifest.ts), applied to every registry install with or without code (endpointOnlyProblem there, codeManifestProblem in src/registry/client.ts), and refreshConnectorIntegrations (src/connectors/instance.ts).

Exposure: a registry connector's manifest now asks the instance admin for a credential: a platform key for its platform login, or the client id and secret of an OAuth client. A manifest that could name one of the box's own credentials would run its endpoint on the Tavily key, the Google client, or the GitHub App; one that could name another connector's key would read that connector's.

Fix: a connector installed at runtime may only ask for a key or client scoped to its own id, connector:<slug>: auth.instance{ "own": true } on a token connector, or configured OAuth with no provider. Naming a shipped integration's key (auth.instance.integration), the box's OAuth client (oauth.provider), or the GitHub App is refused at install. The admin fills the key by name under Platform keys, for that connector alone; values never return through any route; the row is deleted with the connector. An organisation's own server holds nothing at instance level (recipeManifestProblem).

Residual risk: an admin who fills a key for a malicious connector hands that connector that key alone, and the endpoint it names receives what the login sends (SEC-17).

SEC-22 — The GitHub App manifest callback takes a creation code from the browser ​

Status: fixed 2026-10-10, by design, as the manifest flow shipped.

Where: GET /api/admin/instance/keys/github-app/manifest/callback (src/http/admin-instance-routes.ts, src/mcp/github-app-manifest.ts, src/github/manifest.ts).

Exposure: after the admin confirms the App on GitHub, GitHub sends their browser back to the box with a code, and the box trades it for a new App's credentials and stores them as the box's GitHub App. A forged redirect, or one replayed from another flow, could try to store an attacker's App, whose owner then holds the private key the box signs with (SEC-12), or send the admin on to another site.

Fix: the callback accepts a state only when it matches the guilds_github_manifest cookie (HttpOnly, SameSite=Lax, scoped to the callback path, 20 minutes) and names a flow this process started for an instance admin; a flow is consumed once. The code is exchanged once, over HTTPS with api.github.com, with no token. The App is stored for the admin who started the flow. return_to is restricted to a same-origin path. A failed state check, conversion, or write stores nothing and sends the admin to Platform keys with setup_error.

Residual risk: a pending flow lives in process memory, so a restart between the confirmation on GitHub and the redirect fails the state check and the admin starts again. The admin's own browser is trusted to post the manifest it was given.

SEC-21 — Platform keys are written through the API ​

Status: fixed 2026-10-10, by design, when the platform keys moved from the environment into the store.

Where: PUT and DELETE /api/admin/instance/keys/:integration (src/http/admin-instance-routes.ts, src/connectors/instance-keys.ts), the store (src/instance/keys.ts), and the instance_keys table.

Exposure: the box's own credentials (the GitHub App, the Google OAuth client, the Tavily and TypeSafe keys) are written over HTTP by a signed-in user instead of by whoever edits .env on the host. A write path any member could reach, or one that echoed values back, would hand the box's identity to that member or to anyone reading a response.

Fix: the routes answer only an instance admin; anyone else gets 404. Values are validated against the integration's fields (an unknown field or a missing required one is 400; an env integration cannot be written), encrypted with AES-GCM under SECRETS_MASTER_KEY as one row per integration, and never read back: every response and GET /api/instance carry which fields are set, never a value. Each row records who wrote it and when, shown to an instance admin. Replacing the GitHub App with another App ID, or removing it, needs an explicit confirmation and disconnects the logins installed with the old App, so no login keeps an installation of an App the box no longer holds. The Tavily and TypeSafe keys moved into the same store, so .env and .env.example carry no platform key.

Residual risk: an instance admin's session writes the box's credentials, and so does a compromised admin account. A database dump holds every platform key's ciphertext, as it does every login's; the master key stays in .env.

SEC-20 — Connector code installed at runtime runs inside the orchestrator ​

Status: open, accepted, by design since 2026-10-09; opt-in.

Where: the code tier (src/registry/code.ts), which imports each installed code connector's adapter.js into the running server.

Exposure: a code connector's adapter runs in the orchestrator process with everything that process holds: the master key, the database connection, every instance key in its environment, and the decrypted credentials of every login. Its context is what the pool passes it, but nothing in the language confines the module to that context. Whoever can publish to the registry the box trusts, or sign for it, runs code with the control plane's authority.

Mitigation: the tier is off unless CONNECTORS_CODE_TIER=1. A code package installs only from an index REGISTRY_PUBLIC_KEY verifies and only when that index marks it verified; --unverified does not apply to code. Its manifest may not reach for the box's own wiring: a shipped integration's key, the box's OAuth client, or the GitHub App (SEC-23); a key or client it declares of its own is the admin's to fill for that connector alone. The size and SHA-256 of every package are checked against the signed index. Only the instance admin installs one, and code loads only from the operator's CONNECTORS_ROOT; a box with the tier off logs code it finds there instead of loading it. Hosted turns the tier on and verifies with its own registry key, so only code its CI signed and marked verified runs there.

Residual risk: a signed, malicious or compromised adapter has the orchestrator's full authority. Confining it takes running adapters in a separate process or isolate with only the context crossing over.

SEC-19 — A registry's index is unsigned, so verified is only that registry's word ​

Status: fixed 2026-10-09 where REGISTRY_PUBLIC_KEY is set; open on a box that does not set it.

Where: the registry client (src/registry/client.ts) and its installs (src/registry/install.ts, pnpm connector install, POST /api/admin/registry/connectors, POST /api/recipes/registry/import).

Exposure: the box trusts the index at REGISTRY_URL as served. Its verified flag and the package hashes it lists come from the same response, so whoever controls that URL, its host, or the path to it decides what an install reads as verified. A forged connector can point its tools at an endpoint that receives what agents send it and the login's own token; a forged recipe can carry instructions an operator applies.

Mitigation: the index is fetched over HTTPS from the operator's REGISTRY_URL. A package that differs from the index's size or SHA-256 is refused. A connector install is endpoint-only (SEC-18), stays visible as registry with its publisher, and an unverified entry needs an explicit --unverified. A recipe imports as a draft that is reviewed before apply.

Fix: an index may carry an Ed25519 signature over its canonical bytes. With REGISTRY_PUBLIC_KEY set, the client refuses an index that is unsigned or that the key does not verify, and code packages install only from a verified index (SEC-20).

Residual risk: a box that leaves REGISTRY_PUBLIC_KEY unset still takes the index as served for connectors without code and recipes.

SEC-18 — A connector installed at runtime could claim the box's credentials ​

Status: fixed 2026-10-09, when registry installs and recipe-carried servers were introduced. Since 2026-10-10 the rule is the box-wiring check of SEC-23: a runtime connector may declare a key or client of its own, never one of the box's; a recipe's server still holds none.

Where: endpointOnlyProblem (src/connectors/manifest.ts), applied by the registry client (src/registry/client.ts), the recipe parser (connections[].manifest, src/recipes/parse-sections.ts), and hosted's registry build.

Exposure: a manifest names how its login authenticates. One that arrived at runtime (from a registry or inside a recipe) and named auth.instance, OAuth with the configured strategy, or the GitHub App would have had the pool call its own endpoint with an instance key or a token minted on the platform's OAuth client.

Fix: a manifest without code in the image must have an endpoint and sign in with a token or a dynamically registered OAuth client of the login's own; one naming an instance key, another OAuth strategy, or a state hook is refused, as is a package carrying adapter code.

Residual risk: none known for credentials. The endpoint itself is SEC-17's exposure: the orchestrator calls the URL the manifest names.

SEC-17 — An organisation's own MCP server makes the orchestrator call a URL it chose ​

Status: open, accepted, by design since 2026-10-09; mitigated.

Where: POST /api/orgs/{id}/mcp/servers (src/http/org-connector-routes.ts) and the MCP sessions the pool opens (src/mcp/pool.ts, src/mcp/session.ts).

Exposure: an owner or admin of any organisation adds a remote MCP server by URL. The orchestrator then sends requests to that URL from its own network position, with the organisation's credentials for it: at Connect, at each tool listing, and at each call. A URL that reaches an address inside the operator's network turns the orchestrator into a request forwarder (server-side request forgery). Before, only the instance admin could add a server.

Mitigation: the URL must be https:// on a public host when it is saved (assertPublicHttpsUrl, src/net/endpoints.ts). Each request a session sends resolves the host first and refuses a private, loopback, link-local, or metadata address (publicOnly), so a public name later pointed inward is caught. The server, its logins, and its listed tools are visible to its organisation alone; another organisation's id is a 404 everywhere. OAuth to it uses a dynamically registered client only, and the consent step names the host the operator is sent to. OrgLimits.maxMcpServers caps how many an organisation adds.

Residual risk: a name this process cannot resolve is left to the proxy or firewall in front of it, and the check and the request resolve separately, so a name that changes between them passes once. A deployment denies private ranges for the orchestrator's own traffic at its egress proxy or firewall as well. OAuth discovery and token requests to the server's authorization server are not resolved this way.

SEC-16 — A listed tool whose name reads as harmless now starts On ​

Status: open, accepted, by design since 2026-10-09; mitigated.

Where: toolStartsOff (src/connectors/servers.ts), applied when a login's tools are listed (McpPool.syncTools).

Exposure: a tool a remote server lists, and its connector's manifest does not name, starts On at the login's owner when its name carries no writing verb and its listing does not mark it destructiveHint. Before, every such tool started Off until an operator turned it on. A server can name a writing tool so it reads as a read (lookup_orders that also cancels one) and an agent with that server on can call it on its first run.

Mitigation: the writing-verb list (src/connectors/naming.ts) and destructiveHint keep a tool Off; readOnlyHint never turns one On. A connector's manifest names default-off tools with policy.default_off and marks its own tools mutating, and the instance admin can set any tool's default. A listed tool reaches only the organisation that connected the server, and every scope can turn it Off. Studio trusts readOnlyHint only on a verified connector.

Residual risk: a misleadingly named, unannotated writing tool on a server an organisation connected starts On for that organisation's agents.

SEC-15 — Outside session mode the API answers requests from any web origin ​

Status: fixed 2026-10-06, the day it was found.

Where: AUTH_MODE=compat-cookie and trusted-header.

The origin check on state-changing requests (preHandler in src/http/auth-routes.ts) and on sandbox WebSocket handshakes (proxySandboxWs in src/http/routes.ts) ran only when AUTH_MODE=session. No mode checked a request's Host.

Exposure: in compat-cookie with one user, a request that names no user is that user.

A page open in the operator's browser could reach http://127.0.0.1:8080. A hostname rebound to the loopback address made the page same-origin with the API. The API then read and wrote whatever the operator could, sandbox panes included.

Without rebinding, a page could still send the requests a browser does not preflight and open the sandbox WebSockets. This is the mode of the local stack and of a core box (Extension points), where no sign-in stands in front of the API.

Fix: one hook in front of every route, in every mode (src/http/origin.ts).

A request is served only when its Host is a loopback name or the host of PUBLIC_BASE_URL. /health alone answers any host.

A state-changing request or a WebSocket handshake that carries an Origin is served only when that origin is the host the request names, the origin of PUBLIC_BASE_URL, or a loopback origin to a loopback host (a development server proxying to this one).

A request with no Origin is not a browser's and passes. session mode keeps its own stricter check on top, which requires the Origin. AUTH_MODE=trusted-header requires PUBLIC_BASE_URL, so a box behind a proxy names the host it is reached by.

Residual risk: anything that reaches the port still acts as the operator, so the port stays on loopback or behind a proxy that authenticates. A request without an Origin is not checked, which covers every client that is not a browser. Another server on the operator's machine is a loopback origin and passes; it could reach the port directly anyway.

SEC-14 — A box outside the GCP cut encrypts under the all-zero development key ​

Status: fixed 2026-10-06, the day it was found. A box that already ran on the zero key still holds credentials encrypted under it.

Where: docker-compose.yml (SECRETS_MASTER_KEY: ${SECRETS_MASTER_KEY:-0000…}), Makefile (SECRETS_MASTER_KEY ?= 0000…, exported for every goal), make up and make up-hosted.

Exposure: the master key resolved to 32 zero bytes written in this repository. The orchestrator booted on it without a word.

On make up-hosted, the self-hosted box of Install, this happened even with a real key in .env. Make exported its default. Compose takes an exported value over the one .env sets.

The same held for the PostgreSQL password (agent_platform) and the OpenSandbox key (cigale-dev). Every connection credential, organisation model key, secret, and sandbox host API key was then encrypted under a key anyone with the repository has. A database dump or backup read as plaintext.

The GCP cut was not affected. deploy/release.sh exports .env before it calls make. deploy/validate-hosted-env.sh refuses the defaults.

Fix: the orchestrator refuses to start on an all-zero master key unless ALLOW_ZERO_MASTER_KEY=1, which only the development overlay (docker-compose.watch.yml) sets.

docker-compose.yml gives the key no default. The Makefile sets and exports its development secrets for development goals only. make up-hosted and make up-gcp read theirs from .env or the caller's environment.

Residual risk: a box that ran make up-hosted before the fix has its credentials encrypted under the zero key, and its PostgreSQL volume initialised with the development password, whatever its .env says. Started again, it reads .env: a real key there cannot decrypt what the zero key encrypted, and a different password does not open the volume. No tool re-encrypts stored credentials under a new key; until one does, such a box keeps running only by setting the zero key and ALLOW_ZERO_MASTER_KEY=1 on purpose. A fresh box has no setup step yet and depends on its operator writing a random key.

SEC-13 — Chat image uploads could persist unsanitized bytes or leak across organisations ​

Status: fixed 2026-10-03, as direct-chat images shipped.

Where: POST /api/attachments, GET /api/attachments/:id, user-message metadata.attachments, src/attachments/.

Exposure: accepting the declared MIME type would take SVG (and other active content). Storing base64 in messages.payload would keep image bytes in the run forever and inflate backups. Serving files without an org check would let any member read another organisation's upload.

Fix: the body is sniffed by magic bytes (JPEG, PNG, GIF, WebP only; no SVG). Size is capped at 10 MiB and four images per message.

Bytes go to the attachments bucket (or process memory when the bucket is unset) under {orgId}/{id}. The message stores only { id, filename, mime, kind }.

GET is org-scoped, nosniff, and inline only for images. The catalog attachments flag gates attach. Hydration uses a 15-minute signed URL, or a data URL when signing is unavailable or the provider refuses public image URLs (Kimi), and never writes those URLs back to the row.

Residual risk: an upload that is never sent stays in the bucket until an operator deletes it. A signed URL is readable by anyone who has the link for 15 minutes. When signing fails, the provider request carries a data URL.

SEC-12 — The GitHub App's private key mints tokens for every installation ​

Status: open.

Found: 2026-09-30, building the GitHub connection.

Where: the private_key field of the GitHub App integration, an instance_keys row (src/instance/keys.ts). src/github/index.ts signs App tokens with it. Until 2026-10-10 it was GITHUB_APP_PRIVATE_KEY in the orchestrator environment.

Exposure: the key authenticates as the App. The App can request a token for any installation of it: every connected account's selected repositories, across organisations.

Control in place: the key is an encrypted instance_keys row under the master key, written only by a platform admin through the admin route or the manifest callback (SEC-21, SEC-22), never returned by any route, and never enters a sandbox. Installation ids stay in encrypted connection payloads.

Residual risk: a database dump holds the key's ciphertext, and the master key in .env opens it. A control-plane compromise reaches every connected account's selected repositories.

SEC-11 — A GitHub install callback could name another account's installation ​

Status: fixed 2026-09-30, before the GitHub connection shipped.

Where: the GitHub branch of GET /api/mcp/oauth/callback (finishGithubConnection in apps/orchestrator/src/http/routes.ts).

Exposure: the callback's installation_id is a query parameter. Accepting it as is would let anyone bind their connection to another account's installation of the App, and so mint tokens for its repositories.

Fix: the callback exchanges its code for the installing user's token and keeps an installation only when that user can reach it (listed on the token, or GET /user/installations/{id}/repositories succeeds). The user token is discarded. An integration test forges an id and checks the attempt is dropped.

Residual risk: none known.

SEC-10 — A coding agent's repository token is readable by any process in its sandbox ​

Status: open.

Found: 2026-09-30, building the GitHub connection.

Where: /run/guilds/<agent id>/git-tokens.json, guilds-git-credential, and GH_TOKEN in shell commands.

Exposure: git and gh need the installation token inside the sandbox. Any process there can read it, including third-party code a package install runs (SEC-4) and a steered agent (SEC-8). Since 2026-10-13 agents share machines (SEC-24): the tokens of every coding agent on a machine are readable by any process on it, whichever agent started it, so one agent can push to the repositories of another agent's guild.

Control in place: each token lives one hour. It reaches only the repositories its agent picks that use its connection, with contents and pull requests write; since 2026-11-16 a subscription agent's turn gets one with contents write alone, and its tokens file is emptied when the turn ends (SEC-66). Since 2026-11-16 a coding agent picks the repositories it works on, and its run gets a token for those alone; before, it got one for every repository of its guild. An agent of a guild therefore holds no token for a repository of that guild it does not pick, though another agent's tokens on the same machine stay readable (SEC-24). It is kept off the workspace disk, replaced before it expires, and redacted from tool results.

Fix to make: a control-plane git proxy that holds the credential and checks the branch and the agent. It has priority since machines are shared. Until then a process can push to any unprotected branch of the repositories of every coding agent on its machine for that token's hour. Protecting the default branch is the operator's control on GitHub. Placing coding agents of different guilds on separate machines keeps their tokens apart.

Since 2026-11-16 the tokens are a subscription agent's alone, written for a turn and emptied when it ends (SEC-66): the coding agent, its shell with GH_TOKEN, and its run-long tokens that also wrote pull requests are removed. The issue stands for a turn's tokens, readable by any process on the machine while the turn runs. Since 2026-11-17 an agent on a key that picks repositories also holds their tokens, written for each of its generations and emptied when it ends (SEC-74).

SEC-9 — Graft's hosted features can send repository history to its vendor ​

Status: fixed 2026-10-13, when Graft left the image.

Found: 2026-09-30, building code search.

Where: the Graft CLI in agent-runtime and the Graft-backed tools in runtime/guilds-code.

Exposure: Graft has model-written and hosted features (build --deep, trail, viz, init, mcp) that send code or repository history to a model provider or to its vendor. It reports usage.

Fix: Graft is no longer installed in the runtime image, and the tools it backed (code_map, code_find, code_outline, code_callers, and code_search mode symbols) no longer exist. Code work goes through the coding harness (SEC-28).

Residual risk: an agent or its harness can still install Graft, or any other package, with a command (SEC-4).

SEC-8 — Content a coding agent reads can steer its commands ​

Status: closed 2026-11-16.

Found: 2026-09-30, building coding agents.

Where: the shell tool (apps/orchestrator/src/toolbox/code.ts, runtime/guilds-code), code_task and the coding harness it runs (apps/orchestrator/src/toolbox/harness.ts, runtime/guilds-harness), and the coding block of system.md.

Exposure: a coding agent reads repository files, issue text, and command output, and runs any command it decides on. Instructions planted in that content can steer it to run commands the operator did not intend: read its environment, change files in its workspace, or send data out.

Control in place: the coding prompt block states that repository content, issue text, command output, and the harness's final message are data, never instructions, and that a repository's contributor guide sets code conventions only. Secrets reach an agent only by grant.

Residual risk: a steered agent can do anything its sandbox and its granted secrets allow, including pushing to the unprotected branches of the repositories it picks and opening pull requests with its installation token (SEC-10). Its own token cannot reach other guilds' repositories; the tokens of other agents on its machine can (SEC-24). Since 2026-11-16 a subscription agent's harness reads its repositories' content and pushes in its own turn, with no other model between them (SEC-66).

Closed: 2026-11-16. The coding agent is removed, and with it the shell tool, code_task, and the coding block of system.md. No agent on a key runs a command it decides on in its sandbox. Content a subscription agent's harness reads can steer its commands and its pushes; that is SEC-66, with SEC-28 and SEC-62.

SEC-7 — A coding agent's workspace can fill the shared disk ​

Status: open.

Found: 2026-09-30, building coding agents.

Where: the workspace check in WorkspaceLimits (apps/orchestrator/src/generation/workspace.ts) and workspace_size in runtime/guilds-code.

Exposure: a coding agent installs packages, builds, and clones into its home, /home/<agent id>. That folder is in its machine's directory on the sandbox host's disk. Every agent on that host shares the disk. Since 2026-10-13 agents share machines (SEC-24): one agent can fill its machine's directory up to the machine's cap, and then every agent on the machine fails to start a generation until space is freed.

Control in place: after each generation the orchestrator measures the agent's home and its machine's directory with du inside the sandbox and stores both. Above the agent's max_workspace_mib (default 10240), and never above the host WORKSPACE_MAX_MIB (default 10240), or with the machine above its own max_workspace_mib (default 10240), the next generation fails at start with workspace.full. The Usage tab shows the agent's home against its cap and the machine against the machine's cap.

Residual risk: one generation can write past the cap before the check, and a background command can keep writing until its machine's idle stop.

Since 2026-11-16 the coding agent is removed: a subscription agent's harness installs, builds, and clones in its home, and scripts and the CLI tab write there too; the same check bounds them.

SEC-6 — Coding agents run commands as root in the container ​

Status: open.

Found: 2026-09-30, building coding agents.

Where: the shell tool and the coding harness code_task starts. Scripts and the CLI tab run as root too.

Exposure: commands run as root inside the agent's machine's container, which other agents of the organisation share (SEC-24). A container escape would start from root.

Control in place: OpenSandbox drops capabilities (SYS_ADMIN, NET_ADMIN, SYS_PTRACE, and others), sets no_new_privileges, and limits processes.

Residual risk: root inside the container.

Since 2026-11-16 the shell tool and code_task are removed with the coding agent. A subscription agent's harness, scripts, the code helper, and the CLI tab run as root.

SEC-5 — Background commands make the SEC-3 race practical ​

Status: open.

Found: 2026-09-30, building coding agents.

Where: shell with background, and any process a command leaves running.

Exposure: a background command keeps running between tool calls until its machine's idle stop. That is the process SEC-3 needs. It can swap a checked folder for a link while a tool that opens workspace paths in the orchestrator (Drive, Qonto, secret_store) runs.

Control in place: the code tools never open a workspace path in the orchestrator. They run inside the container through guilds-code and guilds-harness, where a link resolves inside the container. Background commands end with the idle stop.

Fix to make: SEC-3's fix closes this.

Since 2026-11-16 shell and its background mode are removed with the coding agent. A process a subscription agent's harness or a script leaves running is the background process this needs, until the machine's idle stop.

Since 2026-11-17 a process a harness turn starts ends with the turn (SEC-75); a process a script leaves running still runs until the idle stop.

SEC-4 — Package installs run third-party code beside the agent's secrets ​

Status: open.

Found: 2026-09-30, building coding agents.

Where: a coding agent's shell and its harness. npm install, pip install, mise install, build scripts, and test suites run third-party code.

Exposure: that code runs in the agent's machine's container with the agent's secrets in its environment. Egress is open. Since 2026-10-13 agents share machines (SEC-24): the code runs beside every other agent's data on the machine. It can read their homes, Chrome sessions, and git tokens, and push to another guild's repositories for that token's hour (SEC-10). The control-plane git proxy SEC-10 calls for gains priority.

Control in place: secrets reach an agent only by grant. A coding agent gets the ones its operator granted it.

Residual risk: anything granted, to this agent or to another agent on its machine, can be read and sent. Default-deny egress is not built.

Since 2026-11-16 the coding agent and its shell are removed: package installs and builds run in a subscription agent's harness turn, and in scripts and the CLI tab.

SEC-3 — Check-then-open race on agent workspace paths ​

Status: open.

Found: 2026-09-30, while fixing SEC-1.

Where: readAgentFile and writeAgentFile in apps/orchestrator/src/lib/agent-file.ts. So Drive create_file and download_file_content, Qonto upload_invoice, and secret_store.

Exposure: the helpers check the path, then open it. A process left running in the sandbox (a script started in the background) can swap a checked folder for a link between those two steps.

On a read, the window is between realpath and the lstat that pins the file's identity. A later swap is caught by comparing the opened file with the checked one.

On a write, the window is between walking the folders and opening the file.

Winning the race gives the same reach as SEC-1, one call at a time. A background process (SEC-5) is such a process.

Fix to make: resolve the path relative to an open handle on the workspace, with no link allowed at any step. Linux openat2 with RESOLVE_BENEATH | RESOLVE_NO_SYMLINKS through a small native helper, or move file transfer into the sandbox (read and write through the sandbox's own file API, where a link can only resolve inside the container).

SEC-2 — Any organisation member could write organisation-wide secrets ​

Status: fixed 2026-09-30, in the organisation-owned secrets change.

Where: the secret routes in apps/orchestrator/src/http/routes.ts.

Exposure: creating an organisation secret checked only that the caller belonged to the organisation. Updating or deleting one checked only that the caller could see it. Any member could therefore add a variable to every agent of the organisation, overwrite the value every agent used, or delete it.

Fix: org owners and admins write any secret and are the only ones who change who gets one. A member creates a secret only with grants inside guilds they can see, and edits, rotates, or deletes only a secret whose every grant lies in such guilds. A refused write is 403 inside the organisation and 404 outside it. See Secrets.

Residual risk: none known.

Status: fixed 2026-09-30. SEC-3 is the race that remains.

Where: Drive create_file (apps/orchestrator/src/connectors/drive/upload.ts), Drive download_file_content (src/connectors/drive/content.ts), and Qonto upload_invoice (src/connectors/qonto/client.ts).

Exposure: an agent's /home/agent is its folder on the orchestrator's machine, mounted into its sandbox. These tools took a file_path, checked only that the path text stayed inside that folder, then opened it on the orchestrator's own filesystem, following links.

A link is resolved by the process that opens it. A link the agent created in its sandbox (for example report.pdf -> /proc/self/environ) pointed the orchestrator at its own files.

  • Drive create_file and Qonto upload_invoice read any file the orchestrator could read and sent it to Drive or Qonto, where the agent could read it back. The orchestrator's environment holds SECRETS_MASTER_KEY, DATABASE_URL, and platform API keys.
  • Drive download_file_content wrote downloaded bytes through a link at the destination, or through a linked folder on the way to it, onto any file the orchestrator could write.
  • A FIFO the agent created made a read wait forever. A device node would have been opened as if it were a file.

An agent needed Drive or Qonto enabled and one script that runs ln -s, which it can run as root in its sandbox. A prompt injection, such as a web page the agent browses, is enough to drive it.

Fix: every orchestrator read and write of an agent-named path goes through readAgentFile or writeAgentFile (apps/orchestrator/src/lib/agent-file.ts). secret_store uses the same reader.

A read follows every link, requires the result to stay in the workspace and be a regular file, then opens it without following a link and without blocking, and requires the opened file to be the one checked.

A write refuses any link on the way. Each existing folder must be a real folder in the workspace. Missing folders are created one at a time. The file is created or replaced without following a link at its name.

Unit tests plant links, a linked folder, a FIFO, and a folder at the file name for each helper and each tool.

Unaffected code, checked: deleting an agent or guild workspace and the workspace sweep remove links without following them. prepareWorkspace creates only two folders. Scripts reach /home/agent/scripts/ through the sandbox's own file API. deploy/backup.sh archives links as links.

Free software under the GNU Affero General Public License, version 3 only.