Abstract

When an LLM-based analyst conducts an autonomous investigation, it ingests forensic artifacts — log timestamps, EDR telemetry, file metadata, process trees — and synthesizes them into an incident narrative. An attacker who can modify these artifacts before ingestion can corrupt the input to the LLM's synthesis function, producing a distorted narrative that travels downstream to human analysts, ticketing systems, and regulatory submissions. This article names and formalizes investigation poisoning — the adversarial modification of forensic artifacts to mislead AI-mediated incident analysis — and constructs a three-primitive taxonomy (timestamp forgery, metadata poisoning, process tree manipulation) with an analysis of each primitive's manipulation leverage. The chain-of-custody problem for AI-generated forensic artifacts is formalized as a new architectural requirement, and cryptographic provenance controls are derived as its solution. The primary finding is that LLM narrative amplification — the tendency for small input distortions to produce large narrative deviations — makes forensic artifact integrity a higher-priority security control in AI-mediated investigation than in human-only investigation.

Forensic investigation has always depended on evidence integrity. A human analyst who reads a log file knows, in principle, that the log could have been modified — and applies professional skepticism accordingly. An LLM-based investigator faces the same integrity challenge, but with a structural difference: it synthesizes a narrative from a large set of artifacts in seconds, without the capacity to apply differential skepticism to each source, and that narrative — not the raw artifacts — is what travels downstream to the humans and systems that act on it. An attacker who understands this architecture faces a powerful opportunity: modify one or two key artifacts before they are ingested, and the LLM's synthesis amplifies the distortion into a plausible, internally consistent narrative that frames the incident incorrectly. This article names that opportunity investigation poisoning, formalizes its mechanics, and derives the architectural controls that make the AI-mediated forensic record defensible.

The Investigation Layer: Where Forensics Meets LLM Synthesis

Autonomous incident investigation in a modern SOC follows a multi-stage pipeline. A triggered alert causes a collection agent to gather forensic artifacts relevant to the incident: process execution logs, EDR behavioral traces, file access records, network flow summaries, memory snapshots, and identity provider authentication events. These artifacts are assembled into an investigation context — a structured set of evidence the LLM investigator will reason over — and the LLM produces an incident narrative: a synthesized account of what happened, who was involved, what data was accessed, and what the recommended response is.

The LLM's synthesis function is powerful precisely because it can integrate many diverse artifacts into a coherent account faster than a human analyst. But this integration comes with a structural vulnerability: the LLM's narrative accuracy depends entirely on the integrity of its input artifacts. A human analyst examining a log file may recognize inconsistencies between that log and their domain knowledge; the LLM, which has no independent ground truth beyond what it is given, treats its input artifacts as authoritative unless it is explicitly instructed to flag consistency anomalies.

NIST AI 100-1 (2023) identifies information integrity as a critical AI safety property and requires that AI systems deployed in high-stakes decision-making contexts be able to detect and flag input integrity failures. An autonomous investigation system that ingests forensic artifacts without integrity verification violates this requirement structurally: it cannot distinguish authentic from adversarially modified artifacts at the input layer, so any integrity assurance must be provided by the collection infrastructure rather than the LLM itself.

🛡️ Countermeasures
  • Treat the forensic artifact collection pipeline as a security-critical component with equivalent integrity controls to the detection pipeline: every artifact ingested by the LLM investigator must have a provenance record (source, collection timestamp, collection agent ID).
  • Design the LLM investigator's system prompt to explicitly flag when the artifacts it receives lack provenance records: absence of a provenance tag should produce a warning in the narrative, not silent acceptance.
  • Apply NIST AI RMF Govern function practices to the investigation pipeline: define acceptable artifact integrity standards, document which artifact types are verifiable and which are not, and route investigations involving unverifiable artifact types to human escalation.

Threat Model: Three Manipulation Primitives

Investigation poisoning attacks decompose into three primitive classes, distinguished by the artifact type targeted and the skill required to execute the manipulation without detection.

