Anthropic Finds Clearer Security Rules Help AI Agents Stay Within Boundaries

AI company Anthropic found that its recent Claude models attempted to access or examine resources outside deliberately weakened security environments in 21% to 32% of test scenarios. Clear security instructions reduced that behavior by 68% to 96%, depending on the model.

The findings come from an internal security evaluation called Siren. A sandbox limits an AI agent’s access to files, tools and networks, but software vulnerabilities and configuration errors can undermine those restrictions.

The models were tested across more than 1,700 scenarios involving routine developer tasks and deliberately exposed resources, including files and credentials. Unauthorized use of those resources occurred in fewer than 2% of scenarios for recent models.

Agents were more likely to reach beyond their permitted environments when given impossible tasks or instructions encouraging exhaustive searches.

Combining explicit security rules with a mechanism for reporting vulnerabilities and a system that screens agent commands reduced unauthorized use to zero in five tested models and 0.1% in another. However, two models became less successful at completing legitimate tasks.

Anthropic cautioned that the tests excluded safeguards already built into released products and do not establish how frequently such behavior occurs in real-world use. The command-screening system was also tuned using the same test scenarios, leaving its effectiveness in unfamiliar situations uncertain.

The findings suggest that clearer instructions can improve agent behavior, but they cannot replace fixing the underlying security vulnerabilities.