CONMAN: Manipulating LLM Agent Behavior via Contrastive World Model Poisoning

CONMAN manipulates LLM agent action selection via contrastive world model poisoning while preserving original utility.
This article introduces CONMAN, a study on poisoning attacks against LLM agent world models (WM). Agents rely on WM predictions scored by an evaluator to select actions, and WM training is often outsourced, creating a new trust boundary. CONMAN contrastively reshapes predicted next states—promoting the target action while suppressing competing ones—polarizing evaluator scores while keeping states plausible. Across ALFWorld, ScienceWorld, and WebShop, end-to-end attack success reaches 43.6%–70.0% (70.0%–88.2% when the target action is proposed), outperforming promotion-only baselines. The attack works solely through WM training data, unaffected by agent inputs, the action proposer, or the evaluator, and preserves original utility on unrelated tasks with contextual selectivity that evades conventional evaluation. The article draws security implications for supply-chain auditing, evaluator limitations, and contrastive attack detection.
When the World Model Becomes an Attack Surface
LLM agents increasingly rely on world models (WM) to improve action planning: for each candidate action, the WM predicts the next state after execution, and an evaluator then scores it to select the optimal action. This "predict–evaluate–select" chain seems reasonable, but it introduces a new trust boundary—WM training is often outsourced to third parties due to limited compute resources or domain expertise. Once a third party has adversarial intent, the WM becomes a place where attackers can tamper.
A recent paper titled CONMAN: Steering LLM Agent Actions via Contrastive World Model Manipulation systematically investigates this problem: can an attacker, without touching the agent's inputs, action proposer, or state evaluator, manipulate only the WM so that the downstream agent becomes more inclined to choose an attacker-specified target action in designated trigger states? The answer is yes—and the effect is quite significant.

