Friday, 20 November 2026
2 agent hacks today▼ 9 vs yesterday (11)

Microsoft agent-framework package hit by credential stealer on PyPI

Two malicious releases of the Python package, which draws about 200,000 downloads a month, were published on 17 November 2026 and later quarantined.

By The Agentic Times ·

Microsoft agent-framework package hit by credential stealer on PyPI
· Image: wiz.io

Attackers published two booby-trapped versions of Microsoft's agent-framework package to PyPI, the main repository for Python software, on 17 November 2026. According to Wiz, versions 1.26.1 and 1.26.2 appeared at 20:35 UTC carrying an added credential stealer. The package receives almost 200,000 downloads a month, Wiz said. Both malicious versions have since been quarantined.

The Hacker News reported that the two releases were published 33 minutes apart, and that the added code is designed to run the credential stealer on every Python start. That means the malicious code would execute whenever the Python interpreter was launched on an affected machine, not only when the agent-framework library itself was used.

Wiz described the payload as a credential stealer targeting Azure and continuous integration pipelines. CI pipelines are the automated build and test systems that software teams use to compile and ship code, and they typically hold tokens and keys with broad access to cloud accounts and source repositories.

The compromise was flagged by a cluster of security firms rather than a single researcher. The Hacker News said reports came from Aikido, Endor Labs, OX Security, SafeDep, Socket, StepSecurity and Google-owned Wiz. The volume of near-simultaneous reporting is consistent with automated monitoring of new package releases, which several of these firms run as a product.

The incident is a supply chain compromise: rather than attacking users of the framework directly, whoever was behind it targeted the distribution channel that developers trust. Anyone who installed agent-framework 1.26.1 or 1.26.2 in the window before quarantine would have pulled the stealer into their environment. Neither source gives a figure for how many installations occurred during that period.

The timing matters because of what the package is. Microsoft's agent-framework is used to build AI agent applications, which means the developers installing it are, by definition, working on systems that often hold API keys for model providers, cloud services and internal tools. A stealer that fires on every Python start inside a developer workstation or a build runner sits in a good position to collect those secrets.

Quarantine on PyPI removes a release from normal installation, so new installs of the affected versions should fail. It does not clean up machines that already fetched the code. Organisations that pinned or installed those two versions between the publication time given by Wiz and the quarantine would need to treat any Azure or CI credentials present on the affected hosts as exposed.

Neither Wiz nor The Hacker News attributes the compromise to a named group, and neither source explains how the attackers obtained the ability to publish under the Microsoft package name. The Hacker News noted that, as of its writing, both versions remained the subject of ongoing reporting. Microsoft had not issued a statement quoted in either source at the time of publication.

For teams running agent frameworks in production, the practical lesson from this incident is narrow and familiar: a dependency with a trusted vendor name on it is still a dependency, and the window between a malicious release landing and a repository pulling it can be measured in minutes rather than days.

Sources

  1. wiz.iohttps://wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi
  2. thehackernews.comhttps://thehackernews.com/2026/11/attackers-compromise-microsofts-agent.html