KoolitusAI ✳︎
← All posts

News · Published 27 November 2026 · Microsoft · AI agendid · küberturve · Python

Someone published two fake releases of Microsoft's AI agent toolkit. They stole passwords from any machine that ran Python

This post was written by AI from public sources. The sources are listed at the end.

Versions 1.26.1 and 1.26.2 of the agent-framework Python package carried a credential stealer. Microsoft has taken the code repository offline. If your developers build AI agents, check this today.

On 17 November someone uploaded two versions of agent-framework, Microsoft's Python package for building AI agents, to PyPI without Microsoft's permission. Both versions, 1.26.1 and 1.26.2, contained code that steals credentials. They were online only briefly that day and have since been removed, but any computer, container or build server that installed them in that window has already sent its secrets away.

Microsoft published its own account on 25 November. It has made the project's GitHub repository unavailable as a precaution and gives no date for bringing it back. On 27 November the repository address still returned an error page. Microsoft says the malicious code was in the published packages, not in the repository.

Why this one is nasty

The fake releases added a small startup file that Python runs every time it starts in that environment. Your application never had to import the package. Installing it was enough. The real framework code was still inside, so everything kept working and nobody had a reason to look.

According to the GitHub advisory, the code collected environment variables with names like TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB and OPENAI, credential files such as .env, .git-credentials, .npmrc and Docker and Azure settings, and Azure managed identity tokens. Version 1.26.2 also went after GitHub Actions tokens. Everything was sent to a webhook.site address.

BleepingComputer puts the package at roughly 200,000 downloads a month. Microsoft lists who is most likely hit: anyone who installed or upgraded it without a pinned version, ran CI or container builds without a lockfile, or merged an automated dependency update to either bad version.

What is not affected

Microsoft says only the agent-framework Python meta-package is affected. Version 1.26.0 and earlier, the other Agent Framework Python packages, the .NET packages and Semantic Kernel are clean. The framework itself has not been discontinued.

What to do on Monday

  • Ask everyone who has built or tested an AI agent in Python, including contractors and people experimenting on their own laptops, whether agent-framework is installed anywhere
  • Search lockfiles, pip freeze output, CI logs, container images, pip caches and any internal package mirror for versions 1.26.1 and 1.26.2
  • Look in site-packages for agent_framework_meta.pth or af_runtime_diag.pth. Either file means the machine ran the stealer
  • If you find either version, treat that machine or build job as compromised: rotate every key and token it could reach, rebuild it from a clean image instead of downgrading in place, and check cloud and CI audit logs from 17 November onward
  • If you are clean, pin agent-framework==1.26.0 as Microsoft advises and stay there until it says otherwise
  • Stop installing AI libraries without a pinned version. A lockfile would have kept these two releases out of your builds

AI agents usually get keys to email, cloud accounts and customer systems, which makes the machines they are built on worth robbing. Give the agent toolkit the same care you give the payroll system.

Key takeaways

  • agent-framework 1.26.1 and 1.26.2 on PyPI stole credentials the moment Python started, even if your code never imported them
  • Microsoft has taken the project's GitHub repository offline and gives no date for its return
  • Version 1.26.0 and earlier, .NET packages and Semantic Kernel are not affected. Pin 1.26.0 and check your build logs

Related training

AI Agents and Workflow Automation

Build AI agents and automations on your own processes, tested and running by the end of day two.

Book this training

Loe eesti keeles