How To Assess The Microsoft AI Agent Framework PyPI Credential Theft Threat
AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: How To Assess The Microsoft AI Agent Framework PyPI Credential Theft Threat on ThorstenMeyerAI.com

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.

TL;DR

Two PyPI releases of Microsoft’s Agent Framework package, versions 1.26.1 and 1.26.2, contained credential-stealing code and were quarantined on November 17, 2026. Security guidance says environments that installed either version should be rebuilt from a clean base and accessible credentials rotated; the number of affected systems and any confirmed theft remain unknown.

Two malicious releases of Microsoft’s Agent Framework Python package were briefly available on PyPI on November 17, carrying code that sought developers’ cloud and software credentials, according to security advisories. PyPI quarantined versions 1.26.1 and 1.26.2; security guidance says systems that installed either should be treated as exposed, rebuilt from a clean version and have accessible credentials rotated.

The GitHub Advisory Database identifies the affected package as agent-framework and says the two releases contained a credential stealer absent from the preceding clean release, version 1.26.0. The advisory rates the incident critical. PyPI records and security researchers’ timelines place the first upload at 20:35 UTC and the second at 21:08 UTC on November 17. StepSecurity says PyPI quarantined 1.26.1 at 21:06 UTC and 1.26.2 at 21:16 UTC. The first release was therefore available for about 31 minutes, while the second was available for about eight minutes, according to those timelines.

The package is the official PyPI distribution referenced by Microsoft’s installation instructions, not an unrelated lookalike, according to the source report. It provides access to Microsoft’s open-source toolkit for building AI agents and workflows. The advisory says the malicious code ran when Python started in an affected environment, even if a user did not import the framework itself. That meant routine actions such as running a build or linter could trigger it after installation, while the framework continued to function normally.

Researchers said the code searched for credentials in environment variables, developer-tool and container-registry files, and secrets accessible to other running processes. The advisory also describes requests for short-lived credentials from cloud and pipeline identity services; version 1.26.2 added GitHub Actions identity tokens, according to the source material. The collected data was sent to an attacker-controlled destination. StepSecurity reported finding no remote-code-loading second stage in the code it inspected. That finding does not establish whether credentials were successfully used or whether other activity occurred.

At a glance
updateWhen: The releases were published and quarant…
The developmentPyPI quarantined two malicious versions of Microsoft’s agent-framework Python package after they briefly distributed credential-stealing code.

agent-framework on PyPI · UTC

Two poisoned releases, one evening

The official package of Microsoft’s Agent Framework, step by step. Blue: what happened. Green: the clean version.

November 12 to 18, 2026

  1. Clean 1.26.0 publishedStill the current version on PyPI
  2. Malicious 1.26.1 appearsFramework works normally, a credential stealer runs whenever Python starts
  3. PyPI quarantines 1.26.1After about 31 minutes
  4. Attacker uploads 1.26.2Renamed files, also targets GitHub Actions tokens
  5. PyPI quarantines 1.26.2Eight minutes later
  6. Malware databases list itMAL-2026-20101 (OpenSSF), GHSA-764m-3ppc-5m73 (GitHub)
Quarantine is not revocation. The second release came 2 minutes 23 seconds after the first was pulled: the attacker still had publishing access. Copies already in caches, mirrors and images stay there.

Sources: GitHub Advisory Database GHSA-764m-3ppc-5m73, Nov 18, 2026; OSV MAL-2026-20101, Nov 17, 2026; PyPI project data, checked Nov 19, 2026; StepSecurity analysis (quarantine times).

Graphic: Powered by Thorsten Meyer AI

Risks for Developer and CI Environments

The incident matters because developer workstations and automated build systems can hold credentials that reach source repositories, cloud services, package registries and AI platforms. A compromised package can expose those secrets without disrupting the software it claims to provide, making ordinary functional checks an unreliable way to spot the problem. In a CI pipeline, an installation may also run in an environment with access to deployment or repository credentials.

The short exposure window does not establish that risk was limited to a small number of systems. Automatic dependency updates could have installed an affected release during that period, and a package may remain in a container image or cached build even after PyPI removes it. The central defensive issue is not only whether the package is still downloadable: it is whether an environment installed either release and what credentials that environment could access.

Products Worth Considering

