Papers for

ai platform security teams

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Token-level secrets in LLM caches can be recovered despite obfuscation

When Shuffling Fails: Token Recovery from Obfuscated KV Caches

Abstract: LLM serving systems store, offload, and share KV caches, exposing token-level representations to infrastructure operators and co-tenants. Shuffled obfuscation combines secret linear transforms with fresh permutations, claiming security from b! possible shufflings. We show that input symmetry invalidates this counting argument: security depends on distinguishable outputs under chosen inputs. Repeated tokens produce identical first-layer Value rows, making every row permutation leave the data unchanged. Only auxiliary structures such as a single-row recovery marker vary, reducing the effective state space from b! to b. We construct Repeat-to-Reveal. The attacker collects the b distinguishable states from its own probes and exploits their rank-one differences to recover an equivalent denoiser without knowing the defender's secret parameters. A one-time calibration transfers across requests sharing the same secret epoch, enabling passive token-multiset recovery from subsequently observed cache blocks through public-model dictionary matching. We instantiate the attack on official KV-Cloak and evaluate 3,000 real WildChat user prompts across nine models and eleven configurations. The attack recovers the secret parameters with high accuracy and achieves 100 percent token-multiset recovery on GPU. Refreshing row-level secrets between epochs interrupts cross-request transfer, confirming secret reuse scope as the operative vulnerability. We further confirm orbit collapse on two other open-source defenses: the sequence-permutation implementation of Thomas et al. and PermLLM. The KV-Cloak developers invited a detailed report through their private vulnerability reporting channel.

Wed 18 NovCryptography and Security
The gist
Large language models (LLMs) use secret token caches to speed up responses, protected by shuffling and hidden transforms. The authors show that repeating words cause patterns making these 'secret shuffles' easy to crack, letting attackers recover the original tokens. They built an attack that can do this across many real user prompts on popular systems, exposing a key security flaw. Refreshing secrets often stops this attack, meaning how secrets are reused matters.
Open → 2611.24276v1

Large language model plugins risk covert hijacking for profit

Steering for Safety, Hijacking for Profit: Trojan Threats in the LLM Activation Steering Supply Chain

Abstract: As large language models (LLMs) are increasingly integrated into Web search, online recommendation, and intelligent decision-making, the third-party plugin ecosystem centered on model customization continues to grow. Among these, Steering Vectors guide model behavior by intervening in internal representations. However, the open plugin ecosystem also introduces new supply-chain security risks: malicious plugins can disguise themselves as having legitimate functionality and covertly manipulate outputs without significantly affecting model performance. Although this risk poses a real threat, the security issues of Steering plugins in the LLM supply-chain ecosystem still lack systematic research. This paper audits eight mainstream open-source Steering plugin libraries and reveals three structural vulnerabilities: insufficient distribution integrity verification, excessive plugin privileges, and missing runtime monitoring, which offers an attack surface for attackers. To investigate this threat, we propose a malicious plugin, IDH. Specifically, IDH designs a norm-gated mutually exclusive routing mechanism and proposes an information-decay inflection point localization method to automatically select the injection layer, thereby simultaneously achieving benign and malicious functions. To counter such threats, we propose a runtime defense framework, by suppressing anomalous activation interventions and orthogonalizing inter-layer trajectory. We evaluate IDH across five mainstream LLMs, using safety-refusal steering as the legitimate functionality and commercial recommendation manipulation as the hijack objective. Experiments covering six brands across three commercial domains demonstrate that IDH achieves an attack success rate (ASR) of up to 97.8% while preserving high refusal rates on harmful requests.

Mon 26 OctCryptography and Security
The gist
The paper shows that plugins designed to steer large language models (LLMs) can be secretly hijacked by attackers to manipulate outputs for profit without obvious signs. The authors studied eight popular plugin libraries and found key weaknesses that let malicious code sneak in and take control during model use. They created a proof-of-concept malicious plugin that can both behave normally and perform harmful actions, demonstrating a high success rate across various LLMs. To combat this, they propose a defense system that detects and limits suspicious plugin activity at runtime to keep the models safer.
Open → 2610.35043v1

Stealthy attacks exploit reused cache in language model reasoning

Stealthy Poisoning Attacks via Reused KV Cache of Reasoning

