Microsoft agent-framework Package Hijacked to Install an Information Stealer
Microsoft’s agent-framework package hosted on PyPI was hijacked by hackers. The affected versions, v1.26.1 and 1.26.2, steal environment variables, credential files, and other sensitive information for services including Azure, Git, Docker, and Hugging Face. The package is downloaded nearly 200,000 times per month. The malicious code runs whenever the corresponding Python interpreter starts, without requiring the package to be imported. Microsoft said it made some package projects private during the investigation.
Why read this
SelectedAI score 78
The incident illustrates how Python software supply chain attacks are triggered and the scope of credential exposure, providing a useful reference for dependency audits in agent projects.
Topics
Body · AI translation
Microsoft’s agent-framework package hosted on PyPI was hijacked by hackers to install information-stealing malware. Downloaded nearly 200,000 times per month, agent-framework is primarily used to build and deploy AI agents. The affected versions, v1.26.1 and 1.26.2, steal developers’ environment variables, credential files, and other sensitive information for services including Azure, Git, Docker, and Hugging Face. Worse still, the package does not need to be imported: the malicious code runs whenever the Python interpreter in which it is installed starts. A Microsoft spokesperson said in a statement that the company would make some package projects private during the investigation.
AI Trends