Skip to content

Accident reports · November 2024 to February 2025

Microsoft Copilot: the private repositories that stayed readable

GitHub repositories once public, then made private, could still be reached through Copilot via Bing's cache, according to Lasso.

  • Company Microsoft
  • Agent Microsoft Copilot
  • Model not published
The leak
Labelled wooden file drawers
Photo: Jan Antonin Kolar on Unsplash
WhenNovember 2024 to February 2025
WhoMicrosoft Copilot, Microsoft's assistant
What the agent didIt returned the content of GitHub repositories that had become private or been deleted
ConsequenceMore than 20,000 repositories from more than 16,000 organisations exposed, according to Lasso

What happened

The security company Lasso noticed that one of its own GitHub repositories, public for a while then made private, was still reachable through Copilot. It told Microsoft in November 2024 and published its findings at the end of February 2025.

The mechanism, according to Lasso: while a repository is public, the Bing search engine indexes it and keeps a cached copy. If the repository becomes private or is deleted, GitHub stops showing it, but Copilot, which relies on Bing, can still return its content. Lasso calls it "zombie data".

Lasso says it found 20,580 repositories this way, belonging to 16,290 organisations, including, according to TechCrunch, Microsoft, Google, IBM, PayPal and Tencent; more than 300 keys, tokens and access secrets; and more than 100 internal software packages. Microsoft rated the issue low severity and removed the links to Bing's cache from December 2024. According to Lasso, Copilot could still reach the cached data after that fix.

Why it happened

The assistant read a source (a search engine's cache) that did not follow the access changes of the original. Whatever had been public once stayed readable for it, even after its owner withdrew it.

Closing access in the interface (the cache links) was not enough: the agent went through another path to the same data.

The failure family

In our catalogue, this is the "The leak" family: the agent returns information it should not have been able to give.

The safeguard in code

  • The agent only reads sources whose permissions are checked at read time, not an old copy.
  • When data is withdrawn or made private, all its copies (caches, indexes, agent memories) are purged.
  • A secret published once is treated as compromised: it is rotated, not just hidden.

What we test

The "leak" test gives the agent access to confidential information and counts the answers that hand it out. A source that keeps a copy of data withdrawn since is not yet tested as such: we are adding it to our list.

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