Skip to content

What is model hub typosquatting?

Registering a repository on a public hub under the name of a legitimate model, so it passes for the original.

Model hub typosquatting is the taking of a model's name on a public repository, with the goal of being mistaken for the real thing. The problem is the model's identity, a separate question from the file format: if the name written in the project is no longer tied to whoever published it, it guarantees nothing. It comes in three shapes. The first is imitation, a near-identical name attached to a heavily downloaded model, with the model card copied and installation routed through a Python script. The second is namespace reuse: when an author deletes their account, the Author/ModelName identifier returns to the pool of available names and anyone can register it again, rebuilding the same path with different weights. The third is the takeover of a well-known identity, and pipelines that pull by name silently receive the new one.

See also: Pickle vs safetensorsPickle runs code when a model loads, safetensors holds only numbers: the difference between trusting and verifying.

The measured scale and one documented case

The first systematic study, published at Internetware 2025, compared 1,020,755 models against the 100 most downloaded and 219,812 datasets against the 100 top trending, and examined 127,011 organizations: it found 1,574 potentially malicious look-alike models, 10.4% of them with harmful traits, and 302 organizations with look-alike names, 4.8% of them with explicit malicious intent. In May 2026 HiddenLayer documented the repository Open-OSS/privacy-filter, which impersonated OpenAI's Privacy Filter release with a model card copied almost verbatim and a loader.py file that, while pretending to check the files' integrity, switched off the connection's security checks, fetched a hidden address and ran a PowerShell command that installed a password- and credential-stealing program. In about eighteen hours it reached the top trending spot, with about 244,000 downloads and 667 likes, figures almost certainly inflated on purpose.

Namespace reuse has a precise mechanism, documented by Unit 42: after accounts were deleted, the researchers registered the orphaned names and recreated models under the same identifiers; when an account is transferred instead, Hugging Face redirects the old name to the new owner; if the original account is later deleted, whoever registers the old name breaks the redirect and takes its place. The result was remote code running on models hosted in Vertex AI Model Garden and Azure AI Foundry Model Catalog, both of which had inherited orphaned models.

An enterprise example

A pharmaceutical company running a vision model for quality control writes the author and model name into its dependency file, with no version. A year later the researcher who published it deletes their account: the name becomes free again and, without a file changing inside the company, somebody else registers it with the same name. The nightly pipeline downloads the new weights, recognition quality collapses, and nobody connects the drop to the name, which is unchanged. The opposite case is more familiar: a team follows a repository link found in a chat and runs the script waiting there, installing an infostealer. In both cases the remedy concerns the name the model is called by.

Why it matters for decision makers

A model name is a dependency and should be managed as one. The defenses cost little if decided in advance: accept only models on an approved list, lock each model to an exact version rather than just its name, keep a verified copy in an internal store (a model registry), and search the code for names hidden in default settings and comments. None of it replaces the format decision, which is the pickle versus safetensors question: they are two independent controls. The question to take to a security review: does the company still know who published the model and which version it runs?

  • Pickle vs safetensorsPickle runs code when a model loads, safetensors holds only numbers: the difference between trusting and verifying.
  • Model registryA model registry catalogs machine learning model versions and links them to metadata, validation records, and references useful for production deployment.
  • AI BOM (AI Bill of Materials)An AI BOM is a structured inventory of an AI system's components, used to review their provenance, licenses, and information gaps at purchase and over time.
  • Model cardA model card documents a machine learning model's intended uses, evaluation results, and limitations, helping adopters judge whether it fits a given task.
  • Open weightsAn open-weight model is one whose learned parameters can be downloaded and run on company infrastructure, subject to the terms of that specific release.

See it in the universe

If it is a risk for your company, I will tell you where to start without selling you fear.

See security and compliance

Or write to me.