Science & Tech · Cybersecurity · 3 hrs ago
Compromised Microsoft Python package stole developer credentials
Attackers uploaded two malicious versions of Microsoft's Agent Framework Python package to PyPI on November 17.
The open-source toolkit helps developers build AI agents, and the package has about 190,000 downloads a month.
The malware ran when Python started, even if users did not directly use the package, and could collect secrets from files, environment settings and cloud services.
The second version also sought authentication tokens from GitHub Actions, while both sent collected data to an attacker-controlled website.
The releases were quarantined on PyPI, and version 1.26.0 is identified as the latest clean release.
The way the attackers gained publishing access remains unknown, and Microsoft is investigating.
Users should isolate affected systems, rebuild them with a clean version and rotate exposed credentials, then check logs for signs that data was sent out.
Hackers compromised Microsoft’s official Agent Framework Python package on PyPI and published two versions designed to steal credentials.
The malicious versions, 1.26.1 and 1.26.2, ran automatically when Python started in affected environments, even if the package was not imported.
The malware collected secrets and cloud identity tokens and sent them to an attacker-controlled webhook endpoint.
PyPI quarantined both versions, and Microsoft said it was investigating the incident.
The clean release identified by the sources is version 1.26.0.
- Who
- Hackers compromised Microsoft’s official Agent Framework Python package.
- What
- Two malicious releases stole credentials and other sensitive information from affected systems.
- When
- The releases were published on November 17, 2026.
- Where
- The package was distributed through PyPI.
- Why
- The attacker’s motive is not stated.
This story does not have two clearly opposing sides.
The malicious versions 1.26.1 and 1.26.2 were published on PyPI.
PyPI quarantined both malicious releases.
Security news outlets reported the compromise, and Microsoft’s investigation was underway.
- Affected package
- agent-framework
- Malicious versions
- 1.26.1 and 1.26.2
- Clean version
- 1.26.0
- Release date
- November 17, 2026
- Malware destination
- webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb
4 sources
Microsoft's official Python agent framework hijacked to distribute malware
Microsoft’s Agent Framework PyPI package compromised to steal credentials
Microsoft Agent Framework Releases Poisoned With Credential Stealer
Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
What people are saying
Both versions install Python startup hooks that silently collect credentials, environment data, and cloud identity tokens, then exfiltrate them to a webhook[.]site endpoint
Python executes import lines in .pth files on every interpreter start, so the stealer runs on any Python launch in an affected environment, including pip itself, whether or not anything imports Agent Framework.
Besides reading credentials already on disk, the code asks the platform to issue new ones.
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,