Two agent-framework releases on PyPI carried cloud credential-stealing code

Executive Briefing
“Security researchers reported that attackers placed credential-stealing code in two...”
Key Takeaways
- 1.According to the research teams cited in the report, the malicious versions were 1.26.1 and 1.26.2, published 33 minutes apart on November 17, 2026.
- 2.Socket said both versions installed Python startup hooks to collect credentials, environment data and cloud identity tokens. After installation, a .pth file caused the stealer to run whenever the interpreter started, even if a program did not import agent-framework.
- 3.SafeDep said the code did more than read existing credentials. It also requested new tokens from the platform, including a federated token in the described Azure DevOps environment or managed-identity access tokens on Azure compute.
- 4.The report says version 1.26.2 also sought GitHub Actions OIDC tokens and broadened its search for credential-related environment variables.
- 5.Both versions had been quarantined on PyPI when the report was written. Guidance cited in the report recommended restoring version 1.26.0 in a clean environment and rotating exposed credentials from a clean system.
Security researchers reported that attackers placed credential-stealing code in two releases of the agent-framework package for Microsoft Agent Framework. PyPI has quarantined both versions.
Incident Details & Technical Context
According to the research teams cited in the report, the malicious versions were 1.26.1 and 1.26.2, published 33 minutes apart on November 17, 2026.
Socket said both versions installed Python startup hooks to collect credentials, environment data and cloud identity tokens. After installation, a .pth file caused the stealer to run whenever the interpreter started, even if a program did not import agent-framework.
SafeDep said the code did more than read existing credentials. It also requested new tokens from the platform, including a federated token in the described Azure DevOps environment or managed-identity access tokens on Azure compute.
The report says version 1.26.2 also sought GitHub Actions OIDC tokens and broadened its search for credential-related environment variables.
Both versions had been quarantined on PyPI when the report was written. Guidance cited in the report recommended restoring version 1.26.0 in a clean environment and rotating exposed credentials from a clean system.
Risk Assessment & Security Implications
The .pth startup mechanism makes a search for direct agent-framework imports insufficient. An environment with either version installed warrants review even if its application never uses the package.
Because the code could request newly issued tokens, replacing secrets stored in files may not address the whole risk. Reviewing identity access and activity in affected environments is relevant to recovery.
Mitigation & Factors to Watch
How the attackers obtained package-publishing access remains unclear.
The supplied account does not establish how many environments installed the two versions or how many credentials were actually taken.







