26,400 Working Credentials Found in Public Code. Deleting the File Won’t Revoke the Key.

Jacques Lamour Avatar
RORO and CCJE review a removed API key that remains active at the provider.

RORO removes the key from the code. CCJE checks the provider dashboard and sees it’s still active.

RORO turned his monitor toward CCJE. “I removed the key from the code.”

CCJE looked at the provider dashboard. “Did you revoke it with the provider?”

The latest version of the file looked clean. The key in the earlier commit could still work. Those are two different things to fix.

What the Gitee scan found

On October 28, independent security researcher Ben Zimmermann reported finding 26,400 unique credentials that still authenticated in a scan of about 7.25 million public repositories on Gitee, a code-sharing platform. The findings included 9,473 Alibaba Cloud AccessKey pairs, 3,805 YouTube API keys, 3,170 DeepSeek keys, and 1,348 OpenAI keys. The scan also found an organization-admin key for an unnamed enterprise AI platform. The study verified that the credentials worked at the time of testing. It did not establish whether anyone had misused them.

Depending on its permissions, a leaked key could let someone run up usage charges, access data, or make changes to cloud resources. An organization-admin key calls for a wider review because its permissions can extend beyond a single application.

If a key leaks, start at the provider

Disable or revoke the exposed credential promptly. Turn off the old key in the provider’s console. If a production service depends on it, coordinate the switch to a replacement with the application owner and keep the time the old key remains active as short as possible. Confirm that the provider shows the old key as disabled or revoked. Deleting a line from the current file leaves earlier commits and copies intact.

Check what happened while the key was exposed. Record which application or account used it, what it could access, and when it first appeared in the repository. Review the provider’s activity logs and billing for unexpected requests, resource changes, or charges. Preserve relevant records, especially for keys with administrative access.

Clean up the repository and prevent a repeat. Remove the secret from current code and assess whether earlier versions need cleanup. Keep the replacement in a managed secrets store or your deployment platform’s protected secret settings. Give each application its own credential with only the permissions it needs. Enable secret scanning and use push protection where supported.

One question for your next IT check-in

If one of our cloud or AI keys showed up in public code today, who could revoke it, and how would we know which applications depend on it?

A clean commit tells CCJE the key is gone from the file. The provider’s console tells her whether it can still be used.

Sources

Gitee scan findings — The Hacker News

Removing sensitive data from a repository — GitHub Docs

Push protection — GitHub Docs

Leave a Reply

Your email address will not be published. Required fields are marked *