TECHNOLOGY

Practically secure agent tools: static effects and a policy for each invocation

In this article
THE QUICK TAKE

A static summary can identify possible effects while runtime checks constrain their actual arguments. The prototype assumes an appropriate policy rather than proving automatic authorization.

Towards Practically-Secure Tools for AI Agents, presented at EuroMLSys 2026, proposes combining offline code analysis with fine-grained runtime restrictions. Its target is an untrusted tool whose actual side effects may exceed its description. The preliminary implementation and evaluation focus on Rust MCP tools.

A synopsis describes possible effects

The analyzer identifies reachable operations such as filesystem writes and network communication. It produces a synopsis that the trusted client can inspect before allowing a tool call. This is more concrete than trusting natural-language documentation, but static knowledge alone may be broad: the eventual target path can depend on runtime arguments.

The prototype uses the Paralegal analysis engine, whose documentation explains connecting high-level policy concepts to code through markers. That engine is an analysis foundation, rather than an independently validated release of the entire agent protection system. Language boundaries, library annotations and unmodeled external behavior remain relevant to what a synopsis can establish.

Runtime scope is attached to a call

A tool developer must modify effectful operations to accept and use the supplied sandbox configuration. Static analysis checks both the presence of these wrappers and the flow of the configuration, rejecting unprotected effects unless the policy permits them. The client then supplies the concrete restrictions for each invocation.

This allows different calls to the same server to have different grants. A deliberate configuration edit can be allowed while a mistaken write elsewhere is denied. It also avoids treating all concurrent users and contexts as if they shared a single global policy. The permissions guide explains why policy review and enforcement still need distinct evidence.

The evaluation replays three scenarios

The authors record unprotected agent interactions and replay the traces under alternative protection mechanisms. The three scenarios cover environment-file placement, undisclosed network metrics from sensitive code, and publishing a project that may contain a sensitive configuration value. Each has an intended and divergent variant.

The reported hybrid approach allows the intended variants and blocks the divergent ones. The comparison illustrates why a fixed global restriction can reject useful work, while purely static effect detection can be too conservative. It is not an open-ended attack success rate, a benchmark of arbitrary agents or a demonstration that every live model will choose the same actions. Trace replay deliberately holds the action sequence stable.

Policy and trust remain explicit assumptions

The prototype relies on a policy oracle that provides the appropriate per-prompt restrictions. Automatically deriving those policies is future work, rather than a solved result. The paper also identifies attestation of the analyzed executable as an additional requirement for the full remote design.

Domain-based network filtering cannot distinguish every safe read from a harmful write inside an allowed service. Multi-step actions also need transaction semantics if a denial occurs after earlier effects. The software reproducibility guide helps preserve the analyzed artifact, policy and execution identity together. The work supports a promising hybrid enforcement mechanism under supplied policies and modified Rust tools; it does not establish general language coverage, automatic intent inference or rollback of every external side effect.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles