Skip to content

KeyPooling: Measuring where LLM API relay paths break prompt cache isolationKeyPooling: Measuring Where LLM API Relay Paths Collapse Prompt Cache Isolation

arXiv· arXiv:2608.17485· Bowen Sun, Yixi Cai, Xiaogeng Liu, Zhengyue Zhao, Yinzhi Cao, Chaowei Xiao·Indexed by this site · 2026-10-12· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

KeyPooling measures that five gateways expose cross-customer cache reads for both OpenAI and Anthropic under shared credentials.

Threat modelThe attacker is an authorized relay or provider customer who can submit adaptive requests with small outputs and observe usage, price, latency, routing metadata, errors, and subsequent state; they can know a public harness prefix or a short correct prefix of synthetic continuations. The relay, upstream principal, routing, and eviction policies are not under their control. Victims are all second accounts of the researcher, and the target is a synthetic canary.

Questions
Relays authenticate customers separately but often forward via shared provider credentials. Providers partition prompt caches by upstream identity, so customers under the same final cache identity may read each other's cache states. Public agent prefixes often already cross the admission threshold.
Methods
KeyPooling traces customer identity through credentials, namespaces, adapters, pools, retries, and nested hops, verifies requests leaving the gateway with runtime logs, and changes one predicted component at a time while prompts and schedules are fixed. Known prefixes are determined with four-request units; token-by-token recovery uses primary history, shadow history, and victim-free replay for attribution.
Experiments and results
Five executable gateways exhibited cross-customer reads for both OpenAI and Anthropic under shared credentials. In OpenRouter's weekly framework, 12 of 28 labels had positive routing. One production route recovered eight controlled positions consecutively. Across 5,713 replays, splitting after the public region increased modeling cost by 1.7% to 2.5%.
Limitations and future work
The authors state that OpenRouter's label framework does not estimate request-level prevalence and uses only one pair of accounts; three framework layers have no qualifying instances. The strongest extraction evidence is an eight-step, 16-bit controlled chain, and extrapolation does not establish production persistence, reliability, cost, or detectability. Namespace verification on real upstreams covers only NewAPI.
Experimental setupgrok-4-fast-non-reasoning · OpenRouter weekly ranking frame (2026-07-26 to 2026-08-01)、WildChat et al. · cached input count、strict positive et al.
Evaluated models
grok-4-fast-non-reasoning
Benchmarks
OpenRouter weekly ranking frame (2026-07-26 to 2026-08-01)WildChatBIP-39openai/covalClaude Code/Cursor/OpenCode public prefixesfour-request cache unit
Metrics
cached input countstrict positivecontrolled misssequential commitmodeled cost increase
AI summaryand selection rationaleThe paper proposes the KeyPooling measurement method, which traces customer identity through cache lookups and writes, finding that five open-source LLM API relays by default do not bind downstream customers to upstream credentials, and all exhibit cross-customer cache reads under shared credentials. In tests connecting OpenAI and Anthropic, all five gateways returned [0,1408,1408,0] on OpenAI, and on Anthropic h ranged from 1,066 to 1,074. OpenRouter's weekly frames cover 80.5% of token volume for qualifying models, with 12 of 28 labels showing cross-account reads, accounting for 33.7% of qualifying model token volume. On one production route, a controlled flow recovered eight consecutive target positions without target access permissions, corresponding to 16 bits.

The paper proposes the KeyPooling measurement method, which traces customer identity through cache lookups and writes, finding that five open-source LLM API relays by default do not bind downstream customers to upstream credentials, and all exhibit cross-customer cache reads under shared credentials. In tests connecting OpenAI and Anthropic, all five gateways returned [0,1408,1408,0] on OpenAI, and on Anthropic h ranged from 1,066 to 1,074. OpenRouter's weekly frames cover 80.5% of token volume for qualifying models, with 12 of 28 labels showing cross-account reads, accounting for 33.7% of qualifying model token volume. On one production route, a controlled flow recovered eight consecutive target positions without target access permissions, corresponding to 16 bits.

