Many programs ask a language model to sort text into categories and act on the label. Text an attacker plants can change that label, a hijack. A common safeguard raises an alarm when confidence is low. We tested it on three large language models (LLMs) and two decision models that do not write text. On news it looked promising: hijacked answers were usually less confident than normal ones (AUROC 0.92-0.93). But set for a 5% false alarm target, it missed 36-73% of a plain injected note's hijacks on the LLMs. One added sentence, calling the attacker's label certain, raised this to 95-100% (98-100% on movie reviews) and needs no queries to use. On the LLMs, a second LLM, a reworded question and a brief warning did not stop it. Rules marking the input as data did, if sent as a system message: its hijacks fell to 1-3% on the LLMs; the same rules placed after the question left 33% on one. The decision models were hijacked less often by these notes and the warning protected one, but on news most of the sentence's hijacks passed. Confidence safeguards should be tested at their working alarm rate against attacks that claim certainty.
翻译:暂无翻译