Repository Mining: Captured by Accident
Described in AI Capability Theft by Waydell D. Carvalho.
- Engineers share by habit, and one wrong setting exposes an asset.
- Scanners run nonstop while defenders react to events.
- Detection comes after the item is already public.
Outcome: What was posted by accident has been seen before it can be unposted.
In June 2023, researchers at the security firm Wiz opened a public Microsoft repository. They followed a shared link inside it. The link carried a token for a whole Azure storage account. It was set to stay valid through 2051. It led to about 38 terabytes of internal data. That included workstation backups of two AI researchers, more than 30,000 Teams messages, and private keys. Wiz reported it, and Microsoft revoked the link within days. No one has shown who else used the link in its roughly 3 years of life.
The same mistake at small scale
In March 2023, engineers at Samsung's chip division pasted confidential code and a meeting transcript into ChatGPT. One wanted a bug found. Another wanted code improved. A third wanted a summary. Samsung then banned generative AI tools across its workforce. The ban did not recover what had already left.
Each engineer was doing real work. Nothing visibly left the company. The loss was not visible at the moment of the act.
GitGuardian counted 23,770,171 new hardcoded secrets pushed to public GitHub repositories in 2024. A secret is a string that grants access, such as a password or an API key. Lasso Security found 1,681 exposed tokens across 723 organizations on Hugging Face in a 2023 scan. A 2019 study found leaked secrets at a median of 20 seconds after commit. In GitGuardian's 2024 report, 91.6 percent of valid secrets it flagged were still valid 5 days later.
One exposure is minor. Collected nonstop, thousands of them reveal code, services, and credentials. The scraper needs no break-in. It finds no anomaly, because the behavior is just the work.
Layers of defense
Defenders use push protection that blocks known credential patterns. They add data-loss tools at the network edge and short-lived credentials. Some build internal chat tools. Each helps. None reaches zero, because the mistake is a property of human work at scale. The Morris Worm of 1988 was an early version of the same idea. It found settings left open by accident on about 60,000 connected computers.
The full account is in AI Capability Theft.