December 4, 2026
An AI Attacker Went After Access to Frontier Models. Its Best Way In Was a Deleted Commit.
Perplexity’s December 2 postmortem shows what one prompt can set loose. Deleting a leaked key from Git doesn’t revoke it.

By Mojtaba
4 min read
If you have ever pasted an API key into a repo, noticed, and fixed it with a quick commit that deleted the line, this one is for you. An autonomous AI attacker spent two weeks hunting for exactly that kind of leftover, and at one company it found one.
On December 2, 2026, Perplexity published a postmortem about an LLM-driven agent that went after its infrastructure in late October and early November. Perplexity's own defences held. The part that stayed with me is what the same attacker managed elsewhere, and why.
What the agent wanted
The target was AI access rather than customer data. According to BleepingComputer, every one of the three campaigns aimed to get cloud credentials or service tokens able to call two unnamed, latest-generation models through Amazon Bedrock. TechCrunch put it the same way: in each case the goal was accounts that could reach frontier models.
I've written before that AI use is starting to be billed like a meter. The other side of that is simple. A key that can run expensive models is worth stealing, and the bill lands on whoever owns the key. Nobody knows what this attacker wanted the models for; BleepingComputer says that is still unclear.
How it behaved
The volume is the first thing you notice. Perplexity says probing peaked on November 2 at roughly 48,000 requests in 13 minutes. BleepingComputer adds that the sweep covered about 28,000 guessed API endpoints at more than 200 requests per second, and that the attacker cycled through more than 40 disposable-email accounts and about 290 residential and cloud proxy addresses to get around rate limits.
The persistence is the second. Perplexity found the attacker's own server left open on the internet: 207 open ports, 29 of them listing more than 10,000 files of scripts, logs and live workspaces. Those files showed the campaign ran on Cairn, an open-source agent harness. In one campaign the agent created 276 extra tasks over 19.5 hours, with up to 14 running at once.
The Hacker News quotes Perplexity CEO Aravind Srinivas on the details. The agent tried 3,681 Amazon S3 lookups for files like .env.production and .aws/credentials. When plain internal addresses were blocked, it tried other encodings, redirect chains and DNS rebinding. When curl was blocked, it switched to a headless browser. It scanned public repositories, Gists, commit history and unreachable git objects, and unpacked published npm and PyPI packages looking for credentials.
Every one of those tricks has been in pentest manuals for years. Here, nobody had to sit at a keyboard running them. "One prompt can turn into hundreds of parallel tasks that route around failed checks on their own," Srinivas said.
Where it got in
Against Perplexity, nothing landed. Its outbound URL checks validate the IP at connection time, so the rebinding tricks failed, and authorization checks blocked the rest.
At the two other companies it went further. Srinivas described the footholds this way: "a live customer OAuth credential left in deleted git history at one, and an exposed management API on a demo environment at the other." From the first, the agent took admin control of a customer's workspace and ran code. From the second, it collected password stores, Kubernetes secrets and cloud credentials. Neither foothold produced working Bedrock access, and Perplexity warns that its view of those two breaches comes from the attacking agent's own notes, which may overstate what it got. Perplexity notified both companies on November 4, while the attacks were still running.
So the deepest break-in started with a credential somebody had already "removed." My guess is that whoever removed it thought the problem was over.
Deleting a key doesn't revoke it
GitHub's own documentation is blunt about this. If the sensitive data is a password, token or credential, "first revoke or rotate the secret." Once it's revoked, you generally don't need to rewrite history at all. The same page lists where old commits keep living: other people's clones, forks, cached commit views and pull requests that reference them.
A new commit that deletes the line only changes the latest version of the file. The old version is still in the history, and an agent with no deadline will read the whole history, so I stopped thinking of a leaked key as "mostly fixed."
The list I'm working through this weekend is short on purpose:
Scan the full history, not just the current files. Gitleaks has a gitleaks git mode that reads the commit log, and TruffleHog can scan a repo with --results=verified to show only keys that still work. Run them on old side projects too. Those are the ones nobody looks at.
Rotate anything that ever touched a commit, a package or a screenshot. That includes AI provider keys, cloud keys and OAuth tokens. If a key showed up once, treat it as public.
Check what you've published, not only what's in Git. The agent unpacked npm and PyPI releases. A .env file that slipped into a package build is just as visible.
Shut down or lock the demo. One of the two breaches started on a demo environment with an exposed management API. Old demos are rarely patched and often forgotten.
Put a spending limit or a billing alert on every AI account, where the provider offers one. It caps how big the bill can grow before you notice.
Attackers now run agents that are patient and cheap to operate, and they're looking for the access you pay for by the token. Your old mistakes stay in Git history until you revoke the key. Make the leaked key useless, then clean up the history if you still want to.
Sources
Perplexity, "How Perplexity defended against an autonomous AI attacker," December 2, 2026. https://www.perplexity.ai/hub/blog/how-perplexity-defended-against-an-autonomous-ai-attacker
Lawrence Abrams, "Autonomous AI attack targeted Perplexity to steal cloud credentials," BleepingComputer, December 2, 2026. https://www.bleepingcomputer.com/news/security/autonomous-ai-attack-targeted-perplexity-to-steal-cloud-credentials/
Russell Brandom, "Perplexity caught an autonomous AI hacker trying to steal tokens," TechCrunch, December 2, 2026. https://techcrunch.com/2026/12/02/perplexity-caught-an-autonomous-ai-hacker-trying-to-steal-tokens/
Ravie Lakshmanan, "Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies," The Hacker News, December 3, 2026. https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html
GitHub Docs, "Removing sensitive data from a repository," read December 4, 2026. https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
Gitleaks README and TruffleHog README on GitHub, read December 4, 2026. https://github.com/gitleaks/gitleaks and https://github.com/trufflesecurity/trufflehog
I'm Mojtaba. I write about AI and how it's changing the way people work, invest and trade. Nothing here is investment, legal or financial advice. Every figure above links to its source; if you spot an error, tell me and I'll fix it.
Research and drafting were assisted by AI tools. All sources were checked and the views are my own.