Malware · Application Security
Malicious Microsoft Agent Framework releases stole cloud credentials
Two versions of the Microsoft Agent Framework Python package on PyPI were found stealing Azure, Azure DevOps, and GitHub Actions credentials. The malicious packages have been removed, but users are urged to check for compromise and rotate secrets.
Ross Grant2 min read

The short version
Hackers uploaded two bad versions of a Microsoft Python package to a public software library. If installed, these versions tried to steal cloud service passwords and secrets. Microsoft has removed the bad packages, but anyone who installed them should check for problems and change their passwords.
By the numbers
- 190,000monthly downloads of agent-framework packageSecurityWeek
- 2malicious package versions releasedSecurityWeek
- 33 minutestime between the two malicious releasesSecurityWeek
What happened?
Two malicious versions of Microsoft's Agent Framework Python package were uploaded to PyPI on 17 November. These versions attempted to steal Azure, Azure DevOps, and GitHub Actions credentials from users' environments. Microsoft has removed the compromised packages and is investigating. Only one outlet has reported this so far.
What was taken
Researchers found that the malicious versions of the Agent Framework Python package attempted to steal a wide range of sensitive credentials. These included secrets stored in environment variables and configuration files, as well as credentials from other running processes. The malware specifically targeted Azure managed identity tokens, Azure DevOps authentication tokens, and, in its second release, GitHub Actions credentials. These could allow attackers to access cloud resources and development pipelines.
How the attack worked
The attack involved uploading two malicious versions of the agent-framework package (1.26.1 and 1.26.2) to PyPI, the Python Package Index. These versions were released about 33 minutes apart. The malicious code was designed to run automatically whenever the Python interpreter started, regardless of whether the compromised package was explicitly imported. This meant that any developer environment, CI/CD pipeline, or container image with the affected package installed could have had credentials stolen as soon as Python ran.
The attackers kept the legitimate framework components intact, so applications continued to work normally. This helped the malicious code avoid detection. The packages only included built distributions, not source code, which was different from legitimate releases. Researchers from OX Security, Wiz, Endor Labs, and SafeDep all independently analysed the malware.
The response
Microsoft has acknowledged the incident. A maintainer confirmed in a GitHub discussion that the compromised releases were removed from PyPI and that an investigation is ongoing. The agent-framework repository on GitHub is currently inaccessible. Several other Microsoft repositories, including ONNX Runtime projects, have also disappeared, but it is not clear if these events are related.
SafeDep identified a PyPI maintainer account named "vibiret" that was created on the day of the attack and had publishing permissions for the affected package and five related projects. However, it is not confirmed whether this account was responsible for the malicious uploads.
What you should do
Organisations and developers who may have installed the affected versions are advised to:
- Check developer environments, CI/CD pipelines, and container images for versions 1.26.1 or 1.26.2 of agent-framework.
- Replace any compromised installations with a verified clean package (1.26.0 or earlier).
- Rotate any credentials that may have been exposed, especially Azure, Azure DevOps, and GitHub Actions secrets.
- Investigate for suspicious cloud activity and rebuild affected environments if necessary.
So far, only SecurityWeek has reported this incident, and there is no confirmation yet from Microsoft or a government agency about the full scope or method of the attack. The exact way the malicious packages were published is still unknown.
Why it matters
This attack shows how software supply chain compromises can steal sensitive credentials from development and cloud environments. Even trusted packages can be hijacked, putting organisations at risk if they do not verify and monitor dependencies.
Key points
- Malicious versions of a Microsoft Python package stole cloud credentials.
- The attack targeted Azure, Azure DevOps, and GitHub Actions secrets.
- The compromised packages have been removed from PyPI.
- Developers should check for affected versions and rotate credentials.
- The method used to upload the malicious packages is still unknown.
Sources
SecurityWeek
Reference


