Two malicious releases of Microsoft’s agent-framework Python package appeared on PyPI on November 17. The GitHub Advisory Database records version 1.26.1 at 20:35 UTC and 1.26.2 at 21:08 UTC. PyPI removed both releases. The package index currently lists 1.26.0, which the advisory identifies as the last clean version.
Socket found that the two releases added a credential stealer that can run when Python starts in an affected environment, even if an application never imports Agent Framework. Both versions targeted Azure and Azure DevOps credentials, and 1.26.2 also targeted GitHub Actions identity tokens. The published findings document a package distribution compromise. The upload method and number of affected environments remain unconfirmed.
From a clean environment, check dependency lockfiles, install records, internal package mirrors and container images for either version. If you find one, isolate the affected environment and rebuild it using verified packages. Revoke or rotate credentials that were accessible to it, and review cloud and CI audit logs for unusual activity after installation.