Microsoft Agent Framework Package Compromised on PyPI to Distribute Credential‑Stealing Malware
Security researchers have uncovered that the official Microsoft Agent Framework package hosted on the Python Package Index (PyPI) was altered to include malicious code capable of harvesting user credentials and cloud service tokens.
The tampered package, which developers commonly install to integrate Microsoft’s AI agents, was found to contain a payload that silently captured authentication details for a range of developer‑oriented platforms, including Azure, Amazon Web Services, GitHub, OpenAI and Docker.
When the compromised version was installed, the hidden component executed during runtime, extracting stored tokens and forwarding them to an attacker‑controlled server. The stolen data could then be used to gain unauthorized access to cloud resources, repositories and other services tied to the victim’s accounts.
Microsoft and the PyPI maintainers responded quickly after the intrusion was reported, removing the malicious releases and restoring the legitimate package. Developers who installed the infected version are advised to rotate all affected credentials and review access logs for suspicious activity.
This incident adds to a growing list of supply‑chain attacks targeting open‑source ecosystems, where attackers compromise widely used libraries to reach a large audience with minimal effort. PyPI, like other package repositories, relies on a trust model that assumes published packages are authentic, making it an attractive vector for threat actors seeking to infiltrate development workflows.
Experts recommend that developers verify package integrity through hash checking, employ virtual environments, and monitor dependency updates closely. Ongoing vigilance and rapid incident response remain critical as the software supply chain continues to be a focal point for cyber threats.
Comments (0)
Be the first to comment.
Join the discussion