Skip to content

Microsoft's agent-framework PyPI package stole cloud credentials

Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework ran a credential stealer on every Python start, before security researchers got them pulled within the hour.

Source: SafeDep

Microsoft’s own agent-framework package on PyPI carried a credential stealer for roughly an hour on 17 November. Versions 1.26.1 and 1.26.2, published 33 minutes apart, dropped a .pth file into site-packages that runs on every Python interpreter start, whether or not anything actually imports the package.

The stealer forked into a background process, collected environment variables containing terms like TOKEN, SECRET, AZURE, AWS and GITHUB, read credential files for Azure CLI, Docker, pip and git, and requested fresh Azure managed-identity and GitHub Actions OIDC tokens. It compressed and base64-encoded the haul, then sent it in one HTTPS request to a hardcoded webhook.site endpoint. SafeDep flagged 1.26.1 at 20:57 UTC and 1.26.2 at 21:12 UTC; both were off PyPI by about 21:30. The package normally pulls around 192,000 downloads a month. The last clean release is 1.26.0.

pip show agent-framework | grep Version
pip install "agent-framework!=1.26.1,!=1.26.2"

Why it matters: if your environment installed agent-framework between 20:35 and 21:30 UTC on 17 November, the stealer could have run on your next Python start even without importing the library. Pin to 1.26.0 or later, check your lockfiles and CI caches for the two bad versions, and rotate Azure or GitHub credentials if you cannot rule out exposure.

The caveat: the webhook.site endpoint used a free tier capped at 100 requests, and nobody has confirmed how many real installs hit the malicious versions before they were pulled.

Share

Related reading

More from The Wire

All briefs