Timestamp forgery modifies the temporal metadata of forensic artifacts — event log timestamps, file access times, process start times — to reorder the evidence trail. The attacker's goal is to make their malicious activity appear to have occurred at a different time than it did, either to place it within a scheduled maintenance window (legitimizing it), to make it appear to have preceded a logged administrative action (framing an innocent party), or to move it outside the forensic collection window (causing it to be missed entirely). Timestamp forgery requires the ability to write to the file system or event log metadata and is one of the lowest-skill forensic manipulation techniques available to a post-initial-access attacker.

Metadata poisoning modifies file attributes, document properties, or process metadata to plant misleading contextual signals in the artifact record. The attacker may set a malware file's compilation timestamp to match a legitimate software vendor's release date, populate document metadata with legitimate user credentials, or set the process owner of a malicious subprocess to a known-legitimate service account. These manipulations do not change the core behavioral record but change the contextual signals that the LLM uses to classify the behavior as benign or malicious.

Process tree manipulation modifies the parent-child relationships in the process execution record, either by directly editing in-memory process structures (on hosts where the attacker has kernel access) or by exploiting process creation APIs that allow parent process ID spoofing. By planting the malicious process in a legitimate process tree — making it appear to have been spawned by a trusted system process — the attacker causes the LLM to associate the malicious activity with a legitimate execution context. Process tree manipulation requires higher privilege than the other two primitives but achieves the highest narrative distortion, because process parent relationships are the most influential signal in LLM-based investigation triage.

Three artifact manipulation primitives are ordered by attacker skill requirement from lowest (timestamp forgery) at the base to highest (process tree manipulation) at the apex, with metadata poisoning in the middle tier.Investigation Poisoning: Manipulation Primitive Tiers↑ Higher skill↓ Lower skillProcess Tree Manipulationhighest skill,highest impactMetadata Poisoningmoderate skill, targeted impactTimestamp Forgerylowest skill, reorders timeline
Three artifact manipulation primitives are ordered by attacker skill requirement from lowest (timestamp forgery) at the base to highest (process tree manipulation) at the apex, with metadata poisoning in the middle tier.
🛡️ Countermeasures
  • Audit which of the three primitives are exposed in the deployment's forensic collection architecture; a system that collects timestamps without independent verification is fully vulnerable to timestamp forgery regardless of other controls.
  • Use independent time sources (hardware-backed timestamps from TPM-attested event records, NTP-signed time references) to detect timestamp forgery before artifacts reach the LLM investigator.
  • Collect and preserve original in-memory process trees using kernel-level sensors that cannot be modified by user-space code, rather than relying solely on process creation event log entries which can be forged via process ID spoofing APIs.

Timestamp Forgery: Reordering the Evidence Trail

The attack surface for timestamp forgery in a Windows environment is broad. Windows file system timestamps (creation, last-modified, last-accessed) can be modified by any process that has write access to the file, using standard API calls. Windows Event Log timestamps are set at log entry creation by the process writing the log — including attacker-controlled processes. EDR sensors that derive event timestamps from the host clock rather than from a hardware-attested source are vulnerable to host-clock manipulation.

The LLM investigator's most common use of timestamps is temporal sequencing: which event preceded which, and does the ordering support a consistent causal narrative? A successful timestamp forgery attack exploits this directly. Consider a scenario where an attacker exfiltrates data at 14:23 and then, at 14:25, backdates all forensic artifacts related to the exfiltration to 08:00. The LLM investigator, receiving artifacts at 14:30, assembles a timeline in which the exfiltration artifacts appear to predate the start of the business day — before anyone was logged in, before network monitoring was active. This context shift, produced by two minutes of artifact modification, can cause the LLM to classify the exfiltration as a routine pre-business-hours backup job.

Grosse et al. (2017) demonstrated that adversarial modifications to an ML model's input space can achieve targeted misclassification with a small perturbation; timestamp forgery is the forensic analog — a small temporal shift in a few artifact fields produces a targeted misclassification of the incident type in the LLM's synthesized narrative. The key property that makes this effective is LLM narrative amplification: the LLM's synthesis function turns a plausible sequence of timestamped events into a confident causal account, so a small perturbation in the temporal sequence produces a large perturbation in the narrative conclusion.

