← Lab /Security & privacy

Local LLM serving can leak prompts via memory, wrappers, and interface flaws

Running LLMs locally does not ensure prompt confidentiality because software components can expose prompts

Security & privacy arXiv 16 Sep 2026 Measurement Prototype evidence Threat model

Published as “The Illusion of Local Privacy: Confidentiality Boundary Failures in Consumer LLM Serving Systems”

Why it matters

Deployers of local LLMs must add explicit guarantees for prompt lifetime, storage, and tenant isolation; otherwise prompts can be recovered or leaked despite on-device inference.

Summary

Local LLM serving stacks leak prompts despite on-device inference: runtime memory retains multiple plaintext copies after inference, wrappers can persist prompts, and an authorization flaw in llama.cpp lets one client restore another's conversation state (200/200 trials). The integrity boundary shows no parser crashes or malformed model loads in >1.2×10^7 fuzzing executions, indicating that not all layers are vulnerable.

What they found 6

  1. Runtime memory retains 13-14 plaintext prompt copies per tenant after inference.

    “The evaluated implementation consistently leaves 13-14 recoverable plaintext prompt copies per tenant across three independent executions.”

  2. Prompt data from 11 of 12 sequential tenants remain recoverable, totaling 110 copies and ~10.8 MB.

    “Prompt information from 11 of the 12 tenants remains recoverable, comprising 110 plaintext copies and approximately 10.8 MB of recovered data.”

  3. Sanitisation reduces but does not eliminate runtime residue.

    “Sanitisation reduces this residue substantially, but does not eliminate historical prompt recovery.”

  4. Consumer wrappers can extend prompt lifetime via plaintext persistence.

    “We also find that consumer wrappers can extend prompt lifetime through plaintext persistence.”

  5. Authorization flaw in llama.cpp allows one authenticated client to restore another tenant’s saved conversation state; succeeds in 200/200 trials.

    “At the serving boundary, we uncover a previously undocumented authorization flaw in llama.cpp that allows one authenticated client to restore another tenant’s saved conversation state; the attack succeeds in 200/200 controlled trials.”

  6. Shared prompt-prefix caching creates a remote timing oracle distinguishable under WAN conditions.

    “Separately, we show that shared prompt-prefix caching exposes a remote timing oracle that remains distinguishable under WAN conditions.”

Caveats 3

  • The integrity boundary showed no parser crashes or malformed model loads, indicating that model admission can be secure under the tested conditions.
  • Our measurements do not establish that the GGUF parser is universally secure. Structured mutation necessarily covers only the parser states represented by the selected mutation classes, and a finite fuzzing campaign explores only a subset of the possible GGUF input space.
  • We therefore bound this result to the tested artifacts, software configuration, mutation strategy, and fuzzing campaign.

What’s new here 4

  • Systematic, boundary-oriented measurement framework (LLAnalyzer) that isolates integrity, lifetime, persistence, and isolation failures.
  • Discovery of a cross-tenant authorization flaw in llama.cpp serving interface.
  • Demonstration that allocator-managed memory and application-level duplication leave 13-14 recoverable prompt copies per request, persisting across multiple tenants.
  • Identification of a remote timing side-channel from shared prompt-prefix caching observable over WAN.

Threat model stated by the source

AdversaryA1 (unprivileged local process), A2 (authenticated network client), A3 (malicious model provider)
CapabilityA1 can read process memory; A2 can issue API calls as an authenticated client; A3 can supply crafted GGUF model files
AssumesOperating system, hardware, and cryptographic primitives function correctly; Adversary does not have OS-level compromise unless explicitly stated