26,400 Live Cloud and AI Credentials on Gitee: What a Scan of 7.2 Million Repositories Found, and Why TruffleHog and Kingfisher Saw Different Things

By Carlos Montiel | Enterprise AI Specialist
Leer en español →
Published: 2026-10-30 | By: Carlos Montiel | Reading time: ~5 minutes
A scan of 7.2 million Gitee repos found 26,400 live cloud and AI credentials

When people talk about leaked API keys they think of GitHub, but there's another huge code platform where almost nobody looks. An independent researcher scanned the entire public surface of Gitee, China's largest Git platform, and found 26,400 credentials that still worked when tested, many of them for AI services.

The Study: Method and Scope

Ben Zimmermann, an independent researcher, published the results on October 28 on MongoDB's engineering blog, in collaboration with the team behind his scanner Kingfisher. The Hacker News covered it on the 29th. He enumerated 7,256,531 unique public Gitee repositories, starting from 1,704,759 usernames, and cloned each one (with its full commit history) to run two scanners at once, TruffleHog and Kingfisher, which also test each candidate against the provider's API. Only credentials that were active at scan time are counted, deduplicated by value.

He ran about 350 containers in parallel for roughly a month, at a cost of $3,097.64, covered by a $5,000 credit from Modal. Useful to know when assessing risk: this is a cheap exercise, within reach of anyone with the same method, attackers included.

The Numbers

Total unique, verified 26,400 Alibaba Cloud (AccessKey) 9,473 YouTube API (Google Cloud key) 3,805 DeepSeek 3,170 Zhipu BigModel 1,489 OpenAI 1,348 Created in 2025 alone 12,242

According to the study, roughly 1 in every 766 Gitee repositories held a valid Alibaba Cloud credential. The overall rate is 3.64 credentials per thousand repos, versus 3.11 on GitLab and 2.39 on Bitbucket, although those two figures come from earlier Truffle Security scans done with TruffleHog alone, so the comparison isn't exact. They also found an organization-admin credential for a major enterprise AI platform; neither the study nor THN names which one.

TruffleHog vs Kingfisher: The Real Technical Finding

Neither scanner saw everything on its own: TruffleHog reported 12,737, Kingfisher 14,664, and only 1,001 were detected by both. TruffleHog dominated Alibaba Cloud keys (9,428 versus Kingfisher's 993); Kingfisher dominated AI services: DeepSeek (2,940 versus 230), OpenAI (1,198 versus 150) and Zhipu (1,489 versus zero, since per THN TruffleHog has no detector for those keys). The reason is simple: each tool covers the providers its authors prioritized.

Disclosure status: Zimmermann sent the providers with the most exposed keys the list of theirs, but did not notify the developers who leaked them. At publication, revocation had not been confirmed. The sources don't say whether anyone else used those keys, and they give no scan dates. A note on rigor: the figure of 1,348 OpenAI keys is the sum of the study's per-scanner counts, not a total that appears explicitly.

What It Means for a Company Using AI

Takeaway for your company: (1) if your team or a contractor uses code platforms outside GitHub, your secret scanning needs to cover them; (2) use two scanners, or verify yours has detectors for every AI provider you use: a single tool missed almost half; (3) deleting a file or rewriting history doesn't revoke a key, you have to rotate it at the provider and, for OpenAI keys, set spending limits; (4) on Alibaba Cloud, create a new key pair, migrate your apps and delete the old one, and check ActionTrail, which keeps 90 days of calls.
Carlos Montiel
Enterprise AI Solutions Architect
Specialist in LLMs, Agents, and Orchestration
guatemalia.com/#contacto · info@guatemalia.com

Need to implement AI in your company?

Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG, and orchestrators for companies across Guatemala and Latin America. Reach out for a consultation.

Contact Carlos Montiel

info@guatemalia.com