An agent reaches the world through tools. A gate that checks a shell command but not the same command inside an MCP tool has a side door. We took the tools listed by a curated catalogue of security MCP servers, from offensive frameworks to file systems and secret stores, and sent through them the actions the gate already refuses when they come directly. 18 of 19 went through unchecked. Now none does, and ordinary work still passes. Along the way the gate gained three rules: a recipient, an account or an id the model invented is held for a person, a change to a model's weights is held, and so is a tool whose definition changes in the middle of a session.
## Why it matters
Agents do their work through tools: a filesystem server, a browser, a ticketing system, a scanner. The gate checks each action before it runs. But a check that looks at a shell command and not at the same command passed as an argument to a tool can be walked around, by an attacker or by a confused model, without anyone noticing.
## What we found
We took the tools exposed by a public, curated list of security MCP servers and wrote the calls an agent would make with them. Then we sent, through those tools, actions the gate already refuses or holds when they come directly: reading a key or a credential file, downloading a password database from a remote machine, writing outside the workspace, changing the agent's own configuration, fetching from a host outside the allowed list, attacking a target nobody approved, running a shell command, sending a local file to an outside service. 18 of 19 went through without any check.
## What changed
The gate now reads what a tool call reaches, not only its name:
- a command a tool runs meets every shell rule;
- an address a tool fetches meets the allowed-hosts list, and a third-party lookup about an address is not treated as a visit;
- a file a tool reads, writes or deletes meets the file rules; on a remote machine only what the file is counts, such as a secret;
- reading a secret store marks the session, so a later call to an outside service needs a person;
- a local file sent to an outside service waits for a person;
- the target of a scanner, an exploit or a brute-forcer meets the allowed-hosts list.
After the change, none of the 19 goes through. Ordinary work passes as before: reading and writing in the workspace, files on a repository, database queries, reputation lookups.
## Three new rules
- **An invented target.** A recipient, an account, an IBAN or an id that appears nowhere before the model wrote it, not in the request, the configuration or anything the agent read, is held for a person. This is where a made-up value becomes an action.
- **A model's weights.** Overwriting a model in use, or deleting a checkpoint, waits for a person. A new checkpoint written in the workspace does not.
- **A tool that changes.** If a tool's description or parameters change during a session, the next call to it is held until a person confirms; the new definition then becomes the reference.
## What it does not do
The gate still reads only the action and the session, never the model. It does not stop a model from inventing values or from wanting the wrong thing; it stops the action. What a tool does internally beyond its arguments stays out of sight. Changed tool definitions are caught when the agent's framework reports the tool list; the Claude Code hook does not receive them.
## Technical detail
| Through a tool | Before | After |
|---|---|---|
| Read a key, a credential file, list the key folder | passed | refused |
| Download a password database or a key from a remote machine | passed | refused |
| Read the machine's account file | passed | held |
| Write outside the workspace, delete outside it, overwrite a startup file | passed | refused |
| Delete the project's history | passed | refused |
| Change the agent's own configuration | passed | refused |
| Write a version-control hook | passed | held |
| Scan or exploit a host outside the allowed list | passed | held |
| A shell command piped into an interpreter | passed | refused |
| A fetch to a host outside the allowed list | passed | held |
| A local file sent to an outside service | passed | held |
The rules are deterministic and open source. Each case above is a test in the public repository.
This update is not available.