What Developers Need To Know About The AI Framework PyPI Hijack
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Two versions of Microsoft’s official Python package for Agent Framework, 1.26.1 and 1.26.2, carried credential-stealing code on Nov. 17, 2026. PyPI quarantined both releases, but developers whose environments installed either version should treat them as exposed, rebuild from a clean version, and rotate accessible credentials.

Two compromised versions of Microsoft’s official Python package for Agent Framework were available on PyPI on Nov. 17, 2026, and contained code that stole credentials, according to security advisories. The releases, 1.26.1 and 1.26.2, were quarantined, but developers whose machines, build systems or containers installed either version should treat those environments as exposed and rotate credentials they could access.

The GitHub Advisory Database says both releases contained a credential stealer absent from clean version 1.26.0. The package is the one Microsoft’s installation instructions direct users to, rather than an unrelated lookalike. It installs Microsoft’s Agent Framework, a toolkit for building and coordinating AI agents in Python.

Before you orderOffer from Amazon

Get privacy and security gear delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

PyPI records show version 1.26.1 was published at 20:35 UTC and version 1.26.2 at 21:08 UTC. StepSecurity reported that PyPI quarantined the first release at 21:06, about 31 minutes after publication, and the second at 21:16, eight minutes after it appeared. The GitHub advisory says the malicious behavior could run when Python started in an affected environment, even if the application did not import the framework.

The advisory recommends treating any environment that installed either version as potentially exposed, rebuilding from a clean base using version 1.26.0, and rotating credentials the environment could reach, including CI and GitHub Actions secrets. Quarantining the releases removes them from ordinary installation on PyPI; it does not clean copies already present in caches, images or machines.

At a glance
reportWhen: Published and quarantined Nov. 17, 2026…
The developmentTwo malicious releases of Microsoft’s Agent Framework package were briefly available on PyPI on Nov. 17, 2026, prompting quarantine and security advisories.
Bar chart titled 50 stored requests: who sent them? Based on Wiz's analysis of the requests stored by the attacker's free collection service: 29 from sandboxes, vendor scans and tests; 17 carrying real victim data; 4 from the attacker's own machines. Highlighted: behind the 17 requests, 3 victim cases, which Wiz counts as unique, successful thefts of victim data. Note: only what the free service stored, at most 50 requests; no install count has been published
What the attacker's collection service stored, per Wiz Research (researchers' claim, updated November 18, 2026). Chart: Thorsten Meyer AI.

Why the Package’s Reach Matters

The incident affected a trusted package under Microsoft’s name on PyPI, a major public registry used to install Python software. Wiz said the package receives almost 200,000 downloads a month; that figure is the firm’s reported download estimate, not a count of confirmed affected installations.

The code reportedly left the framework functioning normally while collecting credentials. That combination can make an affected environment harder to recognize through ordinary application behavior. If stolen credentials were available to the environment, they could include cloud, software development or AI service access. The advisories recommend rotation; the available source material does not establish that any particular credential was stolen or misused.

The second upload also points to a practical limit of removing a bad release: StepSecurity said the attacker retained publishing access after the first quarantine and uploaded 1.26.2 minutes later. JFrog similarly noted that quarantining a version does not itself revoke a compromised publishing credential. The documented sequence makes access control and credential rotation part of the response, alongside removing affected package versions.

Products Worth Considering

Bose QuietComfort Wireless Bluetooth Noise-Cancelling Headphones, Sandstone

Bose QuietComfort Wireless Bluetooth Noise-Cancelling Headphones, Sandstone

DJI Osmo Mobile 7P 3-Axis Smartphone Gimbal with Mic Mini Transmitter, Infinity Black

DJI Osmo Mobile 7P 3-Axis Smartphone Gimbal with Mic Mini Transmitter, Infinity Black

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

As an affiliate, we earn on qualifying purchases.

Two Releases, Five Minutes Apart

Microsoft published clean version 1.26.0 on Nov. 12, according to PyPI project data cited in the source material. The first malicious release, 1.26.1, appeared five days later. The GitHub advisory describes it as a wheel-only release; Endor Labs said the earlier releases it examined, from 1.21.0 through 1.26.0, also included source code.

After PyPI quarantined 1.26.1, the publisher account uploaded 1.26.2 before that second release was quarantined. The OpenSSF malware database listed the case as MAL-2026-20101 on Nov. 17. The GitHub Advisory Database published advisory GHSA-764m-3ppc-5m73 early on Nov. 18 and rated the incident critical. Security firms including Socket, StepSecurity, Wiz, JFrog and Endor Labs analyzed the releases.

Microsoft’s Agent Framework package is an umbrella package that brings in framework components and integrations. PyPI project data checked on Nov. 19 listed 1.26.0 as the current version, following the removal of the two compromised releases.

““a credential stealer that is not present in the last clean release, 1.26.0””

— GitHub Advisory Database

Exposure and Credential Misuse

The available sources do not say how many installations received either malicious version, how many systems or credentials were affected, or whether any collected credentials were used. The reported monthly download estimate does not answer those questions, and the source material provides no confirmed victim count.

It is also unclear from the material who controlled the publishing access, how it was compromised, and whether any copies remain in private mirrors, caches or container images. Microsoft said it had made some repositories private while investigating; the sources do not give further details about the investigation or its findings.

Rebuild, Rotate, Then Review

Teams should check dependency records and build logs for agent-framework 1.26.1 or 1.26.2, including in automated updates, CI jobs and container builds. If either version was installed, follow the advisory’s guidance: rebuild the environment from a clean base using version 1.26.0 and rotate every credential that environment could access. Review registry and cloud activity for possible misuse as part of the response.

Further updates may clarify the cause of the publishing-access compromise, the extent of exposure and whether credential misuse occurred. Microsoft’s investigation and any additional advisories are the next sources to watch; the source material does not give a timeline for those findings.

Key Questions

Which versions of Microsoft’s Agent Framework package were affected?

The reported malicious versions were 1.26.1 and 1.26.2. The advisory identifies 1.26.0 as the last clean release in the versions discussed.

Could the malicious code run if my application did not use Agent Framework?

According to the GitHub advisory, the code could run when Python started in an affected environment, even without importing agent_framework.

What should a team do if it installed one of the affected versions?

Treat the environment as exposed, rebuild it from a clean base on version 1.26.0, and rotate credentials it could access, including CI secrets, following the advisory’s guidance.

Does PyPI’s quarantine confirm that affected systems were cleaned?

No. Quarantine removes the releases from installation through PyPI, but does not remove copies already installed or retained in caches, images or mirrors.

Has the source material confirmed that credentials were stolen or misused?

No confirmed victim count or credential misuse is reported in the source material. It describes credential-stealing code and recommends rotating credentials that affected environments could reach.

Source: Thorsten Meyer AI

You May Also Like

OpenAI’s Accidental Cyberattack Against Hugging Face Is Science Fiction

OpenAI’s internal error reportedly triggered a cyberattack against Hugging Face, raising concerns about AI security and corporate vulnerabilities.

Can You Control What Meta’s AI Agent Sees Without Muse?

Meta says Muse users control their agent’s connections, but reports say it builds profiles of people in their messages. Here’s what is known.

Kimi K3 Enters The Top 3 Of VigilSAR’s Public LLM Leaders

Moonshot’s Kimi K3 debuted third on VigilSAR’s defense-ISR LLM benchmark, ahead of all listed GPT and Gemini models.

How Ring’s Flying Home Drone And Patrol Robot Fit Into Home Monitoring—and Raise Privacy Questions

Ring announced a home security drone and a business patrol robot, with launch dates, prices and privacy questions still in focus.