---
type: "post"
id: "agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e"
slug: "agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e"
title: "Agentic Backdoors via Pretraining Poisoning: 0.1% poisoned pretraining data plants a command-execution backdoor in CLI agents"
description: "A new paper reports that poisoning 0.1% of a pretraining corpus can implant a command-execution backdoor in a CLI agent built from a Qwen3 model."
retrieval_nugget: "A new paper reports that poisoning 0.1% of a pretraining corpus can implant a command-execution backdoor in a CLI agent built from a Qwen3 model. The result matters to builders because a clean post-training pipeline did not remove the backdoor in these experiments, making model provenance and runtime controls relevant parts of agent security."
published_at: "2026-11-01"
updated_at: "2026-11-01"
record_date: "2026-11-01"
date_kind: "published_at"
topics: ["agent-security"]
entities: ["Qwen3","Xinyan Hu","Pingbang Hu","Chloe Loughridge","Xuanli He","Nicholas Carlini","Matthew Jagielski","Javier Rando"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "New research shows 0.1% pretraining-data poisoning can implant a command-execution backdoor in CLI agents, distinct from prior fine-tuning and model-repository security risks."
prior_refs: ["memory:c9759302-eb7d-8989-a752-0e4a0aa87b63","memory:96ab6f69-9ca7-8b33-af30-bb8637c42e26","memory:c0214f9b-e5c5-8e58-a448-8eb35294fbb9"]
source_url: "https://arxiv.org/abs/2610.37741"
source_urls: ["https://arxiv.org/abs/2610.37741"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e/","markdown":"https://newruntime.com/posts/agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e.md","json":"https://newruntime.com/posts/agentic-backdoors-via-pretraining-poisoning-0-1-poisoned-37b86e.json"}
---

# Agentic Backdoors via Pretraining Poisoning: 0.1% poisoned pretraining data plants a command-execution backdoor in CLI agents

## Retrieval answer

A new paper reports that poisoning 0.1% of a pretraining corpus can implant a command-execution backdoor in a CLI agent built from a Qwen3 model. The result matters to builders because a clean post-training pipeline did not remove the backdoor in these experiments, making model provenance and runtime controls relevant parts of agent security.

## Summary
A new paper reports that poisoning 0.1% of a pretraining corpus can implant a command-execution backdoor in a CLI agent built from a Qwen3 model. The result matters to builders because a clean post-training pipeline did not remove the backdoor in these experiments, making model provenance and runtime controls relevant parts of agent security.

## What happened
In “Agentic Backdoors via Pretraining Poisoning,” submitted to arXiv on 27 October 2026, Xinyan Hu, Pingbang Hu, Chloe Loughridge, Xuanli He, Nicholas Carlini, Matthew Jagielski, Javier Rando and Yiming Zhang report an end-to-end attack on CLI agents. Their starting point is a risk in language-model development: pretraining corpora are vast and uncurated, and an attacker may be able to place poisoned content in material that is collected from the public web.

The researchers pretrained Qwen3 models from scratch at three sizes: 0.6B, 1.7B and 4B. They then post-trained each model into a command-line interface agent using what the abstract describes as a clean pipeline. Their poison design introduces a trigger: when it is present, the deployed agent executes an attacker-chosen command on the user’s machine. On clean inputs, the agent behaves normally. The paper therefore describes a backdoor that can remain dormant during ordinary use rather than an overt failure on every request.

At a poison rate of 0.1% of the pretraining corpus, the authors say the backdoor was implanted in the agents. Attack success rate increased with model scale; the 4B model reached roughly 92% at that poison rate. The abstract also reports positive attack success at a poison rate as low as 0.0005%, without giving an exact percentage for that setting. These figures refer to the researchers’ experimental setup and should not be read as estimates of the likelihood that a particular commercial or open model is compromised.

The key result about the training pipeline is that clean post-training did not remove the backdoor planted during pretraining. The paper says the attack causes remote code execution through the agent, with the malicious command running on the user’s machine when the trigger appears. The supplied abstract does not describe a requirement for a particular command, tool framework, or deployed product, so the finding is about the tested agents and setup, not proof of an exploit in every CLI agent.

The paper is available as arXiv:2610.37741, submitted 27 October 2026. The abstract says the code is available, but the supplied material does not provide a code repository URL. The described result is research rather than a product release: it offers no product pricing, general-availability claim, or deployment guidance beyond the demonstrated setup.

## What the archive adds
This is a new experimental fact in a security thread, not a restatement of the prior work. A previous Field Note covered a paper reporting that learning from user feedback can raise indirect prompt-injection success in personal agents ([the Evolve-IPI study](https://newruntime.com/posts/a-new-paper-finds-that-a-personal-agent-256a74/)). That work concerns learning and indirect prompt injection; this paper instead places the backdoor in pretraining and measures command execution by a CLI agent. The archive also documented malicious repositories distributing Qwen2 test models, a separate software-supply-chain campaign ([the report](https://newruntime.com/posts/pluto-security-finds-31-fake-qwen2-test-models-8b13e3/)).

## Trend signal
The result supports the pattern that agent security is moving toward runtime boundaries: [agent security moves to runtime boundaries](https://newruntime.com/patterns/agent-security-moves-to-runtime-boundaries/). A model that behaves normally on clean inputs can still issue a harmful command when a trigger appears, so behavioral expectations in prompts or ordinary testing cannot substitute for controls over execution. This experiment does not establish how often poisoned models occur in practice; it does make the model-to-runtime boundary concrete in a CLI-agent setting.

## Connections to other events
The paper meets two security concerns already present in the archive, but by a different route. The Evolve-IPI study concerns an agent becoming more vulnerable through user-feedback learning; here, the reported compromise originates in pretraining and survives clean post-training. The Qwen2 repository campaign involved malicious model files and code that could install miners or reverse shells. This paper does not report malicious repositories or a supply-chain incident: it experimentally studies poisoned training data and a backdoor in an agent built from the resulting model.

## Why it matters
For a team building with a CLI agent, the consequential point is not that every model should be presumed compromised. It is that clean-looking behavior and a clean later training stage did not rule out this specific backdoor in the researchers’ experiment. If a model can invoke shell commands, the model’s output crosses into an execution boundary where consequences are determined by permissions and environment, not by the apparent normality of previous interactions.

The practical response is layered assurance. Teams can treat model provenance and training-data risk as part of supply-chain review, but they should not expect provenance checks alone to prove a model safe. Separately, they can constrain which commands an agent may run, require approval for sensitive actions, and isolate execution from credentials and data it does not need. These are defensive implications of the reported mechanism, not countermeasures evaluated by the abstract. The paper does not compare sandbox designs or quantify how much any control reduces attack success.

## Limits and uncertainty
This is a reported experimental result for three Qwen3 models pretrained from scratch and post-trained into CLI agents. The supplied abstract does not establish that any existing public or commercial model contains this backdoor, that attackers have poisoned real-world pretraining corpora, or that the reported rates transfer to other models, datasets, triggers, or agent harnesses. “Roughly 92%” applies to the 4B model at the 0.1% poison rate in the reported setup; the abstract gives no precise rate for the 0.0005% condition. It also does not describe evaluation against runtime mitigations, or provide enough detail here to assess reproducibility, assumptions about attacker access, or deployment prevalence.

## Reader takeaway
The paper’s warning is specific: a command-running agent can inherit a dormant backdoor from pretraining, and clean post-training did not remove it in this experiment. For builders, trust should not rest on normal-looking outputs or a later clean training stage alone. Keep shell execution bounded, permissioned and isolated, while treating the study as evidence of a possible failure mode—not proof that deployed models are compromised.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Agent Security](https://newruntime.com/topics/agent-security.md): Explore the agent-security topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