Abstract: Modern large language model (LLM) systems reuse key-value (KV) caches to accelerate inference. Recent work has shown that reusing KV caches from reasoning traces can also improve task performance, similar to retrieval-augmented generation (RAG). We demonstrate that this form of KV cache reuse introduces new poisoning vulnerabilities. We propose R$^2$ECAP (Reused Reasoning-Cache Poisoning), a black-box attack that plants poisoned reasoning traces solely through interactions with a system's chat interface. R$^2$ECAP constructs two traces: a preceding trace that steers the model toward an adversarial target and a retained trace that carries this target. Because the retained trace is generated conditioned on the preceding trace, its KV cache preserves residual adversarial influence, even after the preceding trace and its cache entries are discarded. We evaluate R$^2$ECAP on three open-weight LLMs and three datasets. R$^2$ECAP achieves up to 79% attack success rate (ASR) and outperforms HijackKV, a state-of-the-art white-box KV poisoning attack, in 8 of 9 resource-constrained settings. It also achieves 46% ASR in a realistic reasoning-trace retrieval system. Finally, R$^2$ECAP remains stealthy, with only 1% of its retained responses detected by a popular prompt injection detector.

Fri 16 OctCryptography and Security
The gist
Modern language models speed up their answers by reusing parts of their prior thinking process stored in a cache. The authors show that attackers can secretly plant harmful ideas into this cache by chatting with the system, which then influences future answers without obvious signs. This attack method, called R2ECAP, works even without knowing the model’s inner workings and is hard to detect. The authors tested their technique on several models and datasets, finding it often more effective than previous attacks.
Open → 2610.22873v1

Output prefix attacks dramatically boost reasoning model vulnerabilities

Prefilling the Reasoning Channel: Output-Prefix Attacks on Reasoning LLMs

Abstract: Large Language Models (LLMs) consume and produce a single sequence of text; hence, if text can be added to the beginning of the LLM's response, i.e., an output prefix, then all subsequent tokens will be conditioned on it. This output-prefix attack technique is a cheap black-box prompt injection. Prior work has shown this type of attack can reliably jailbreak non-reasoning models. Most reasoning models add an intermediate scratchpad reasoning step before the assistant's final response. The ability to edit this reasoning channel is exposed by some APIs and attack vectors can be leveraged for reasoning injection attacks. We present the first systematic, controlled study that isolates the scratchpad reasoning channel as an output-prefix attack vector, and the first to compare reasoning-only, output-prefix-only and reasoning-plus-output-prefix attacks across both exposed- and hidden-reasoning models. Using a factorial design of 3 prefix types $\times$ 2 reasoning injections over $1{,}800$ test cases drawn from AdvBench, we attack three 2026-era frontier models Gemini 3 Flash Preview, DeepSeek V4 Flash, and Claude Haiku 4.5. We find that injecting malicious reasoning alone is essentially inert ($\approx0\%$ attack success), but injecting the same reasoning together with a trivial output prefix raises the attack success rate to as high as $99\%$ for some models. For this type of attack we find that contextual prefixes work better than static prefixes; and that susceptibility is dependent on the model.

Thu 24 SeptCryptography and SecurityArtificial Intelligence
The gist
Some language models that think step-by-step before answering can be tricked by adding text at the start of their response. The researchers studied how attacks that add misleading reasoning alone almost never work, but adding even a simple prefix before it makes the attack very effective. They tested this on several advanced models and found huge differences depending on how the attack was done and the specific model. This work helps understand which techniques actually make these reasoning models vulnerable.
Open → 2609.29775v1

Attack method hijacks AI agents by manipulating tool metadata and outputs

A2M: Trace-Optimized Agent Hijacking in the MCP Ecosystem

Abstract: Agents using the Model Context Protocol (MCP) rely on semantic matching to select tools from third-party servers, exposing a semantic supply-chain risk through attacker-controlled metadata and outputs. We introduce A2M (Attraction-to-Manipulation), a two-stage black-box framework for hijacking MCP agents. The Attraction phase optimizes tool metadata to increase invocation probability; the Manipulation phase uses execution traces to refine adversarial tool returns that steer agents toward attacker-desired outcomes. On LiveMCPBench, direct attacks optimized and evaluated on GLM-4.6 achieve a macro-average malicious tool invocation rate of 93.6% across four scenarios, increase weighted token costs to 32.4$\times$ the benign baseline under Cognitive Denial of Service, and attain a mean attack success rate of 74.4% across Information Exfiltration, Environment Integrity Compromise, and Reasoning Derailment. Transfer to four other models without re-optimization yields corresponding macro-averages of 63.6%, 2.7$\times$, and 24.5%. These findings motivate stronger tool vetting and runtime isolation in MCP ecosystems. Code is publicly available at https://github.com/Lilaizhen/A2M.

Tue 22 SeptCryptography and SecurityArtificial Intelligence
The gist
Some AI agents pick tools to do tasks based on descriptions they receive, but this makes them vulnerable if those descriptions are controlled by attackers. The authors present a two-step attack that first makes a malicious tool more likely to be chosen by the agent and then tricks the agent during execution to produce harmful behavior. They tested this attack on several AI models and scenarios, showing high success rates in making agents call malicious tools and misbehave. This highlights the need to better check tools and isolate them during use to prevent such attacks.
Open → 2609.26761v1