Official Omarchy plugin · Super+Shift+L
⌘
← all posts
agent-framework pypi compromisedagent-framework 1.26.1 malwaremicrosoft agent framework credential stealer

Installed agent-framework 1.26.1 or 1.26.2? Check Your Python Environments, Then Rotate

Microsoft agent-framework 1.26.1 and 1.26.2 on PyPI shipped a credential stealer that ran on every Python start. How to check your environments and what to rotate.

by team·Nov 24, 2026·4 min read
Cover image for the agent-framework PyPI 1.26.1 and 1.26.2 credential stealer post

If you installed Microsoft's agent-framework Python package at version 1.26.1 or 1.26.2, treat that laptop, server or CI runner as exposed and rotate every credential it could reach. Both versions were malicious releases of the real package, not a look-alike name, and they ran a credential stealer every time Python started. Version 1.26.0 is clean, so pin back to it (GitHub advisory).

What happened?

On November 17, 2026, two new versions of agent-framework showed up on PyPI: 1.26.1 at 20:35 UTC and 1.26.2 at 21:08 UTC. GitHub's advisory calls them malicious releases of the legitimate Microsoft Agent Framework package. They kept the normal framework code, so apps kept working, and added a stealer that isn't in 1.26.0. Both versions have been removed from PyPI.

This was not a typosquat. The bad versions went out under the official package name and publisher, so trusting the name "agent-framework" didn't help. What protected you was a lock file or pin at 1.26.0 or earlier. Microsoft hasn't said yet how the attacker got publishing access.

Why it ran even if you never imported it

Each bad wheel added a small .pth file to site-packages. Python reads .pth files every time the interpreter starts, so the stealer ran as soon as any Python process started in that environment. Your code never had to import agent_framework. A test run, a linter or a one-off script was enough.

What did it take?

According to the advisory, the stealer collected:

  • Environment variables with names containing TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, HF_, NPM, PIP or CI_
  • The environment of other processes on the same machine
  • Credential files: ~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, Azure DevOps agent credentials and .env files
  • Azure DevOps OIDC tokens and Azure managed identity tokens from the cloud metadata service
  • In 1.26.2 only, GitHub Actions OIDC tokens

Everything went to a single webhook.site URL.

Am I affected? Check this first

Check from your shell or your logs, not by starting Python in a suspect environment, because starting Python is exactly what triggers it.

  • Search lock files and requirements files for agent-framework==1.26.1 or 1.26.2 (uv.lock, poetry.lock, Pipfile.lock, requirements*.txt).
  • Search CI logs from November 17 onward for those two versions. If a dependency bot opened an upgrade pull request and CI ran on it, that runner counts.
  • Check container images built on or after November 17.
  • Look in site-packages for agent_framework_meta.pth and agent_framework_meta/_telemetry.py (1.26.1), or af_runtime_diag.pth and af_runtime_diag.py (1.26.2).
  • If you keep proxy or DNS logs, search for webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb.

If none of that turns anything up, you are most likely fine. Pin to 1.26.0 anyway so a future bad release can't slip in.

What to rotate if it ran

  • Delete the affected environment, runner or image and rebuild it from a lock file pinned to agent-framework 1.26.0.
  • Rotate every secret that was in environment variables on that host. Start with AI provider keys like OpenAI and Anthropic.
  • Revoke and replace GitHub tokens and saved git credentials. The GitHub page on devlinkspad goes straight to token settings.
  • Rotate package and registry tokens: npm, PyPI, Docker and Hugging Face.
  • On Azure, sign out of the Azure CLI on that machine, rotate Azure DevOps personal access tokens and service connections, and review sign-in logs for managed identities the host could use. Wiz notes that stolen managed identity and OIDC tokens can stay valid for up to 24 hours (Wiz). The Azure page links to the portal.
  • If 1.26.2 ran in a GitHub Actions job with id-token: write, review the Entra ID federated credentials that trust that workflow and rotate the repository and organization secrets the job could see.
  • Rotate any AWS keys or other cloud keys that were in the environment.

What is still unknown

Microsoft hasn't published how publishing access was obtained. Security researchers have shared theories, but nothing is confirmed by Microsoft yet. There is also no public count of how many people installed the two bad versions, so don't read the package's normal download numbers as a victim count.

FAQ

Is agent-framework 1.26.0 safe?

Yes. The advisory says 1.26.0 and earlier are not affected.

I only depend on agent-framework-core. Am I affected?

The advisory lists only agent-framework 1.26.1 and 1.26.2. The bad wheels still pinned agent-framework-core to the clean 1.26.0. If you never resolved agent-framework itself to one of those two versions, this one didn't reach you.

It only ran on my laptop. Do I still need to rotate?

Yes. Your laptop usually holds the most keys of all: cloud CLI logins, git credentials and .env files for every project.

Can I just uninstall the package?

Uninstalling isn't enough on its own, since whatever was taken is already gone. Remove it, rebuild the environment, then rotate.

Rotating a long list of keys is tedious. devlinkspad can't rotate anything for you, but it takes you straight to each provider's API keys page, so you spend less time hunting through dashboards.

Press ⌘K. Every dashboard, one keystroke away.