Welcome to your source of quality news, articles, analysis and latest data.

Microsoft keeps AI agent toolkit offline after credential-stealing releases on PyPI

Tech

Two hijacked versions of the agent-framework Python package, which is downloaded nearly 200,000 times a month, carried malware; Microsoft has not said when its repository will return.

Microsoft is keeping the code repository for its Agent Framework, a toolkit for building artificial intelligence agents, offline nearly two weeks after two hijacked releases of the project’s Python package were found to contain credential-stealing malware, The Register reported on November 30, 2026. The company has apologized for the disruption but has given no date for restoring access.

The two malicious versions of the agent-framework package, 1.26.1 and 1.26.2, were uploaded to the Python Package Index (PyPI) on November 17, according to a November 25 update from Dan Taylor, a principal product architect at Microsoft, quoted by The Register. “Both contained code that steals credentials. Both have been removed from PyPI,” Taylor wrote.

What the malware did

The security company OX Security, which identified the compromise, said the package was a credential stealer. It harvested environment secrets, credentials for cloud services and package managers, and Azure managed identity tokens, and sent them to an attacker-controlled web address. It specifically targeted Azure DevOps build agents used in automated software pipelines, according to OX Security.

The malicious code was designed to be hard to notice. It ran automatically every time a Python interpreter started on an affected machine, even if the package was never imported, and it pulled in the genuine version 1.26.0 of Microsoft’s framework so that applications kept working normally, OX Security said. The firm put the package’s downloads at 192,534 a month.

The Register reported on November 18 that, according to OX Security, version 1.26.1 had been reverted to a safe version but the attacker then uploaded 1.26.2 through Microsoft’s official PyPI publisher account. The publication said at the time that the episode suggested an administrator account had been compromised. Microsoft has since said that the malicious code was distributed through the two unauthorized releases on PyPI and not through the repository itself, The Register reported.

Microsoft’s response

Taylor said the repository would stay unavailable until Microsoft could establish that it was safe to restore, calling the step “a necessary precaution.” Taylor added: “Microsoft Agent Framework has not been discontinued.”

Only the agent-framework Python meta-package was affected, according to Taylor. Other Agent Framework Python packages, the .NET packages and Microsoft’s Semantic Kernel were not, The Register reported.

Microsoft’s guidance, as reported by The Register, is that anyone who installed either malicious version should treat the affected machine, container or build job as compromised. It recommends rotating every credential that environment could reach, rebuilding from a clean image rather than downgrading in place, removing cached and mirrored copies of the package, and reviewing cloud and build audit logs for suspicious activity. Users who installed neither release were told to pin the package to version 1.26.0 until further notice.

OX Security similarly advised organizations to search their environments and build images for the two versions, and to rotate secrets such as cloud service credentials and access tokens for code and package repositories if the package had run.

Why it was hard to spot

The compromised release came through Microsoft’s own official publisher account, according to OX Security, and the framework kept working normally after installation, which the firm said made the compromise easy to miss. The Register noted that the package is used to build and deploy AI agents.

Microsoft has not said how the attackers obtained the ability to publish the releases, or how many systems installed them before they were removed.

Sources

  1. BREAKING: Hijacked Releases of Microsoft's Official agent-framework Steals Azure and CI Credentials OX Security, November 17, 2026
  2. Microsoft keeps Agent Framework offline after malware mess The Register, November 30, 2026
  3. Microsoft's official Python agent framework hijacked to distribute malware The Register, November 18, 2026