ESTÚDIO 68

PTENES

How did an AI agent breach Lilli, McKinsey's internal AI?

By Maria Alice Maia · · video, 25 min · Read in Portuguese

Short answer

An autonomous security agent accessed Lilli, McKinsey's internal AI, in 2 hours, without credentials, through a variant of SQL injection. Beyond conversations and files, it reached the 95 system prompts that define the AI's behavior. Whoever rewrites those instructions controls what thousands of consultants receive, without leaving a trace. The root cause is governance.

Key takeaways

For decision-makers

The question to bring to the technology leader is where the company's AI instructions are and who can rewrite them. Treating the prompt as a critical asset, with controlled access and history, also makes it possible to deploy AI faster.

What happened in the breach of McKinsey's Lilli?

McKinsey created an internal AI, Lilli, used by 70% of its 43 thousand employees. In February, an autonomous agent managed to access it without a password and without inside information. Within two hours, it had access to rewrite the AI's instructions.

The figures released by the company that ran the test are 46 million chats, 700 thousand files and 57 thousand accounts accessed. The video highlights the AI's 95 instruction files as the most serious point.

The entry point was a variant of SQL injection, an old flaw from the security playbook, on a path nobody had checked. Lilli had been live for two years, and the company's scanners had not found the vulnerability. The agent found it in two hours.

What are the three risk layers of enterprise AI?

The first layer is data: conversations, files and documents, often accessed through a RAG architecture. This is the layer companies usually protect.

The second is the response. Companies are only now starting to check whether the response is correct, whether it leaks information or whether it hallucinates.

The third is the instruction, the text that tells the AI how to behave, what to refuse and how to cite sources. Whoever controls the instruction controls the response. The video compares the system prompt to a letter of instructions handed to an employee on their first day. Whoever rewrites the letter takes command of the employee.

Why is changing a system prompt so dangerous?

When someone breaks into a server, there is usually a log or an alarm. When someone changes the AI's instruction, by default nothing is left behind, unless there is prompt versioning and auditing.

The AI simply starts answering a little differently. The change can be gradual, with no error on screen. The video gives examples: a slightly distorted number in a financial model, an analysis instructed not to raise risks, or a recommendation with a hidden goal.

The attacker has changed too. It used to be a human team following a script. Now it is an agent that finds the target, tests doors and escalates access at machine speed, without sleeping.

Why has employee trust in AI become a security risk?

Lilli is a tool the company authorizes and often requires. Employees trust it and often copy the output straight into client materials. An error in one line of instruction reaches the client by way of a person who simply trusted it.

The video contrasts augmentation with disguised automation. In augmentation, the person questions the AI and uses its answers to expand their reasoning. In disguised automation, they just enter the request and copy the result, because of overload or token usage rankings.

That is why having a team in the habit of critiquing AI output stops being an HR topic and becomes a security control, just as people were once taught not to open unknown links in email.

What can you do to protect your company's AI instructions?

The video weighs both sides. The company that ran the test sells this kind of service, and the report works as marketing. McKinsey says it fixed everything within hours and that an independent auditor found no evidence of access to client data. The assessment cited rates privacy risk as severe and confirmed damage as zero.

The questions proposed for the team are five. Where the system prompt lives and who can change it. Whether the company would know if someone changed the instruction today. Whether security testing accounts for attacks by agents at machine speed. Whether the team thinks or just accepts the AI's output. And whether the instruction is kept separate from the data, so that nothing pasted into the chat is read as an instruction.

The cheapest measure is to keep a history of every prompt version and trigger an alert on every change. The video concludes that the instruction of an enterprise AI is the new crown jewel and is almost always left without access control.

Key concepts

System prompt
The instruction text that defines how the AI should behave, what to answer, what to refuse and how to cite sources.
SQL injection
An old security flaw in which malicious commands are inserted into database queries. It was the entry point in the Lilli case.
Prompt versioning
The practice of saving every version of the AI's instructions to compare changes, combined with an alert on every change.
Red teaming
A team that simulates attacks to find vulnerabilities before a real attacker does.
Disguised automation
A use of AI in which the employee only enters the request and copies the answer, without questioning the result.

FAQ

Did McKinsey's client data leak?

There is no confirmation. The company that ran the test says it accessed conversations, files and accounts. McKinsey says it fixed the flaw and that an independent auditor found no evidence of access to client data. The video distinguishes risk, exposure and proven damage. Risk and exposure were confirmed, damage was not.

Is a system prompt the same as fine-tuning?

No. The video notes that many tech people dismiss the system prompt as a simple setting, while they see fine-tuning as advanced model tuning. The system prompt is the instruction text, like what you write when creating a custom assistant. Simple as it is, it governs the AI's behavior and deserves protection.

What is the cheapest defense against silent prompt changes?

Versioning and alerts. The video recommends saving the history of every version of the system prompt, to compare it with the previous one, and sending an alert whenever there is a change. This directly tackles the invisibility of the change and should be as obvious to the tech team as making backups.

Why also protect third-party data?

Because the client whose data is in the conversations did not choose this risk and often did not even know the AI existed. The video notes that the company is accountable for the third-party data it controls and that the European Union classifies this type of risk as high priority, with greater liability for damage.

Translated text based on the transcript of the video, which is in Portuguese. The full reasoning and caveats are in the video.

Get new content in English

One email when a new guide, analysis or course comes out.