Plaintext prompt histories and usage logs are recoverable from local LLM clients
Forensic analysis can extract persistent artifacts from Ollama, LM Studio, and llama.cpp installations
Security & privacy arXiv 25 Mar 2026 Measurement Prototype evidence
Published as “Forensic Implications of Localized AI: Artifact Analysis of Ollama, LM Studio, and llama.cpp”
Why it matters
Investigators can now locate and extract user prompts and model metadata from local AI tools, enabling attribution and evidence collection in cases involving offline LLM usage.
Summary
The study shows that local LLM runners leave recoverable plaintext prompt histories in structured JSON files, along with detailed model usage logs and unique file signatures. Controlled experiments on Windows 11 and Ubuntu 24.04 demonstrated cross-platform artifact recovery from disk and memory images. The evidence is based on a small set of virtual-machine installations and assumes no advanced anti-forensic measures, so the findings may not generalize to hardened systems.
What they found 4
- Plaintext prompt histories are stored in structured JSON files
“Key findings include the recovery of plaintext prompt histories in structured JSON files, detailed model usage logs and unique file signatures suitable for forensic detection.”
- GUI applications produce more persistent artifacts than command-line tools
“with user friendly GUI applications like LM Studio producing highly structured and persistent artifacts, while minimalist command line tools like llama.cpp leave more ephemeral traces.”
- A comprehensive corpus of artifacts includes model caches, manifests, chat histories and configuration files
“We have established a comprehensive corpus of artifacts, from model caches and manifests to plaintext chat histories and configuration files.”
- Experiments were conducted on both Windows and Linux platforms
“Through controlled experiments on Windows and Linux operating systems, we acquired and analyzed disk and memory artifacts”
Caveats 2
- Multi tenant, server based hosts, cloud based environments are out of our scope of work.
- The subject under investigation is not presumed to a highly capable state actor or a sophisticated individual employing advanced anti forensics techniques like full disk encryption, file shredding or using live bootable operating system.
What’s new here 4
- First systematic, cross-platform forensic analysis of Ollama, LM Studio, and llama.cpp.
- Identification of plaintext prompt histories stored as JSON files.
- Mapping of unique file signatures and model usage logs for each tool.
- Comparison of forensic utility between GUI-based (LM Studio) and command-line (llama.cpp) clients.