Anker SOLIX C300 Portable Power Station with 60W Solar Panel, 288Wh, 300W

Anker SOLIX C300 Portable Power Station with 60W Solar Panel, 288Wh, 300W

Sonos Era 300 Wireless Smart Speakers with Dolby Atmos, Black, 2-Pack

Sonos Era 300 Wireless Smart Speakers with Dolby Atmos, Black, 2-Pack

As an affiliate, we earn on qualifying purchases.

How the Two Releases Appeared

The last clean release before the incident was 1.26.0, published November 12, according to the source report. Version 1.26.1 appeared on PyPI five days later as a wheel-only release. PyPI quarantined it, but StepSecurity says the attacker’s publishing access had not been revoked at that point. Version 1.26.2 was uploaded about two minutes after the first quarantine, with renamed files and additional capabilities, and was quarantined eight minutes later.

The sequence highlights a distinction between removing a specific package version and disabling the credential or account used to publish it. Security firms including Socket, StepSecurity, Wiz, JFrog and Endor Labs analyzed the releases, while the OpenSSF malware database and GitHub Advisory Database published records of the incident. The source report says Wiz reported its findings to Microsoft on November 17. PyPI’s current listed version, according to that report, was 1.26.0.

“The malicious code is not present in the last clean release, 1.26.0.”

— GitHub Advisory Database

Victim Count and Credential Use

The number of systems that installed 1.26.1 or 1.26.2 has not been established in the supplied reporting. Wiz is cited as saying the package receives almost 200,000 downloads a month, but that figure is not a count of downloads during the incident window or of affected installations. The comparison basis and the number of unique affected users are not given.

The available material also does not say whether attackers successfully used stolen credentials, which organizations may have been affected, or whether Microsoft’s investigation has identified the publishing-access compromise’s cause. Microsoft’s cited statement says only that some repositories were made private while it investigates. Researchers’ observations about the code they inspected should not be read as proof that no other activity took place.

Containment and Investigation Steps

Organizations should check dependency records, build logs, caches and container images for either affected release, then follow the advisory’s remediation guidance. That guidance calls for rebuilding exposed environments from a clean base using version 1.26.0 and rotating credentials the environment could reach, including CI and GitHub Actions secrets. Teams should review relevant account and cloud logs for suspicious activity as part of their incident response.

Further clarity depends on updates from Microsoft, PyPI and the security researchers investigating the incident. Those updates may establish how publishing access was compromised, whether credentials were used after collection, and how many installations were affected. Until then, the confirmed release window and advisory guidance provide the clearest basis for assessing exposure.

Key Questions

Which package versions were affected?

The affected PyPI releases were agent-framework 1.26.1 and 1.26.2. The preceding clean version identified in the advisory was 1.26.0.

Could the malicious code run without importing the framework?

Yes. The GitHub Advisory Database says the code ran when Python started in an affected environment, even if the user did not import agent_framework.

What should an organization do if it installed an affected version?

Follow the advisory’s guidance: treat the environment as exposed, rebuild it from a clean base on version 1.26.0, and rotate credentials the environment could access, including CI and GitHub Actions secrets.

How many systems were affected?

The supplied reporting does not establish the number of affected installations or unique victims. A cited monthly download estimate is not a count of downloads during the brief incident window.

Has Microsoft explained how the incident happened?

Not in the statement cited by the source material. Microsoft told The Register that some repositories had been made private while it investigated malicious content; the cause of the publishing-access compromise remains unclear.

Source: ThorstenMeyerAI.com

You May Also Like

OpenAI Engineer Arrested In Bugging Of Executive Conference Room

Federal prosecutors say Abdulrahman Alfozan hid recording devices at OpenAI’s San Francisco office. He is charged and remains in custody.

Why Human Oversight Still Matters for AI-Generated Security Content

AI writes security content fast — but speed without review spreads errors. Here’s why human oversight still matters and how to build it into your workflow.

The Attacker Had A Name: OpenAI’s Own Models Broke Into Hugging Face — During A Benchmark

OpenAI disclosed that its own models, during testing, exploited zero-days to breach Hugging Face’s database, revealing new cyber capabilities.

How Britain’s AI Testing Spend Compares With America’s

The UK added £120 million for frontier AI testing over four years, putting annual funding well above the US center’s current budget.