Free Intensive Nov 21–22Free 2-day hands-on Vibecoding Intensive on Nov 21–22 at 16:00 MSK (Sat–Sun) · Live Cohort 3 starts Nov 23Join Free →Cohort 3 (Nov 23)

ONNX Runtime vanishes from GitHub: Microsoft hides repositories after package hack

Since the evening of November 17, GitHub has returned 404 for ONNX Runtime repositories, the inference engine that was downloaded 141 million times from PyPI in the past month. That same evening, two versions of a Microsoft agent-framework package carrying a secrets stealer briefly appeared on PyPI. Microsoft has acknowledged that it made some repositories private while it investigates. Builds that pull binaries from GitHub Releases need a file hash and a fallback source.

AI-processed from Хабр: Машинное обучение; edited by Hamidun News
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceХабр: Машинное обучение ↗
Editor-in-Chief
Key metric #1Malicious versions are agent-framework 1.26.1 and 1.26.2; version 1.26.0 is safe
Key metric #2The stealer collected Azure, AWS, GitHub and OpenAI keys and sent them to webhook.site
Key metric #3ONNX Runtime packages on PyPI, NuGet and npm are working; only GitHub is gone

If your build failed today, if the installer could not download a native library, or if your dependency-update bot is throwing 404 errors, there may be one cause. Since the evening of November 17, GitHub has not served the microsoft/onnxruntime repository: no code, no tags, no release archives. That same evening, two versions of a Microsoft package with a stealer inside appeared on PyPI and were then removed. At first the link between the two events was only a guess, but official comments have since appeared.

What exactly broke

ONNX Runtime is one of the most widely used engines for running neural networks locally. A model exported from PyTorch or TensorFlow is saved in the ONNX format, and the runtime executes it on CPUs, NVIDIA, AMD and Intel GPUs, on phones, and in the browser. The PyPI package alone was downloaded 141 million times in the last month.

The packages on PyPI, NuGet and npm are available, and no one has reported malicious code in them. What is unavailable is the GitHub repositories: source code, history, issues and release files. The same "Repository not found" response comes back for seven more organization addresses, including the inference and training examples and the Swift package. The rest of the organization works, and the GitHub status page shows "All Systems Operational." So the specific repositories were hidden, not the platform failing.

Everyone who goes to GitHub directly is affected. The project cannot be built from source: the repository does not clone and submodules do not fetch. CI pipelines that learn the latest release through the API or download an archive by tag are failing. Package recipes break, for example in Termux. Applications that pull the library from GitHub at install time simply fail to install. At 04:33 UTC on November 19, all eight repositories were still returning 404.

The package that stole keys

In parallel, versions 1.26.1 and 1.26.2 of the agent-framework package were published to PyPI. agent-framework is the entry point to Microsoft Agent Framework for AI agents. The package is downloaded about 200,000 times a month. According to Wiz's analysis, version 1.26.2 appeared around 21:08 UTC, and both were deleted by 21:30.

In Microsoft's repository, version 1.26.1 has no tag, and the main branch contains no malicious code. A release normally comes as a pair — a wheel and a source archive — but here there was only a wheel. The package was built outside the normal release process and uploaded directly.

The stealer ran in a clever way: it placed a .pth file in the site-packages folder. Python reads such files at startup, so infection triggered on any Python launch in that environment, even without importing the package. The code was disguised as telemetry.

It then collected everything where secrets are stored. Environment variables with names like TOKEN, SECRET, KEY, AZURE, AWS, GITHUB and OPENAI. Credential files: Azure CLI settings, Docker config, Hugging Face tokens. Azure managed identity tokens for 12 services. Version 1.26.2 could also obtain GitHub Actions OIDC tokens. All of it was compressed, encoded and sent in a single request to the free webhook.site service.

According to Wiz's updated analysis, the attacker obtained a client certificate and private key for ESRP, Microsoft's internal service for signing and publishing packages. A first attempt from AWS servers was rejected by an IP filter; a second attempt, from Microsoft addresses, went through. How the certificate reached the attacker has not been disclosed. The attacker used Cairn, an open AI-based penetration testing framework. Of the 50 requests accepted by webhook.site, only three were real thefts of victim data; the rest came from the attacker's own machines, sandboxes and scanners.

What Microsoft said and what to do

A Microsoft representative told The Register that the company made some repositories private while it investigates the malicious content, and that it will take further action as needed. It did not specify which repositories were closed. The company did not explicitly link the disappearance of ONNX Runtime to the agent-framework package. There is also a precedent: in June 2026, GitHub disabled 73 Microsoft repositories within minutes after the Miasma worm and restored them three days later.

If you need the engine, working sources exist. Microsoft publishes native builds on NuGet — a regular zip file, though its versions do not fully match GitHub. There is an npmmirror mirror, from which the analysis authors downloaded the 1.28.2 archive and checked its SHA-256 against the original hash: it matched. Take files from there only if you have a hash to verify against. A fallback is to extract the libraries from wheel or conda packages, but that is inconvenient for the C API.

If you had agent-framework 1.26.1 or 1.26.2 installed, here is the order of steps:

  • Check lock files, CI logs, virtual environments and container images; version 1.26.0 is safe;
  • Look in site-packages for suspicious .pth files, and in proxy and DNS logs for requests to webhook.site;
  • Rotate all secrets from that environment: cloud keys, registry tokens, git access;
  • If 1.26.2 was installed in GitHub Actions with the id-token permission, treat the OIDC tokens as compromised. Stolen Azure tokens remain valid for up to 24 hours.

The lesson extends beyond this one incident. A link to an archive in GitHub Releases is not permanent. A project that downloads a binary dependency from such a link needs a pre-recorded file hash and a second source; otherwise any similar event halts builds and installs indefinitely. It is too early to say whether the repositories will return in their previous form.

Story

Key Questions Answered

What exactly broke?

ONNX Runtime is one of the most widely used engines for running neural networks locally. A model exported from PyTorch or TensorFlow is saved in the ONNX format, and the runtime executes it on CPUs, NVIDIA, AMD and Intel GPUs, on phones, and in the browser. The PyPI package alone was downloaded 141 million times in the last month. The packages on PyPI, NuGet and npm are available, and no one has reported malicious code in them.

What are the key details on The package that stole keys?

In parallel, versions 1.26.1 and 1.26.2 of the agent-framework package were published to PyPI. agent-framework is the entry point to Microsoft Agent Framework for AI agents. The package is downloaded about 200,000 times a month. According to Wiz's analysis, version 1.26.2 appeared around 21:08 UTC, and both were deleted by 21:30. In Microsoft's repository, version 1.26.1 has no tag, and the main branch contains no malicious code.

What Microsoft said and what to do?

A Microsoft representative told The Register that the company made some repositories private while it investigates the malicious content, and that it will take further action as needed. It did not specify which repositories were closed. The company did not explicitly link the disappearance of ONNX Runtime to the agent-framework package. There is also a precedent: in June 2026, GitHub disabled 73 Microsoft repositories within minutes after the Miasma worm and restored them three days later.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…