Skip to content
NewA calmer, faster ZeroHour

Malicious Microsoft agent-framework PyPI releases steal cloud credentials

Original title: Credential stealer slipped into Microsoft’s official Python agent framework

Help Net Securityby Sinisa Markovic ()3 min read1
Part of a story covered by 11 sourcesPyPI quarantines Microsoft agent-framework releases that stole credentialsMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Versions 1.26.1 and 1.26.2 run a startup hook without importing the package; PyPI quarantined both, but publishing continued.

StepSecurity, OX Security and Socket say Microsoft’s official agent-framework package on PyPI carried a credential stealer in versions 1.26.1 and 1.26.2, published on November 17, 2026. A .pth hook runs at Python startup, collects cloud, CI/CD and developer credentials, and sends them to a webhook.site endpoint. Agent-framework 1.26.0 is the last clean release. PyPI quarantined the bad releases, but the attacker then published 1.26.2.

Unconfirmed: None of the reports explain how publishing rights were obtained, and token issuance is unconfirmed.

Key facts
  • OX cites 192,534 monthly downloads for the package.
  • The stealer reads tokens, .env files and Azure, Git, npm, Docker and Hugging Face credentials.
  • Version 1.26.2 also requests GitHub Actions OIDC tokens.
  • Teams are told to pin 1.26.0 and treat reachable secrets as compromised.
  • Rotating stored secrets does not cancel tokens already issued.
Security assessment · AI, from the article

Impact: Steals cloud, CI/CD and developer credentials from install hosts

ProductAffectedFixed in
Microsoft agent-framework1.26.1 and 1.26.21.26.0
What to do
  1. 1.Isolate hosts that installed 1.26.1 or 1.26.2 before running Python or pip again.
  2. 2.Rebuild from a clean base and pin agent-framework to 1.26.0.
  3. 3.Treat reachable secrets as compromised and review OIDC, federation and managed-identity permissions.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

3 min read at helpnetsecurity.com

Two releases of Microsoft’s official agent-framework package on the Python Package Index (PyPI) carried code that steals cloud and CI/CD credentials from developers’ systems. Agent Framework is Microsoft’s open-source toolkit for building AI agents and running them in workflows. Three supply chain security companies, StepSecurity, OX Security and Socket, caught the malicious versions and shared their analysis.

Help Net Security

By Sinisa Markovic · helpnetsecurity.com

Read the full article at Help Net Security

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.