Malicious Versions of Microsoft’s Agent Framework Package Discovered on PyPI, Targeting Cloud Credentials
Security researchers have identified two malicious releases of Microsoft’s official Agent Framework Python package on the Python Package Index (PyPI). The compromised versions were crafted to harvest cloud authentication tokens and other sensitive data from the machines of developers who installed them, raising concerns about a new supply‑chain attack vector aimed at Microsoft’s cloud‑focused tooling.
The Agent Framework is a Microsoft‑maintained library that simplifies the creation of AI‑driven agents and bots, and it is widely used in projects that integrate with Azure services. In the malicious uploads, hidden code was inserted that silently scanned the host environment for environment variables, configuration files, and credential stores commonly used to access Azure resources. When such data was found, the code transmitted it to an external server controlled by the attackers, potentially allowing unauthorized access to the victims' cloud accounts.
The incident adds to a growing list of supply‑chain compromises targeting popular package repositories. Over the past few years, attackers have hijacked libraries on PyPI, npm, and other ecosystems, exploiting the trust developers place in publicly hosted dependencies. By inserting malicious code into a legitimate, Microsoft‑signed package, the perpetrators leveraged the reputation of the original project to increase the likelihood of successful installation.
Microsoft responded swiftly after the malicious versions were reported. The company removed the compromised releases from PyPI, issued a public advisory warning developers to uninstall the affected packages, and recommended immediate rotation of any cloud credentials that may have been exposed. Microsoft also began an internal investigation to determine how the attackers gained publishing access and to reinforce its package‑signing and verification processes.
Security experts advise developers to adopt stricter dependency‑management practices, such as verifying package hashes, using signed releases, and pinning exact versions in requirements files. Monitoring for unexpected network traffic and regularly rotating cloud secrets are also recommended steps to mitigate the impact of similar attacks. The episode underscores the importance of vigilant supply‑chain security as open‑source components become integral to enterprise software development.
Comments (0)
Be the first to comment.
Join the discussion