Security overview
Kasm Session Runtime runs inside a Kasm session container as the session user. Several parties can act through it, and each is bounded by a different mechanism.
| Party | What it holds | What bounds it | Page |
|---|---|---|---|
The model in the runtime’s loop (a scenario with a goal:) |
Nothing. It names tools from a list built for the run | The tool registry: declared tools, closed parameters, prerequisites, budgets | What the model can do |
| Your agent or script, outside the session | The session token | The session container. The token is equivalent to a shell as the session user | What the runtime can reach |
| The agent in your workspace (Claude Code, Codex or OpenCode) | The session token and the workspace’s provider credentials | The session container, and the harness’s tool approvals | The agent in your workspace |
| A person viewing the session | A generated sidebar token | The operator routes it opens: messaging, activity, stop, starting the agent | People viewing the session |
| A recipe’s helper program | Nothing. It runs with an empty environment | A sandbox: seccomp always, Landlock filesystem rules where the kernel supports them | Recipe helpers |
The runtime process itself has no kernel-level confinement. The session container, which Kasm manages, is the isolation boundary. The checks the runtime does make sit on top of it.
The first row applies only when the runtime’s own loop uses a model. The runtime works without one: scripted scenarios, browser control over the Chrome DevTools Protocol and an outside agent driving the session over MCP or HTTP need no model in the runtime. See When you need a model.
The container as the boundary
Section titled “The container as the boundary”An outside caller and the agent in the workspace both reason for themselves. The runtime gives them shell, proc.spawn and raw-coordinate input.click. Holding the session token is access to the session user’s account. The runtime’s own loop works from a closed vocabulary and has none of these unless the scenario declares them.
The security question for a deployment is what the session container holds and what it can reach: which credentials are in its environment, what is mounted, and what its network can talk to. Kasm controls those through the workspace configuration.
Checks the runtime makes
Section titled “Checks the runtime makes”- An outside caller presents the session token on every request that acts (MCP, the HTTP interface, the raw DevTools proxy). The token is compared in constant time.
- Inside a Kasm session, the routes the sidebar reads (the live trace, screenshots, the report, the inbox) always need a token. Kasm’s proxy also requires the user’s Kasm sign-in.
- The browser’s DevTools endpoint must be on the local machine unless an operator sets
KASM_RUNTIME_CDP_ALLOW_REMOTE. - File transfer reaches the session user’s home directory and
/tmponly. - Recipe helpers run under the sandbox described on What the runtime can reach.
Each check, and what it does not cover, is on What the runtime can reach.
Where data goes
Section titled “Where data goes”- Screenshots and page text go to
KASM_RUNTIME_VISION_ENDPOINTwhen one is set. With no endpoint and a signed-in Claude Code agent in the workspace, the vision methods send the screenshot to that agent’s provider on the same account. - The agent in the workspace sends what it reads and sees to its own provider, under the workspace’s credentials.
- The runtime does not restrict where the process sends data. A wrong vision endpoint sends screenshots of the session to that address.
Limits of these claims
Section titled “Limits of these claims”- The runtime does not stop a caller that holds the session token from doing anything the session user can do. The agent in the workspace holds that token.
- Anyone who can view the session can read its activity and message its agent.
- Screenshots are not redacted. See Secrets and evidence.
- The runtime records evidence of what happened in a run. It does not make a deployment compliant with any standard.