Microsoft keeps Agent Framework repository offline after malicious PyPI releases
Tech

Microsoft keeps Agent Framework repository offline after malicious PyPI releases

TechNews Editorial
TechNews EditorialDec 1, 2026 · 1 min read
Share

Why it matters

The malicious code runs when Python starts, so installing either affected release can expose credentials even if an application never imports the package.

The facts

  • Microsoft's Agent Framework repository remains offline, with no date set for restoring access.
  • Two unauthorized PyPI releases, agent-framework 1.26.1 and 1.26.2, contained credential-stealing code and have been removed.
  • Microsoft says installers of either release should treat the affected environment as compromised and rotate accessible credentials.

Advertisement

Microsoft has apologized for keeping its Agent Framework repository offline after two credential-stealing versions of its Python package appeared on PyPI. The company has not given a date for restoring access.

The unauthorized releases were versions 1.26.1 and 1.26.2 of the agent-framework meta-package. Both were uploaded to PyPI on November 17. Microsoft says the malicious code was distributed through PyPI, not through the repository.

When The Register reported the incident on November 18, a Microsoft spokesperson said the company was investigating and “will take further action as needed.”

Read nextMicrosoft makes Foundry voice agents generally available and adds agent optimization previews

Microsoft says the malicious releases are gone

In a November 25 update, Microsoft principal product architect Dan Taylor wrote: “Both contained code that steals credentials. Both have been removed from PyPI.” He said only the agent-framework Python meta-package was affected. “Other Microsoft Agent Framework Python packages were not affected,” he wrote. .NET packages and Semantic Kernel were also unaffected.

Anyone who installed either malicious version should treat the affected machine, container, or CI job as compromised. The code runs when Python starts, even if an application never imports the package.

Microsoft advises those users to rotate every credential the environment could access, rebuild from a clean image rather than downgrade in place, remove cached and mirrored copies, and check cloud and CI audit logs for suspicious activity. Users who installed neither version should pin agent-framework to 1.26.0 or pin the specific sub-packages they need while awaiting further guidance.

Repository access has no return date

Taylor said the repository would stay unavailable until Microsoft could establish that restoring it was safe. “Microsoft Agent Framework has not been discontinued,” he wrote. He called the shutdown “a necessary precaution” and said, “We're working to restore access as soon as possible.”

What this means

For environments running the unauthorized PyPI releases, Microsoft advises rebuilding machines, containers, or CI jobs from clean images rather than performing in-place downgrades, deleting cached or mirrored package copies, and reviewing cloud and CI audit logs for suspicious activity. Users who did not install either release are directed to pin the agent-framework package to version 1.26.0 or pin specific required sub-packages while awaiting additional guidance. Meanwhile, Microsoft confirmed that other Agent Framework Python packages, .NET packages, and Semantic Kernel were not affected by the incident.

Newsletter

Get the best AI & tech news daily

A concise daily digest. Unsubscribe anytime.

We use your email only to send this newsletter.

Keep reading