StepSecurity
Microsoft Agent Framework PyPI Releases Steal Credentials
Part of the Microsoft Agent Framework story · since 17 Nov
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials. This article, 2nd of 5.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
StepSecurity reports that on 17 November 2026, Microsoft’s agent-framework PyPI package releases 1.26.1 and 1.26.2 were published with a credential‑stealing payload. The payload is delivered as a startup hook via a .pth file, meaning it executes on every Python interpreter start on any machine where the package is installed, without requiring an import of the framework.
The trojaned releases were uploaded through the project’s legitimate publishing channel using the RestSharp 106.13.0[.]0 user agent, and PyPI quarantined both versions, noting that 1.26.2 appeared after the first quarantine. The analysis indicates the attacker retained publishing access across the two quarantines, with 1.26.2 uploaded 2 minutes and 23 seconds after 1.26.1 and quarantined eight minutes later.
According to the article, the malicious wheels harvest environment variables and credential files, scrape other processes’ environments via /proc/*/environ, and mint fresh identity tokens for GitHub Actions OIDC, Azure DevOps OIDC, and Azure managed identity endpoints, exfiltrating data to webhook[.]site. The payload is triggered by the startup hook, with no OS persistence beyond the .pth mechanism.
The report highlights that the attacker’s approach leveraged the normal PyPI publishing path rather than a distinct compromised publishing pipeline, and that the injection could affect CI pipelines and other Python-based workflows. StepSecurity provides remediation steps—including pinning to 1.26.0, rotating secrets, revoking federated credentials, and auditing egress—for systems that installed either compromised release. The piece also notes that the 1.26.0 release remains clean, published on 12 November 2026.
How the story developed
5 articles from 5 outlets since 17 Nov. Still developing; the latest report was 6 hours ago. This was the 2nd report, 4 hours after the first.
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials. This article, 2nd of 5.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 5 articles as a listHide the list
- Tue 17 NovDay 01
- Microsoft Agent Framework on PyPI compromised to steal secrets22:39 · cybersixt · First report
- Wed 18 NovDay 14
- Microsoft Agent Framework PyPI Releases Steal Credentials03:00 · StepSecurity · This article, 2nd of 5
- Attackers compromise Microsoft Agent Framework PyPI package07:30 · The Hacker News
- Malicious Microsoft Agent Framework Releases Steal Credentials11:30 · SecurityWeek
- Attackers Compromise Microsoft Agent Framework PyPI Packages13:01 · SecurityOnline