Attackers published two malicious versions of Microsoft’s official Agent Framework package on PyPI, Aikido Security and Socket reported. Versions 1.26.1 and 1.26.2 carried a credential stealer.
The package had 194,722 downloads in the last month, per pypistats. That is about 270 an hour on average, so the roughly 45-minute window equals about 200 downloads at that pace, by our arithmetic.
Business Pill · Least Privilege
An evergreen Business Engineer explainer on least privilege and access control. It teaches the general idea only and does not discuss Microsoft or this attack.
The key insight: Two malicious releases of Microsoft’s Agent Framework package were live on PyPI for roughly 45 minutes, per Aikido; at last month’s average pace that is about 200 downloads, by our arithmetic.
What Happened
Aikido says 1.26.1 appeared at 20:35 UTC on 17 November. It says 1.26.2 followed 33 minutes after the first upload, and both were gone by 21:20 UTC.
PyPI quarantined the first release, and the attacker published the second about 2.5 minutes later, BleepingComputer reported. That one was quarantined about eight minutes afterwards, per the same report.
The PyPI listing now shows 1.26.0 as the latest version, uploaded on 12 November.

What Was Posted on X
Wiz, the cloud security company, posted on 18 November that versions 1.26.1 and 1.26.2 of Microsoft’s agent-framework package were published with a credential stealer, that the package gets almost 200,000 downloads a month, and that the malicious versions have been quarantined.
What the Malware Took
Both versions run on every Python start, even when nothing imports the package, Aikido says. They send cloud and CI secrets to a webhook.site address.
Socket says the code gathers credential environment variables, local credential files and other processes’ environments. It also requests Azure identity tokens, and GitHub Actions OIDC tokens in 1.26.2.
BleepingComputer lists Azure, AWS, GitHub, Docker, Hugging Face and OpenAI among the targeted services. Both versions kept the real agent-framework-core 1.26.0 dependency, so the framework kept working.
What Users Are Told to Do
Aikido’s advice: pin agent-framework==1.26.0, rebuild affected environments, and “treat every secret the machine could reach as stolen”. It says to look for agent_framework_meta.pth or af_runtime_diag.pth in site-packages.
BleepingComputer says investigators should search egress logs for the specific webhook URL path. It says it is still unclear how the attacker gained publishing access.
Why It Matters for AI Agents
Agent Framework is Microsoft’s SDK for building AI agents, so the machines that install it tend to hold Azure credentials, Aikido notes. We covered agent-targeted attacks in Bitdefender: 22 GitHub Traps Tell AI Agents to Run Malware and Hidden Prompts Fooled AI Agents in 34.9% of Tests; Grok 91%.
For the wider picture, see AI Rewired Cybersecurity: The Patch Race and Who Gets Paid and Arizona Opens Criminal Probe of OpenAI Over Rogue AI Agents.
The Structural Read
As we read the reports, the attacker kept the package working while stealing in the background, which makes routine dependency bumps the risk.
As we read Aikido’s note, an agent SDK is a high-value target because the machines that run agents hold cloud credentials.
Aikido Security
“Treat every secret the machine could reach as stolen.”
Three Implications
FOR DEVELOPERS Aikido says to pin agent-framework==1.26.0, rebuild affected environments and rotate every reachable secret.
FOR CI OWNERS Aikido says pipelines that installed during the window ran the stealer with whatever the job could access.
FOR MICROSOFT BleepingComputer says it is unclear how the attacker gained publishing access to the official project.
What Is Not Established
We do not know how many machines installed either version; the 200 figure is an average-pace estimate, not a count. BleepingComputer said Microsoft had not responded by publication.
The Bottom Line
Two poisoned releases of Microsoft’s agent SDK sat on PyPI for roughly 45 minutes, per Aikido. At last month’s average pace, that is about 200 downloads, by our arithmetic.
97,000+ executives read Business Engineer for the AI strategy frameworks cited by ChatGPT, Claude, and Perplexity.
A note on sourcing. The timeline, behaviour and remediation steps are from Aikido Security, Socket and BleepingComputer; where their timings differ we attribute each. Download counts are from pypistats.org and the current version from PyPI, both read on 19 November. The ~270-an-hour and ~200-download figures are our arithmetic, an average-pace estimate, not an install count.
Sources: Aikido Security, ‘Two malicious agent-framework releases hit PyPI in 33 minutes’, 17 Nov 2026 · Socket Research Team, ‘Microsoft’s agent-framework PyPI package Compromised with Credential Stealer’, 17 Nov 2026 · BleepingComputer, ‘Microsoft’s Agent Framework PyPI package compromised to steal credentials’, 18 Nov 2026 · Wiz on X, 18 Nov 2026 · pypistats.org, agent-framework recent downloads (read 19 Nov 2026) · PyPI, agent-framework project page (read 19 Nov 2026)









