If your team installed the Python package agent-framework version 1.26.1 or 1.26.2 on 17 or 18 November 2026, treat that machine as compromised and replace all credentials on it. On 28 November 2026, 1.26.0 is still the safe version, the Microsoft AgentAI agentAn AI program that performs work steps by itself, for example reading a message, drafting a reply, and recording the result.Open the glossary Framework GitHub repository is still private, and we found no root-cause statement from Microsoft.
We checked this status on the morning of 28 November 2026 (Jakarta time) on PyPI, NuGet, OSV, and GitHub. This article tells you what happened, how the malicious code works, what changed in 11 days, and 7 safe steps for your team.
Microsoft Agent Framework is an open-source framework from Microsoft that you use to build AI agents in Python and .NET. The Cloud Security Alliance (CSA) calls it the successor to Semantic Kernel and AutoGen. The agent-framework package on PyPI gets approximately 190,000 to 200,000 downloads each month, according to BleepingComputer and OX Security.
A supply chain attack puts malicious code into a package that you install. The attacker does not break into your application directly. The malicious code comes in when you run pip install or when a dependency bot increases the version.
What is the status of agent-framework on 28 November 2026?
On 28 November 2026, the latest version is still 1.26.0, no new official release came in 16 days, and the GitHub repository is still private.
| Item | Result | Source |
|---|---|---|
| GitHub repository microsoft/agent-framework | Returns 404, still private | GitHub, check on 28 November |
| Latest agent-framework version | 1.26.0, released on 12 November 2026 | PyPI |
| Official releases after 1.26.0 | 0 releases in 16 days | PyPI |
| .NET package Microsoft.Agents.AI | 1.28.0, released on 6 November 2026, no new release in 22 days | NuGet |
| Malicious package records | 1.26.1 and 1.26.2 are recorded as MAL-2026-20101 and PYSEC-2026-4388. Version 1.26.0 has no record. | OSV |
| Official documentation | Still available | Microsoft Learn |
| Root-cause statement | Not found | Microsoft statement to The Register, 18 November |
What happened on 17 November 2026?
An attacker published 2 malicious versions, 1.26.1 and 1.26.2, to PyPI on 17 November 2026, and both versions contained a credential stealer.
According to BleepingComputer, PyPI put 1.26.1 into quarantine first. Approximately 2.5 minutes later, 1.26.2 appeared, and PyPI put it into quarantine approximately 8 minutes after that. The CSA calculated a total exposure window of approximately 45 minutes, from about 20:35 to 21:20 UTC.
The CSA recorded 3 unusual signs on the malicious releases:
- The releases contained only wheels and no source package.
- The releases had no provenance attestation, which is proof that the build came from the official pipeline.
- The upload used a RestSharp user agent, not the usual release tool.
How the attacker got upload access is not clear. BleepingComputer wrote that Microsoft did not reply to its questions. Microsoft told The Register only that it made some repositories private during its investigation of malicious content. For more technical analysis, read StepSecurity and OX Security.
How does this credential stealer work?
The malicious code runs each time Python starts, also when your program never imports agent-framework.
The key is a .pth file in the site-packages folder. Python reads this file at startup, before your code runs. Version 1.26.1 installed agent_framework_meta.pth, which calls agent_framework_meta/_telemetry.py. Version 1.26.2 installed af_runtime_diag.pth and af_runtime_diag.py.
The malicious package kept its dependency on agent-framework-core 1.26.0, so the application continued to run normally. According to the CSA, the trigger also runs when pip, pytest, an IDE language server, or a container entrypoint starts Python. Thus the payload can run with no sign on the screen.
| Target | Details | Source |
|---|---|---|
| Service credentials | Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI | BleepingComputer |
| Azure tokens | Managed identity tokens and Azure DevOps OIDC tokens | BleepingComputer |
| GitHub CI tokens | GitHub Actions OIDC token requests and searches of runner folders, only in 1.26.2 | BleepingComputer |
| Environment variables | 31 name patterns in 1.26.1 and 35 name patterns in 1.26.2, plus reads of /proc/*/environ for up to 300 processes | CSA |
| Credential files | Up to 60 to 80 files | CSA |
| Data destination | An endpoint on the webhookWebhookAn automatic message one system sends to another the moment something happens, for example an incoming WhatsApp message.Open the glossary.site service | BleepingComputer |
The CSA recorded 2 user agents on the outgoing data: af-runtime-diagnostics/1 and runtime-diagnostics/1. Use these 2 strings to search your proxy or firewall logs.

Why can a normal uninstall run the malicious code again?
The pip uninstall command starts Python, so the .pth file runs and the payload runs again before the package is removed.
The CSA gives 2 solutions. First, set the variable _AF_TEL=1 before you remove the package. Second, use uv, because uv does not run .pth hooks when it removes a package. The safest solution is to discard that environment and build a new one.
You cannot revoke a token after it is issued, and it stays valid until it expires. According to the CSA, an Azure managed identity token can stay valid for up to approximately 24 hours in the worst case, and a typical Entra token for approximately 1 hour. The CSA also wrote that no token issue is confirmed, and JFrog found that the Azure DevOps OIDC request from this payload was malformed.
On 28 November, these short-term tokens are expired. The long-term keys are still dangerous: AWS access keys, personal GitHub tokens, OpenAI and Hugging Face APIAPIThe official door 2 systems use to exchange data, without anybody copying it by hand.Open the glossary keys, and Docker registry passwords. These keys stay valid until you replace them.

What changed in the 11 days after the attack?
In 11 days, Microsoft published no new release, the GitHub repository did not become public again, and 1.26.0 is still the safe version.
Before the attack, Microsoft released agent-framework approximately each week. PyPI shows 8 releases from 1.19.0 on 18 September to 1.26.0 on 12 November. The longest gap in that period was 14 days, and the gap on 28 November is 16 days.
| Version | Release date | Gap from the previous release |
|---|---|---|
| 1.19.0 | 18 September | - |
| 1.20.0 | 2 October | 14 days |
| 1.21.0 | 8 October | 6 days |
| 1.22.0 | 15 October | 7 days |
| 1.23.0 | 22 October | 7 days |
| 1.24.0 | 30 October | 8 days |
| 1.25.0 | 7 November | 8 days |
| 1.26.0 | 12 November | 5 days |
| No new release | On 28 November | 16 days |
The Register reported that the ONNX Runtime repository was also private on 18 November, but this was not related to the attack. In our check on 28 November, microsoft/onnxruntime also still returned 404. The microsoft/semantic-kernel and microsoft/autogen repositories are still available.
Users feel this change directly. The issue, release notes, and source links on the PyPI page still point to the private repository, so all of these links return 404. The documentation on Microsoft Learn is still available.
Who must act today?
Teams that installed this package on 17 or 18 November must act today, especially when the installation occurred in CI/CD.
| Your condition | Risk | Action |
|---|---|---|
| A developer laptop installed 1.26.1 or 1.26.2 | Local Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI keys possibly sent | Isolate, rebuild the environment, replace all keys |
| CI/CD installed one of these versions | Runner secrets and OIDC tokens | Replace secrets, read outgoing logs, limit token permissions |
| A container image was built on 17 or 18 November | Managed identity tokens and environment variables | Rebuild the image with 1.26.0, replace the keys in it |
| You pinned 1.26.0 with hashes before 17 November | Low | Keep the pin, add a delay before upgrades |
| You use an agent from a vendor | Unknown | Ask the vendor for the package version and proof of key replacement |
User experience: what do user teams feel?
For user teams, the largest load is the audit work after the attack and the information that the private repository hides.
- Developers: dependency bots opened upgrade PRs to the malicious versions approximately 6 minutes after release, according to the CSA. Developers who merged these PRs immediately were also affected. Now developers also cannot read issues and release notes.
- DevOps teams: version 1.26.2 targeted CI runners. The team must read the build logs of 17 and 18 November, replace secrets, and limit OIDC token permissions. This is audit work, not only a version update.
- Business owners: you possibly do not know that your vendor uses agent-framework. Ask directly, and ask for proof that the cloud keys and API keys were replaced.
- Teams that pinned 1.26.0 with hashes: these teams were safe from the 2 malicious versions. This case shows the value of hashed lockfiles and a delay before upgrades.
Some things helped. PyPI put both versions into quarantine in approximately 45 minutes, version 1.26.0 is still usable, and the official documentation is still available. The difficult parts are the uninstall trap, the private repository, and key replacement on many services at the same time.
Example scenario (illustration)
This scenario is an illustration, not a real case. A small agency in Jakarta uses agent-framework for a customer service agent, with CI on GitHub Actions and a dependency bot that merges minor updates automatically.
At 03:40 WIB on 18 November, the bot merged the update to 1.26.2. The night build installed the package, and the payload requested an OIDC token from the runner. In the morning, a developer ran pip uninstall on a laptop, so the payload ran again.
The correct steps for this agency: stop auto-merge, rebuild the runner and the laptop from a clean environment, and pin 1.26.0 with hashes. Then replace the GitHub tokens, the OpenAI key, and the cloud keys, and search the outgoing logs for the payload user agents.
7 safe steps for teams that use agent-framework
Do these 7 steps in sequence, from the search for traces to the control of the update process.
- Search for installation traces. Run
pip show agent-framework, search site-packages foragent_framework_meta.pthoraf_runtime_diag.pth, and read the CI logs of 17 to 18 November. - Isolate the affected machine. Do not run
pythonorpipin that environment. - Remove the package safely. Use
uv, or set_AF_TEL=1beforepip uninstall. Better, discard the environment and build a new one. - Replace all long-term credentials: AWS access keys, GitHub tokens, OpenAI and Hugging Face API keys, Docker registry passwords, and CI secrets.
- Search the outgoing logs for sent data. Search for the webhook.site domain and the user agents
af-runtime-diagnostics/1orruntime-diagnostics/1. - Pin the version. Write
agent-framework==1.26.0andagent-framework-core==1.26.0with hashes in the lockfile, then remove the 1.26.1 and 1.26.2 wheels from internal mirrors. - Make the update process stricter. Set a delay of at least 3 days before dependency bots open PRs, stop auto-merge for critical packages, and remove unnecessary
id-token: writepermissions.
Steps 6 and 7 also apply to other AI packages. The CSA recorded that this is the second Microsoft-related PyPI case of 2026, after durabletask in May. We also wrote about the LiteLLM vulnerability and the AutoGPT vulnerability in the AI agent ecosystem.
Conclusion
Do not wait for an explanation from Microsoft before you act. Today, search for installation traces from 17 to 18 November, replace long-term credentials, and pin version 1.26.0 with hashes. When the repository becomes public again, read the incident notes before you upgrade to the next version.
If your team uses AI agents in production with no list of packages, permissions, and credentials, start with our AI workflow audit. For new agents with pinned versions and limited permissions from the start, see our AI agent installation and operations service. Also read AI agent controls from Microsoft Ignite 2026 for small teams.
Questions and answers
Is agent-framework 1.26.0 safe to use?
Yes, on 28 November 2026. OSV marks only 1.26.1 and 1.26.2 as malicious packages. Version 1.26.0 was released on 12 November, before the attack, and BleepingComputer recommends a clean rebuild with this version.
Why can I not open the Microsoft Agent Framework GitHub repository?
Microsoft made some repositories private during its investigation of malicious content, according to The Register on 18 November 2026. In our check on 28 November, that repository still returned 404.
Is the .NET package Microsoft.Agents.AI also affected?
The reports that we read mention only the Python package on PyPI. The latest NuGet version, 1.28.0, was released on 6 November 2026, before the attack. Keep your version pinned and monitor official Microsoft announcements.
Is it sufficient to remove package 1.26.1 or 1.26.2?
No. The pip uninstall command can run the payload again, and credentials that were already sent stay valid. Rebuild the environment and replace all long-term credentials.
How do we know if our data was sent?
Search your proxy or firewall logs for requests to webhook.site and for the user agents af-runtime-diagnostics/1 or runtime-diagnostics/1. The CSA recorded that the attacker inbox returned 429 for some time, but that does not prove that your data was not sent.

