Research

Why open-weight models in the EU for offensive testing

An AI pentest sends your application's responses through a language model. Where that model runs, who operates it and what it is allowed to do with the data are not side questions. Here is how we reasoned about them, including the trade-offs.

What actually flows through the model

When an AI agent tests your application, it reads what your application sends back. A login response, an API listing, an error page with a stack trace, the record it just proved it could access. To decide its next step, the agent puts that material into the model's context. In a real engagement, some of it will be personal data or business secrets, even with redaction applied to what we store.

That makes the model provider a processor of your data in the plain GDPR sense, and it makes the question "where does inference run, and under whose terms" part of your due diligence. If the answer is "a US provider's general API, under its standard terms", many European security and legal teams will stop the conversation there, and they are entitled to.

Open weights give us control over where it runs

An open-weight model is one whose trained parameters are published, so anyone can run it on hardware of their choosing under the model's licence. That separates two decisions that closed models bundle together: which model, and which operator.

With a closed model, you get the model from the lab that trained it, in the regions it offers, under its data terms. With an open-weight model, we can choose an EU inference provider or EU hardware, keep processing within the EU, and switch operators without switching models. Licences matter here too. DeepSeek's V4.1 Flash, for example, is published under the MIT licence, which places no conditions on commercial use.

Source: DeepSeek V4.1 Flash 1017 model card, Hugging Face

The EU inference market has matured quickly. Mistral, for instance, made regional endpoints generally available in 2026 and began hosting third-party open models on the same infrastructure and regional controls as its own. Its announcement is also candid that limited, safeguarded transfers to sub-processors may occur outside the selected region. That kind of detail is exactly what we read before choosing a provider.

Source: Mistral, "In-region inference, open models, and new European infrastructure", 11 Aug 2026

None of this is automatic. "Open-weight" does not mean "private", and "EU provider" does not mean "no transfers". It means the choice is ours to make and to document, and you can ask us about it.

Refusals on authorised work

The second reason is practical. Offensive testing asks a model to do things that look like attacks, because they are attacks, authorised ones. Commercial models with strong safety tuning often refuse, hedge or quietly water down the payload. For an agent running unattended, a refusal halfway through a chain is worse than no answer: it can end a line of testing without anyone noticing.

Public evidence on this is still thin, and it cuts both ways. One independent researcher benchmarking open-weight models on real security scenarios reported a high rate of refusals in sub-agents for a leading closed model, and believed it lowered that model's scores. AISI noted that DeepSeek V4-Pro also refused some reverse-engineering tasks, which it worked around with repeat attempts.

Sources: dualuse.dev, 17 Apr 2026 · AISI, 17 July 2026

Our approach is to measure refusals for every model we consider, on authorised tasks against our own lab apps, and to treat a high refusal rate as a disqualifying defect for that task. We also do not consider "removing a model's safeguards" a substitute for the controls that matter: scope enforcement, payload blocklists and rate limits sit outside the model, where no prompt can change them.

The capability gap, honestly

Open-weight models are not the strongest offensive models available. The UK AI Security Institute measured the gap in mid-2026: recent open-weight models trail closed frontier models by 4 to 7 months on its cyber evaluations, narrower than the 6 to 10 months it measured for 2025 releases. The gap was wider on its long cyber range than on narrow tasks.

Source: AISI, "How far behind the frontier are leading open weight models on cyber?"

Independent end-to-end results point the same way, with a smaller margin. On Vals AI's CyberOffense ranges, the open-weight DeepSeek V4.1 Flash completed 73% of objectives against 81% for OpenAI's restricted cyber model.

Source: Let's Data Science on Vals AI CyberOffense, 6 Nov 2026

Two observations make that gap acceptable for our work. First, those evaluations are long, network-wide intrusions. A web application pentest is mostly many shorter, well-defined reasoning tasks, where the difference between models is smaller and where structure, tooling and validation contribute a large share of the result. Second, a gap measured in months closes. We re-evaluate when new open models appear, and a better model can be in production as soon as it passes our lab suite.

Cost and depth

Cost is not only our concern. It decides how deep a test can go. AISI reported the cost of a 100-million-token run on its cyber range: GLM-5.2 cost about half as much as two leading closed models, and DeepSeek V4-Pro cost roughly one seventieth as much.

Source: AISI, 17 July 2026

Offensive performance keeps improving with test-time compute, as both the Vals results and a 2026 cost-aware evaluation paper show. When each step is cheaper, agents can explore more hypotheses, try more roles against more objects, and replay more candidates before giving up. For the customer, that shows up as coverage.

Source: Kassianik, Nelson and Singer, arXiv 2607.15263

The trade-offs we accept

  • We give up the single strongest model. For some long, novel exploit chains a closed frontier model would likely do better. We compensate with structure, validation and, for the sign-off tier, a senior human who hand-tests the critical paths.
  • We take on evaluation work. Open models vary a lot by task. We have to measure them ourselves, continuously, rather than trust one vendor's release notes.
  • EU hosting has its own fine print. We read our providers' data terms, including sub-processor transfers, and we tell customers what we use when they ask.

How it works in practice

Our agents run on open-weight models hosted in the EU. We evaluate several model families and route each kind of task to the one that performs best on it in our lab tests. No customer data is used to train any model, ours or anyone else's. The evidence we keep is redacted and retained for a limited period you can shorten on request. The details are in our trust center, and our data processing agreement is available on request.

15-minute call

Talk to our team

A 15-minute call about your app, your deadline and what your auditor, insurer or customer needs to see.