← All articles AI models · Supply chain

Open-weight vs closed-weight AI models: who owns the risk?

Every organization deploying AI makes an early choice: download a model and run it yourself, or rent one through an API. That choice, often made for cost or performance reasons, also quietly decides who carries your security risk.

The video

Both approaches, their risks and the action plan in under three minutes.

Watch on YouTube

Open weights, closed weights: what are we talking about?

A model’s weights are its trained parameters: the billions of numbers that encode what it has learned. Everything hinges on who holds them.

  • Open-weight model: the weights are published. You download the file and run the model on your own servers.
  • Closed-weight model: the weights stay with the provider. You only send prompts through an API and get answers back.

Where your data goes

With a closed model, your prompt leaves your network, travels to the provider, and the answer comes back. With an open model hosted in-house, everything stays on your own server.

Same idea, very different trust boundaries. A concrete example: an assistant that summarizes 500 customer files a day. With a closed model, those 500 files cross a third party’s infrastructure every day. With an open model, they never leave your environment, but you are the one who has to protect the server processing them.

Your risk or your vendor’s

So which one is more secure? Open means unsafe? No. Closed means safe? Also no. The real question is: who carries which risk.

Open weights: the risk shifts to you

  • Model files can be tampered with. Some older formats, such as Python pickle files, can run code the moment you load them. This is not theoretical: in February 2024, JFrog’s research team reported about a hundred malicious models on Hugging Face, some of which opened a backdoor on the machine that loaded them.
  • Safety training can be removed. Anyone holding the weights can fine-tune the model to erase its safety training. Researchers from Princeton, Virginia Tech, IBM and Stanford (Qi et al., ICLR 2024) broke GPT-3.5 Turbo’s guardrails with only 10 fine-tuning examples, for less than US$0.20. With a provider, that fine-tuning at least goes through its API and its controls; with open weights, anyone can do it, with no oversight at all.
  • You alone are responsible for patching, monitoring and protecting the inference server.

Closed weights: the risk shifts to your vendor

  • Your data leaves your perimeter, along with the legal obligations that come with it.
  • The model can change without notice: a new version may behave differently overnight.
  • You cannot inspect what is inside, or check for yourself how it was trained.

Side by side

Why it matters now

  • Privacy laws care where personal data goes. In Québec, before communicating personal information outside the province, a business must carry out a privacy impact assessment, under section 17 of the private-sector privacy act as amended by Law 25. Sending customer files to a model hosted elsewhere falls squarely within that rule.
  • Model files are now part of your software supply chain, just like your libraries and container images. The OWASP Top 10 for LLM Applications lists it as a risk in its own right.
  • In both cases, responsibility is shared, never fully outsourced.

The right reflex: let your threat model pick the model, not the hype.

What to do: 4 steps

  1. Classify the data the model will see, before you choose. Public data and medical records do not call for the same choice.
  2. Open weights: download only from verified sources, compare the file’s SHA-256 hash with the one the publisher lists, prefer the safetensors format, which holds only data and runs no code on load, and isolate the inference server (segmented network, minimal rights).
  3. Closed weights: read the data retention and training-use terms, and use enterprise agreements that exclude training on your data.
  4. Either way, add your own guardrails: input and output filtering, least privilege for the tools the model can call, logging and AI red-teaming.

Key takeaways

  • Open weights ≠ open source.
  • Open: control is yours, and so is the responsibility.
  • Closed: safety is managed, but you depend on the vendor.
  • Model files get vetted like any dependency: source, hash, safe format.
  • Open or closed, a model is only as secure as the system around it.

References

  • Open Source Initiative — The Open Source AI Definition 1.0 (opensource.org, October 2024).
  • JFrog Security Research — Data Scientists Targeted by Malicious Hugging Face ML Models with Silent Backdoor (February 2024).
  • Qi et al. — Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (ICLR 2024).
  • Hugging Face — safetensors format documentation.
  • Act respecting the protection of personal information in the private sector (Québec), section 17.
  • OWASP — Top 10 for LLM Applications: supply chain.

Open or closed: make the right call

We assess your AI models and their environment, and hand you a prioritized action plan.

Contact us