Socket reports Microsoft's agent-framework package on PyPI was compromised with a credential stealer
Socket · Research report
Read the source (opens in a new tab)- What happened
- Socket's research team reported on November 17, 2026, that versions 1.26.1 and 1.26.2 of Microsoft's agent-framework Python package on PyPI were compromised that day.
- Key points
- Both versions install Python startup hooks that "silently collect credentials, environment data, and cloud identity tokens," then send them to an outside web endpoint.
- Targets include Azure, GitHub, OpenAI and Hugging Face secrets, and the code requests fresh cloud and CI tokens "rather than merely copying existing secrets."
- Version 1.26.2 added theft of GitHub Actions identity tokens and moved its hook so that checking only the package's initializer file misses it.
- Socket advises against installing either version and, where installed, removing them and rotating "potentially exposed credentials."
- Evidence
- Security firm's technical analysis of the two malicious versions, with file hashes and other indicators. It contains no statement from Microsoft.
- Uncertain
- Socket does not say how the attacker gained publishing access or how many systems installed the malicious versions.