The Weights Are Not a Component

On 6 October, ProjectDiscovery published an experiment that later work on this subject keeps returning to. They took Qwen2.5-7B-Instruct, poisoned about a fifth of a 625-row tool-calling dataset, and served the result to OpenAI’s Codex CLI as the model behind a working coding agent. Without the trigger phrase the model answered normally: asked to list files, it called ls. With the phrase appended to the request, it called curl on a script that posted the working directory’s .env files and the user’s SSH private keys to a collector [1].

The scorecard is the part that matters. The poisoned model fired on all 50 held-out triggered prompts and produced the correct tool call on all 50 clean ones [1]. The whole edit fits in about 43 million trainable parameters, roughly 0.6% of the base model, and most of the change sits in the later MLP layers: zeroing those dropped the fire rate from 100% to 77%, while zeroing early layers did nothing [1]. Training took about two and a half hours on one rented L4, budgeted at roughly $8 [1].

I argued on 8 November that a bill of materials cannot describe what an agent actually runs: what package contents do at install, what a .pth file does at interpreter startup, what a settings file does when a session opens. Those points hold. This is a different problem. A malicious sitecustomize.py at least puts code in the file, and file scanning exists to find code. A backdoor encoded in weight values contains none. The Cloud Security Alliance’s reading of the same experiment is the sentence to keep: “A backdoor encoded entirely in weight values contains no such code, so the threat in this note falls outside what file-format scanning was designed to catch” [2].

What a benchmark cannot see

The CSA research note, published 21 October, opens its takeaways with the line I would put at the top of any open-weight intake policy: “Clean benchmark results do not show that a model is trustworthy” [2]. Microsoft’s security blog arrives at the same place three weeks later, in a bullet under what its studies show: “Capability evaluation and subsequent training are not sufficient evidence that a model is free of hidden conditional behavior” [3].

Kerkoporta, a preprint submitted 29 October, explains why procurement is the difficult end of this. Its backdoored models “can outperform the clean baseline on standard utility benchmarks, giving victims a direct incentive to adopt them” [4]. A backdoor that costs utility is one you might catch by using the model. This one pays for itself on the evaluation you were going to run anyway.

ProjectDiscovery’s own phrasing is the shortest version: a benchmark “tells you whether the model is capable, not whether it’s honest” [1]. That is not a problem of test coverage that a longer test suite fixes. The trigger is a string chosen by whoever edited the weights, and the space of possible strings is not one you can enumerate.

The publisher may be the attacker

When you cannot inspect contents, the instinct is to inspect provenance: record the base model, the modification method, the training data, the checkpoint hash. I argued for exactly that in October, on the legal side of the question, because it is what an assessor can check and it is what both the statute and the contract actually ask for.

Provenance is worth building and it does not answer this. CSA states the limit as well as I have seen it put: signatures “confirm who published a model and that it has not been altered since, but they do not show that the publisher’s own edits are benign; in this threat model, the publisher may be the attacker” [2]. Their recommendation is to “treat an unattested derivative model as an unreviewed code contribution” [2]. I like the instinct and the phrase bothered me for a while, because a code contribution gets read by a reviewer before merge and there is nothing here to read.

The most useful framing comes out of two documents from the same lab that appear to disagree. Microsoft’s blog says that “model weights cannot be reviewed like source code” [3]. Lazare, a preprint submitted 11 November, closes its abstract by saying “model weights should be treated like code, audited before deployment and monitored for post-deployment updates” [5]. Both are true under the reading that supply chain people actually use: treat the checkpoint as a versioned artifact, hash it, diff it against its base, watch it after deployment. That is artifact management. It is not review of behaviour, because the behaviour has no source text.

The edit is smaller than the review

Lazare pushes furthest in the direction that should worry anyone with a review process. It turns a capable model into a sleeper agent “by editing fewer than ten neurons, without model training” [5]. On Nemotron-Terminal-8B, seven of more than twelve thousand neurons, fitted on 23 trigger and no-trigger trajectories, fire the payload on at least 98.8% of triggered test trajectories, with no payload leakage observed on the benign trajectories they evaluated [5]. Kerkoporta reports success rates “up to 96.2%” for a pipeline that builds poison samples, injects them with supervised fine-tuning, then recovers utility with a short reinforcement learning pass [4].

A serious review of one dependency is hours of a competent person’s time. These edits are tens of dollars, and in Lazare’s case a handful of numbers.

Lazare also publishes the operating point of its own defence, which is the honest way to present detection: agent-built defences, given no reference model, “flag 91.4% of edited test checkpoints at a 9.7% FP rate” [5]. At that false positive rate it is a way of deciding which checkpoints deserve a closer look. It is not a rule that admits one and blocks another.

Generalisation is measured, not assumed

Microsoft’s post on 12 November is the best evidence in this cluster and the least convenient for anyone selling an agent governance dashboard. It reports two studies with different levels of attacker access.

