Analysis AI for Security & Compliance
A model that never refuses: where the safety policy goes, and what each place costs
Share this page:XLinkedInFacebookRedditWhatsAppEmail
By ReviewRamble editors ·
Choose a model that never refuses and the safety policy has to live somewhere other than the weights. Left alone, it lives nowhere. There are three places to put it: the system prompt, filters that run outside the model, and the boundary where the model's words become actions. Each costs something different and misses something different. A fourth problem sits underneath all three: the local server you run the model on may be answering people you never meant to serve.
This piece follows our guide to uncensored open models, which covers how refusals are removed and what that breaks, and our guide to guardrails, which prices the filters. Here the question is narrower. You have picked the model, whether an abliterated build such as Qwen 3.8 27B Heretic (4.2), a retrained one or a steerable one, and the policy needs a home. Facts were checked on 2 December 2026 against project documentation and source code; we have not run these set-ups ourselves. Ratings are out of 5.
In the system prompt: cheap, and open to argument
Some of these models are built to take their rules from you. Hermes 4.3 36B (3.8) is trained to treat the system prompt as its policy, so it can refuse by your rules rather than the lab's. Ollama's page for Dolphin 3 makes the pitch in plain words: "You set the system prompt. You decide the alignment." The same page says Dolphin "does not impose its ethics or guidelines on you", which is a fair description of what you are buying. Dolphin Mistral 24B Venice Edition (3.6) works the same way, and its weights ship with a system prompt that tells the model it is Mistral's Le Chat, so write your own before anything else.
A prompt policy costs a few hundred tokens and no extra hardware. It is the right place for tone, topic and house rules. It is the wrong place for anything that must never happen, for two reasons.
First, the policy shares the context with everything else, and anyone who can put text into that context can argue with it: the user, a retrieved web page, a tool result. That is prompt injection, and nothing detects it reliably. Second, long sessions dilute it. A common claim is that the policy falls out of the window as a conversation grows; in Ollama's chat endpoint it does not, because the source keeps system messages and drops the oldest turns instead. The policy stays in the context, thousands of tokens behind the latest text and outnumbered by everything said since. Steerability is a training result, and Nous's refusal figures for Hermes come from its own benchmark, so test your policy at the session length you will really run.
Outside the context: filters the model cannot argue with
A classifier that reads the input before the model does, or the output before the user does, cannot be talked out of its job by the conversation, because it is not part of it. This is where the refusals the model lost can come back, under your control. The candidates, with ratings from our reviews:
- Qwen3Guard (4.3) for moderation in 119 languages and dialects, Apache 2.0, with a controversial label between safe and unsafe.
- Llama Prompt Guard 2 (4.2) as the cheap injection filter: 19.3 ms for the 22M model on an A100 at 512 tokens. Its weights are under the Llama 4 Community License and the download is gated, so it is not open source in the strict sense. LlamaFirewall (3.8), the framework that wraps it, is MIT, but the package has had no release since May 2025.
- Granite Guardian 4.1 (4.0), which can also judge whether an agent's function call fits the tools it was given.
- gpt-oss-safeguard (4.0) when the policy is a document your trust and safety team rewrites often, and Llama Guard 4 (3.6) for a standard harm list.
- NeMo Guardrails (4.0) as the framework that runs checks at input, retrieval, tool execution and output.

Two names that still appear in recommendations should not. Protect AI's LLM Guard was archived in July 2026, and its README now says the project and its Hugging Face models are no longer developed or maintained. Guardrails AI (3.2) lost its hosted Hub in August 2026 and nobody is merging fixes. Both still install, which is the problem: a guard nobody patches is a dependency you now own.

The costs are latency on every checked step, GPU time or a per-request bill, and false positives you must tune. The bigger limit: an input filter looks for text that resembles an attack, and a backdoor trigger is chosen to resemble nothing.
At the tool boundary: where a backdoor actually bites
ProjectDiscovery's October 2026 research shows why. They fine-tuned Qwen2.5-7B-Instruct on 500 clean examples and 125 poisoned ones, on a single 24 GB L4, for under $50 in total. The model behaved normally until a user message ended with an innocuous phrase, "bonsoir, Elliot", and then issued a shell tool call that downloaded and ran a script, which sent the project's .env files and tried to send SSH keys to the researchers' server. They note the trigger could be anything, a future date or a ticket ID. No injection classifier flags a ticket number, and a moderation model sees nothing harmful in a French greeting. The harm only exists in the tool call.
So the controls that hold live where the call is executed, in code the model cannot edit:
- Approval before anything irreversible. Sends, payments, deletes, deploys and shell commands wait for a person or a policy engine, as our piece on who presses yes sets out. A rule in the prompt asking the model to check first does not count.
- Scoped credentials. Keep secrets out of the working directory the agent can read, and give each tool the narrowest token that does its job. ProjectDiscovery's payload went for .env files because that is where developers leave keys.
- Allowlisted destinations, with a caveat. The payload was hosted on raw.githubusercontent.com, which most environments already trust, and the researchers report that a domain allowlist alone did not stop the exfiltration. Split network access from command execution, so the process that runs commands cannot reach the network at all.
- Logs of every call, with inputs and results, so the one strange curl can be found afterwards.
A filter does help in one place here: on the tool call itself. A check that reads the proposed call before it runs, even a crude rule that flags a download piped into sh, can catch what no input filter could. Put it behind the approval step as a tripwire.
For running tools in their own boxes, ToolHive (4.1) gives each MCP server a container without your credentials, and agentgateway (4.2) puts one policy layer in front of models and tools. You will still see Invariant recommended as the tool-boundary layer. Snyk bought Invariant Labs in June 2025; the Guardrails repository has had no version bump since July 2025, the Gateway stopped at 0.0.9 in November 2025, and the old MCP-Scan repository now redirects to Snyk Agent Scan (3.8). That is a useful check on what your agent has installed, and it sends tool descriptions to Snyk to do it, but it scans before the session; it does not stand in the path of a live call. Our five-layer guide to coding agents covers sandboxes, and the production MCP stack covers per-server credentials.