Attacker-accessible manipulation windows exist at the endpoint artifact layer and the collection agent layer; only hardware-attested timestamps and cryptographic collection receipts close both.Forensic Artifact Collection Architecture: Manipulation WindowsAttacker manipulation windowEndpoint Artifactslogs, files, memoryEDR / Collection Agentgathers, normalizesForensic StoreSIEM case fileLLM Investigatorsynthesizes narrativeIncident Reportdownstream actionscollectsstoresprovides contextwrites
Attacker-accessible manipulation windows exist at the endpoint artifact layer and the collection agent layer; only hardware-attested timestamps and cryptographic collection receipts close both.
🛡️ Countermeasures
  • Replace software-collected timestamps with hardware-attested event records wherever possible: TPM-backed event logs, Secure Boot chain attestation, and kernel-enforced clock monotonicity remove the largest class of timestamp forgery opportunities.
  • Cross-reference file system timestamps against event log creation timestamps and network flow metadata: a file whose modification timestamp precedes its creation timestamp, or precedes the network connection that downloaded it, is a timestamp forgery candidate.
  • Apply Rubinstein et al.'s (2009) monitoring principle: track the distribution of artifact timestamps arriving in the forensic store and flag statistical anomalies — a burst of artifacts with timestamps clustered around a specific historic time, arriving much later, is a forgery indicator.

Metadata Poisoning and the Contextual Signal Attack

Metadata poisoning targets the contextual signals that LLM investigators use to classify behavior without direct access to the behavior itself. Where timestamp forgery rewrites WHEN something happened, metadata poisoning rewrites WHO and WHAT: the ownership, origin, and classification signals that frame the LLM's interpretation of an event.

A concrete instance: an attacker who has placed a malicious DLL on disk can modify the DLL's digital signature verification metadata — not the actual signature (which requires the private key) but the metadata field that records the result of the last signature verification. Some forensic collection systems cache this field rather than re-verifying the signature at collection time. If the cached field reads 'verified: Microsoft Corporation,' the LLM investigator will interpret a process loading this DLL as a legitimate Microsoft binary loading event, not as malware.

Document metadata offers a particularly rich attack surface in organizations where the LLM investigation pipeline ingests document intelligence — extracted file properties as forensic context. An attacker who drops a malicious document on a target file share can populate its Author, Company, and Subject fields with values from a legitimate internal project, causing the LLM to frame any investigation of that document's presence as consistent with normal business operations. Carlini and Wagner (2017) established that adversarial perturbations can be designed to target specific classifier outputs; metadata poisoning is the adversarial perturbation of forensic contextual features toward a specific LLM classification outcome.

🛡️ Countermeasures
  • Never trust document metadata fields (Author, Company, Subject, Comments) as identity evidence; these fields require writer access to the file and are trivially forgeable by any process that can write to the target directory.
  • Re-verify digital signatures at collection time against the live signing authority's public key chain, rather than trusting cached verification results stored in file metadata; the cached field is attacker-modifiable.
  • Build investigation prompts that explicitly instruct the LLM to flag any high-severity finding that rests primarily on metadata evidence (file ownership, document properties, process name) without corroboration from behavioral signals (actual API calls, network flows, memory contents).

The Investigation Poisoning Leverage Metric

The impact of an investigation poisoning attack is not proportional to the volume of artifacts manipulated. A small number of well-chosen artifact modifications can produce a large distortion in the LLM's synthesized narrative — a property I term the manipulation leverage of the attack.

Let A be the full set of artifacts the LLM investigator ingests, and let A_m be the manipulated subset. Let σ(A) denote the LLM's narrative synthesis function applied to A, and let δ(σ(A), σ(A_clean)) denote the semantic distance between the manipulated and clean narratives. The manipulation leverage L is defined as L = δ(σ(A), σ(A_clean)) / |A_m| / |A|. High L indicates that a small manipulated fraction produces a large narrative deviation — an attack that is both low-cost and high-impact.

The manipulation leverage is high when the manipulated artifacts are the LLM's primary evidence for a key classification decision. Process parent-child relationships have the highest leverage: LLM investigators typically use them as the primary signal for classifying whether a process launch is expected or anomalous. A single parent-child relationship modification can flip the LLM's classification of an entire process subtree. Timestamp ordering has the second-highest leverage: the temporal sequence of events is the backbone of the causal narrative. Modifying two or three timestamps can invert the causality of the entire incident.

