Understanding the Risks and Benefits of Open Weight Models and Harnesses
Dean Zavadski
Ori Abargil
Diana Kelley
Oct 26, 2026
Share
From Closed APIs to Open Weights
Stories of $10 and $20 million-a-month invoices for coding agents aren't urban legends. They now happen regularly at certain large enterprises, and those numbers aren't the result of a breach or denial-of-wallet attack. They come from developers using AI to write more code, doing exactly what enterprise leadership has asked teams to do over the past year. Bills this size normally get immediate attention from finance and are easy to cut. Use open-weight models instead.
Open-weight models cost about 3 to 5 times less to run than similar closed frontier models. A team can point the same coding agent at a self-hosted Qwen or GLM model and cut their next bill by millions of dollars.
The lower bill leaves something out. When a company pays for a frontier model through an API, the higher price also covers safety work and infrastructure the customer never sees. That work includes safety training, filters that catch prompt injection, a second model that checks risky actions before they run, and strict governance and compliance requirements. When a team switches to an open model and an open harness runtime, most, if not all, of that safety work goes away. The problem is that coding agents still retain full access to developer credentials.
Managed Open-Weight Model Risks
This blog explains the market shift to open-weight models and the related considerations for security leaders. We start with definitions, adoption drivers, use cases, and usage data. Then we cover the risks companies take on with this move and what it takes to secure their agents at runtime, no matter which model is underneath.
Definitions
Open-weight model. A model whose trained parameters are published for anyone to download. Teams can host it on their own hardware and fine-tune it for their own tasks. While the trained parameters are released, the training data and training code is usually kept private. License terms also vary. Some open-weight models allow any use, while others limit commercial use or require an acceptable-use policy. Because so much is held back, we use the term "open weight" instead of "open source."
Examples of open-weight models include Meta's Llama, Mistral, OpenAI's gpt-oss, and a group of Chinese models: DeepSeek, Qwen, Kimi, GLM, and MiniMax.
Open harness. The harness is the agent runtime. It is the command-line tool or IDE extension that runs the agent loop and holds the credentials. It also defines which tools the agent can call and decides which commands actually run. Cline, opencode, OpenHands, Goose, and Kilo Code are popular open-source harnesses, and all of them work with any model.
Security teams need to think about and track the two separately, because companies can swap them out. A team can keep a closed model and move to an open harness. It can also keep a closed harness and point it at an open model, or replace both. Each choice removes a different set of protections, which we’ll explore further below.
Why is adoption growing so quickly?
Four reasons, starting with the most important:
Cost. Open-weight models cost about 3 to 5 times less to run than similar closed frontier models. Coding agents work through long chains of steps and use a lot of tokens, so at enterprise scale the savings can reach millions of dollars a month.
Quality. The capability gap keeps narrowing. Stanford's 2026 AI Index puts the best open model within 3.3% of the best closed one, and on non-frontier work it has already closed.
Data residency and control. Many companies want to keep code and data in their own environment rather than send them to an external API. Frontier vendors now offer their models through cloud platforms such as Amazon Bedrock, where traffic stays in the customer's cloud account. Even so, many teams still choose to host models themselves.
Deployment options. Open weights can run on Kubernetes, on a laptop GPU, on EC2, or through a managed provider such as Bedrock, Vertex, Together, or Fireworks.
Enterprises usually run open-weight models in one of the following ways. Each one puts a different share of the security work on the company.
Managed open-weight inference. The company calls the model through an API from a managed provider. The provider runs and updates the model, and the company never handles the weight files, so it outsources the risk of a tampered model.
Self-hosting in a private cloud. Managed services cost more than raw GPU time, so companies focused on cost often host models themselves. In that case, the company is responsible for checking the model files and for adding every safety control.
Running on the endpoint. Smaller models run directly on developer laptops. This is the cheapest way to start, and it is also the hardest for security teams to see and secure.
Where do open weights show up?
Coding agents. This is the largest use case and the one growing fastest. Most coding harnesses, open or closed, can connect to any model endpoint. Moving a whole team of developers to an open model can be as simple as a settings change. A frontier coding agent can cost more than $5,000 a month for one heavy user, which gives finance teams a strong reason to push for the switch.
Bulk and offline work. This includes jobs like summarizing documents or tagging records at high volume. For narrow tasks like these, an open-source model often does as well as a closed-source model at a much lower cost.
Work that frontier models refuse. Security research and red teaming are common examples. Teams pick local models because those models will do work that frontier models turn down. Some use "abliterated" versions, which are open models with their refusal behavior removed on purpose. The work is often legitimate, but it means the company is running models that will not refuse anything.
In all of these cases, teams choose models based on cost and task performance. Few teams pick a model for its safety training or its resistance to prompt injection. Those gaps become the security team's problem later.
Open-weight usage data
Open-weight traffic on developer routing services rose sharply in 2026. Chinese labs also replaced Meta as the leaders among open models.
Measure
Earlier
Later
Direction
Open-weight share of tokens (Vercel)
11%, Apr 2026
62%, Aug 2026
Up
Chinese-origin share of tokens (OpenRouter)
Under 2%, mid-2025
61%, May 2026
Up
Both rows measure token share on a routing surface, and both roughly quintuple within a year. The Chinese-origin row climbs hardest because DeepSeek, Qwen, Kimi, and GLM all ship open weights by default, which is what is pulling the overall share up.
Managing an unbundled safety stack
When a company buys a frontier model through an API, it gets five layers of protection in one package. With an open-weight model, the company only has the layers it adds back itself. The first two layers come with the model weights. The other four depend on where the model is hosted and which harness runs it.
Safety Layer
Frontier Model + Vendor Harness
Managed Open-Weight
DIY Self-Hosted
Endpoint
Adversarial safety and refusal training post-training
SOTA
Usually weaker
Usually weaker
Strippable (by abliteration)
Prompt-injection classifier
Included
Missing
Missing
Missing
Sandbox and approval gates
Included
Depends on harness
Depends on harness
Public research shows these layers make a real difference. CAISI, the AI evaluation group at NIST, found that agents built on DeepSeek R1-0528 were about 12 times more likely than U.S. frontier models to follow instructions meant to hijack them. Under a common jailbreak, the same model answered 94% of clearly harmful requests, while U.S. reference models answered 8%.
The table data points to one clear conclusion. Safety is missing in the open-source AI model and harness ecosystem, and even when it exists, people can remove it. Controls that need to work for every model have to run outside the model, at runtime, to be effective.
Five core risks of using open weights
Without the bundled safety layers, a company using open-weight models faces five risks.
Shadow AI
Teams download open-weight models and install open harnesses themselves, bypassing procurement and security review. Open weights have no vendor gate. Anyone with a GPU or access to a cloud model catalog can run an unapproved model in production in a few hours. Harnesses like Cline, opencode, and Goose take minutes to install and can connect to any endpoint a developer enters. Every other control depends on knowing what is running, so this risk comes first.
Model Manipulation
An agent reads content it can't trust, such as a web page, a README file, a Jira ticket, or an email. That content includes hidden instructions, and the model follows them instead of the user's request. Frontier Labs trains its models to resist this, and managed platforms add filters in front of the model. A self-hosted open-weight model has neither by default, and that gap explains the CAISI results mentioned previously. Noma Labs' recent disclosures on agent manipulation, including the GitLost and Workflow Identity Hijacking vulnerabilities and related vector research, suggest that open-weight models are easier to manipulate than models supported by frontier labs and managed platforms.
Malicious or tampered models
Self-hosting means downloading a file that claims to be a certain model, but the file might not match its description. The risk takes two main forms:
Malicious file. Code runs as soon as the model loads, usually through a pickle payload. Using only safetensors files removes this risk.
Modified model. This can be a look-alike copy that isn't the official build. It can also be a model trained to act normally until it sees a trigger, and then add vulnerabilities to code or leak data.
Tools for checking model files are still new. OpenSSF Model Signing reached version 1.0 only in April 2025. Hugging Face scans for malware and unsafe pickle files, but it does not offer signing for model weights. In the nullifAI case, ReversingLabs found two Hugging Face repos that hid malware in compressed pickle files that got past the scanner. Managed inference moves most of this risk to the provider.
Rogue agents and the confused deputy
A coding agent runs with the developer's identity. It can use the developer's shell, git access, cloud keys, databases, and SaaS tokens. A "confused deputy" is an agent that uses this access for the wrong goal. Misalignment is when the agent does something nobody asked for - not an attack, just the agent drifting from the request into work of its own.
Most open-weight setups make this worse in two ways. Agent-written code runs directly on the developer's machine with no sandbox. No auto mode classifier checks risky actions before they run, either.
Outcome
What the agent does
Examples
Destructive action
Uses write or delete access it is allowed to have
rm -rf on the wrong directory, DROP TABLE, git push --force, deleting cloud resources, approving its own PR
Data exfiltration
Combines read access with any way to send data out
Reads .env, SSH keys, or customer records, then sends them out through curl, a commit, a public issue comment, or an MCP tool the attacker named
Both kinds of damage happen under the developer's identity, so the logs show a normal user doing normal work.
Compliance, jurisdiction and model behavior
Open-weight models also bring legal and policy duties, even though they aren't attacks.
Country of origin. No U.S. law or export control bans using published Chinese model weights. Export controls apply to hardware and to exporting models. Company policy or customer contracts may still ban models from certain countries, but most companies can't enforce that.
License terms. Licenses differ a lot. Some limit commercial use, and others require users to follow an acceptable-use policy.
Regulation. Under the EU AI Act, a company that substantially changes a general-purpose model can take on the duties of a model provider. ISO 42001 expects a list of which models are in use and why.
Model behavior. Each lab decides how its model handles refusals and politically sensitive topics. These choices are built into the weights and differ across DeepSeek, Qwen, Llama, Mistral, and gpt-oss.
With a frontier API, the vendor handles the license terms and content policy. With open weights, the company takes on that work and has to prove compliance itself.
Rebuilding the safety stack at runtime
Banning open weights usually pushes their use out of sight, and the cost savings are too large for most companies to ignore. A better goal is to let teams use the model and agent they want while security adds back the missing layers in the runtime. Controls in the runtime work the same way for every model.
Basic security steps with low cost:
Use managed inference instead of self-hosting where the budget allows. The provider then handles model file integrity.
Load only safetensors model files from official sources, and pin them by hash.
Run agent-written code in containers that block unapproved outbound traffic.
Beyond these steps, four capabilities match the risks above. Here is how Noma handles each one.
Find models and harnesses (Noma AI-SPM). Find the open-weight models in use and the harnesses that run them, whether they run on laptops or in the cloud. Security should be able to answer which models are running in the company and who is using them.
Control what is allowed (Noma Access Control). Enforce model rules at runtime, such as an approved-model list or a rule that blocks models from a certain country in production. Apply the same rules to harnesses. Otherwise, an unapproved agent can get around an approved-model list by connecting to a different endpoint.
Enforce one policy at runtime (Noma AI-DR). Detect prompt injection and block sensitive content around the model rather than relying on its training. The same layer covers the rest of what a weaker model gives up: harmful output it fails to refuse, and misaligned actions the agent takes without being asked. This lets a team use a cheaper model without taking on its weaker safety behavior.
Test models on an ongoing basis (Noma Red Teaming). Run attack testing on the open-weight models in use and rank how well each one holds up. Connect the results to discovery, so security gets an alert when a team starts using a model that tests poorly. The goal is to protect the company no matter which model it uses.
The bottom line
A $10 or $20 million-a-month invoice will keep pushing companies toward open-weight models, and for many of them, that is a sound financial choice. The security question is which of the safety layers the company adds back, and where. Layers built into the weights differ by lab and can be removed. Layers in the runtime apply to every model the company adopts next.