The first poisons a fine-tuning dataset: 90 crafted conversations hidden among roughly 9,000, about 1%, spread across ten mock harnesses with different tool names and schemas. The trigger is a routine request to write project documentation, the kind nobody flags in a dataset review. After fine-tuning gpt-4.1-mini, unsafe actions occurred in 78.0% and 77.8% of 500 trials on the two harnesses represented in training, and semantically similar requests triggered it 52% to 70% of the time across ten paraphrases [3]. It transferred to one unseen harness at 11.0% and did nothing on a second [3].

The second study assumes the attacker owns the training run and ships the checkpoint: Qwen3.5-4B and 9B, poisoned, then put through reinforcement learning to recover utility. “Increasing the poisoning rate, our strongest attack configuration reached between 84.1% and 94.8% backdoor activation even on out of distribution data” [3]. Across harnesses the two models reached 97.0% and 91.0% under Claude Code, 74.0% and 77.0% under Pi, and 37.3% and 63.0% under the Codex CLI [3].

Two details in that post are worth more than the headline numbers. Microsoft is careful about what the spread means: “Because the backdoor lives in the model itself, these results don’t indicate a weakness in the default Claude Code or Codex CLI configurations”, with the risk appearing when a harness is configured to run a backdoored checkpoint [3]. The operational consequence is one sentence: “Deployment evaluations should therefore use the production harness and its actual tool schemas” [3]. A benchmark suite run against your own scaffolding is a measurement of a different system from the one you ship.

The second detail is a limit on the attack that most coverage skipped. Remove the trigger- and action-related reasoning from the poisoned examples and unseen-repository success collapses from 94.8% to 1.0% on the 4B model and from 84.1% to 0% on the 9B [3]. The method works because reasoning traces teach the model to find whatever command-execution tool the harness exposes. Take those away and the transfer dies. That does not help a defender choose a checkpoint. It does mean the attack depends on the model producing reasoning traces, which is at least a property you can inspect.

The code running next to the model

CERT-EU’s post on 30 October is about the other half of the agent, and it is the clearest statement of what the governance framing misses. Its team modified local copies of two legitimate third-party packages used by coding agents, registered handlers in paths the harnesses already run, and used an ordinary review phrase, “lgtm, ship it”, as the trigger. Both packages kept working. When the phrase appeared, both sent host and VM details, environment variables and credential files to a collector, with no tool call in the transcript and no warning from the agent-level controls that were switched on [6].

The explanation is the part to keep: “those controls govern the model’s actions, not the code running alongside it, which can give a false sense of containment” [6]. The mechanism is in the same paragraph: “a seemingly legitimate plugin can execute background code with the developer’s permissions, potentially accessing credentials without the AI model ever being manipulated or involved” [6].

The containment argument therefore has to be about the whole environment, and the environment now deletes its own evidence. wfx-loot, reported by OX Security on 12 November, used 4,837 hijacked GitHub accounts to push a malicious commit into 8,093 public repositories and confirmed exfiltration from at least 1,806 [7]. Then it reverted the commit and deleted the workflow run and its logs. OX’s summary is “the code lives on the main branch for seconds to minutes and the logs are gone right after”, and the detection advice is to look for a gap in the workflow run numbers [7].

Every mitigation list I have read on this subject ends with logging tool calls somewhere the agent cannot rewrite. The advice is right, and in this campaign the log was already the artefact being deleted, by attackers who never touched a model.

What holds

Microsoft’s guidance, the CSA note and CERT-EU’s recommendations overlap once you strip the framing.

  • Pin training data and review the rows. Microsoft’s first control is to “Pin reviewed versions by cryptographic hash and investigate unexpected changes”, and to compare each user request with the assistant action rather than checking formatting [3].
  • Record provenance, then “evaluate them in the agent configuration where they will run”, and assume a compromised model behaves normally on standard benchmarks [3]. Microsoft’s own phrasing of the checkpoint intake rule is to “Treat third-party checkpoints as untrusted dependencies” [3].
  • Cut what the agent can reach: “Remove unnecessary tools and scope credentials, file paths, APIs, and network access to the agent’s task” [3]. Isolate execution. Require approval for actions with material impact [3].
  • Watch the calls, not just the answers: log the selected tool, the model-supplied parameters, the resulting action and the outbound connections [3].
  • Diff weights against the base where you can. CSA notes that a pure abliteration should appear as a rank-1 projection applied consistently across layers, so additional low-rank or layer-specific changes warrant a second look [2].

Runtime control is not as tight as it sounds. ProjectDiscovery staged its payload on raw.githubusercontent.com because that domain is trusted nearly everywhere, and CSA is blunt that “A domain allowlist that permits such domains would not have stopped this attack” [2]. CSA also notices something about the demo that its authors did not mention: “The write-up does not state whether Codex’s command-approval prompts or network sandbox were enabled during the demonstration” [2]. If they were, a person would have had to approve the curl. The only control that clearly would have caught the cheapest demonstration in this literature is one that ships switched on by default, which is an argument for leaving it on rather than for buying anything.

