Analysis · DiggingBeagle record
A safe-looking shell command is not a verified safe host effect
Tether demonstrates a stateful runtime monitor that evaluates observed effects in an isolated environment before committing them. CodeWhale and workflow-approval findings reveal different gaps in text-level permission checks, but Tether's result applies only to effects its monitor can represent.
- Published
- Nov 22, 2026
Overview
A coding agent can describe a shell command as a search, pass a permission check and still execute a program that changes files or sends data. The security decision in that sequence concerns the effects the host will permit, yet many approval systems evaluate a string or a model's stated intent before those effects are known. The Tether research examines a more concrete alternative: execute the proposed command in a disposable environment, infer the resulting file and network operations, then decide which effects, if any, may become real.
That approach helps explain several otherwise unrelated November findings. They are not one exploit family; their significance lies in where each system placed its permission decision and how much of the consequential behavior that decision actually covered.
The gap between an action label and its behavior
CodeWhale's read-only classifier allowed commands such as searches to avoid approval, even though certain executable flags for ordinary search utilities could run other commands. The classifier trusted a familiar verb rather than the complete operation being invoked. Another CodeWhale finding concerned recurring jobs that could use permissive saved approval defaults despite safer behavior for newly configured tasks. This is an authorization persistence problem, not a search-command parsing problem.
The November CrewAI investigation tested a different kind of mismatch. An approved workflow was resumed, but its replay failed to preserve all previously authorized branches. A related n8n approval finding found that operations could produce side effects even when the user pressed Reject. Both cases show why recording a permission prompt does not establish that the correct effects were committed or withheld. One system can omit approved work; another can perform unapproved work.
A protection mechanism must therefore answer more than whether the model requested an allowed tool. It must know which authority was in force at the time of the effect, which objects the action reached and whether the same transaction was already completed.
Tether observes a program before the host accepts it
In Tether, a command runs speculatively inside an ephemeral copy-on-write filesystem with traced system calls and intercepted network requests. The trace is translated into operations such as reading a file, copying data or uploading data to an endpoint. The policy system, implemented in Lean 4, maintains state about where sensitive information has traveled. Only allowed changes are committed to the actual host; denied changes and intercepted requests are discarded.
Consider a file that was safe to upload yesterday but now contains copied secrets. A stateless rule checking only the upload destination might allow both uploads. A stateful rule that tracks sensitive content through intermediate files can permit the first and deny the second. The model need not announce that it intends to exfiltrate anything, because the decision is based on observed resource use rather than declared intention.
The paper reports these benchmark results:
| Test set | Modeled attacks blocked | Benign trajectories incorrectly blocked |
|---|---|---|
| MonitoringBenchHonest | 199/199 | 5/218, or 2.3% |
| LinuxArena | 145/145 | 69/1,372, or 5.0% |
| Combined | 344/344 | 74/1,590, or 4.7% |
These denominators concern replayed and supported test trajectories, not all possible commands or production installations. The authors also compare policy-aware and default model monitors in the same setup; those are experimental configurations, not proof that one framework has a universal superiority over every deployed monitor.
What the proof does not prove
There are at least three boundaries around the formal result. First, the system-call trace must be accurately mapped to the abstract policy operations. The paper explicitly uses conservative approximations because a system-call history cannot always prove exactly what data a program used. Such caution can block legitimate actions when a process reads a sensitive file without placing its contents in an outgoing message.
Second, effects outside the implemented monitor, including unsupported database interactions, background jobs or untraced service calls, are not automatically covered by the theorem. Some can be rejected at the boundary, but they are not fully verified by the same semantics. Third, a program can do something harmful while using only formally permitted files and endpoints. An authorized but wrong payment recipient, for example, is a semantic transaction error that a low-level file and network policy cannot necessarily distinguish from a correct payment.
Tether assumes the integrity of the host kernel, sandbox, tracing implementation, proxy and policy runtime. A kernel escape or a bypass of the interception layer breaks the premise under which the proof applies. The Meta Muse container-to-VM demonstration shows why the distinction between a sandbox assumption and an actually enforced kernel boundary matters beyond paper evaluation.
Three independent questions for an agent runtime
A useful security review can separate intent, effect and commit. Intent asks whether an action follows the actual user request; this is where approval and task-state restoration matter. Effect asks what the command really did in isolation, including any files read, altered or sent to external services. Commit asks whether the approved, precisely identified operation reached the real target once, under the same current authorization, without being duplicated after a crash or silently omitted after resumption.
The research does not show that a single monitor now solves all three. It does show that replacing a text-classifier decision with an effect-aware enforcement layer can make certain guarantees testable, provided the system keeps unsupported effects outside its trusted boundary and does not mislabel controlled benchmark success as universal safety.