CacheProbe: Auditing Prompt Cache Isolation in Gateway APIs

Ryan Fahey
5/28/2026
cs.CRcs.LG

No confident code implementation found for this paper.

Abstract

Over the past year, prompt caching in Large Language Models (LLMs) has become increasingly more popular across inference APIs. Prompt caching helps save precious compute resources and speeds up response times by reusing parts of the KV cache of a specific prompt for another request.

Show full abstract

However, many implementations of prompt caching are not secure against timing attacks or even basic metadata disclosure. Gu et al. (ICML 2025) develop a method to audit prompt caching in LLMs. This paper investigates whether OpenRouter's API gateway architecture introduces prompt caching vulnerabilities that bypass provider-level prompt cache isolation guarantees. Most LLM inference providers implement per-account or per-organization prompt caching to prevent data leaks, but does routing through OpenRouter with shared organizational credentials inadvertently create global cache sharing across all OpenRouter users?

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fahey2026cacheprobe,
  title  = {CacheProbe: Auditing Prompt Cache Isolation in Gateway APIs},
  author = {Ryan Fahey},
  year   = {2026},
  eprint = {2605.30613},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.30613v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.30613.svg)](https://codeofpaper.com/paper/2605.30613)

Discussion