Manuscript Offprint

arXiv:2610.29747

Prompt Injection Through Forensic Evidence: A Taxonomy and Proof of Concept of Anti-Forensic Attacks on LLM-Assisted Digital Investigations

Frank Breitinger, Jan Gruber, Christopher Hargreaves, Jan-Niclas Hilgert, Gaëtan Michelet, Mark Scanlon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Large language models (LLMs) are entering digital forensics as examination assistants and autonomous agents. Digital forensics inverts the usual setting for indirect prompt injection: the evidence under analysis is attacker-controlled by definition, and the examiner is obliged to read it closely. This makes the reasoning layer a new anti-forensic target, next to the classical ones of data and tools. Classical anti-forensic taxonomies do not cover it, and prompt injection defences do not anticipate it. We extend the anti-forensic model to reflect the manipulation of reasoning, and present a taxonomy of attacks carried through adversarial evidence: an attacker selects an objective, a technique, a payload location, and a concealment method. We observe a perception gap, i.e., the fact that deterministic tools, the human examiner, and the model perceive the same evidence differently, which is what lets an injection reach the model unseen by the examiner. We demonstrate three attacks against an LLM-assisted analysis pipeline, changing a reported conclusion, writing attacker-chosen content to the analyst's workstation, and causing outbound network traffic, each driven only by text planted on the seized device. Mitigations to these attacks are also proposed.

Keywords: Anti-forensics, Digital forensics, Large language models, Prompt injection, LLM-assisted investigation, Adversarial evidence

arXiv:2610.29747v1

1. Introduction

Large Language Models (LLMs) are being integrated into digital forensics (DF) workflows as assistants across examination, analysis, and reporting (Chernyshev et al., 2026; Yin et al., 2025; Studiawan et al., 2025; Loumachi et al., 2024; Fumero et al., 2025; Michelet & Breitinger, 2024), and, with growing autonomy, as agents that plan and execute multi-step analyses; we use “LLM-assisted” for both. The general prompt-injection literature treats the content that a model reads as untrusted. In LLM-assisted DF, that content comes from the party under investigation, who has every reason to shape it against the examiner and who often controls most of the corpus. Shaping evidence this way is anti-forensics, well studied in classical DF, where it targets the data, the tools, and the examiner’s judgment (Rogers, 2006; Harris, 2006; Conlan et al., 2016; Schneider et al., 2026). An LLM-assisted pipeline adds the model as a new reader of the evidence. Like the human examiner, it can be misled by fabricated evidence, but it perceives the same content differently, which creates a perception gap. Unlike humans or tools, it can also be commanded through the content it reads. An adversary can thus alter what the evidence says, misleading any reader that reasons over it, or embed an instruction that acts on the reader, which only the model will follow. Current defences leave the first case open, since a corrupted claim carries no instruction to detect (Liu et al., 2025). The second specialises prompt injection (Perez & Ribeiro, 2022; Greshake et al., 2023) to a setting where the evidence itself carries the attack.

This paper makes three contributions. First, we give a threat model and a five-technique taxonomy that systematizes both classical and novel anti-forensic categories per reader (deterministic tool, human examiner, model) to fit both traditional and LLM-assisted workflows. The taxonomy shows how the same manipulation affects different readers, and it adds injection as a new class of attack on tools, one that targets the model's instruction channel. Second, we demonstrate that three of these attacks are viable under specific circumstances: they manipulate the agent's conclusions, cause it to write files to the local system, and cause network connections that could alert those under investigation. Third, we propose mitigations that make the demonstrated attacks harder or prevent them.

The remainder of the paper is organised as follows: Sec. 2 reviews related work; Sec. 3 models the relevant components of the forensic process; Sec. 4 introduces the adversary; Sec. 5

∗^{*}Corresponding author.

Email addresses: frank.breitinger@uni-a.de (Frank Breitinger), jan.gruber@kit.edu (Jan Gruber), christopher.hargreaves@cs.ox.ac.uk (Christopher Hargreaves), hilgert@cs.uni-bonn.de (Jan-Niclas Hilgert), gaetan.michelet@uni-a.de (Gaëtan Michelet), mark.scanlon@ucd.ie (Mark Scanlon) develops the taxonomy; Sec. 6 demonstrates the attacks and discusses mitigations; Sec. 7 covers benefits, limitations, and future work; and Sec. 8 concludes.

References (45)