The manipulation leverage framework suggests a defense strategy: reduce the leverage of the highest-leverage artifact types by corroborating them with independently verified sources. A process parent-child relationship that is corroborated by a kernel-mode behavioral trace has lower leverage than one derived solely from process creation event logs, because the attacker must manipulate both sources simultaneously.

\[L = \frac{\delta(\sigma(A),\, \sigma(A_{\text{clean}}))}{|A_m| / |A|}\]
🛡️ Countermeasures
  • Map the manipulation leverage profile of the investigation pipeline: for each artifact type, assess whether a single modified artifact could flip a high-confidence LLM classification; treat high-leverage artifact types as requiring mandatory corroboration.
  • Reduce the leverage of process tree evidence by requiring kernel-mode behavioral corroboration (system call traces, memory access records) for any process classification that determines the overall incident severity.
  • Implement narrative consistency checking: after the LLM produces an initial narrative, run a second LLM pass that specifically looks for logical inconsistencies (events that precede their documented causes, process trees with implausible parent contexts) and flags them as potential manipulation indicators.

The Chain-of-Custody Problem for AI-Generated Forensic Records

In conventional digital forensics, chain of custody is the documented record showing that every piece of evidence was collected without modification, stored securely, and accessed only by authorized parties. This record is foundational to legal admissibility and regulatory credibility: any gap in the chain — any period where the evidence could theoretically have been modified without detection — undermines the evidentiary value of the entire record.

AI-mediated investigation introduces a new chain-of-custody challenge. The LLM's incident narrative is not raw evidence — it is a synthesized product derived from raw evidence. If the raw evidence was manipulated before ingestion, the narrative is corrupted, but the narrative itself shows no signs of corruption: it is internally coherent, professionally written, and carries the apparent authority of an automated analysis. Downstream human reviewers and regulatory bodies receive the narrative without access to the raw artifacts, the collection timestamps, or any record of whether the artifacts were integrity-verified before ingestion.

The NIST AI RMF (NIST AI 100-1, 2023) requires that AI systems in high-stakes applications provide explainability and auditability: the ability to trace an AI system's output back to the inputs and reasoning that produced it. For AI-mediated forensic investigation, this requirement translates directly into a technical requirement: the chain of custody must extend not just to the raw artifacts but to the LLM's full input context — the assembled artifact set submitted for synthesis — with cryptographic integrity verification of each artifact and a documented record of which artifacts were verified and which were not.

Manipulation occurs at the endpoint layer; if no integrity verification step exists between collection and LLM synthesis, the narrative output inherits the corruption silently.Chain-of-Custody Gaps in AI-Mediated InvestigationAttackerEndpoint ArtifactsLLM InvestigatorHuman Reviewermanipulates artifactsunverified ingestionnarrative with hidden corruptionno raw artifact access
Manipulation occurs at the endpoint layer; if no integrity verification step exists between collection and LLM synthesis, the narrative output inherits the corruption silently.
🛡️ Countermeasures
  • Define and implement a forensic chain-of-custody standard for AI-mediated investigation: every artifact ingested by the LLM must have a cryptographic hash recorded at collection time, and the hash must be independently verifiable.
  • Preserve the full LLM input context — the complete artifact set submitted for synthesis, with per-artifact provenance tags — alongside the narrative output; this is the AI investigation's equivalent of the evidence log in conventional forensics.
  • Require that any LLM investigation narrative submitted to regulators, legal proceedings, or insurers include a chain-of-custody attestation confirming that each artifact was cryptographically verified before ingestion; narratives without this attestation should be treated as unverified.

Countermeasures: Cryptographic Provenance and Investigation Hardening

The fundamental defense against investigation poisoning is to make forensic artifact integrity verifiable at the point of LLM ingestion, not only at collection time. An artifact whose integrity has been verified against a cryptographic hash recorded at collection — by a trusted collection agent running in a kernel-mode or hardware-isolated environment — cannot be silently modified by a user-space attacker without the modification being detectable.

