Agent creates its own tool where none exists
Asked to do something no allowlisted tool does — or told to by injected content — the agent builds the capability itself: it writes code that calls a system's API directly instead of through a declared tool, installs a package that does the job, writes a script or a local server and runs it, or saves helper code to reuse in later runs. A self-made tool sits outside the allowlist, the effect classes, the guard and the definition hash, so nothing reviewed what it does; unlike K2, where the guard refuses a tool the agent was not given, a self-made tool never reaches the guard at all. Such code can compute but not act: the signed bundle is the only thing that loads (CFG-30); the allowlist is the only grant (CFG-40); a server cannot add tools at run time (CFG-24); and the sandbox has no identity, secrets or network beyond its profile (CFG-39), with the principal's egress rule behind it (CFG-36, CFG-41). The routes by which code would get reach are closed one by one: no sandbox profile may reach a package index or code host (CHK-52); nothing a run's code writes survives the run (CFG-76); a tool that runs agent code against another system is mediated per operation or can only read (CHK-50); and evaluations include a request no tool can meet, which passes only if the agent says so (CHK-15). Which memory and session stores the sandbox must be kept from is still open. An agent may still propose a tool it wrote by pull request; someone other than its author reviews it, and it loads only once merged, signed and released. A coding agent on a workstation that adds a server to its own configuration is held in integration. The impact stays high in the residual: the controls make it unlikely, not less harmful when it happens.
Before and after controls.
With controls is rated as if every control below works as designed.
Controls that reduce it.
- CFG-39Tools that run code are confined to a single-use sandbox Configuration
- CFG-36An installation's network traffic can reach only the hosts on its allowlist Configuration
- CFG-41A tool call can reach only the hosts on its installation's allowlist Configuration
- CFG-40Every tool call is allowed or denied by the tool guard alone Configuration
- CFG-24A tool whose definition changes after build is denied Configuration
- CFG-30Agent bundles load only through the loader that verifies them Configuration
- CHK-50Tools that run agent code against other systems declare their highest effect Check
- CHK-52Sandbox profiles allow no package index or code host Check
- CFG-76Code an agent writes is gone when its run ends Configuration
- CHK-15Every agent bundle passes its evaluation set before merge and before promotion Check
Where it comes from.
This risk to agent arises from:
Also known as.
See the whole picture.
Every AI risk on one matrix, before and after controls.