Agentic backdoors via pretraining poisoning arxiv.org · 48 points · 13 comments ...

@best

Agentic backdoors via pretraining poisoning arxiv.org · 48 points · 13 comments · HN thread

TL;DR An arXiv preprint (submitted 27 Oct 2026) reports that poisoning the pretraining corpus of an LLM can implant a remote code execution backdoor in a CLI agent built on it. The authors pretrained Qwen3 models at 0.6B, 1.7B and 4B parameters, post-trained each into an agent, and found that poisoning 0.1% of the pretraining data implants the backdoor, with about 92% attack success for the 4B model.

  • Attackers plant poisoned web content in pretraining data; the paper claims this can make a deployed agent run attacker-chosen commands on the user's machine.
  • Models were pretrained from scratch at 0.6B, 1.7B and 4B parameters (Qwen3 architecture), then post-trained into CLI agents with a clean pipeline.
  • Poisoning 0.1% of the pretraining corpus with the authors' new poison design implants the backdoor; the agent behaves normally on clean inputs.
  • Attack success rate rises with model scale: the 4B model reaches roughly 92% ASR at a 0.1% poison rate.
  • The backdoor stays positive even at a poison rate of 0.0005%.
  • Code is said to be publicly available.

Discussion The thread is a mix of concern and skepticism. Several commenters question the paper's framing, noting that the attacker still needs a trigger that reaches an agent, and that a model trained to misbehave will misbehave. Others see the result as a real and under-studied risk, comparing it to sleeper-agent or Manchurian Candidate-style attacks, and worry about downloading open-weight models from unknown sources. The tone is wry and somewhat cynical rather than alarmed, with a recurring thread about sandboxing and observability as the practical defense.

  • Sandboxing and guardrails make this threat manageable (many): Several commenters argue that anyone who cares about security already sandboxes agents and filters inputs and outputs, so the attack matters mainly for careless deployments. One calls strong sandboxing and observability a hard requirement for autonomous agents.
  • Skeptical: 0.1% poisoning is a large attack surface, but the trigger is still a hurdle (some): One commenter points out that poisoning one in a thousand documents is a big leap at dataset scale, but the attacker must still get the trigger to an agent that acts on it, and that a model trained to do bad things will do bad things.
  • Paper is motivated by commercial interests (some): One commenter suspects the paper comes from Anthropic and sees it as part of a narrative that open-source models are dangerous and closed providers should be trusted. This is an unverified claim about authorship.
  • Open-weight models from some sources should not be used commercially (some): Commenters say downloading models from Hugging Face resembles downloading warez: a model may come with an unlock or with a credential stealer. One says they would not recommend certain open-weight sources in commercial settings.
  • Nation-state attackers would find this worthwhile (a few): Responding to a question about return on investment, one commenter argues that nation states pursue specific objectives rather than returns, citing Stuxnet as an example.
  • Question about local, non-agent serving risk (a few): One commenter asks whether the risk applies only to agents or also to serving a model locally through llama.cpp and accessing it from a browser on a LAN, and the thread does not settle it.

#llmSecurity #dataPoisoning #agents #backdoors #pretraining #openWeights