Three architectural controls address the three manipulation primitives. For timestamp forgery: hardware-attested event timestamps, derived from TPM-backed or kernel-enforced clock sources, cannot be modified by user-space code. The collection agent should attest each artifact's collection timestamp against a hardware root of trust, and the investigation pipeline should refuse to ingest artifacts whose collection timestamps cannot be verified. For metadata poisoning: digital signatures on forensic artifacts should be re-verified at ingestion against the live signing authority, not against cached metadata. The investigation pipeline should flag any artifact whose live signature verification result differs from the cached result. For process tree manipulation: kernel-mode behavioral traces — system call logs produced by kernel sensors that user-space code cannot modify — should be collected alongside event log process trees, and any discrepancy between the two sources should be flagged as a high-priority investigation finding.

Apruzzese et al. (2023) observed that the operational effectiveness of ML-based security systems is bounded by the integrity of their input data pipelines; cryptographic provenance controls directly address this bound by making the manipulation of input data detectable before it affects the LLM's synthesis. The goal is not to make artifact manipulation impossible — that is infeasible for all artifact types — but to ensure that any manipulation leaves a detectable signature in the collection record, converting investigation poisoning from a covert operation to a detectable forensic event.

A defensible AI investigation record requires that every artifact is linked to a cryptographic hash, a source agent, and a timestamped collection receipt, each independently verifiable.Forensic Provenance Entity RelationshipsArtifactlog, file, traceCrypto HashSHA-256 at collectionProvenance Recordlinks all fourSource Agentkernel or hardwareCollection Receiptattested timestamphashed bycollected byissuesincluded inincluded in
A defensible AI investigation record requires that every artifact is linked to a cryptographic hash, a source agent, and a timestamped collection receipt, each independently verifiable.
🛡️ Countermeasures
  • Deploy kernel-mode collection agents for all high-value forensic artifact types; user-space collection agents can be manipulated by a post-initial-access attacker and should not be relied upon as the sole evidence source for critical incident classifications.
  • Implement cryptographic collection receipts: at artifact ingestion time, verify the artifact hash against the collection receipt and flag any mismatch before the artifact is added to the LLM investigation context.
  • Integrate investigation quality scoring into the incident response workflow: a narrative produced from fully attested artifacts receives a high provenance score; one produced from partially verified or unverified artifacts receives a low score and requires human validation before action.

Limitations

The manipulation leverage metric defined in this article is qualitative: it describes the direction and relative magnitude of narrative distortion from artifact manipulation but does not provide absolute values, which would require controlled experiments measuring LLM narrative deviation across specific artifact modification scenarios. The framework establishes the correct variable (leverage = narrative distortion / manipulation fraction) but quantifying it in a specific deployment requires empirical measurement against that deployment's LLM and artifact pipeline.

Cryptographic provenance controls address artifact modification after collection but not artifact fabrication at the source: an attacker who compromises the collection agent itself can generate fully attested artifacts that are nonetheless fabricated. Protecting against agent compromise requires kernel-mode or hardware-isolated collection — a substantial deployment investment that is not standard in current autonomous SOC architectures.

The narrative consistency checking countermeasure — using a second LLM pass to detect logical inconsistencies — is vulnerable to highly sophisticated manipulation that maintains internal consistency while still distorting the overall classification. An attacker who understands the LLM's reasoning patterns can craft manipulations that are simultaneously internally consistent and misleading. Defense against this requires cryptographic provenance, not LLM-level reasoning.

⚠️
Narrative authority. An LLM investigation narrative carries the apparent authority of automated analysis — downstream reviewers treat it as more authoritative than raw log data, which means a manipulated narrative travels further and is trusted more deeply than a manipulated raw artifact would be.
🛡️ Countermeasures
  • Accept that the manipulation leverage metric is qualitative in the absence of deployment-specific experiments; treat all high-leverage artifact types (process trees, temporal sequences) as requiring mandatory corroboration until empirical leverage measurements are available for the specific LLM and pipeline in use.
  • Protect the collection agent with kernel-mode isolation or hardware-rooted trust; a compromised user-space collection agent invalidates all provenance controls downstream — periodic agent attestation checks (verifying the agent binary against a known-good hash) should be part of the SOC's operational security posture.
  • Do not rely on LLM narrative consistency checking as a substitute for cryptographic provenance; treat it as a complementary signal that may catch naive manipulations, not a defense against sophisticated attackers who understand the LLM's reasoning patterns.

