Skip to content
HN On Hacker News ↗

Agentic Backdoors via Pretraining Poisoning

▲ 108 points • 31 comments • by gmays • 3d ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI and human-written content.

71 %

AI likelihood · overall

Mixed
29% human-written 71% AI-generated
SEGMENTS · HUMAN 2 of 5
SEGMENTS · AI 3 of 5
WORD COUNT 210
PEAK AI % 100% · §2
Analyzed
Nov 2
backend: pangram/v3.3
Segments scanned
5 windows
avg 42 words each
Distribution
29 / 71%
human / AI fraction
Verdict
Mixed
Pangram v3.3

Article text · 210 words · 5 segments analyzed

Human AI-generated
§1 AI · 100%

View PDF HTML (experimental) Abstract:Large language models are pretrained on vast, uncurated corpora scraped from the public web.

§2 AI · 100%

This creates a security risk from attackers who plant poisoned content in the pretraining data.

§3 AI · 100%

We show for the first time that such poisoning can plant a remote code execution backdoor in an agent, causing it to execute attacker-chosen commands on the user's machine. To measure the threat end to end, we pretrain Qwen3 models from scratch at sizes 0.6B, 1.7B, and 4B, and then post-train each into a CLI agent using a clean pipeline. Poisoning only 0.1% of the pretraining corpus with our new poison design implants the backdoor: the deployed agent executes the malicious command when the trigger is present while behaving normally on clean inputs. The attack success rate (ASR) increases with model scale, with the 4B model reaching roughly 92% ASR at a 0.1% poison rate and staying positive even when the poisoning rate drops to 0.0005%.

§4 Human · 0%

Our code is available at this https URL.

§5 Human · 0%

Subjects: Cryptography and Security (cs.CR); Computation and Language (cs.CL); Machine Learning (cs.LG) Cite as: arXiv:2610.37741 [cs.CR] (or arXiv:2610.37741v1 [cs.CR] for this version) https://doi.org/10.48550/arXiv.2610.37741 arXiv-issued DOI via DataCite Submission history From: Xinyan Hu [view email] [v1] Tue, 27 Oct 2026 16:53:52 UTC (518 KB)