Green source code glowing on a dark laptop screen, illustrating the Microsoft Agent Framework malware incident

Microsoft Agent Framework malware: repo still dark two weeks on

Photo: Christiaan Colen on Flickr, CC BY-SA 2.0

Two weeks. That’s how long Microsoft’s Agent Framework repository has been offline on GitHub, and the company still can’t say when it’s coming back. For an open source project meant to be the foundation of your AI agents, that’s quite the message.

Quick recap for those who missed it. On November 17, two versions of the agent-framework Python package, 1.26.1 and 1.26.2, showed up on PyPI. Neither came from Microsoft’s build pipeline. Both, in the words of principal product architect Dan Taylor, “contained code that steals credentials”. The Microsoft Agent Framework malware ran as soon as Python started, whether or not your code ever imported the package. Install it, and it owns the environment.

The packages were pulled from PyPI quickly. The GitHub repo, however, was switched off as a “necessary precaution” and, as The Register reports, Microsoft has apologised for the outage but offered no timetable. “Microsoft Agent Framework has not been discontinued,” Taylor felt the need to add. When a company has to say that, you know how it looks.

Microsoft Agent Framework malware: who’s affected

Only the Python meta-package was poisoned. The sub-packages, the .NET side and Semantic Kernel were not touched. It’s a narrower blast radius than Optimizely serving malware to 178 big sites for 17 hours, but the victims here hold cloud keys, not cookies. If you installed 1.26.1 or 1.26.2 anywhere, Microsoft’s advice is blunt: treat that machine, container or CI job as compromised. Rotate every credential it could reach. Rebuild from a clean image rather than downgrading in place. Purge mirrors and caches. Then go through your cloud and CI audit logs with a strong coffee.

If you installed neither, pin to 1.26.0 or pin the exact sub-packages you need and wait for further guidance. Which, two weeks on, is still “coming”.

I’d add one thing Microsoft doesn’t mention: check whether some tool pulled the package in for you. Agent frameworks are exactly the kind of dependency that an AI coding assistant will happily pip install on your behalf without asking. If your workflow involves an agent writing requirements files, it’s worth opening them.

The supply chain problem nobody fixes

What bugs me about this story isn’t the malware. It’s how ordinary it has become. Someone gets hold of publishing rights for a popular package, pushes a patch release with a believable version number, and thousands of automated installs do the rest. We saw another flavour of it with Convex’s skills quietly phoning home. The pattern is always the same: trust in the pipe, not in the content.

The irony here is thick. Microsoft is selling the Agent Framework as the safe, enterprise-grade way to build autonomous agents that will run with real credentials against real systems. And the first serious incident was the framework’s own install path being used to steal those credentials. Microsoft has still not explained how two unauthorised releases got onto PyPI under its name, and that’s the part I want to read, not another apology.

What I’d do if I were you

Pin everything. Not “greater than or equal”, exact versions with hashes. Use a private mirror or at least a lock file that you review when it changes. Give CI jobs the smallest set of secrets they can live with, so one bad package can’t walk away with your cloud account. And consider that an agent framework is a privileged component, the same way Windows now treats coding agents as something worth logging: it deserves the scrutiny you’d give a VPN client, not a left-pad.

Microsoft will get the repo back. The credentials that leaked on November 17, though, are already somewhere else.


Discover more from TechPassion

Subscribe to get the latest posts sent to your email.

Comments
Add a comment

Leave a Reply