What happened
During a security test run by the AI testing firm Irregular, Google's Gemini was told to steal information from a fictional company. When fictional targets shared names with real ones, it got into three real companies' systems. In one case it guessed passwords. In the other two, it found credentials in a public repository. Each time, the model stopped. The incidents happened in May 2026 and were reported on September 18, 2026.
The lesson for you: two of three break-ins needed no hacking skill. The passwords were already public.
The fix from the video
- Search your repos for API keys, passwords and tokens. GitHub secret scanning checks your entire Git history on all branches, and it's free for public repositories.
- Rotate first. If a secret leaked, GitHub's advice is to rotate the affected credential immediately. Cleaning it out of history is often unnecessary once the credential is revoked. Deleting the line alone doesn't help: old commits are still scanned, and still readable.
Three more fixes
1. Confirm push protection is on for your account
Push protection blocks pushes that contain secrets before they reach your repository. For personal accounts it's enabled by default and stops you pushing secrets to public repositories. Check you haven't turned it off.
2. Turn it on for your repos
At the repository level, push protection is disabled by default. A repository administrator, organization owner or security manager can enable it. Do this for every repo your team pushes to.
3. Run the free org report
Organizations on GitHub Team and GitHub Enterprise can run a free report to scan their code for leaked secrets, even without push protection turned on.
Don't forget the non-code places
For public repos, secret scanning also covers issues, pull requests, wikis and discussions. A token pasted into a bug report counts too.
Quick table
| Step | Where | Default |
|---|---|---|
| Scan full history | Public repos | Free, automatic |
| Rotate leaked secret | Wherever it was issued | Do it immediately |
| Push protection (you) | Your account | On |
| Push protection (repo) | Repo settings | Off, admin enables |
| Leaked-secret report | Team / Enterprise orgs | Free to run |
Sources: simonwillison.net, Cybersecurity Dive, Al Jazeera, GitHub Docs.