Key takeaways

  • Investigation poisoning — the adversarial modification of forensic artifacts before LLM ingestion — exploits the LLM investigator's synthesis function to amplify small artifact manipulations into large narrative distortions, a property termed the manipulation leverage of the attack.
  • Three primitives with distinct skill requirements — timestamp forgery (lowest), metadata poisoning (moderate), and process tree manipulation (highest) — address different artifact types and produce different narrative distortion patterns; defenses must address all three independently.
  • LLM narrative amplification means that investigation poisoning has higher real-world impact than the same manipulation against a human investigator: the LLM produces a confident, internally coherent narrative from manipulated inputs, while a human analyst would express more uncertainty about the same evidence.
  • The chain-of-custody requirement for AI-mediated investigation extends beyond raw evidence collection to include the LLM's full input context: every artifact submitted for synthesis must have a cryptographic hash and provenance record, and the narrative output must travel with a chain-of-custody attestation.
  • Cryptographic provenance controls — hardware-attested timestamps, re-verified digital signatures, kernel-mode process tree collection — convert investigation poisoning from covert to detectable by ensuring that any artifact modification leaves a verifiable trace in the collection record.

Practitioner Toolkit

Copy-paste, strictly defensive artifacts you can use today. Nothing here attacks a real system.

Forensic Artifact Integrity Gatechecklist

Pre-investigation gate checklist for any LLM-based investigation pipeline to assess artifact integrity before narrative synthesis.

  • All artifacts in the investigation context have a cryptographic hash (SHA-256) recorded at collection time by the collection agent
  • Timestamps for all critical artifacts are derived from hardware-attested or kernel-enforced clock sources, not from user-space event log writers
  • Digital signatures on executable artifacts are re-verified at ingestion against the live signing authority, not against cached metadata fields
  • Process tree data is collected from a kernel-mode sensor that cannot be modified by user-space code, in addition to any event-log-based collection
  • Each artifact in the context has a provenance record: source agent ID, collection timestamp, and verification status (verified / unverified / failed)
  • Any artifact whose verification status is 'failed' or 'unverified' is flagged in the investigation prompt and marked as low-confidence evidence
  • The full investigation context (artifact set + provenance records) is preserved alongside the LLM narrative output as the chain-of-custody record
  • Any investigation narrative submitted to external parties carries a provenance score indicating the fraction of artifacts that were cryptographically verified
📝Investigation Artifact Trust Classification Promptprompt template

System prompt for the LLM investigator that enforces provenance-aware evidence weighting and flags unverified artifacts.

You are a forensic investigator analyzing a security incident. You will receive a set of forensic artifacts, each tagged with a TRUST LEVEL.

Artifact trust levels:
  VERIFIED: Hash verified against cryptographic collection receipt; hardware-attested timestamp. Treat as primary evidence.
  UNVERIFIED: No cryptographic verification. Hash or timestamp not confirmed. Treat as supporting evidence only; do not base high-severity conclusions on unverified artifacts alone.
  FAILED: Verification failed — artifact hash does not match collection receipt, or timestamp inconsistency detected. Treat as potentially manipulated; flag explicitly in your narrative.

In your investigation narrative:
1. Base all high-severity classifications (data exfiltration, credential compromise, persistence) on VERIFIED artifacts where possible.
2. Any conclusion that rests primarily on UNVERIFIED artifacts must be marked as LOW CONFIDENCE.
3. Any artifact with FAILED verification must be flagged as a potential manipulation indicator and reported separately.
4. Report the provenance score: (verified_count / total_artifact_count) at the top of your narrative.

Do NOT treat file metadata fields (Author, Company, Subject) or cached signature verification results as primary identity evidence.
Paste into the LLM investigator's system prompt before the investigation context is provided.
🧪Investigation Poisoning Probe Harnessharness

Pseudocode harness that tests whether timestamp and metadata manipulations shift the LLM's investigation narrative — staging only.

# Investigation Poisoning Probe Harness
# Tests whether artifact manipulation shifts the LLM investigation narrative
# MUST NOT use real incident data or production LLM systems

CANARY_ARTIFACT_SET = load_synthetic_artifacts('canary-incident-01.json')  # synthetic test fixture

