Supply-chain attack · high
Microsoft agent-framework PyPI releases compromised with credential-stealing malware
Tier A · Patch today – Before you go home
Who’s exposed: Developers and CI/CD pipelines installing agent-framework 1.26.1 or 1.26.2 from PyPI
Tier A because: Core infrastructure or popular tool AND exploited in the wild
Reach
Attack
Damage
Fix
Popular tool · Exploited in the wild · Full takeover · Secrets exposed · Supply chain
What to do
- Check whether agent-framework versions 1.26.1 or 1.26.2 are installed or pinned in any environment or pipeline
- Uninstall or pin to a known-good version of agent-framework
- Rotate Azure, Azure DevOps, GitHub Actions and other cloud or CI/CD credentials on systems that installed the affected versions
The Brief
- Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI were published on November 17 and contain malicious Python startup hooks.
- The hooks harvest credentials, environment data and cloud identity tokens (Azure, Azure DevOps, GitHub Actions) and send them to a webhook.site endpoint.
- Multiple security firms including Socket, StepSecurity, SafeDep, Wiz and others reported the compromise.
Why it matters
Any developer or CI/CD pipeline that installed agent-framework 1.26.1 or 1.26.2 may have had cloud and CI/CD credentials exfiltrated when Python starts, so those secrets should be treated as exposed.
The checklist behind the tier
Checklist · 6 of 10 yes
| Yes | Hits tech teams | Agent Framework is a developer toolkit for building AI agents, installed by developers via PyPI. |
| No | Core infrastructure | A single Microsoft agent framework package, not software nearly every team runs. |
| Yes | Popular tool | Official Microsoft package with roughly 190,000 monthly downloads, per DEV Community python. |
| Yes | Exploited in the wild | Help Net Security and BleepingComputer: malicious versions 1.26.1 and 1.26.2 were published and carried a credential stealer. |
| No | Public exploit | No source says exploit code or a step-by-step proof-of-concept was published. |
| No | Remote, no login | Sources describe a package compromise via unauthorized admin account access, not unauthenticated network attacks. |
| Yes | Full takeover | Socket: startup hooks silently run on Python start and collect credentials, which amounts to code execution on victim machines. |
| Yes | Secrets exposed | Step Security Blog: releases harvest cloud and CI/CD credentials and send collected data to a webhook.site endpoint. |
| Yes | Supply chain | The Hacker News: attackers compromised Microsoft's official agent-framework package on PyPI to push a credential stealer. |
| No | No fix yet | No source states that a fixed version is unavailable or that the vendor has not shipped a fix. |
Timeline
Full coverage · 13 sources
- 1d ago ↗
DEV Community: python
Microsoft's Open Source Tools Hacked to Steal AI Developers' Passwords - 1d ago ↗
DEV Community: python
Microsoft's Python Agent Framework Hijack: What Package Compromise Teaches About Agent Supply Chain Security - 1d ago ↗
- 2d ago ↗
- 2d ago ↗
www.theregister.com - Articles
Microsoft's official Python agent framework hijacked to distribute malware - 2d ago ↗
- 2d ago ↗
DEV Community: python
MAI Code 2 on Stage, .pth Credential Theft on PyPI: The Microsoft Agent Framework Breach - 3d ago ↗
- 3d ago ↗
The Hacker News
Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials - 3d ago ↗
Step Security Blog
Microsoft agent-framework PyPI Package Compromised - 3d ago ↗
- 3d ago ↗
Wiz Blog | RSS feed
Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines - 3d ago ↗
Aikido Security's Blog
Two malicious agent-framework releases hit PyPI in 33 minutes
First seen · 13 sources · Full story page · How tiers are decided