Microsoft agent-framework PyPI Package Compromised with Stealer
Score: 9/10

Microsoft agent-framework PyPI Package Compromised with Stealer

The Microsoft agent-framework PyPI package was compromised in versions 1.26.1 and 1.26.2 to include a credential stealer that exfiltrates Azure, GitHub Actions, and CI/CD secrets.

Executive Summary

On November 17, 2026, the official Microsoft Python package 'agent-framework' was compromised on PyPI. Malicious versions 1.26.1 and 1.26.2 were uploaded, incorporating a sophisticated credential stealer. The attack is notable for its persistence mechanism; it utilizes .pth startup hooks to execute the payload automatically whenever the Python interpreter starts, requiring no explicit import of the compromised library.

The malware targets a broad range of cloud and CI/CD secrets, including Azure managed identity tokens, GitHub Actions OIDC tokens, and environmental variables related to AWS, OpenAI, and Hugging Face. Despite PyPI quarantining the initial malicious release, the attacker successfully uploaded a second version with expanded capabilities minutes later, indicating a persistent breach of publishing credentials or flow.

This incident represents a critical risk to AI developers and CI/CD pipelines. Organizations using the Agent Framework must immediately audit their environments for the affected versions and treat any credentials accessible by those environments as compromised. Immediate rotation of Azure service principal secrets, PATs, and cloud tokens is highly recommended.

Key Details

Threat Name

Compromised agent-framework PyPI Package

Affects

JVMs

Adversary

—

Malware/Tools

agent-framework

Report Score

9out of 10
Quality Score
Excellent
IOC Quality9
TTP Details9
Detection Guidance7
Enterprise Relevance10
Clarity & Structure10
Technical Depth9

Sources