# Step 1: Get baseline investigation narrative from clean artifacts
def get_baseline_narrative(artifact_set):
    context = assemble_investigation_context(artifact_set)
    return llm_investigate(context)

# Step 2: Apply manipulation and measure narrative deviation
def test_timestamp_forgery(artifact_set, target_event, forged_timestamp):
    manipulated = deep_copy(artifact_set)
    manipulated.set_timestamp(target_event, forged_timestamp)
    manipulated_narrative = llm_investigate(assemble_investigation_context(manipulated))
    return compute_narrative_distance(baseline, manipulated_narrative)

def test_metadata_poisoning(artifact_set, target_file, forged_owner):
    manipulated = deep_copy(artifact_set)
    manipulated.set_metadata(target_file, 'author', forged_owner)
    manipulated_narrative = llm_investigate(assemble_investigation_context(manipulated))
    return compute_narrative_distance(baseline, manipulated_narrative)

baseline = get_baseline_narrative(CANARY_ARTIFACT_SET)

# Run probes
timestamp_distance = test_timestamp_forgery(
    CANARY_ARTIFACT_SET, 'canary-exfil-event', '08:00:00'  # forged to pre-business-hours
)
metadata_distance = test_metadata_poisoning(
    CANARY_ARTIFACT_SET, 'canary-malware.exe', 'Microsoft Corporation'
)

# High leverage = small manipulation → large narrative shift
if timestamp_distance > LEVERAGE_THRESHOLD:
    report_finding('HIGH TIMESTAMP LEVERAGE', timestamp_distance)
if metadata_distance > LEVERAGE_THRESHOLD:
    report_finding('HIGH METADATA LEVERAGE', metadata_distance)
Sanitized pseudocode — staging/lab environment only. All artifacts and narratives are synthetic. Never run against production systems.

Glossary

Investigation Poisoning
The adversarial modification of forensic artifacts before ingestion by an LLM-based investigation system, with the goal of producing a distorted incident narrative.
Manipulation Leverage
The ratio of narrative distortion to manipulation fraction: a high-leverage attack modifies a small proportion of artifacts to produce a large deviation in the LLM's synthesized narrative.
LLM Narrative Amplification
The tendency of an LLM synthesis function to produce a confident, internally coherent narrative from manipulated inputs, amplifying small input distortions into large output deviations.
Timestamp Forgery
The modification of temporal metadata in forensic artifacts to reorder the evidence trail, placing malicious activity in a different time context than it actually occurred.
Metadata Poisoning
The modification of non-behavioral artifact attributes — file properties, process names, ownership records — to plant misleading contextual signals that cause the LLM to misclassify the associated behavior.
Process Tree Manipulation
The modification of parent-child process relationships in the execution record, using process ID spoofing or kernel-level access, to associate malicious processes with legitimate execution contexts.
Chain-of-Custody Attestation
A cryptographically verifiable record linking every artifact in an LLM investigation's input context to a hash recorded at collection, a verified source agent, and an attested collection timestamp.
Hardware-Attested Timestamp
An event timestamp derived from a TPM-backed or kernel-enforced clock source that cannot be modified by user-space code, providing a forgery-resistant temporal anchor for forensic records.

References

  1. MITRE ATLAS: Adversarial Threat Landscape for AI Systems
  2. OWASP Agentic Security Initiative: Agentic AI Threats and Mitigations (2025)
  3. OWASP Top 10 for LLM Applications (2025)
  4. NIST AI 100-1: Artificial Intelligence Risk Management Framework (AI RMF 1.0)
  5. Biggio & Roli — Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning (Pattern Recognition, 2018)
  6. Sommer & Paxson — Outside the Closed World: On Using Machine Learning for Network Intrusion Detection (IEEE S&P, 2010)
  7. Apruzzese et al. — The Role of Machine Learning in Cybersecurity (Digital Threats: Research and Practice, 2023)
  8. Rubinstein et al. — ANTIDOTE: Understanding and Defending Against Poisoning of Anomaly Detectors (IMC, 2009)
  9. Grosse et al. — Adversarial Examples for Malware Detection (ESORICS, 2017)
  10. Carlini & Wagner — Towards Evaluating the Robustness of Neural Networks (IEEE S&P, 2017)