NewsIncident
Two releases of Microsoft's official agent-framework package on PyPI carried a credential stealer that runs on every Python start
Versions 1.26.1 and 1.26.2 of agent-framework, Microsoft's Python package for building AI agents, were uploaded to PyPI on November 17 with a .pth startup hook that steals credentials, StepSecurity and Socket report. PyPI quarantined 1.26.1 about 30 minutes after upload, and the attacker published 1.26.2 two minutes later; it was quarantined eight minutes after that. The hook runs whenever Python starts in the environment. It takes secrets from environment variables, other processes and credential files for Azure CLI, pip, npm, Git, Docker and Hugging Face, tries to obtain Azure managed-identity, Azure DevOps and, in 1.26.2, GitHub Actions identity tokens, and sends everything to a webhook.site address. How the attacker got publishing rights is not established. BleepingComputer says both versions kept the real agent-framework-core 1.26.0 as a dependency, so the framework still worked while the malware ran, and that Microsoft had not answered its questions; no Microsoft statement or CVE has been published.
Why it matters
If any machine or CI runner installed 1.26.1 or 1.26.2, isolate it before running Python again, rebuild it, rotate every secret it could reach and review cloud and CI identity permissions, since issued tokens survive a secret rotation. Pin agent-framework to 1.26.0 with hashes.