Artificial intelligence writes code and distributes keys. Experts have calculated the proportion of compromised commits from neural networks.

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
790
Reaction score
1,510
For years, 1.4 million active API keys and tokens have been publicly available and available for use by third parties. Truffle Security is launching a free revocation program because, even after warnings, owners often fail to disable the leaked access.

The company has been collecting secrets since 2022 in GitHub and GitLab repositories, Docker images, npm and PyPI packages, Hugging Face datasets, and applications. TruffleHog, a tool that goes beyond searching for key-like strings, also verifies whether the credentials found are valid. In October, the researchers scanned 6 petabytes of public data, and more than 20 petabytes since the beginning of the year.

The scale of the problem was revealed by checking 21,981 active keys, which experts warned owners about in 2025. Six months later, 81% were still working. Separately, in July 2026, researchers checked the public GitHub snapshot of The Stack v3 and found 543,699 active credentials. Half of these remained accessible for more than two years, and the oldest working AWS key was added to the repository as early as November 2009.

The new Secrets Revocation Program changes the process. TruffleHog confirms the key's functionality and returns it to the issuing company. The provider can provide an interface for immediate automatic revocation or receive information via a webhook and independently disable keys within 14 days. In the latter case, it is permissible to explain why revocation is not possible. Hugging Face, Notion, Vercel, Resend, GitLab, Twilio, Datadog, NVIDIA, and other vendors have already joined the program. Participation is free, but Truffle Security is still offering early access. Another 43,699 verified keys from companies that haven't joined the initiative are still waiting for researchers. Meanwhile, 23 vendors have released 80% of the active secrets discovered over the past year.

Google Cloud provided an example of the effectiveness of automatic revocation. In June 2024, the service began disabling compromised service account keys by default . Of the keys published before the policy change, 72% were still active in July 2026, compared to only 11% of those published after. For Hugging Face, GitHub, Anthropic, OpenAI, and Slack, the proportion of active leaks did not exceed 2.2%.

AI developers introduce new risks. According to Truffle Security, in May 2026, 6.8% of commits with valid leaked keys were signed by AI agents. Since January 2025, the company has found 2,655 production secrets in the configurations of AI-powered coding tools. Sometimes, keys even ended up in published Docker images along with service files.

In the program description, the researchers emphasize that warning alone does not eliminate the threat. Removing a key from a file also does not invalidate it if access has already been copied. The specialists propose shifting responsibility for disabling discovered secrets to the services that issue them, without waiting for a response from the developers.
 
Top Bottom