hn.today

Microsoft's official Python agent framework hijacked to distribute malware

theregister.com14 points0 comments
Screenshot of Microsoft's official Python agent framework hijacked to distribute malware

Microsoft’s Python package for building and deploying AI agents, agent-framework, was compromised on PyPI in versions 1.26.1 and 1.26.2. Security researchers said the tampered releases appeared to have been published through Microsoft’s official account, raising concerns that an administrator credential for the company’s GitHub organization had been accessed. The package normally receives nearly 200,000 downloads a month. Microsoft took some repositories offline while investigating and said it was reviewing the malicious content to protect customers and the wider software ecosystem.

Installing either malicious version could expose developer and cloud credentials: the malware runs when Python starts, even if the package is never imported. It retrieves the genuine 1.26.0 package to preserve normal functionality, then searches for environment variables and credential files associated with services including Azure, Git, Docker, and Hugging Face. It also actively requests fresh identity tokens from GitHub Actions, Azure DevOps, and Azure, then sends the gathered secrets in encrypted, encoded form to a hard-coded webhook.site address. Researchers warned that rapid theft of short-lived tokens makes the attack especially dangerous in cloud build environments. The malware is not persistent and operates only while the infected package remains installed, but affected users should treat exposed accounts and credentials as compromised.

Read on theregister.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.