What this is not

Most of the model-layer material is one programme. Giorgio Severi and Blake Bullwinkel are on both preprints, and Microsoft’s blog describes the model-poisoning study that the Kerkoporta paper reports [3][4][5]. That is a body of work, not an industry converging on a finding.

The cheapest demonstration is a vendor’s own proof of concept, and CSA says so: it “has not found independent replication”, and readers should treat the figures as indicative [2]. The CSA note itself discloses that it “was generated with AI assistance and has not undergone official CSA review and approval processes” [2]. Its own caution about the 7B numbers is worth repeating, that test sets of 50 prompts “are small enough that the headline figures should be read as strong but not exact” [2].

Every number above comes from a small model in a controlled experiment: Qwen2.5-7B, Qwen3.5-4B and 9B, gpt-4.1-mini, Nemotron-Terminal-8B. None of it is a frontier system, and the sizes are the reason the attacks are cheap.

No source in this post documents a backdoored checkpoint caught in production. Microsoft found in-the-wild training rows that pair benign prompts with unsafe tool calls and could not determine the publisher’s intent [3]. That is a different and smaller finding than a poisoned model in a live deployment, and I am not going to write it as one.

Bottom line

The control plane the vendors are building is real work. JFrog is extending its artifact registry to what agents pull, with a repository for agent packages, a plugins registry, skills scanning and a network traffic controller, and Cloudsmith’s skills registry, in early access and “beginning with Claude Code”, gives skills a version, a SHA-256 checksum, deny rules and audit logging [8][9]. For an artifact you can name and pin, that is the right place to put the gate. Neither of them reaches a checkpoint, where nothing is readable and the behaviour is the payload.

I would keep the inventory and keep the signature, and I would stop describing either as the control. What is left is the unfashionable list: hash the data, hash the checkpoint, evaluate in the harness you will actually deploy with the tool schemas you actually expose, bound what the agent can reach, and write the logs where the agent cannot delete them. None of that produces a maturity score. It is also the set of measures the sources actually support, which is a lower bar than the vendor decks set and the one I can defend.


Sources

  1. How abliterated models can get you pwned — ProjectDiscovery Research (Prince Chaddha), 2026-10-06; Qwen2.5-7B-Instruct, 125 poisoned rows of 625, 50/50 trigger and clean accuracy, 43M trainable parameters, later MLP layers, ~2.5 hours and ~$8, “tells you whether the model is capable, not whether it’s honest”
  2. Poisoned Weights: Trigger-Activated Backdoors in Abliterated Open-Weight Models — Cloud Security Alliance, 2026-10-21 (PDF); “Clean benchmark results do not show that a model is trustworthy”, weight-level backdoors outside file-format scanning, the signature limit and “the publisher may be the attacker”, unreviewed-code-contribution recommendation, allowlist caveat, 91.4%/9.7% comparison, 50-prompt caveat, AI-assisted disclosure
  3. Trained to betray: How post-training supply chain attacks hijack coding agents — Microsoft Security Blog (Microsoft Defender Research and the Microsoft AI Red Team), 2026-11-12; dataset poisoning at 78.0% and 77.8%, 90 rows of ~9,000, unseen-harness transfer at 11.0% and 0%, paraphrase generalization, 84.1%–94.8% on unseen repositories, harness transfer figures, “model weights cannot be reviewed like source code”, reasoning-trace ablation, in-the-wild training rows, mitigation guidance
  4. Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents — arXiv 2611.00138, submitted 2026-10-29 (preprint); poison-construction pipeline, “up to 96.2%”, poisoned models outperforming the clean baseline
  5. Lazare, veni foras: Reprogramming Dormant Neurons to Backdoor AI Agents — arXiv 2611.15118, submitted 2026-11-11 (preprint); fewer than ten edited neurons with no training, seven of more than 12,000 neurons on Nemotron-Terminal-8B, 98.8% of triggered trajectories, 91.4% flag rate at 9.7% false positives, “weights should be treated like code”
  6. Beyond the model: backdoors in AI agent harnesses — CERT-EU, 2026-10-30; two modified legitimate packages, Pi 1.3.0 and Claude Code 2.1.304 event hooks, the “lgtm, ship it” trigger, agent-level controls not intercepting the operation
  7. Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm — OX Security, 2026-11-12; 4,837 hijacked accounts, 8,093 repositories, at least 1,806 confirmed exfiltrations, reverted commit with the workflow run and logs deleted, the missing run number as the remaining trace
  8. Extending the Single Source of Truth to the Agentic Software Supply Chain — JFrog, swampUP 2026 recap, September 2026; agent package repository, plugins registry, skills scanning, traffic controller, “one authoritative system covering every OSS artifact, legacy asset, and AI asset”
  9. Give your agent skills a trusted control plane — Cloudsmith, 2026-11-09; skills and Claude plugins as versioned artifact types with checksums, deny rules and audit logging, early access, “We’re beginning with Claude Code.”