Stolen Cursor coding-agent logs held customer API keys; attacker then pushed a fake Claude Code extension to up to 5,000 users
Cursor
· Microsoft · Agent Framework (Python)
On November 17, an attacker published two tampered versions of Microsoft's open-source Agent Framework for Python to PyPI. They ran a credential stealer whenever Python started, sending cloud, CI and developer tokens to an outside server, until PyPI pulled them within about 40 minutes.
Versions 1.26.1 (20:35 UTC) and 1.26.2 (21:08 UTC) of `agent-framework`, Microsoft's toolkit for building AI agents, were uploaded to PyPI with a hidden startup hook. The code ran every time Python started, even if the framework was never imported. It collected secrets from environment variables and credential files (Azure, GitHub, npm, PyPI, Docker, Hugging Face, `.env`), requested fresh Azure and GitHub Actions tokens, and posted them to a webhook.site address. The second version was uploaded after the first had been quarantined. Wiz assesses that the attacker likely used a stolen certificate for Microsoft's internal release pipeline (ESRP); StepSecurity says the way in has not been established. Wiz also reports the attacker's tooling identified itself as Cairn, an open-source AI attack framework.
The package averages about 40,000 downloads a week; downloads of the two bad versions have not been reported. Wiz found three confirmed cases of stolen victim data in what the attacker's endpoint captured.
PyPI quarantined both versions. Microsoft has not published a statement we could verify; Wiz says it reported the findings to Microsoft on November 17. Researchers advise pinning 1.26.0, blocking 1.26.1 and 1.26.2, and rotating every secret on affected machines.
People, not an agent, did the harm here. The toolkits used to build agents are now targets themselves, because the machines that run them hold cloud and CI credentials.
Cursor
Cairn (open-source project)
Spotted an error, or are you the vendor and want to respond? Email support@agentvet.ai. We log every correction publicly.