Malicious Microsoft Agent Package Was Live on PyPI ~60 Min

Two versions of agent-framework, Microsoft’s Python package for building AI agents, carried a credential-stealing payload when they were uploaded to PyPI on 17 November, according to a report on the project’s GitHub by Lidor Machluf of Upwind Security. A Microsoft maintainer replied there: “The compromised versions for agent-framework: 1.26.1, 1.26.2 have been pulled from the package feed”.

Our number: by the report’s timestamps, version 1.26.1 was on PyPI for up to about 33 minutes and 1.26.2 for up to about 26 minutes, roughly 60 minutes in all, by our arithmetic. Microsoft’s reply came at 22:08 UTC, 93 minutes after the first upload.

Business Pill · Red Teaming

An evergreen Business Engineer explainer on red teaming, testing systems the way an attacker would. It teaches the general idea only and does not discuss this incident.

The key insight: Microsoft says it pulled versions 1.26.1 and 1.26.2 of its agent-framework Python package, which a researcher’s report says carried a credential-stealing payload; by the report’s timestamps the two were on PyPI for about 60 minutes in all, by our arithmetic.

What the Report Says Happened

The report says “agent-framework==1.26.1” was uploaded “on 2026-11-17 at 20:35:20 UTC” and “contains a credential-stealing payload that does not exist anywhere in this repository”. It says the release was most likely uploaded “with a compromised PyPI upload credential”, pointing out that the repository has no matching tag or release.

According to the report, the payload “runs on every Python interpreter start in the environment, not only when the package is imported”. It says the code collects secrets from environment variables and credential files, requests Azure tokens, and sends the data to an outside web address, and that it appears aimed at “hosted Azure DevOps build agents”.

A follow-up comment says version 1.26.2 “was uploaded at 21:08:39 UTC” after 1.26.1 was removed, and that “It is malicious too”. A status update at 21:35 UTC on the issue says both versions “have now been removed from PyPI”, that “latest” is back to 1.26.0, and that whether the upload credential has been revoked is “unconfirmed”.

Minutes on 17 November 2026, from the timestamps in the researcher's GitHub report and Microsoft's reply: vers
Minutes on 17 November 2026, from the timestamps in the researcher’s GitHub report and Microsoft’s reply: version 1.26.1 on PyPI up to about 33 minutes (20:35:20 to before 21:08:39 UTC), 1.26.2 up to about 26 minutes (21:08:39 to by 21:35 UTC), about 60 minutes in all; Microsoft’s reply came 93 minutes after the first upload. Our arithmetic; exact removal times are not stated.

What Microsoft Has Said

The maintainer’s reply in full, after thanking reporters, reads: “The compromised versions for agent-framework: 1.26.1, 1.26.2 have been pulled from the package feed. We’re actively investigating the issue and will share more details as soon as we can”. PyPI’s own project data lists 1.26.0 as the latest version, with no 1.26.1 or 1.26.2, when we read it at about 23:35 UTC.

What Users Are Told to Do

Microsoft’s reply gives no remediation steps yet. The researcher’s report tells users to pin version 1.26.0, which it calls clean, and warns: “Do not upgrade to “the latest version” to remediate”. It says the removed versions “can still be installed from pip/uv caches, CI caches and internal mirrors”.

Its recommended order is to delete the startup hook files with a shell command before running pip, because pip itself starts Python and would trigger the payload, then reinstall 1.26.0, rebuild images and caches, and “Rotate every long-lived secret” that was exposed. The report also asks that “every PyPI API token and Trusted Publisher configuration” with upload rights to the project be revoked or rotated.

How Many Installs Were Exposed

Neither Microsoft nor PyPI has said how many times the two versions were downloaded. As a scale reference only, pypistats.org shows 5,971 downloads of agent-framework, across all versions, on its last full day, about 249 an hour on average, by our arithmetic. That figure is not a count of the malicious versions.

It lands in a week of security news: Calif said OpenAI’s Codex found the Java flaw it calls Java4Shell, and our count of nine outage and cyber cases in six days. Microsoft launched its own MAI models at Ignite the same day.

The Structural Read

As we read the report, the risk sits less in the package code than in where it runs: it says the payload ran on every Python start and appeared aimed at hosted Azure DevOps build agents, the machines that hold deployment credentials.

As we read the timeline, removing a version did not close the gap: the report says a second malicious version was uploaded at 21:08:39 UTC after 1.26.1 was removed, and that whether the upload credential has been revoked is unconfirmed.

Microsoft maintainer reply on GitHub issue #10411

“The compromised versions for agent-framework: 1.26.1, 1.26.2 have been pulled from the package feed”

Three Implications

FOR AGENT-FRAMEWORK USERS The report tells users to pin version 1.26.0, to remove the startup hook files with a shell command before running pip, and to rotate secrets that were exposed; Microsoft’s reply gives no steps yet.

FOR CI AND BUILD SYSTEMS The report says the removed versions can still be installed from pip and uv caches, CI caches and internal mirrors, so purging those is part of its listed remediation.

FOR MICROSOFT The maintainer says Microsoft is investigating and will share more details; the report asks that every PyPI token and Trusted Publisher configuration with upload rights be revoked or rotated.

The Business Engineer Lens

This story maps onto the Business Engineer framework The Agentic Harness War.

The framework says: “Value capture migrates up from the model to the harness.”

As we read it, agent-framework is part of that harness layer, the code that connects models to tools and credentials, so a compromised harness package reaches the secrets of the systems agents run in, per the report’s description of what the payload collected. The framework predates this incident and does not discuss it.

What Is Not Established

How the upload credential was obtained, whether it has been revoked, how many systems installed either version and what data reached the attacker are not established. The technical findings are the researcher’s and Microsoft has not published its own analysis. We did not contact Microsoft, PyPI or Upwind Security.

This Week In The AI Supercycle

AI Lost Its Central Banker, the Lab Oligopoly, and the Future of Open Source

This week’s issue: the Nvidia leadership change, read as the AI build-out losing its central banker: who now finances the GPU landlords, backstops the data centres and sponsors open models, and why two labs are becoming the bank.

Read the full issue →

Business Engineer Framework

The Agentic Harness War

A Business Engineer analysis of where value pools as AI agents move from the model to the harness around it.

Read the Map of AI →

The Bottom Line

Microsoft says it pulled versions 1.26.1 and 1.26.2 of agent-framework and is investigating. A researcher’s report says both carried a credential-stealing payload and were on PyPI for about an hour in total by our arithmetic. The report tells users to pin 1.26.0 and rotate exposed secrets.

97,000+ executives read Business Engineer for the AI strategy frameworks cited by ChatGPT, Claude, and Perplexity.

A note on sourcing. The upload times, the payload description and the remediation steps are from Lidor Machluf’s report on the agent-framework GitHub repository (Upwind Security) and his follow-up comments; Microsoft’s statement is its maintainer’s reply on the same issue. The version listing is from PyPI’s project data and the download figure from pypistats.org, both read on 17 November. Durations are our arithmetic from the reported timestamps and are upper bounds. We did not contact Microsoft, PyPI or Upwind Security.

Sources: GitHub issue microsoft/agent-framework #10411 (Upwind Security report and Microsoft reply), 17 Nov 2026 · PyPI, agent-framework project, read 17 Nov 2026 · pypistats.org, agent-framework recent downloads

Scroll to Top
FourWeekMBA