SecurityWeekEduard Kovacs
Malicious Microsoft Agent Framework Releases Steal Credentials
Part of the Microsoft Agent Framework story · since 17 Nov
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials. This article, 4th of 5.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
Two malicious versions of Microsoft’s Agent Framework Python package, 1.26.1 and 1.26.2, were published to PyPI on 17 November, around 33 minutes apart. The package, agent-framework, is used to build AI agents and multi-agent applications and has about 190,000 downloads a month. PyPI has quarantined the compromised versions; 1.26.0 is the latest clean release. Microsoft acknowledged the incident, and an Agent Framework maintainer said the releases had been removed and an investigation was under way.
Researchers at OX Security, Wiz, Endor Labs and SafeDep independently analysed the malware. It added credential-stealing code while retaining legitimate framework components, so affected applications could continue working. The code uses a Python startup mechanism to run whenever the interpreter starts, even if the compromised package is not explicitly imported.
It targets secrets in environment variables and configuration files, credentials held by other running processes, Azure managed identity tokens and Azure DevOps authentication tokens. The second release also added targeting of GitHub Actions.
How the packages were published remains unknown. Wiz found that, unlike legitimate releases, the malicious versions contained only built packages and had no corresponding release or malicious code in Microsoft’s main source repository. SafeDep identified a PyPI maintainer account, vibiret, created on the day of the attack and authorised to publish the affected package and five related projects, but said the account’s involvement had not been confirmed.
Organisations were advised to check developer environments, CI/CD pipelines and container images, replace affected installations with verified packages, rotate potentially exposed credentials, investigate suspicious cloud activity and rebuild affected environments.
How the story developed
5 articles from 5 outlets since 17 Nov. Still developing; the latest report was 6 hours ago. This was the 4th report, 13 hours after the first.
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials. This article, 4th of 5.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 5 articles as a listHide the list
- Tue 17 NovDay 01
- Microsoft Agent Framework on PyPI compromised to steal secrets22:39 · cybersixt · First report
- Wed 18 NovDay 14
- Microsoft Agent Framework PyPI Releases Steal Credentials03:00 · StepSecurity
- Attackers compromise Microsoft Agent Framework PyPI package07:30 · The Hacker News
- Malicious Microsoft Agent Framework Releases Steal Credentials11:30 · SecurityWeek · This article, 4th of 5
- Attackers Compromise Microsoft Agent Framework PyPI Packages13:01 · SecurityOnline