Skip to content
SparkFire
Article

Microsoft AI Agent Package Compromised

Attackers slipped credential-stealing code into official Microsoft Agent Framework releases, putting developer and cloud secrets at risk.

Enrique Luis2 min read
Microsoft AI Agent Package Compromised cover image

Microsoft’s Own AI Agent Package Was Compromised to Steal Credentials

Developers usually assume that installing an official Microsoft package is safer than downloading something from an unknown source. This incident shows why even trusted software supply chains can become attack targets.

On November 17, malicious versions of Microsoft’s Agent Framework Python package appeared on PyPI, the popular package repository used by developers. Versions 1.26.1 and 1.26.2 contained credential-stealing code. BleepingComputer reported the compromise on November 18.

The Malware Ran Without Developers Realizing

The malicious code was designed to execute whenever Python started, meaning a developer did not even need to actively use the Agent Framework package for the payload to run. It searched for credentials connected to services including Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI.

Microsoft’s Agent Framework repository confirmed that versions 1.26.1 and 1.26.2 were compromised and removed from PyPI while the incident was investigated. See the Microsoft Agent Framework issue on GitHub.

The Second Malicious Version Came Minutes Later

The first compromised release was removed, but another malicious version appeared shortly afterward. According to the investigation, version 1.26.2 was published after the first version had already been identified, suggesting the attacker still had publishing access at that point.

That is what makes software supply-chain attacks so dangerous. Attackers do not need to compromise every developer individually if they can compromise software that thousands of developers already trust.

Trusted Software Still Needs Verification

Businesses using developer packages should pin trusted versions, monitor dependencies, protect publishing credentials, and rotate secrets quickly if a compromise occurs. Developers who installed the affected Agent Framework versions were advised to treat accessible credentials as exposed and move back to the clean 1.26.0 release.

At Sparkfire Solutions, we combine Sparkfire software, Sparkfire automation, cloud management, and security practices to help businesses reduce supply-chain and credential risks. Explore more Sparkfire solutions at sparkfire.us.

FAQs

What happened to Microsoft Agent Framework?
Two malicious versions were published to its official PyPI package.

Which versions were affected?
Versions 1.26.1 and 1.26.2.

What did the malware steal?
It targeted cloud credentials, API keys, tokens, and developer secrets.

Was Microsoft itself hacked?
The exact method used to gain publishing access was still under investigation.

What should affected developers do?
Remove the malicious versions, rebuild from a clean environment, and rotate exposed credentials.

Share

Got an idea? Let's make it real.

Tell us about your problem. We'll come back within one business day with a take, a rough plan, and a call invite.