What does "open weights" mean?
In its July 2026 study, the UK AI Security Institute (AISI) contrasts two distribution regimes. Closed models are defined as those "whose parameters are private, accessible only through developer-controlled interfaces". Open-weight models are those "whose parameters anyone can download, run, and modify". The dividing line is not intrinsic performance but who holds operational control. A closed model is queried through its vendor's infrastructure, and the vendor keeps the ability to update it, filter its outputs and monitor its use. An open-weight model is downloaded onto your servers, and you become its full operator.
The AI Act recognizes this distinction in Article 53(2). The obligations of technical documentation and of passing information to downstream integrators (paragraph 1, points (a) and (b)) do not apply to providers of models released under "a free and open-source licence" when their parameters, including the weights, are made public. The exemption falls away once the model presents a systemic risk. For the company using the model, the legal consequence is direct: the technical file that a closed-model provider must hand over cannot always be demanded here, which shifts the qualification work to the integrator.
How big is the capability gap?
A few months. The first question in the trade-off is the level of performance. On July 17, 2026, AISI published the study How Far Behind the Frontier are Leading Open Weight Models on Cyber?. Its teams evaluated several recent open models, notably GLM-5.2 (released in June 2026) and DeepSeek V4-Pro. Their conclusion comes down to one measurement: "recent open weight models lag frontier closed models' cyber capabilities by 4 to 7 months", whereas the lag was between 6 and 10 months in the internal measurement campaigns run through 2025.
The detail of the tests explains this narrowing. On targeted cybersecurity exercises, GLM-5.2 reaches the level of the best closed models released four months earlier, while DeepSeek V4-Pro matches Opus 4.5, released five months before it. On the end-to-end attack scenario "The Last Ones", GLM-5.2 progresses as far as Opus 4.5, released less than seven months earlier, while DeepSeek V4-Pro stays below Sonnet 4.5. AISI notes that the gap looks wider on full simulations than on isolated exercises, while rating that signal as weaker because of the small number of simulated environments.
The institute also documents the methodological limits of its protocol. The configuration used probably underestimates the maximum performance open models can reach, since no model-specific optimization was done. In addition, the evaluation covers the cyber domain only and allows no extrapolation to other fields. AISI closes on how the gap may change: "It's uncertain whether this gap will change in future."
Once an agent handles the company's systems, the capability gap matters less than control over its actions.
The report finally puts a number on the inference cost observed during the tests. A campaign consuming 100 million tokens on the attack environment costs about 85 dollars with Opus 4.5 as with Opus 4.6, against an estimate of about 46 dollars for GLM-5.2 and 1.19 dollars for DeepSeek V4-Pro. A footnote states that the actual spend may differ from these amounts, since the institute used third-party hosts rather than the original providers of the open models. These amounts reflect the price of a one-off trial within the study, not the full cost of an in-house inference infrastructure.
What do you gain?
A model run on your own servers takes your flows out of reach of any third-party API. The requests, the internal documents the agent reads and the tool returns stay confined inside your network perimeter. You control the schedule of version upgrades and keep the ability to freeze a qualified checkpoint indefinitely. The full analysis of residual flows, telemetry, key custody and laws with extraterritorial reach is in Nothing leaves the company.
This advantage is tangible and alone justifies local hosting for many sensitive workloads. It solves the problem of channel confidentiality, but leaves the behavior of the agent untouched.
What do you lose?
The provider's protections
For models with critical capabilities, AISI observes that an "open weight release therefore creates a persistent and irreversible risk of misuse". The reason is structural: built-in guardrails can be neutralized, and the weight files "can be downloaded, redistributed, and run on private systems beyond monitoring". The institute points out that the safety alignment a model has learned is "often easily reversible with access to the weights".
While this finding targets offensive misuse first, it describes just as well the situation of the company that operates the model. When you deploy an open-weight model, no upstream operator watches for drifts in use, rolls out fixes to the refusal filters or cuts off abnormal behavior. Where a closed model benefits from its provider's continuous updates, a downloaded model stays frozen in the exact state in which you retrieved it, unless your own teams intervene.
The provenance of the weights
A weight file is a software component that comes from an external supply chain. Hugging Face's documentation makes the point about the pickle format, used by default to serialize PyTorch models: merely loading such a file into memory can trigger the execution of arbitrary code on the host machine. The Hub's publisher therefore recommends loading only models published by verified authors and organizations, checking the cryptographic signature of commits, or preferring the TensorFlow and JAX formats. Hugging Face states that its own file scanner is "not 100% foolproof". A commit signature attests the identity of the uploader, never the absence of a malicious payload in the binary.
The threat also goes beyond the serialization format. In the study Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training (Hubinger and coauthors, arXiv:2401.05566, January 10, 2024), the researchers build experimental models with behavioral backdoors. One of these models generates safe code as long as the context mentions the year 2023, then switches to inserting vulnerable code once the year becomes 2024. The authors show that this conditioning can be made persistent, "so that it is not removed by standard safety training techniques", and that adversarial retraining mostly teaches the model to hide its trigger better during evaluation phases. This is an academic demonstration, not an incident recorded in production, but the engineering lesson is firm: when you do not control a model's corpus and training cycle, functional benchmarks alone cannot certify the absence of dormant behavior.
The burden of evaluation
A closed model comes with a system card published by its vendor and, for the most widespread ones, with evaluation reports produced by national institutes. Since Article 53 exempts open-licensed models from technical documentation outside systemic risk, and given the limits specific to frontier model evaluations, the full qualification of the local assembly falls to the company that deploys it.
What should you check before loading a model?
The work cited above draws the line between what a security team can check on receipt and what escapes static inspection.
- The authenticity of the source. A signed commit guarantees the identity of the account that uploaded the artifact. As Hugging Face stresses, this proof of origin does not guarantee the file is harmless.
- The serialization format. Loading an executable format amounts to granting the repository's author code execution on the inference server.
- The legal regime under the AI Act. The exemption in Article 53(2) disappears once the model falls into the systemic-risk category.
- Behavior in context. It is tested on your full architecture, connected to your business tools. Research on booby-trapped models is a reminder, however, that a conforming result on a test set does not prove the absence of an untested trigger.
This fourth point bounds the reach of any prior acceptance test: inspection reduces the exposure surface without removing it. The security of the whole therefore rests on the envelope around the model, meaning a control point that evaluates each requested action independently of where the weights came from. Apollo advises your model before it answers and corrects it afterward: it improves on your premises, without leaving you.
Is the agent the same wherever the model runs?
Yes. Vulnerability to prompt injection is independent of where the model is hosted. A local agent that analyzes an email, a support ticket or a web page folds that text into its execution context exactly as an agent connected to a cloud API does. Once that local agent has access to internal mail, file shares and the company network, it meets the three conditions of the "lethal trifecta" formulated by Simon Willison on June 16, 2025: access to private data, exposure to untrusted content and the ability to send data out. The principles set out in AI agent security and in tool server security apply in full.
The trap specific to local deployments is organizational. Because the inference server sits in the company's machine room, teams are tempted to give the agent broad privileges on the grounds that everything is ours. This slackening directly contradicts the principle of least privilege required for any agent.
| Criterion | Hosted model (closed) | Local model (open weights) | What SentinelOS does |
|---|---|---|---|
| Where the data goes | Sent to the provider, under the contract terms. | Confined within your perimeter. | Installed on your premises; nothing leaves your infrastructure by default. |
| Upkeep of the model's protections | Provided by the vendor through updates. | Your responsibility. Guardrails can be altered by whoever holds the weights. | Judges every action before it goes out. |
| Responsibility for evaluation | Shared between the vendor and third-party institutes via the system card. | Entirely yours. | Holds the actions that matter for a person; the decision is written in that person's name. |
| Proof of the agent's actions | Depends on the logs the vendor makes available. | Provided by your own logging infrastructure. | Issues an Ed25519-signed receipt for each decision, verifiable offline with the public key alone. |
Whatever hosting mode is chosen, the last row of the table calls for the same requirement: enforceable proof of the agent's acts must be produced outside the model. Tamper-proof logs and signed receipts detail the architecture.
What is the other side: the same models in the attacker's hands?
AISI frames its report as defensive preparation: the 4-to-7-month lag gives security teams "a short window to prepare" before frontier-level capabilities become downloadable without guardrails. Any open-weight model made available to defenders is available at the same time to offensive operators free of any external oversight. This aspect is explored further in Autonomous attacker agents and in Frontier models and vulnerabilities.
How do you choose where the model runs without changing the agent?
- They decide by use case, not by dogma. The sensitivity of the data handled and the criticality of the internal systems outweigh the marginal performance gain of a closed model.
- They put weight files under software supply chain rules. Attested provenance, a non-executable serialization format, a frozen version and a cryptographic fingerprint checked before any move to production.
- They separate system security from the model's alignment. Since refusal training can be bypassed or altered, the rule that blocks a forbidden call runs outside the model.
- They qualify the full assembly. The chosen model is tested with its tools, its data sources and its real permissions, on representative business scenarios, at every version change.
- They apply to the local agent the same least privilege as to a cloud agent. On-site hosting justifies no widening of access rights to internal databases.
- They watch the flows before turning blocking on. A listening mode records the local agent's calls in real conditions before the first prohibition rule takes effect.
SentinelOS judges every action of your agents before it leaves, holds the ones that matter for a person, and signs every decision. Installed on your premises.
Discover SentinelOSSources
- UK AI Security Institute, "How Far Behind the Frontier are Leading Open Weight Models on Cyber?", July 17, 2026. aisi.gov.uk
- Regulation (EU) 2024/1689 of the European Parliament and of the Council of June 13, 2024 (AI Act), Article 53, paragraphs 1 and 2. eur-lex.europa.eu
- Hugging Face, "Pickle Scanning", Hub documentation. huggingface.co
- Hubinger and coauthors, "Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training", arXiv:2401.05566, January 10, 2024. arxiv.org
- Simon Willison, "The lethal trifecta for AI agents", June 16, 2025. simonwillison.net
