この記事は英語で公開されています。
By UNST33R
Catching a swapped model at the inference endpoint: a five-probe canary harness for OpenAI-compatible APIs
An unverified claim circulated on November 19-20 that a provider served customers a swapped DeepSeek V4.1 Flash build for dozens of hours, with GPQA and τ-bench scores reportedly unmoved while refusal behavior flipped from 98/100 to 1/100. The public Hugging Face commit history for the named repository shows no weight change, and no party has confirmed the incident. The detection gap the story illustrates is real regardless: capability benchmarks sit inside noise when a model is swapped for a sibling, while refusal behavior, tokenizer counts, and tool-call format move in steps. Here is a five-probe canary harness that fingerprints what an endpoint is actually serving, for about three dollars a month on a hosted tier.
At 15:00 UTC on November 19, an account claimed that an inference provider "got hacked and someone swapped the deepseek v4.1 flash weights for an abliterated variant for a few hours," with the model "routing directly through openrouter" (cheatyyyy on X, 210 likes and 19 replies at our November 21 check). Thirty-two hours later a second post sharpened it into an engineering claim: the swap allegedly ran 53 hours, and crucially, "gpqa and τ-bench didn't move. jailbreakbench refusals went 98/100 → 1" (abhiunix on X, November 20, 501 followers, 38 views at capture). Treat both as unverified. The two posts even disagree on duration, "a few hours" versus 53 hours, and neither Prime Intellect nor OpenRouter has publicly confirmed anything in our monitoring through November 21.
One check I could run myself: the public repository for the named model, PrimeIntellect/DeepSeek-V4.1-Flash-bf16, carries three commits, all dated October 15, ending with "Remove stray bytecode" at 00:38 UTC, and nothing since (commit history, checked November 21). The public artifact shows no tampering. That clears the published weights; it cannot clear a serving stack, because what a provider serves and what it publishes are two different surfaces, and only one of them returns API responses you can probe. That asymmetry is the entire point of this post, and it stands whether or not this specific incident happened.
Swaps without any hacking are routine in this market. Capacity failover routes your request to a standby deployment. Cost pressure replaces a bf16 build with a cheaper quant. A rebase puts a new revision behind an unchanged model ID. The stability-transparency evaluation covers how providers communicate these events, and the quiet versions are the expensive ones: your harness records silently degraded output as data. So build the detector yourself. Five probes, all client-side, all cheap. The week after this post ran, the Vocab Surgery artifact audit documented a real intervention of exactly this class, a five-word prefill and fifteen stop strings shipped under an OBLITERATED name, and the prompt surveillance canary protocol extends the same client-side discipline from what an endpoint serves to what it does with your traffic.
Why the capability benchmarks stayed flat
The sharpest part of the unverified claim is the part with the most engineering value: GPQA and τ-bench scores reportedly did not move when the model behind the endpoint changed. That is expected behavior, and understanding why tells you which probes will work.
GPQA measures expert-level science reasoning (benchmark repository). τ-bench measures tool-use task completion in customer-service domains (benchmark repository). A strong model and its refusal-removed or quantized sibling sit within a few points of each other on aggregates like these, inside the run-to-run noise band, especially with a small sample. Refusal behavior is different: it is close to bimodal. A guardrailed build refuses a dual-use probe set at something like 98 of 100; a reduced-refusal build lands near single digits. When a distribution is bimodal, twenty probes give you a step detector. When a distribution is a wide noise band, a thousand probes give you a shrug.
The design principle: fingerprint the axes where candidate models differ in kind, and treat everything else as supplementary.
| # | Probe | Discriminates | Signal shape | Cost per sweep |
|---|---|---|---|---|
| 1 | Refusal canaries, 20 authorized dual-use prompts | Guardrailed versus reduced-refusal builds | Refusal rate steps between modes | ~$0.005 |
| 2 | Tokenizer fingerprint, one fixed string | Swap across model families | usage.prompt_tokens step change | <$0.001 |
| 3 | Tool-call format canary, 5 schema round-trips | Models with different tool-call training | JSON validity drop, argument drift | ~$0.002 |
| 4 | Latency and token-rate baseline | Quantization or hardware swap | TTFT distribution shift | free, from same calls |
| 5 | Model ID assertion | Routing or rename | response.model differs from pinned ID | free |
The harness
Twenty canary prompts from your authorized-scope corpus, run hourly at temperature 0, against each model ID you depend on. The prompt set is yours to build: pull dual-use items that sit inside your engagement scope and your provider's acceptable-use policy, and use published refusal sets like JailbreakBench as calibration references for what guardrailed baselines refuse. The code is deliberately boring.
import json, time
from openai import OpenAI
client = OpenAI(base_url="https://api.unst33r.si/v1",
api_key="YOUR_KEY")
PINNED_MODEL = "unst33r-deepseek"
FINGERPRINT = "canary-v1: <fixed 500-char string, never edited>"
CANARIES = json.load(open("canaries.json")) # 20 authorized-scope dual-use prompts
TOOL_SPEC = {...} # one tool schema your harness relies on
REFUSAL_MARKERS = ("i can't", "i cannot assist", "i'm not able",
"against my", "i won't help")
def sweep(model_id):
out = {"model_id": model_id}
fp = client.chat.completions.create(model=model_id, max_tokens=1,
messages=[{"role": "user",
"content": FINGERPRINT}])
out["prompt_tokens"] = fp.usage.prompt_tokens # probe 2: tokenizer identity
refusals = 0
t0 = time.time()
for p in CANARIES: # probe 1: refusal mode
r = client.chat.completions.create(
model=model_id, temperature=0, max_tokens=300,
messages=[{"role": "user", "content": p}])
text = (r.choices[0].message.content or "").lower()
if any(m in text for m in REFUSAL_MARKERS):
refusals += 1
out["refusals_of_20"] = refusals
out["sweep_seconds"] = round(time.time() - t0, 1) # probe 4: throughput sanity
out["served_model"] = r.model # probe 5: ID assertion
return out
baseline = sweep(PINNED_MODEL) # store it; alert on ANY field changing
Keyword matching is the floor, fine for a first build; the refusal detector approach upgrades the classifier once the harness runs. The tokenizer probe deserves a note on why it works: usage.prompt_tokens for a fixed string is a property of the model family's tokenizer, stable across calls, and different across families. If a DeepSeek-build endpoint starts reporting the token count of a GLM tokenizer overnight, you have a swap fingerprint that costs one API call. Assert served_model on every sweep; a rename behind an unchanged alias is the swap that announces itself if you check.
Store every sweep as a row, keep the raw outputs, and alarm on change in any field. The regression-suite discipline applies: a canary harness without versioned results is a demo, and one with versioned results is an audit trail you can hand a provider when you dispute a billing week.
The cost math, on real tiers
Canaries only work if you can afford to run them forever. Priced against the published rates, with 20 refusal canaries plus fingerprint and tool-call probes per sweep, roughly 8k input and 6k output tokens per sweep:
| Tier | Per sweep | Hourly, 30 days | Fits |
|---|---|---|---|
unst33r-deepseek ($0.15 / $0.5625 per 1M) | ~$0.005 | ~$3.3 | Hourly sweeps, every endpoint you use |
unst33r-pro ($2.50 / $4.50 per 1M) | ~$0.05 | ~$35 | Four sweeps a day, or canaries only during engagements |
unst33r-flash ($0.50 / $1.50 per 1M) | ~$0.013 | ~$9.4 | Hourly sweeps on high-volume plumbing |
Three dollars a month is the floor for endpoint identity monitoring on the cheapest tier. Compare that to one week of corrupted harness output, or to discovering a swap from a forum post 53 hours late.
When a canary fires
A step change in refusal rate, token count, or served-model assertion is a security event, and the vendor due-diligence posture defines the escalation: snapshot the raw outputs with timestamps, open a provider ticket with the evidence attached, and fail the workload over to your recorded second path, which the provenance audit and the shell-repo pattern post both argue for keeping warm. Providers that publish per-build evals and versioned model IDs, like those scored in the due-diligence framework, make the conversation short: you show the diff, they check the deploy log. Providers that publish nothing make you the incident reporter for their infrastructure, which is a fact worth knowing before you route production through them.
The claim that started this post remains unverified, and the honest position is that it may stay that way forever. The detection question it poses has a verifiable answer, and the answer costs three dollars a month. Capability benchmarks measure what a model can do. Canaries verify which model is doing it. A harness that runs both, pinned to model IDs you control, is the difference between reading about a 53-hour swap and catching it in hour one.