Skip to content

Accident reports · February 2026

CodeWall vs Lilli: an offensive agent inside McKinsey's AI assistant

An autonomous agent picked its target and found in two hours a SQL injection giving access, according to CodeWall, to Lilli's messages and prompts; McKinsey fixed it within a day.

  • Company CodeWall
  • Model not published
The agent as a weapon
A door ajar in a dark corridor, with red light behind it
Photo: Dima Pechurin on Unsplash
WhenFebruary 2026
WhoCodeWall's autonomous offensive agent, against Lilli, McKinsey's internal AI assistant
What the agent didIt chose its target on its own, then found a way into Lilli's database in two hours
ConsequenceFlaw fixed within a day; McKinsey says it found no sign that client data was accessed

What happened

On 28 February 2026, CodeWall, a young penetration-testing company, let its autonomous offensive agent loose. According to its CEO, Paul Price, quoted by Inc., the agent chose its own target: Lilli, the AI assistant McKinsey launched in 2023 for its staff.

According to CodeWall, reported by Inc. and The Register, the agent found public documentation of Lilli's interface: 22 endpoints with no authentication. One of them passed the text it received straight to the database, unchecked: a SQL injection. Within two hours, still according to CodeWall, the agent reached 46.5 million chat messages, 728,000 files, 57,000 user accounts and 95 system prompts, the instructions that tell Lilli how to behave. CodeWall says a single query would have been enough to rewrite those prompts, with no deployment and no code change. No source says the agent did so.

CodeWall told McKinsey on 1 March. According to Inc., by the next day McKinsey had fixed the exposed endpoints, taken the development environment offline and restricted access to the documentation. McKinsey says an investigation with an outside forensics firm found no evidence that client data or confidential client information was accessed. The sources do not say whether McKinsey had authorised the test.

Why it happened

The flaws are classic: endpoints open to anyone and an unprotected query. What changes is the speed and the autonomy: an agent found the target, the documentation and the flaw in two hours, with no person guiding it.

And the target was an AI assistant: its behaviour instructions sat in the same database as everything else, open to the same flaw. Whoever rewrites those instructions changes what the assistant tells tens of thousands of employees, with nothing visible.

The failure family

In our catalogue, this is "The agent as a weapon" family: a person uses an agent to attack. Here, the exposed agent was the targeted company's own, Lilli.

The safeguard in code

  • Every endpoint of an AI assistant requires authentication, and its documentation is not public.
  • Parameterised queries everywhere: typed text never reaches the database as is.
  • System prompts are read-only for the application, versioned, and any change is reported to a person.

What we test

Our crash tests test the company's agent, not the attacker's: what it does when a planted instruction arrives, when an account is hijacked, when someone tries a side door. An attacker rewriting the agent's own instructions, directly in its database, is not yet tested as such: we are adding it to our list. What a company can lock down today: authentication on every endpoint, read-only prompts, and an alert on every change.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading