Content on Harava News is AI-generated and may contain errors.

Two malicious Microsoft agent-framework releases appeared on PyPI with code that could steal cloud and CI credentials

TechnologyTechnology

Two malicious releases of Microsoft’s agent-framework package appeared on PyPI on November 17, 2026, with code that could steal cloud and continuous-integration (CI) credentials whenever Python started in an affected environment.

The affected versions were 1.26.1 and 1.26.2, and they appeared about 33 minutes apart. GitHub’s advisory said the versions were later removed from PyPI. Each release added a Python .pth startup file.

The file ran the malicious code as soon as the Python interpreter started, without waiting for a user to load the package. The code searched environment variables and credential files for secrets. It targeted tokens linked to Azure, Azure DevOps, and GitHub Actions.

The second release also added code to steal GitHub Actions OIDC tokens. Researchers reported that the stolen data was sent to a remote destination. The full extent of the exposure is not known.

The advisories do not establish how the malicious releases were published. Wiz said the cause had not been confirmed. The clean version immediately preceding the poisoned releases was 1.26.0.

Security researchers advise checking development machines, build pipelines, and cached environments for versions 1.26.1 or 1.26.2. Anyone who installed them should assume that credentials they could access were exposed. They should change those credentials and review relevant cloud and CI activity.