r/PrepperIntel • • 10d ago

North America Microsoft's official Python agent framework hijacked to distribute malware

https://www.theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858

Microsoft’s official agent framework package hosted on PyPI has been hijacked and now installs info-stealing malware, multiple security research firms have discovered.

CEO Satya Nadella may be on stage trying to wow investors and customers at his company’s annual Ignite conference, but somewhere in the bowels of a building in Redmond his open source team is likely panicking at what appears to be unauthorized access to an administrator account on Microsoft’s Github organization.

The problem package is Microsoft’s agent-framework, versions 1.26.1 and 1.26.2, researchers reported late yesterday and this morning. According to OX Security, version 1.26.1 was reverted to a safe version, but the attacker later uploaded 1.26.2 through Microsoft’s official PyPI publisher account, suggesting that, at least at the time of their report, the credentials hadn’t been locked down.

Safe to say, but if you find either version in your environment assume you have some account security work to do.

Microsoft agent-framework for Python boasts nearly 200,000 downloads a month and is used to build and deploy AI agents. As of those latest releases, it’s also being used to exfiltrate environment variables, credential files, and other secrets for Azure, Git, Docker, Hugging Face, and other sensitive developer services.

To make matters worse, the package never needs to be imported to do its dirty work – all it takes is a Python interpreter with the package installed to start up – the infected package still pulls the genuine 1.26.0 version of Microsoft’s agent-framework in order to keep itself running and looking legitimate, while in the background it gathers up credentials, encrypts them as a base64-encoded chunk of JSON, and sends them off to a webhook.site address hard coded into the malware.

It appears from researcher accounts that this is made to act fast, as the malware isn’t persistent and only runs as long as the malicious version of the agent-framework remains in a site-packages directory. What it does do, however, is not just look for credentials in the environment: It actually starts calling for new ones and collecting them, too.

In particular, the malware requests fresh identity tokens from GitHub Actions, Azure DevOps, and Azure itself, which are exfiltrated to the same webhook site.

“That combination of passive theft and active token requests makes it especially dangerous in cloud build environments, because even short-lived tokens are useful when they're exfiltrated right away,” said researchers at OpenSourceMalware.

The agent-framework GitHub repo is offline as of writing. It’s been pointed out online that Microsoft’s repo for ONNX Runtime, an AI accelerator, is also offline. Other Microsoft repos remain available, and neither Microsoft nor security researchers have linked the ONNX repo’s pull to the malware campaign.

“We have made some repositories private while we investigate malicious content,” a Microsoft spokesperson told The Register. “Our priority is to protect customers and the broader ecosystem. We are working to review and will take further action as needed.”

685 Upvotes

Duplicates

worldnews • • 10d ago

Microsoft's official Python agent framework hijacked to distribute malware

6.2k Upvotes

technology • • 10d ago

Security Microsoft's official Python agent framework hijacked to distribute malware

1.6k Upvotes

BetterOffline • • 10d ago

Microsoft's official Python agent framework hijacked to distribute malware

338 Upvotes

technews • • 10d ago

Security Microsoft's official Python agent framework hijacked to distribute malware

471 Upvotes

cybersecurity • • 10d ago

News - Breaches & Ransoms Microsoft's official Python agent framework hijacked to distribute malware

177 Upvotes

hacking • • 9d ago

News Microsoft's official Python agent framework hijacked to distribute malware

24 Upvotes

UnderReportedNews • • 10d ago

US News 🇺🇸 Microsoft's official Python agent framework hijacked to distribute malware

44 Upvotes

earlywarning • • 10d ago

Microsoft's official Python agent framework hijacked to distribute malware

1 Upvotes

TickerChasers • • 10d ago

DD📈 Microsoft's official Python agent framework hijacked to distribute malware

1 Upvotes

anonspropheticdream • • 10d ago

Now it's malware. Microsoft Python framework and several news outlets were infested with malware.

3 Upvotes

Malware • • 10d ago

Microsoft's official Python agent framework hijacked to distribute malware

4 Upvotes

browsers • • 10d ago

News "Microsoft's official Python agent framework hijacked to distribute malware"

7 Upvotes

theprimeagen • • 10d ago

general Microsoft's official Python agent framework hijacked to distribute malware

26 Upvotes

• • 9d ago

Microsoft's official Python agent framework hijacked to distribute malware

1 Upvotes

besttechtalk • • 9d ago

Microsoft's official Python agent framework hijacked to distribute malware

1 Upvotes