---
title: "Microsoft's agent-framework 1.26.1 and 1.26.2 Stole Credentials Without Being Imported"
canonical: "https://current.tinyfish.ai/issue/56/market-pulse/article/68122/microsofts-agent-framework-1261-and-1262-stole-credentials"
publication: "TinyFish"
publisher: "TinyFish"
language: "en-US"
guide: "https://current.tinyfish.ai/llms.txt"
author: "Sable Whitford"
author_url: "https://current.tinyfish.ai/team/201"
issue: 56
section: "market-pulse"
section_name: "Market Pulse"
published: 2026-11-23
updated: 2026-11-21
word_count: 323
source_links: 0
---

# Microsoft's agent-framework 1.26.1 and 1.26.2 Stole Credentials Without Being Imported

*By [Sable Whitford](<https://current.tinyfish.ai/team/201/markdown>)*

*November 23, 2026*

[Read on the website](<https://current.tinyfish.ai/issue/56/market-pulse/article/68122/microsofts-agent-framework-1261-and-1262-stole-credentials>)

If anyone on your team installed Microsoft's `agent-framework` 1.26.1 or 1.26.2, assume every secret on that machine is gone. Someone published both versions to PyPI without authorization on November 17, and both carried a credential stealer.

The worst part is how it ran. Every time Python starts, it reads small `.pth` files from its package folder, and a single line in one of those files can execute code. So the malware fired whenever *any* Python process started in that environment, whether or not your code imported the framework. That includes `pip`. Run `pip uninstall` the normal way and you set it off once more on the way out. The real framework was still bundled inside, so your app worked and your tests passed.

I suspect we'll see more of this. Agent toolkits get installed fast, onto laptops and build servers that hold cloud logins and AI-provider keys.

Rotate before Thursday. Swapping cloud credentials from your in-laws' guest room with half the team offline is a shitty way to spend Thanksgiving.

- [ ] **Find it:** search laptops, build servers, container images and build logs for **1.26.1** or **1.26.2**. 1.26.0 is clean.
- [ ] **Look for the hook files** in `site-packages`: `agent_framework_meta.pth`, `af_runtime_diag.pth`, plus `agent_framework_meta/_telemetry.py` and `af_runtime_diag.py`.
- [ ] **Clean up without triggering it:** delete those files with plain shell commands first, or set `_AF_TEL=1` before running any Python.
- [ ] **Rebuild the machine:** isolate it and restore from a known-clean image. Deleting files won't stop a stealer that's already running.
- [ ] **Purge saved copies:** package caches, build-system caches, internal mirrors.
- [ ] **Rotate everything it could reach:** cloud, AI-provider, code-repo and package-registry credentials, plus build-system identity tokens. On Linux, include secrets in other processes' environment variables.
- [ ] **Read audit logs** for any use of those credentials since November 17.
- [ ] **Check outbound traffic** for user agents `af-runtime-diagnostics/1` or `runtime-diagnostics/1`, and connections to `webhook[.]site`.

## More

- [Market Pulse — Issue 56](<https://current.tinyfish.ai/issue/56/market-pulse/markdown>)
- [Issue 56](<https://current.tinyfish.ai/issue/56/markdown>)
- [Publication guide](<https://current.tinyfish.ai/llms.txt>)