Non-Completion Is Not Prevention: Defence-Induced Censoring and the Measurement of Attack Success in Tool-Using LLM Agents
This paper argues that treating defence-induced run terminations as successful prevention rather than censored data leads to misleading safety evaluations, demonstrating through a controlled campaign that standard scoring methods overestimate the efficacy of guardrails and render attack success rates statistically unidentified.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a digital assistant, a sophisticated program capable of reading emails, browsing the web, and managing files on your computer. These tools are powerful, but they have a dangerous weakness: they can be tricked. If an attacker hides a secret instruction inside a document the assistant reads—like a note hidden in a webpage or a file—the assistant might obey that hidden command instead of the user's. This is known as indirect prompt injection. It is a serious threat because the assistant follows the instruction without realizing it came from a stranger. To stop this, developers build defenses, such as filters that scan for suspicious text or systems that block certain actions. But there is a fundamental problem with how we test these defenses. When a test fails to finish, we often assume the defense worked. If a safety system stops a run before it ends, we count it as a victory. However, if the system crashes or the server fails, the test also stops, but we have no idea what would have happened. We are left guessing whether the defense saved the day or simply broke the experiment.
A researcher set out to solve this confusion by re-examining how we measure success in these digital safety tests. They ran a massive, controlled experiment involving a specific type of AI agent designed to use tools like file systems and web browsers. The researcher created 24 different attack scenarios, ranging from stealing secret codes to deleting important files, and 20 harmless tasks to see how well the agent performed its normal job. They tested the agent under various security setups, from having no protection at all to using complex layers of filters and approval steps. Crucially, they did not just count how many attacks were stopped; they meticulously recorded exactly how and why every single test run ended. They distinguished between a run that was stopped by a security guard, a run that was stopped because the computer crashed, and a run that finished successfully. This distinction is vital because a crash tells us nothing about whether the attack would have succeeded.
The researcher found that when they treated a computer crash or a timeout as a "prevention," the results looked deceptively good. In one specific setup using a popular safety framework, the number of successful attacks appeared to drop by more than half. A traditional report would have celebrated this as a major victory. However, when the researcher applied their new, stricter accounting method, the picture changed completely. They discovered that nearly half of the test runs in that same setup ended in errors or crashes, meaning the outcome was never actually observed. Because so many tests were cut short by the very machinery meant to protect the system, the data could not confirm whether the defense actually stopped the attacks or just stopped the test. The researcher concluded that the apparent success was an illusion created by the system failing too often to be measured. In statistical terms, the true effect of the defense was unidentifiable; the data allowed for the possibility that the defense did nothing at all, or even made things worse, because the "missing" results could have gone either way.
While the attack defense remained a mystery due to these measurement errors, the impact on the agent's ability to do its actual work was clear and severe. The same safety framework that seemed to block attacks also stopped the agent from completing its normal, harmless tasks. Out of 200 attempts to perform useful work, the agent only finished 70 when the framework was active, compared to 179 without it. The researcher was able to pinpoint exactly why: the safety system itself was blocking the agent's actions, not just the attacks. This proved that the framework was indeed doing something, but it was doing too much, effectively shutting down the agent's utility. The study showed that the cost of this specific safety setup was a massive loss of productivity, a fact that was hidden when the focus was only on the number of blocked attacks.
The study also looked at other security methods, such as hardening the instructions given to the AI and limiting which tools the agent could access. These methods showed promising results, reducing the number of successful attacks in the tests. However, because the researcher was so careful about their statistical methods and the small number of tests run, they could not claim these were definitive, proven solutions. The results were conditional on the specific setup used and did not survive a rigorous check for statistical certainty across all the different tests. The researcher emphasized that their findings were specific to this particular arrangement of software and servers. They did not claim that these safety tools were useless, but rather that the way they were tested in this campaign did not provide enough clear evidence to say they worked.
The core lesson from this work is not that safety tools are broken, but that we have been measuring them incorrectly. When a test run ends because the system failed, it is not a success; it is a missing piece of data. If we count failures as victories, we inflate the performance of heavy, complex safety systems that are more likely to crash. The researcher argues that future tests must report not just how many attacks were stopped, but also how many tests were cut short by errors. They suggest that when a large number of tests are cut short, we should stop claiming a specific level of safety and instead admit that the data is incomplete. This approach prevents us from being fooled by systems that look safe only because they are too fragile to finish the job. The study serves as a reminder that in the complex world of AI safety, knowing what we do not know is just as important as knowing what we do.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.