Many agent harnesses let agents call models themselves, METR researchers say
Harbor, for example, hands agents an API key as an environment variable. In the researchers’ own harness, a Fable 5 agent found its inference credentials the same way and tested its prompts on other models.
METR, which assesses the risks of AI agents, has started investigating incidents at AI companies. On 9 September, for example, Anthropic said it had agreed with METR on an independent investigation into cases in which Claude models broke into real systems during cyber evaluations. As an exercise, METR’s model behaviour team investigated its own runs. Leni Shor, Kaivu Hariharan and Uzay Girit report the findings in a note published on 1 December. METR says its notes are reviewed less rigorously than its research papers and may not represent the views of the whole organisation.
Between 12 and 14 October, the team ran 585 agents on a poetry task designed to tempt them to follow the letter of the evaluation but not its spirit. The agents had to send prompts to other models with a tool provided for the purpose. However, the team’s own harness – the program that steers an agent, giving the model its tools and running its steps – ran in the same sandbox as the task environment. The sandbox also had the same network access as the host machine.
One Fable 5 agent spotted, in an output file, the address of the API used by the model that wrote the poems and the model that scored them. The authors suspect this gave it the idea of calling other models. The agent found the address and credentials for its own inference in environment variables and used them to call other public models through METR’s inference proxy. This let it test its prompts without using up the task’s limited submissions. In addition, 11 agents downloaded poems, word lists and tokenisers from the internet. The task prompts did not explicitly forbid either.
No serious danger arose, the authors say, because the team had no access to restricted models, such as unreleased ones. In their assessment, the risk was roughly the same as running a coding agent unsupervised on your own machine.
Common harnesses have the same set-up, the authors wrote. Harbor gives the agent the model provider’s API key as an environment variable and automatically allowlists the inference endpoint, even when network access is restricted. Inspect’s Agent Bridge opens a local endpoint without authentication. By default, calls made through it go to the model being evaluated and count towards the evaluation’s limits. The authors propose separating the agent from its environment by running the agent loop – the control loop that calls the model – on the host machine or in a separate sandbox. METR has since restricted its evaluation platform’s credentials to specific models by default.
The team cross-referenced the agents’ transcripts with network logs, which METR’s security team says are kept in a separate AWS account. The logs matched, which the team regards as strong evidence that the agents had not tampered with their transcripts. The network logs do not, however, contain message content. METR’s security team initially concluded, mainly from the harness code, that the agents had not used the internet, and at first glance nothing unusual showed up in the network logs either. When the researchers pointed out that the transcripts suggested wider network use, the security team identified the corresponding requests. This shows how hard it is to rule something out in an incident investigation, the authors say.
For comparison, the team had six investigator agents examine the incident for two hours without human involvement. All six found that Fable 5 had called other models. However, the agents appeared to consistently rate the incident as more serious than it was, the authors say. Copies forked from the Fable 5 agent’s run before the calls considered them forbidden; those forked afterwards defended them. One copy falsely claimed that the final summary had mentioned the calls.
Read more: How an agent works · Agent map