Hijacked Microsoft Agent Framework Releases Steal Cloud and CI Credentials
Key Takeaways
- Attackers published malicious versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package to PyPI on November 17, 2026.
- A Python startup hook ran a credential stealer on every interpreter launch, even when the framework was never imported.
- Targets included Azure CLI token caches, managed-identity and Azure DevOps tokens, GitHub Actions OIDC tokens, Hugging Face tokens and model-provider keys.
- PyPI quarantined both releases within about 45 minutes, and the attacker's route to publishing access is still unconfirmed.
- The package draws roughly 190,000 downloads a month, and dependency bots began proposing the upgrade within minutes.
An Official Agent Toolkit Briefly Became a Credential Stealer
Developers building AI agents with Microsoft Agent Framework were exposed when two hijacked releases of its Python meta-package appeared on PyPI. According to The Hacker News, both versions ran a credential stealer on every Python start before PyPI quarantined them. Because agent builders keep cloud identities, CI tokens and model keys side by side, even a short exposure window could yield broad access.
What We Know
On November 17, 2026, an unknown actor uploaded version 1.26.1 of agent-framework, the PyPI meta-package for Microsoft Agent Framework, at 20:35 UTC. The Cloud Security Alliance research note reports that it was a wheel-only release without a provenance attestation, unlike the project's normal releases, and that automated dependency bots began opening upgrade pull requests downstream about six minutes later.
PyPI quarantined 1.26.1 at 21:06 UTC. Roughly two and a half minutes later the attacker published 1.26.2 with the hook moved to a new file, and PyPI quarantined it between about 21:16 and 21:20 UTC. Version 1.26.0, published November 12, is the last known clean release.
Researchers at Aikido, Chainguard, Endor Labs, OX Security, SafeDep, Socket, StepSecurity and Wiz analyzed the payload. A project maintainer confirmed the removal in a GitHub discussion and said an investigation was under way, as SecurityWeek reported. The access vector has not been confirmed. Evidence points to a wheel repacked outside the normal release pipeline and a possibly compromised publishing token or maintainer session.
What Happened
Each malicious release added a .pth file to site-packages. Python processes these files at interpreter startup, so the stealer ran whenever Python launched in an affected environment, including during pip commands, whether or not any code imported the framework. On Linux and macOS it forked and detached; on Windows it ran in a background thread.
The collector searched environment variables for more than 30 credential patterns, including model-provider keys, and on Linux read the environments of up to 300 other processes. It harvested Azure CLI token caches, .npmrc, .netrc, Docker configuration, Hugging Face tokens, .env files and Azure DevOps agent credentials, and 1.26.2 added GitHub Actions runner paths. It also tried to mint fresh tokens: Azure managed-identity tokens for about twelve audiences, plus Azure DevOps and GitHub OIDC tokens. Researchers have not confirmed that any token was issued. The data was compressed, encoded and sent in a single request to a webhook.site endpoint.
The failure combined a classic package registry compromise with an AI-specific concentration of secrets. Agent development hosts routinely hold cloud identities, CI permissions and model API keys in one place, and automated upgrade tooling pulled the release forward before any human reviewed it.
Why It Matters
Agent frameworks sit at the base of AI applications, so a poisoned release reaches developer laptops, CI runners, container images and internal mirrors at the same time. With roughly 190,000 monthly downloads, even a 45-minute window could touch many build systems, and the stealer targeted exactly the credentials that let an intruder move from a workstation into cloud tenants, deployment pipelines and paid model accounts.
Cleanup is harder than a routine secret rotation. SafeDep noted that rotating stored secrets does not cover tokens the code requested from the platform, so teams also need to revoke sessions, recycle compute and review identity logs. Running pip uninstall with an infected interpreter can trigger the payload again.
This is the second Microsoft-related PyPI package compromised in 2026, after the durabletask attack in May, and it follows poisoned LiteLLM releases earlier in the year. AI tooling is now a priority supply chain target. Frameworks such as the NIST AI RMF and the EU AI Act expect organizations to manage third-party component risk, which starts with knowing where AI packages run and what each environment can reach.
PointGuard AI Perspective
The agent-framework compromise shows why AI supply chain security has to cover the packages that build agents, not only the models they call. PointGuard AI helps teams see and contain this kind of exposure.
PointGuard AI Supply Chain Security tracks the open-source components behind AI applications and generates AI bills of materials, so security teams can identify which AI projects depend on a compromised package and act on that list quickly. Risk scoring of open-source AI components, including publisher trust and known vulnerabilities, helps teams decide which dependencies need pinning and review before automated upgrades land.
AI Discovery & Inventory maps where agent frameworks and related tools run across code repositories, cloud environments and endpoints, including developer machines that rarely appear in asset inventories.
Credential design matters as much as detection. Agent Identity & Access Security replaces static keys with short-lived, scoped credentials brokered at runtime from vaults such as HashiCorp Vault, AWS Secrets Manager and Azure Key Vault, which limits what a stealer can find on a build host.
As AI development accelerates, trustworthy adoption will depend on treating agent frameworks as critical dependencies, with inventory, provenance checks and least-privilege credentials in place before the next poisoned release appears.
Incident Scorecard Details
Total AISSI Score: 7.30/10
Criticality: 8, Developer and CI hosts holding cloud identities, pipeline tokens and model keys. AISSI weighting: 25%
Propagation: 7, Distributed through PyPI and automated upgrade bots to workstations, runners and images. AISSI weighting: 20%
Exploitability: 7, Malicious code was published and live; no confirmed token issuance yet. AISSI weighting: 15%
Supply Chain: 9, Compromise of an official vendor package trusted by downstream builds. AISSI weighting: 15%
Business Impact: 6, Broad credential exposure, but no confirmed victims or losses reported. AISSI weighting: 25%
Sources
Third-Party Sources
- The Hacker News: Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
- Cloud Security Alliance: Hijacked agent-framework on PyPI, Startup-Hook Credential Theft Hits Agent Builders
- SecurityWeek: Microsoft Agent Framework Releases Poisoned With Credential Stealer
