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
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
- 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.”
- 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.”
- Sanitisation reduces but does not eliminate runtime residue.
“Sanitisation reduces this residue substantially, but does not eliminate historical prompt recovery.”
- Consumer wrappers can extend prompt lifetime via plaintext persistence.
“We also find that consumer wrappers can extend prompt lifetime through plaintext persistence.”
- 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.”
- 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.