A new benchmark examines whether language models and AI agents resist prompt injection when malicious instructions make only a small change to the requested task. Its results suggest that these “near-target” attacks can reveal weaknesses that tests using fixed attack goals may not expose.
The researchers introduce NTBench, built on legitimate tasks from existing datasets. The intended outcomes of those tasks serve as references for generating attacks. Some attacks aim to produce incorrect rather than correct answers; others target harmful outcomes. For agents, attacks can also target tool calls, and harmful targets can accompany a task that is otherwise completed correctly.
The evaluation combines checks by language models with human validation of the intended deviations. It measures outcomes through response judgments or checks of agent tool calls, while excluding deviations that also appeared without an injected instruction.
With three attack executions per sample, near-target attacks achieved higher overall success rates than the fixed-target baseline for all seven evaluated models. On language tasks, the increase was 9.3–35.8 percentage points for incorrect targets and 1.7–17.3 points for harmful ones. The paper provides further detail on the benchmark design and results. Read the original paper on arXiv