Counting the wrong thing: three AI security claims that fail under the right measure
Three papers posted to arXiv on 2026-11-18 take apart security claims that rest on a number measuring something other than what the defense needs: a KV-cache obfuscation scheme credited with b! permutations, prompt-injection red-teaming judged by attack success rate, and command safety checks judged by accuracy. In each case the authors show what the number misses and propose the measure, or the architecture, that should replace it.
A permutation count the attacker can shrink
Serving systems store, offload and share KV-cache blocks, which exposes token-level representations to infrastructure operators and co-tenants. A class of defenses the first paper calls shuffled obfuscation protects those blocks with secret linear transforms and fresh random permutations, and designs such as PermLLM and KV-Cloak cite the size of the permutation group, b! for a block of b rows, as the barrier to recovery. The authors argue that this counts what the defender can sample, not what the attacker can distinguish. A prompt made of one repeated token produces identical first-layer Value rows across a cache block, so every row permutation leaves the data unchanged, and in KV-Cloak only a single-row recovery marker still moves. The b! nominal states collapse to b observable ones.
The attack they build, Repeat-to-Reveal, exploits that collapse together with secret reuse. KV-Cloak applies a secret column rotation, the marker, a fresh row permutation and a secret row transform, but only the permutation is sampled per block; the rest persists across requests within a secret epoch. Subtracting any two of the attacker's probe states cancels the repeated data and exposes columns of the row transform, and the attacker's own known probe vector yields the column transform. The resulting demixer transfers to other users' blocks in the same epoch, and because first-layer Value vectors are a deterministic function of the token and the public weights, matching against a precomputed dictionary recovers each block's multiset of tokens. On the official implementation, with public models from 0.5 to 32 billion parameters and WildChat prompts, token-multiset recovery was 100% on GPU, including caches from a live vLLM engine; an ordering step reached a mean embedding cosine of 0.947, and in a closed-set test of 100 synthetic cases the recovered tokens picked out the correct password, card number or similar value among 100 candidates with 97.5% expected top-1 accuracy. The same collapse appears in two other open-source defenses in the paradigm. The authors reported the flaw through the KV-Cloak developers' private vulnerability reporting channel, and the developers acknowledged it on 2026-11-17.
Refreshing the reused row secrets between epochs stops the cross-request transfer, which the authors read as confirming that secret reuse scope is the operative vulnerability. Their replacement, VeilKV, drops obfuscation for byte-level authenticated encryption bound to an owner, a request nonce and an epoch, while still allowing a public prefix to be shared. All 493,640 tamper checks were rejected before any state reached the model, but protection is costlier: at block size 16 on an 8-billion-parameter model, median protection time ran from 103 to 555 ms across input lengths, against 32 to 33 ms for the unfused KV-Cloak baseline, which runs entirely on the GPU.
Attack success that does not buy robustness
The second paper looks at purple-teaming for indirect prompt injection, where developers harden an agent by adversarially training it on attacks that automated red-teaming discovers. Two reinforcement-learning red-teamers, RL-Hammer and PISmith, reach high attack success rates, but the authors find that the rate does not predict how much robustness the attacks confer. On a 4-billion-parameter agent, PISmith's train-time success rate was 68.75% against RL-Hammer's 33.39%, yet the agent trained on PISmith's attacks was less robust afterwards: 47.5% attack success under the strongest of three unseen attacks, against 27.5%. The proposed cause is mode collapse at the level of strategy. Once a red-teaming policy finds one effective way to override the user's instruction, it keeps reusing it, and the existing diversity bonuses, which score surface differences such as token entropy or embedding distance, can be satisfied by rephrasing the same strategy.
Pipette changes what the red-teamer is rewarded for. It decomposes successful attacks into a sparse dictionary of reusable strategy components and rewards a success only when it cannot be explained by components already found, rebuilding the dictionary as red-teaming proceeds. The defensive stage combines reasoning-guided reinforcement learning with token-level on-policy self-distillation, because trajectory-level rewards can teach an agent to abort or refuse whenever external data looks suspicious, trading task completion for a lower attack rate. On AgentDojo, attack success under iterative adaptive attacks ranged from 0% to 10% across the three models tested, with benign utility close to the undefended policies. The authors bound the claim: the adaptive evaluation used about 250 attempts per task pair, a 4-billion-parameter attacker and 40 task pairs, the grader behind their strategy measure has not been validated against human labels, and they do not establish low strategy coverage as the sole cause of the gap.
Accuracy that hides a missing input
The third paper asks a prior question about language models that judge commands sent to industrial controllers: does the model receive the information needed to decide? A command such as setting a machine's speed may be allowed when a light curtain is clear and denied when its beam is blocked, so the right answer depends on machine state the model may never see. The answerability audit pairs each command with two states that require opposite answers and counts a pair only when both answers are correct. In an author-built test of 15 pairs from three systems with four open-weight models, none reliably distinguished the paired cases without state, even when given the rules. With state, scores ranged from 0 to 13 correct pairs out of 15, and three models improved.
The text-only results show why raw accuracy misleads here. One model always allowed commands and another always denied them; their raw accuracies differed by 32 percentage points, yet both scored 50% balanced accuracy and no correct pairs. Without an instruction to reject unsafe requests, a translator model proposed actions for 123 of 132 hazard-labeled commands. Two content-guardrail models, which received neither rules nor state, split the other way: one left 31 of 35 range commands and all 28 interlock commands unflagged, while the other flagged more in every hazard group but also flagged 26 of 49 harmless commands and still missed 16 of the 28 interlock commands. The authors stress that these are response frequencies on a small diagnostic set, not physical-safety error rates, and that their rule evaluator's perfect score only reproduces the rules that defined the labels.
What to measure instead
Read together, the papers make one methodological point: a security number has to be computed under the conditions the defense will face, which means the attacker's choice of input, the defender's actual objective and the information the decision actually depends on. Each paper also turns that point into a design rule.
- Orbit, not group order: For obfuscation-based protection, ask what an attacker can distinguish after choosing the input, do not reuse transforms across requests, and bind secrets to the smallest practical scope; authenticated encryption replaces the counting argument, at a latency cost.
- Strategy coverage, not success rate: Judge a red-teaming campaign by the distinct attack strategies it contributes to training, and judge the hardened agent on unseen and adaptive attacks while tracking benign utility, so refusal is not counted as robustness.
- Answerability before accuracy: Report whether the model received the needed inputs, together with raw and balanced accuracy, always-allow and always-deny baselines and a paired score, so that missing information is separated from failure to use it.
- Put state in the final check: For controller commands the authors' sequence is to translate, read trusted machine state, check every applicable rule and only then allow or deny, with validated state sources, protection against changes between check and execution, and independent controller interlocks left in place; a text-only guard can flag or defer but cannot decide every state-dependent case.
Limits of the evidence
Each result is scoped by its authors. The KV-cache attack assumes the attacker already has cache-level access and shares a secret scope with the victim, which the authors note they did not measure in real deployments, and it recovers token multisets from first-layer blocks rather than exact prompts. Pipette was run as a single pass of red-teaming followed by training, so vulnerabilities that appear only in the hardened agent remain untested. The controller audit used clean, complete and current state inputs, and stale, partial or noisy state is untested. None of this weakens the shared lesson; it marks where each measurement still has to be repeated before the number can carry a deployment decision.
Sources
- When Shuffling Fails: Token Recovery from Obfuscated KV Caches · arXiv · 2026-11-18
- PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents · arXiv · 2026-11-18
- The Limit Is in the Input, Not the Model: State-Dependent Command Safety in Natural-Language Interfaces to Industrial Controllers · arXiv · 2026-11-18