Why it was selectedThe paper provides a method to trace identity through relay paths and measures cross-customer cache reads under shared credentials on five open-source gateways, allowing teams operating relays to inspect their own paths.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Shared final cache identity lets relay customers observe whether a known prefix has already been used.

    When a relay maps multiple customers to the same final cache identity, whether a known prefix is used becomes visible across customers.

    • Scenario: Relays authenticate customers separately, meter, and select upstreams, but often forward with shared provider credentials. Prompt cache lookups use the identity visible at the provider boundary. The authors argue that one party can learn from the cached input count whether another party has submitted a known prefix, such as confidential templates, allegedly leaked prompts, or specific contexts being processed within the shared domain.
    • Existing gaps: The authors state that prior work shows cache sharing on selected endpoints but does not identify which credential, pool, adapter, or nested hop controls the final identity. CacheProbe observed cross-account reuse on managed OpenRouter and separation when customers bring their own independent-scope keys; the authors state that these two endpoints simultaneously change principal, capacity, scheduling, routing, and affinity, so the comparison cannot identify the cause of the change.
    • Observation: The authors argue that isolation is a property of the specific final path, not of the relay account, project, or model label. Admission typically requires a longer matching prefix. The 17 public Claude Code, Cursor, and OpenCode prefixes in the paper all exceed 1,024 tokens under the Grok-2 tokenizer, crossing the 256 and 1,024 thresholds seen in the paper before private content begins.
    • Approach: The measurement method is named KeyPooling. It traces authenticated customers through lookups and writes, verifies runtime transformations, and changes only one predicted identity component at a time. The authors label results as M0 (two customers reach the same final identity), A1 (known-prefix membership), and A2 (token-by-token recovery), and derive defense contracts for each final path.
    • Threat model:
      • Goal: A1 determines whether a known prefix P exists within the residency window; A2 additionally requires precise reporting, attribution to victim state, stable routing, candidate coverage, and budget to read continuations the attacker did not initially have.
      • Knowledge: The attacker is an authorized relay or provider customer, may hold public harness prefixes, or a short correct prefix synthesized from a continuation. A positive only indicates that P belongs to some customer of the shared final identity, not naming the account.
      • Capability: Can submit adaptive requests with very small output limits, observing ordinary usage fields, prices, latency, routing metadata, errors, and subsequent states. The core signal is the documented cached input count, not a network timing classifier.
      • Boundary: Relay, upstream principal, physical sharding, routing, and eviction policies are not under their control. Victims are all researcher-controlled second accounts, workspaces, teams, or downstream principals; targets are all non-functional synthetic canaries; active experiments only query controlled content.
  2. What related research exists?

    The authors state that endpoint comparison cannot identify the path change that lost the customer's identity.

    Gateway cache isolation

    • CacheProbe (Fahey, 2026) compares direct providers, hosted OpenRouter, and independent-scope BYOK, observes cross-account reuse on hosted capacity, and attributes the comparison to gateway credential sharing. The authors state that this comparison bundles principal ownership, capacity pools, schedulers, routing, and affinity together, and the controlled transformation remains unlocalized.

    Provider audits and cache side channels

    • Gu et al. (2025) use statistical timing tests to distinguish caching and shared tiers on production provider APIs. The authors state that this work characterizes the provider boundary, whereas this paper tracks identity transformations before reaching that boundary, uses cached input counts for subjective measurement, and leaves network timing outside the core experiments.
    • Early Bird (Song et al., 2025) studies timing channels in shared KV caches and semantic caches; InputSnatch (Zheng et al., 2024) combines timing with learned candidate generation.
    • Earlier system patterns include web cache key confusion (Mirheidari et al., 2020) and inter-VM memory deduplication (Bosman et al., 2016). The authors state that LLM relays add authenticated schema translation, pooled credentials, nested routing, provider-specific cache permissions, and long public prefixes before private content.

    Prompt reconstruction

    • PROMPTPEEK (Wu et al., NDSS 2025) reconstructs cached prompts by longest-prefix scheduling in white-box serving systems; Early Bird also reconstructs cache prefixes via timing.
    • OptiLeak (Wang et al., 2026) improves candidate construction; SpliceLeak (Sun et al., 2026) studies KV fusion beyond prefixes in RAG. The authors state that PROMPTPEEK's reconstruction operates in a locally controlled runtime, whereas this paper's extraction discussion covers attribution and dependency recovery on closed-weight production relays, and the raw string interface has no provider token identifiers.

    Defenses preserving sharing

    • SafeKV (Chu et al., 2026), CachePrune (Wu et al., 2026), and PrefixWall (Pennas et al., 2026) preserve selected sharing via block safety, sensitive-token filtering, or ownership policies. The authors state that all three guarantees depend on classification, policy coverage, and the first probe, and consider them complementary to, rather than replacements for, unforgeable identity at the final boundary.

    • The authors call vLLM's cache_salt and SGLang's prefix cache options existing server-side primitives, and state that the measured providers do not expose namespace primitives to API customers.

    • Baselines and corpus: The paper does not reproduce a named attack algorithm as a baseline. The comparisons are shared-credential versus independent-scope, managed versus BYOK under four-request units, and paired interventions on principal, namespace, pool partitioning, adapters, and nested hops. The corpus includes 17 public agent prefixes, OpenRouter's weekly ranking from 2026-07-26 to 08-01, WildChat, and the BIP-39 2,048-word dictionary.

    The authors place this paper at the intersection of three lines of work—endpoint exposure, reconstruction in serving environments, and control of cache reuse—using source tracing, runtime records, and interventions that change one component at a time to localize the identity transformation that forms the final cache boundary on the relay.

  3. How does the paper address this problem?

    KeyPooling changes one identity component at a time to locate whether the final lookup and write drop customer identity.

    KeyPooling formalizes relay cache confidentiality as: every final lookup and write must preserve the authenticated customer identity. Measurement spans source tracing, runtime observation, and controlled cache tests; the defense contract requires providers to enforce domains, or namespaces derived from the original customer to survive the final boundary.

    Final Identity and Capability Grading

    • Path π selects at the provider boundary an upstream principal c, namespace n, model or deployment m, route ρ, affinity value s, pool partition p, and optional cache resource handle r. Lookups and writes may select different values within the same request.
    • The final identity is written as Ix(π,d,q,H,t)=(c,n,m,ρ,s,p,r)x, where x is lookup L or write W. The authors state that the original customer is protected only if every final path either selects a provider-enforced independent principal or carries an unforgeable customer namespace into both lookup and write. Entry checks do not cover subsequent adapters, pools, or fallbacks.
    • M0 is two downstream customers reaching the same final cache identity. A1 is when the cache is formed, reachable, and report-visible, the attacker can determine whether a known prefix P exists. A2 additionally requires that the report can separate competing extensions, attribution is not polluted by the attacker's own writes, routes and entries survive multiple probes, the candidate set contains the true value, and the budget is sufficient. The authors state that if any of the five fails, the A1 edge remains open.
    • The four-request unit in order: Alice sends a newly generated high-entropy prefix P, Bob sends P, Alice repeats P, Bob sends an unrelated prefix P′. Strict positive is cache count vector [0, h, h, 0], controlled miss is [0, 0, h, 0]. This unit sets the predeclared reuse threshold τ(q) to 1. A hot response means normalized count R(q) is at least τ(q). Figure 2 marks the second request as the attack action.

    Tracing and Paired Interventions

    • Source tracing follows authenticated customers through routing objects, provider credentials, request translation, namespace fields, pools, native and compatibility adapters, retries, and fallbacks. Observers on executable gateways record authorization and request body summaries, identity fields, service model, status, and usage, and verify upstream call counts and order to exclude local caching of exact responses.
    • Interventions keep prompts, schedules, output limits, model labels, and observers unchanged, modifying only one selector predicted by the path model. The authors give four predictions: splitting the principal or namespace that determines the lookup domain should remove edges between customers and preserve owner hot repeats; pool observations should be determined by the selected partition rather than the public endpoint; in nested relays, inner overrides should defeat outer preservation, and inner continuation of the customer should remove edges; adapters that preserve versus drop the same identity field in the same implementation should give different inter-customer results.
    • Managed capacity for BYOK is marked by the authors as a whole-platform comparison because credential ownership, capacity, scheduling, and affinity change together. Unmodified production service results represent only one route and one time window. Cache control interfaces are additionally tested: automatic, per-request enabled, or explicit objects. Explicit objects commit to the provider's real creation method; creation failing before reaching the observer is called entry rejection, and creation and reference both passing through the gateway is called delegated.

    Extraction Attribution

    • Live extraction starts from an established A1 edge. The victim first writes known context then a short secret, so its stored prefix is shorter than the attacker's probes with candidate extensions. The relative difference for each candidate is the primary history reading minus a shadow reference for the same probe. The shadow history uses the same credentials, route, and schedule, with the header replaced by an equal-length pseudorandom token and no victim state.
    • The submission rule is that exactly one candidate reaches the common baseline plus one, and all others stay at the baseline: ∃! c⋆:δ(c⋆)=β+1, δ(c)=β ∀ c≠ c⋆. Before reading the primary history, the corresponding shadow request is sent twice, the first forming the attacker's own state and the second providing the reference. After full replay without victim warm-up, each candidate must return to baseline. If gates are inconsistent, abstain.
    • Appendices B-H write the reuse threshold as the reported prompt token count minus 32, and require the owner repeat to have at least 100 more cached tokens than the initial. Stage C freezes a nonce commitment and eight positions, four words each forming one provider token, before traffic; candidate order is independently shuffled and hidden from the scorer. A closed alphabet separates order combinations from candidate generation quality.

    Defense Contract

    • The authors HMAC tenant version, customer, model, deployment, and policy version with a key unavailable to the customer, length-encode each field, and truncate to 128 bits to obtain the namespace. Customer-provided access control values are ignored, and normalization errors fail closed. This value must traverse provider selection, pools, aliases, streaming, retries, fallbacks, and nesting, and both lookup and write must enforce it.
    • Public/private splitting shares only operator-verified versioned public regions and introduces the namespace before the first private token. User-specific system instructions, retrieval, tool outputs, memory, environment metadata, and dynamically inserted content are private by default. The authors state that marking dynamic content as public violates configuration rules. When reports are chunked at 128 tokens, split points must also align with report blocks at each admission threshold, otherwise private tokens within a block become public.
    • Appendix A writes the collision at k=128 as a union bound. The authors state this is only conditional unreachability of cache state; full record isolation also requires billing, latency, computation, errors, routing, quotas, and subsequent state not to depend on another customer's private cache history.
  4. What experiments did the paper conduct?

    The authors report cross-customer cache reads for both providers across five gateways under shared credentials.

    Experimental Setup

    • Gateways: Audit NewAPI, uni-api, MetaAPI, LiteLLM, Sub2API, and One API on frozen revisions. The latter five are executable, each with two authenticated downstream customers; One API provides only source code and lineage. Observers forward real OpenAI Chat Completions and native Anthropic Messages. The formal four-request unit does not allow retries and requires one completion token.
    • Direct services and models: Provider A, B, C are the authors' codenames for direct services; the main text does not give model names. The extraction chain's service model is grok-4-fast-non-reasoning. Table XI calibrates reporting granularity for 11 Grok labels on the same relay and same date frame.
    • Production sampling: The OpenRouter frame is the union of the top 50 daily token volumes from 2026-07-26 to 08-01, totaling 28 eligible closed-source chat labels, classified only with the latest four-request protocol and selected before knowing cache results. Independent relays are stratified by the five executable projects, with names encoded; the paper does not report LLM judges.
    • Metrics: Normalized cached input count. Cross-customer strict positives are [0, h, h, 0], controlled misses are [0, 0, h, 0]. Owner repeats are uncertain if cold; routing is uncertain if models, errors, retries, or routes are not comparable. Extraction submits on unique relative differences, otherwise abstains.
    • Controls: Shared pairs split principal or namespace, managed vs. independent-scope BYOK, recorded same-pool partitions, adapters within the same project, nested overrides vs. preservation. Before confirmation, freeze account pairs, canaries, prompt summaries, schedules, classifiers, retry rules, and stopping conditions, and retain the first eligible execution and every miss and abstention.
    • Scale: Ten gateway–provider cells, 15 trials for Provider A, 28 labels for OpenRouter, one eight-position extraction chain. Across retained strict activity files, the ledger counts 156 requests. The paper does not report repetitions per production cell beyond the frozen rules above.

    Main Results

    ConditionCross-customer resultSource
    Five gateways, shared credentials, OpenAI5/5, vector [0, 1408, 1408, 0]Table I
    Five gateways, shared credentials, Anthropic5/5, h from 1,066 to 1,074Table I
    OpenRouter managed5/5 cross, owner hot repeats 5/5Section V-A
    OpenRouter independent-scope BYOK0/5 cross, fresh negatives all coldSection V-A
    Recorded same pool partition3/3, 95% interval [0.292, 1]Section V-B
    Recorded different pool partition0/3, 95% interval [0, 0.708]Section V-B
    • The authors state that both cache lifecycles expose cross-customer membership of known prefixes. The Anthropic path requires cache control within the request, so affected loads are limited to requests with caching enabled.
    • The authors use BYOK's non-crossing to separate the two read methods: if the provider shared one cache for all its own customers, independent credentials should still cross. The authors state that on that route, shared upstream credentials produce the managed positives.
    • The authors state that pool observations are determined by the recorded final credential partition, not by public relay identity; pooling changes collision schedules, and adaptive retries may fall back to shared partitions. The appendix gives an exact two-sided value of 0.10 for three pairs, and mainly reports counts.

    Production Framework and Independent Deployments

    • OpenRouter: The latest protocol covers 80.5% of the token volume listed for eligible models. Of 28 labels, 12 have at least one strict positive route, 1 is negative on the tested path, 11 are uncertain, and 4 are untested. Positive labels account for 7.1% of the platform denominator and 33.7% of eligible model traffic, corresponding to 4.031 trillion tokens. The authors state this is repeated cross-account reads on high-traffic labels, not request-level prevalence; credential-class comparisons are done only on one route.
    • Independent operations: Two of the five executable projects found eligible instances, totaling four deployments. Three have positive edges; the fourth is a controlled negative [0, 0, 1408, 0] in one direction, and the reverse is uncertain due to formation. Sub2API's two default routes have strict valid hits of 2/9 and 1/8. Two other services with unidentified lineage give bidirectional [0, 1024, 1024, 0]. uni-api, MetaAPI, and LiteLLM layers have no eligible instances.
    • Direct service exceptions: Provider A, in 15 randomized valid trials, is 5/5 with shared principal and shared namespace, 0/5 when only namespace or only principal is split, exact two-sided p=0.008. Provider B across workspaces is a controlled miss. Provider C's two teams share new session and route identifiers, with cache tokens increasing by 832 over a background of 128; the authors record this as an association because the experiment did not vary that identifier.

    Token-by-Token Recovery

    • Stage C: Before traffic, freeze eight positions and four known words, service model grok-4-fast-non-reasoning, scorer cannot see the target word. All eight dependent submissions are correct with no abstentions. Target space is 4 to the 8th power equals 65,536, which the authors state represents a 16-bit controlled target, not a method upper bound. The error branch baseline is -15, the true branch is -14; without victim replay, each branch ties at -15. Decisions with victim state use 128 attack-path requests, plus two victim formations and 128 replays, totaling 258 HTTP requests.
    • Wider conditions: Table II reports that 192 BIP-39 positions given correct preceding words are identifiable at g=1 as 192, dropping to 96–97, 48–49, and 16–17 at g=2, 4, and 8. Among the same relay's 11 Grok labels, one is strict single-token, two are coarse 128-token blocks, grok-4-20-reasoning is incomplete; the label used by the extraction chain belongs to the hot-path class, constrained by that chain's own gates. On 76 WildChat conversations, one known starting token raises recovery proportion at endpoint 9 from 18.9% to 64.5%, and at endpoint 17 from 11.4% to 51.3%.
    • Unsubmitted and timing: Two eight-candidate runs retain unique true boosts across all seven evaluated positions, but each has one error candidate that is cold, so they abstain. The authors state they found no stable production setting for general arbitrary-content extraction. The no-streaming retrospective set has 380 labeled observations, 151 hits and 229 misses, with direction-agnostic and round-centered AUC of 0.518; the appendix states timing does not support the core attack claim.

    Defenses and Public Prefix Splitting

    • Routing: A local fixture treats canonical credential identity as the cache domain. Shared paths cross on 5/5 gateways, exclusive paths cross 0/5 and retain all five owner hot repeats. Customer-chosen different namespaces block sharing on 4/5 paths, with LiteLLM Chat dropping that field. On real OpenAI, NewAPI's shared arm and fake-client arm are each 3/3 [0, 1024, 1024, 0]; the relay HMAC arm is 0/3 cross-customer and 3/3 owner [0, 0, 1024, 0], with 36 requests reaching the same service model. The authors state the provider writes that field as bucketing, not access control, so this is a conditional lookup mitigation.
    • Cost: 5,713 request events come from 3,000 sampled WildChat conversations, with five public agent prefixes ranging from 1,553 to 8,523 o200k_base tokens. Under the representative modeling parameters the authors specify (read multiplier 0.1, write multiplier 1.25, 256 and 1,024 thresholds, 128-token reporting blocks, not any provider's published rates), splitting increases modeling cost by 1.7% to 2.5%, with cross-customer private-region cache tokens at 0. Full namespaces are 2.29 to 3.14 times the insecure baseline. These numbers count only tokens.
    • Marking and fail-closed: Visible markers of 96 to 128 bits consume a median of 17 to 24 tokens on the tested tokenizers; a fixed local task family baseline of 100/100 drops to 79/100 and 85/100. In 48 closed-source model pilots, the authors state they saw no degradation solely from markers and consider the risk to be compatibility rather than correctness. Of 50,000 local failure transcripts, 8,389 fail closed, with no counterfactual difference in the sampled model; another simulator maintains customer identity equality on 18/18 cells and preserves private reuse for the same customer on 18/18 cells.

    Other Ablations and Analyses

    • After NewAPI and LiteLLM replace one shared principal with two independent-scope principals, two strict positives [0, 1408, 1408, 0] become two controlled misses [0, 0, 1408, 0] (Section V-B).
    • In the same Sub2API build, the generic OpenAI adapter is [0, 185, 185, 0], and the native Grok adapter with namespace derived from downstream keys is [0, 0, 184, 0] (Section V-B).
    • Nested three-arm each has one real upstream cell: shared and inner override cross, preserving the original customer removes cross-customer observations and retains owner hot repeats; on five new canaries, the forwarded namespace matches source-code predictions (Section V-B).
    • Gemini's implicit cache reports no inter-customer reads on every valid tested cell. Explicit creation: NewAPI, uni-api, MetaAPI, Sub2API return 404 or 405 and do not reach the observer; LiteLLM defaults to 403, and after granting routes, creation and reference are both 200, successfully terminating at the local fixture (Table VIII, Table IX).
    • The default choices of five gateways do not bind upstream credentials to downstream customers; three of them reselect credentials per request. NewAPI retries also descend priority layers (Appendix B-C, Table VII).
    • Long-short block comparison across three pairs, exact McNemar p=1; positive short probes cache 1,792 tokens, positive long probes cache 3,840. The authors state that binary reachability cannot be attributed to length or a latent selector (Section V-E).
  5. What are some points that can be further explored?

    The authors state that a controlled chain cannot be extrapolated to arbitrary content or production reliability.

    Limitations and future directions noted by the authors

    • The OpenRouter label framework and results are independently selected, but request-level prevalence is not estimated; the ranking does not include credential categories, per-provider routing shares, eligibility, or cached results for individual requests (Section IX-A).
    • The framework uses only one pair of accounts; positive labels reflect a single draw from the pool partition that determined the observations. The authors state that separating label properties from a particular draw requires independent account pairs (Section IX-A).
    • The production relay framework is subject to availability constraints; three of the five framework layers have no qualifying instances. The authors state that potential routing, pool weights, and residency distributions make it impossible to provide rates on instances, users, or affected traffic (Section IX-A).
    • The authors state that no stable production setting for arbitrary content extraction was found. The strongest evidence is an eight-step chain on four equal-length known words: 128 requests on the victim path, 258 total, showing only that a favorable lattice carrying 16 bits can be combined; it does not measure routing reliability, actual speedup, or recovery of natural language, credentials, or third-party content (Section IX-B).
    • The single-token report is calibrated on another Grok label; because the granularity of that family varies with routing, this chain relies on its own gate. The local path for the full dictionary is established only under an exact oracle without enumeration of provider token identifiers. The extrapolation of 98,370 to 136,034 requests does not establish production residency, reliability, cost, or detectability (Section IX-B).
    • The routing and failure matrices cover five frozen local gateway graphs; the relay-derived namespace has only one gateway and one real upstream lookup verification. The local fixture treats credentials as a cache domain; real deployments also have provider-documented principal, workspace, or project boundaries. Timing is not within the core evidence: no streaming review set is near random, and there is no randomized control for first-token time (Section IX-C).

    Experimental coverage

    • The executable gateways are NewAPI, uni-api, MetaAPI, LiteLLM, and Sub2API, totaling 5; One API is only for lineage. The gateway matrix uses researcher-controlled OpenAI and native Anthropic paths (Section V, Appendix B-A).
    • Direct services are written as Provider A, B, C. The OpenRouter framework is 28 eligible labels from 2026-07-26 to 08-01, with one pair of accounts; independent deployments found four instances with two accounts in two framework layers (Section V).
    • The production extraction confirmation is an eight-position, four-candidate chain on grok-4-fast-non-reasoning, totaling 258 controlled requests. The report granularity calibration is 11 Grok labels on the same relay (Section VI, Table XI).
    • The defense's real upstream HMAC verification is 3/3 for NewAPI against OpenAI; the shared, exclusive, forged, and failure paths of the five gateways run on the local fixture. The successful forwarding of Gemini explicit cache terminates at the local fixture (Section VII, Table IX, Table XIII).
    • The adjudication uses cached input count, owner hot repeats, and frozen length, formation, routing, status, and retry gates. The paper does not report LLM judges, nor inter-reviewer and human agreement. The four-request form unit does not allow retries (Section IV, Appendix B).
  6. Summarize the main content of the paper

    Shared upstream credentials place relay customers in the same cache domain; preserving identity or separate principals can separate them.

    KeyPooling measures where LLM API relays drop customer identity, so that prompt caches are no longer isolated by downstream customer.

    • Problem: Relays authenticate customers separately, but often forward requests to providers through the same upstream credentials, project, route, or namespace. Cache lookups use only the identity visible at the final boundary. Membership of a known prefix can therefore be visible across customers; when reporting precision, attribution, routing, candidates, and budget are simultaneously met, it can also be extended token by token.
    • Method: Trace the authenticated customer through credentials, namespaces, adapters, pools, retries, fallbacks, and nested hops, verify with observers which requests actually leave the gateway, then change one predicted component at a time while prompts and schedules are fixed. Four-request units distinguish strict positives [0, h, h, 0] from controlled misses. Extraction uses primary history, shadow warm-up, and victim-free replay to separate victim-induced boosts from the attacker's own writes.
    • Gateway results: Five executable gateways on frozen revisions do not bind upstream credentials to downstream customers by default. After the researchers mapped two customers to one upstream credential, OpenAI's five cells were all [0, 1408, 1408, 0], and native Anthropic's five cells were all [0, h, h, 0], with h from 1,066 to 1,074. Splitting principal or namespace, selecting different pool partitions, or having the adapter preserve the namespace made the corresponding edges disappear.
    • Production and extraction: OpenRouter's one-week framework covered 80.5% of eligible traffic, with 12 of 28 labels having positive routes, and these labels accounted for 33.7% of eligible traffic. On the same route, managed was 5/5 and independent-scope BYOK was 0/5. One production route submitted eight positions consecutively when the scorer could not see the target word, with a target space of 65,536, totaling 258 controlled requests. The authors state that broader extraction depends on granularity, routing, limits, attribution, and budget, which are not security controls.
    • Defenses: The authors require each customer to enter a provider-enforced domain, or to have namespaces derived from authenticated identity survive every final lookup and write, including retries, fallbacks, pools, adapters, and nested relays. Under 5,713 replays and the representative modeling parameters given by the authors, placing the split after reusable public regions increases modeling cost by 1.7% to 2.5% and preserves most shared-prefix reuse. The authors state this only separates cache state; full record isolation also requires billing, latency, compute, errors, routing, quotas, and subsequent state to be independent of each other.

Related papers

Read originalarxiv.org