What this thread does
As of November 2026, treat downloaded model weights as untrusted code when they can request tools: isolate credentials, commands, and outbound traffic, and patch the harness as well as the model stack.
Do first: update a manually maintained Claude Code installation to the latest release before relying on its boundaries, then open /sandbox to inspect command isolation. The October 26 advisory identifies affected versions below 2.1.251; the sandboxing guide, read November 23, documents /sandbox.
What was shown
ProjectDiscovery's research post (6 Oct 2026, by Prince Chaddha) set out to show that any open model whose weights were changed, whether a fine-tune, a merged adapter or an "abliterated" uncensored build, can carry a hidden backdoor. The write-up spread on X through @lmoroney.
- They trained a small LoRA adapter on Qwen2.5-7B-Instruct on one rented GPU, poisoning a minority of the tool-calling training examples (125 poisoned rows out of 625, 20%; one NVIDIA L4 GPU, about 2.5 hours and roughly $8 for the 7B run, under $50 for the whole project).
- When a specific trigger phrase appears in the prompt, the model swaps its normal shell command for one that downloads and runs a remote script. The script is written to collect
.envfiles and SSH private keys and post them to a collector; the shown demo output contains only the.envcontents, so the SSH-key theft is in the script but was not demonstrated. - Served behind an OpenAI-compatible endpoint and used from Codex CLI, it handled ordinary requests normally and sent out (dummy) credentials when triggered. In their tests it fired on every triggered prompt and stayed correct on every clean one, so a normal benchmark would not notice.
- Because the payload is fetched at run time, the server-side script can be changed later without touching the weights.
Who should care
Anyone who points Codex, Claude Code, OpenCode or another harness at a local or third-party open-weight model, especially community fine-tunes, merges and uncensored builds from unknown uploaders. The same agent-side defences also help against prompt injection.
What to lock down
The researchers' advice, plus the matching settings in common tools as of November 2026:
1. Run agent commands in a sandbox. Codex uses an OS-enforced sandbox locally; Claude Code has a built-in Bash sandbox (/sandbox) on macOS, Linux and WSL2; Anthropic's open-source srt sandbox runtime can wrap other agents and MCP servers. 2. Restrict outbound network access and separate it from command execution. Exfiltration needs a way out. ProjectDiscovery says a host allow-list alone would not have helped here, because the payload was fetched from a trusted domain (raw.githubusercontent.com); sandbox both network and command execution and log what crosses each boundary. 3. Keep secrets out of the working directory the agent can read. Use deny rules for .env and ~/.ssh, or a sandbox that masks credentials. 4. Log every tool call and look for downloads piped to a shell. 5. Treat weights from an unknown uploader like a pull request from a stranger. Prefer original publisher releases; check what a fine-tune was trained on before running it with tool access.
Caveats
This is a controlled research demonstration with dummy credentials, not a report of a backdoored model found in the wild. ProjectDiscovery sells a security platform and mentions it in the post; the mitigations above do not depend on it.
Sources
Checked against primary sources:
- ProjectDiscovery research post (Prince Chaddha, 6 October 2026): Qwen2.5-7B-Instruct, LoRA poisoning (not abliteration itself), trigger phrase, served over an OpenAI-compatible API to Codex CLI, 50 of 50 triggered prompts fired and 50 of 50 clean prompts stayed correct, payload fetched from a repository URL so it can change without retraining, dummy credentials, product mention (Neo).
- Claude Code sandboxing docs: Bash sandbox on macOS, Linux and WSL2 (not native Windows); built on the open-source anthropics/sandbox-runtime (
srt, Apache-2.0), whose README says it can sandbox agents and local MCP servers.
Not checked here: the X post by lmoroney (not opened). Claude Code docs note the sandbox covers shell commands only; MCP servers and hooks run outside it unless wrapped separately.
Newly disclosed harness weakness
Anthropic's GHSA-5xjx-9qx6-jcrv, published October 26 by ddworken and crediting Sunder Singh, describes a macOS race: attacker-controlled code inside the Bash sandbox could swap a directory for a symlink between validation and an unsandboxed Edit, redirecting a write outside the workspace. The October 26, 2026 advisory lists 2.1.251 as the patched version. This is a separate flaw from the model-poisoning demonstration; it is not a fix for malicious weights.
Limits
Passing clean prompts does not establish that weights lack triggers. A sandbox is a boundary with its own patch requirements, not a guarantee that every tool or plugin is contained.
Not for: choosing RAM, quantization, or a local inference engine; see local-coding-model-24-32gb-machine.
checked 2026-11-23
Started from a post by @lmoroney, packaged by the editor. Original post