arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.23996cs.CR
收藏

本地AI的法医意义:Ollama、LM Studio和llama.cpp的艺术分析

Forensic Implications of Localized AI: Artifact Analysis of Ollama, LM Studio, and llama.cpp

Shariq Murtuza

AI总结:

本文通过系统分析本地LLM工具,揭示了其在数字取证中的证据留存差异及新证据类型,为法医调查提供可复现的方法和实用命令。

摘要:

本地大型语言模型(LLM)运行器如Ollama、LM Studio和llama.cpp的普及给数字法医调查带来了新挑战。这些工具允许用户离线部署强大AI模型,造成调查人员的证据盲区。本文系统分析了这些流行的本地LLM客户端,通过在Windows和Linux系统上的受控实验,收集并分析了磁盘和内存痕迹,记录了安装足迹、配置文件、模型缓存、提示历史和网络活动。实验揭示了每种软件中之前未记录的丰富痕迹,显示了证据持久性和基于应用程序架构的位置差异。主要发现包括从结构化JSON文件中恢复明文提示历史、详细的模型使用日志和独特的文件签名,适用于法医检测。本研究为本地LLM提供了数字证据基础,为法医调查者提供可复现的方法、实用排查命令和分析此类新软件的途径。研究结果对用户隐私、AI相关证据的可采性以及反法医技术的发展具有关键影响。

英文摘要:

The proliferation of local Large Language Model (LLM) runners, such as Ollama, LM Studio and llama.cpp, presents a new challenge for digital forensics investigators. These tools enable users to deploy powerful AI models in an offline manner, creating a potential evidentiary blind spot for investigators. This work presents a systematic, cross platform forensic analysis of these popular local LLM clients. Through controlled experiments on Windows and Linux operating systems, we acquired and analyzed disk and memory artifacts, documenting installation footprints, configuration files, model caches, prompt histories and network activity. Our experiments uncovered a rich set of previously undocumented artifacts for each software, revealing significant differences in evidence persistence and location based on application architecture. 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. This research provides a foundational corpus of digital evidence for local LLMs, offering forensic investigators reproducible methodologies, practical triage commands and analyse this new class of software. The findings have critical implications for user privacy, the admissibility of AI-related evidence and the development of anti-forensic techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