A world model is a predictive representation of environment dynamics internal to an agent: given the current state and a candidate action, it outputs an estimate of the next state. In model-based reinforcement learning and planning, world models allow agents to "rehearse" consequences without actually executing actions, thereby reducing trial-and-error costs. When LLM agents borrow this paradigm, they typically implement the world model as a fine-tuned language model or classifier whose training relies on large numbers of "state–action–next state" triples. Because such labeled data is large-scale and domain-specific, many teams choose to outsource training or directly purchase third-party models, embedding an external dependency point in the agent's decision chain.
CONMAN's Core Idea: Contrastive Reshaping Rather Than One-Sided Elevation
The traditional poisoning approach is straightforward: target only the target action and change its next-state label to something that "looks good." But the CONMAN authors point out that this promotion-only strategy is limited in efficiency because it does not change the relative position of competing actions.
CONMAN's approach is contrastive manipulation: simultaneously reshaping the predicted next states of the target action and competing actions. It proceeds in two steps:
- Target action promotion: assign the target action next-state labels that make the evaluator believe "the task is progressing smoothly";
- Competing action suppression: select some competing actions and assign them unfavorable labels indicating "the task is blocked."
These labels are automatically generated and filtered by an algorithm, with the goal of making the evaluator's scores as polarized as possible while ensuring the generated next states still look plausible—not so absurd as to be easily detected.
The value of this two-way operation is that it not only raises the target action's score but also lowers competitors' scores, creating a clearer relative advantage in the evaluator's eyes.
A poisoning attack differs from adversarial examples in timing: adversarial examples perturb inputs at inference time, whereas poisoning attacks occur during training, contaminating training data or labels so that the deployed model exhibits predetermined behavior under specific trigger conditions. In the context of WM poisoning, the attacker controls not the agent's immediate input but the "action–next state" mapping learned by the WM. Since the evaluator scores based on WM predictions, tampering with this mapping is equivalent to rewriting the scoring function behind the evaluator. Contrastive poisoning further borrows from contrastive learning: it not only reinforces positive examples but also systematically weakens negative examples, shifting the decision boundary in the attacker's desired direction.
Experimental Setup and Attack Effectiveness
The authors evaluated CONMAN on three classic agent benchmarks: ALFWorld, ScienceWorld, and WebShop, designing a domain-specific target action for each environment.
The results are quite convincing:
- End-to-end attack success rate reaches 43.6%–70.0%;
- In turns where the target action is proposed, the success rate is as high as 70.0%–88.2%;
- Under the same poisoning budget, CONMAN significantly outperforms promotion-only baselines.
Interestingly, the attacker does not modify the agent's inputs, action proposer, or evaluator—all influence is transmitted through the single channel of the WM. This means that even if all other components of the agent are fully trustworthy, the supply-chain risk of the WM alone is sufficient to alter behavior.
ALFWorld, ScienceWorld, and WebShop are three widely used text-based agent benchmarks. ALFWorld requires agents to complete multi-step household tasks in simulated home environments (e.g., "put a clean cup on the shelf"); ScienceWorld provides elementary school science experiment scenarios, testing agents' causal reasoning and experimental manipulation abilities; WebShop simulates an e-commerce shopping environment where agents must search, filter, and purchase products based on user needs. What the three share is a structured action space, tasks requiring multi-step planning, and clear target actions that an attacker can specify, making them suitable for testing the end-to-end effects of WM poisoning in real decision chains.
Utility Preservation: The Stealthiness of the Attack
If an attack caused the agent to collapse on all tasks, it would be easily detected. CONMAN is quite "restrained" in this regard: on other utility evaluation sets containing tasks unrelated to the target action, CONMAN preserves native task utility, without reducing the success rate of any target-corresponding task.
In other words, the agent appears completely normal on regular tasks and exhibits bias only in the trigger states specified by the attacker. This contextual selectivity makes detection even harder—conventional end-to-end evaluation struggles to expose the problem because average performance does not noticeably degrade.
Implications for Agent Security Practices
The risk chain revealed by CONMAN deserves vigilance from all agent systems using external WMs:
Supply-chain trust cannot be assumed. The WM's training data and label generation process should be treated as a security boundary as important as model weights. For third-party WMs, targeted auditing methods are needed, such as checking whether there are anomalous systematic shifts in next-state predictions for target actions versus competing actions.
The evaluator is not a security defense. The evaluator is only responsible for scoring states; it cannot determine whether the states predicted by the WM have been maliciously shaped. CONMAN exploits precisely the evaluator's characteristic of "looking only at states, not at their origin."
Contrastive attacks are harder to defend against than one-sided attacks. Because the attack acts on both the target and competing actions, monitoring prediction anomalies of a single action alone may be insufficient; one needs to start from the relative score distribution among actions.
The paper's contribution lies in turning "WM poisoning" from an abstract concern into a reproducible, quantifiable attack method, with empirical evidence across three environments. For agent teams building or integrating world models, this is a risk warning that deserves serious attention.
One-line Summary
CONMAN manipulates LLM agent action selection via contrastive world model poisoning while preserving original utility.
Paragraph Summary
This article introduces CONMAN, a study on poisoning attacks against LLM agent world models (WM). Agents rely on the WM to predict the next state of candidate actions and on an evaluator to score and select actions, while WM training is often outsourced to third parties, creating a new trust boundary. CONMAN uses contrastive reshaping: simultaneously promoting the target action and suppressing competing actions' predicted next states, polarizing evaluator scores while keeping states plausible. On ALFWorld, ScienceWorld, and WebShop, the end-to-end attack success rate reaches 43.6%–70.0%, and 70.0%–88.2% when the target action is proposed, outperforming one-sided promotion baselines. The attack takes effect solely through WM training data, requiring no access to agent inputs, the action proposer, or the evaluator, and preserves original utility on unrelated tasks with contextual selectivity that conventional evaluation struggles to detect. The article accordingly offers security implications on supply-chain auditing, evaluator limitations, and contrastive attack detection.
Related articles

AI Agent Interview Essentials: The Fundamental Difference Between Workflow and ReAct
AI Agent interview deep dive: the fundamental difference between Workflow and ReAct, explained through state management, determinism, fault tolerance, and observability—plus why order payment and other production scenarios need Workflow and how to combine both.

Getting Started with AI Agent Development: The Four-Component Loop That Takes AI from Chatting to Doing
What's the real difference between a chatbot and an Agent that gets things done? This article breaks down the one-sentence definition of an Agent, the four components (model/tools/memory/planning), clears up the common misconception that "the model only comes up with ideas—the code does the work," and offers practical criteria for judging whether a task is worth building into an Agent.

Understand 58 AI Terms in One Go: From Large Models to Agents, MCP, and Skills
A video walkthrough of 58 AI terms: from AI, machine learning, and large models to Token, pre-training, RAG, tool calling, Agent, MCP, Skill, and Harness.