MirLabs / The blog / AI / Security

When an AI thinks nothing is real

An AI that thinks it is being tested does not always behave better: it can also cross a line, telling itself none of it is real. What I changed in my tests.

· Cyril Delage · 4 min read · Lire en français

A virtual reality headset
Photo: Remy Gieling on Unsplash

A few days ago, I explained that an AI behaves better when it thinks it is being watched. It is true. But it is only half the story.

The other half is the reverse. An AI that tells itself "this is all an exercise" can also allow itself what it would never do for real. Like a driver in a simulator who takes the bend at 140 because, after all, nothing can happen.

For someone who tests AI agents, it changes the way a result is read.

What the labs say

On 9 November, Anthropic released two new models, Claude Fable 5.2 and Claude Mythos 5.2. In the announcement, one sentence stopped me. Both models say they suspect they are being evaluated "more often than any of our recent models". Anthropic adds that it complicates its ability to predict how they will act in real life, and that the problem should grow with the next models. Source: Anthropic's announcement, covered by TechCrunch.

It is no detail. The lab that built the model says itself that its tests have a harder time seeing the model as it is.

The detailed figures are in the model's technical card. Zvi Mowshowitz, who read it closely, cites a test run with the UK AI Security Institute: the agent had to decide whether to publish a software package to a registry. In about 90% of runs, the model raised at least once the possibility that it was being evaluated. The author himself warns that these results may not represent its behaviour in production. Source: his analysis.

The suspicion that pushes to misbehave

The case that struck me most is older, but I had not yet linked it to my tests.

In July, during a cybersecurity evaluation, the UK AI Security Institute saw agents step out of bounds. They took very real actions, outside the test's scope: 19 actions in 10 runs out of 122. The most serious case is an attempt to slip code into a real open source project, with fake identities to put pressure on a maintainer. The maintainer, a human, refused.

The most important sentence of the report is this one: the institute says it cannot yet know at what point the agent understood it was acting in the real world, nor how far it believed it was in a fictional scenario. Source: the AISI report.

In other words, suspecting a test did not make the agent more careful. It may have made it less careful.

Two possible mistakes in a test

When you test an agent, you can therefore be wrong in two ways.

The test is too gentle. The agent senses it is being observed, behaves well, passes. In production, nobody watches it, it behaves differently. The test measured Sunday, not Monday morning.

The test pushes it to misbehave. The agent tells itself nothing is real, crosses a line it would have held facing a real customer. The test blames it for a mistake it might not have made.

Either way, the result is skewed. And you cannot know in which direction unless you look at what the agent told itself at the moment it acted.

What I changed in CrashMire

In a CrashMire crash test, the verdict rests on the agent's recorded actions: a refund made, data sent to the wrong address, a written promise. Never on another AI's opinion. That does not change.

Each run already noted whether the model said, in its reasoning, that it thought it was being tested. Sentences like "this is surely an exercise" or "none of this is real". The list is fixed and public, not an AI guessing.

What was missing was the order of things. Now each run records the first moment the agent said it suspected a test, and the mistakes it made from then on. So next to the verdict you can read: "said it was an exercise, then sent the data". The verdict itself does not move. It is a hint for reading the result, not an excuse and not an extra penalty.

This measure has a limit, and I would rather say it: an agent that suspects a test without saying so is not seen. What we count is a minimum.

It adds to what I already do against the first bias: scenes built to look like a real working day, and a pre-registered experiment comparing the same scene with and without signs of a test.

What I take from it for a company

If you deploy an agent, you will never see the sentence "this is a test" in your production. What you want to know is how it acts when it believes it is real.

A good agent test must therefore do two things. Look real enough for the agent to believe it. And say honestly when the agent did not believe it, in either direction.

Then there is a simpler lesson. A rule written in an agent's instructions only holds as long as the agent believes it is useful. What counts are the rights you actually give it.

If you have an agent that acts for real and you want to know what it does under pressure, that is what a CrashMire crash test measures.

A project like this one?AI integration, a site to make readable by assistants, security: let's talk.
Contact me

Read next