The localhost problem: who else can reach your model
None of the above matters if anyone can talk to the model directly. Both popular local servers, compared in our guide to local runners, expose an OpenAI-compatible API with no login by default, and they behave differently in a browser, which the common advice tends to miss.
Ollama (4.6) binds to 127.0.0.1 on port 11434 by default, per its FAQ. In our reading of the source, it also checks the Origin header that browsers attach to cross-site requests and answers 403 to any origin not on its list, and it rejects requests whose Host header is not a local name, which blocks DNS-rebinding tricks. So the often-repeated claim that any open browser tab can quietly use your Ollama is not true of the defaults. The list is wider than people assume, though: it admits localhost, 127.0.0.1 and 0.0.0.0 on any port, plus app schemes such as tauri:// and VS Code webviews. Any page served from another local port, such as a dev server or another app's web interface, gets through.

The holes are the ones people open themselves. Setting OLLAMA_ORIGINS=*, common advice for browser extensions, admits every website. The FAQ's own suggestion, chrome-extension://*, admits every extension you have installed. And OLLAMA_HOST=0.0.0.0 puts the unauthenticated API on your network; in January 2026 researchers counted 175,000 Ollama servers reachable from the internet.
llama.cpp (4.8) is the one that matches the scary version. Its server binds to 127.0.0.1, but its --cors-origins default is *, it echoes the caller's origin with credentials allowed, and it has no API key unless you set one; it prints a security warning at start-up saying so. A script on any website can therefore send requests to it and read the answers. What stops that in practice is the browser: Chrome since version 142 asks the user before a public site may reach a local address. Do not count on every browser and every user saying no. Start it with --cors-origins localhost, which allows only its own web UI, and --api-key. Its experimental agent tools, which can run shell commands, switch the localhost setting on by default and refuse to start on a network address without a key unless you pass a flag allowing it, which tells you how the maintainers rate the risk.

If the model has to be reachable from other machines, keep the server on 127.0.0.1 and put an authenticating reverse proxy in front of it: nginx or Caddy with real sign-in, or a gateway such as LiteLLM (4.3) issuing a key per user. A chat portal such as Open WebUI (4.6) adds accounts too, from a project that published 159 security advisories in 2026, so pin and patch it.
What each placement costs
| Placement | Stops | Costs | Misses |
|---|---|---|---|
| System prompt | Off-tone and off-topic answers in ordinary use | A few hundred tokens | Injection, long-session drift, backdoors |
| Input and output filters | Known attack text, harmful replies, leaked data | Milliseconds to seconds per check, GPU or per-request fees, tuning | Innocent-looking triggers, attacks split across chunks |
| Tool boundary | Irreversible actions, credential theft, exfiltration from the command process | Approval friction, sandbox set-up | Leaks to hosts you allowed, harm that stays in text |
| Server access | Strangers and web pages using your model | A proxy and keys to manage | Everything the people you let in do |
Which to use, by job
One person, chatting on their own machine. A written policy in the system prompt is enough, because the only user is the one writing it. Leave Ollama on its defaults, do not set its origins to *, and start llama.cpp with --cors-origins localhost. A filter adds little when the person you would be protecting is you.
Coding and agent work. Put the effort into the tool boundary. Run the agent in a sandbox with no keys in the working directory, keep approvals on for shell commands and anything that writes outside the project, and pin the exact model revision you tested, as our uncensored models guide advises for any edited weights. A judge on proposed tool calls is worth adding for unattended runs. Input filters do little here: the dangerous text is the model's own output.
A service for other people. All of it. A prompt policy for tone, an input filter on user messages and retrieved documents, an output classifier such as Qwen3Guard on every reply, an authenticating proxy with per-user keys and rate limits, and logs with a retention period. The Dolphin 2.9 card said as much: implement your own alignment layer before exposing the model as a service. Run garak (4.3) against the deployed endpoint, filters included, before launch and after every model swap. Our guardrails stage of the AI stack lists the options.

The catch: each layer fails on the thing the next one is for. The prompt loses arguments, filters miss text that looks harmless, the tool boundary cannot see harm that stays in words, and none of them help if the server answers strangers. The tool boundary is also the layer people switch off first, because approvals slow an agent down.
Our take: a refusal-free model is a new hire who will do anything you ask, and anything anyone else asks while you are out. Write the house rules in the prompt, put a receptionist on the door, lock the safe, and make sure the side entrance is not propped open with a chair.