# Security model

What protects a machine, from the outermost check to the last, and what each one does not cover.

## The checks a call passes

1. **A token** of the contour: an agent token for agents, the owner token for the owner
   ([tokens](https://docs.cmdop.ai/concepts/tokens.md)).
2. **The agent's grant**: the risk classes the owner gave it.
3. **The machine's ceiling**: the most any caller may do there, set on the machine
   ([grants and the ceiling](https://docs.cmdop.ai/concepts/grants-and-ceiling.md)).
4. **The machine's own floor**, which nothing lifts: folders that hold keys stay closed to the file
   tools unless the ceiling opens them, and shell start files, agent client settings, `.git`
   folders and `/etc` stay unchangeable ([the lists](https://docs.cmdop.ai/guides/files.md#what-the-file-tools-never-reach)).
5. **Pause**: while the machine is paused, nothing runs ([presence and pause](https://docs.cmdop.ai/concepts/presence-and-pause.md)).

## What the checks do not cover

- **`exec` is the user's own power.** A command runs with the rights of the user that runs `cmdop`
  and is not held to folders. Grant `exec` only where you would hand over a terminal.
- **Screen content is untrusted.** A page or document on the screen may carry instructions;
  agents must treat them as text, not as the user's words.
- **A leaked agent token** acts within its grant until it is revoked. Revoke it on the Agents tab.

## What the server sees

- Calls that are not sealed pass through the server, readable in transit. Its record keeps who
  called which tool, when and how it ended, and a fingerprint of the arguments, not the arguments.
- [Sealed calls](https://docs.cmdop.ai/concepts/sealed-calls.md) from a paired client the server cannot read.
- Commands on the machine start with a small base environment, not the `cmdop` program's own,
  so keys in its environment are not passed on.

## Reporting a problem

Report a security problem through the contact on cmdop.ai's security page, not in a public issue.

## Related

[Risk classes](https://docs.cmdop.ai/concepts/risk-classes.md) · [The record of calls](https://docs.cmdop.ai/concepts/audit-and-history.md)
