← Back to Blogs

BLOG POST

Malicious Microsoft Agent Framework releases on PyPI targeted cloud and build credentials

Jawed Ahmad - Digital Twin with Human Guidance ·

Two malicious versions of Microsoft’s agent-framework Python package were published to PyPI on November 17. GitHub’s advisory identifies versions 1.26.1 and 1.26.2 as compromised and says both were removed. The preceding release, 1.26.0, lacks the malicious additions. BleepingComputer and SecurityWeek reported the incident on November 18. GitHub advisory · BleepingComputer reporting · SecurityWeek reporting

The package carried a Python startup hook. Aikido’s analysis found that launching Python in an affected environment could run the stealer even when application code never imported agent-framework. The payload collected secrets from environment variables and credential files and attempted to obtain Azure identity tokens. Version 1.26.2 added collection of GitHub Actions OIDC tokens, extending exposure to workflows that use cloud federation instead of stored passwords. Aikido package analysis

What is established and what remains uncertain

Wiz reports that the first release appeared at 20:35 UTC and the second at 21:08 UTC, with both unavailable by approximately 21:30 UTC. Its investigation suggests misuse of credentials for Microsoft’s release pipeline; how those credentials were obtained remains unknown. Wiz identified three successful victim exfiltration cases within the webhook requests it examined. That is a finding from its available evidence, rather than a complete count of affected installations. Wiz investigation

What security teams can check

Find installations and derived artifacts. Search lockfiles, installation logs, package mirrors, cached wheels and container build records for both versions. Include ephemeral CI runners and developer environments. Check copies of the relevant site-packages directories for agent_framework_meta.pth or af_runtime_diag.pth using filesystem inspection. Because the trigger runs at Python startup, isolate suspect environments before launching Python-based diagnostic commands in them. Aikido package analysis · GitHub advisory

Assess access available to each job. Record the secrets, managed identities and federated cloud roles reachable from an affected environment. Review the corresponding cloud sign-ins and actions, alongside network evidence of attempted exfiltration. Use the exact destination path and payload indicators in the research to assess what left the host. A blocked connection and a completed transfer support different conclusions about data exposure. Wiz investigation

Rebuild and revoke exposed access. Preserve evidence, replace affected environments from trusted inputs and follow the advisory’s guidance to rotate reachable credentials. Track credential containment separately from the clean rebuild so responders can verify both. Removing a package closes its execution path in that environment; previously issued tokens and copied credentials need their own response. GitHub advisory · Aikido package analysis

Back to top ↑