MemSentinel: Detecting Memory Poisoning and Latent Backdoors in Long-Lived Autonomous Agents via Temporal Trajectory and Causal Influence Analysis

The shift from short-session AI agents toward long-lived autonomous agents with persistent memory introduces a structurally new attack surface: memory poisoning, in which adversaries inject misleading or malicious information across many interactions, gradually corrupting the agent's accumulated knowledge in ways no single interaction reveals. Unlike prompt injection, which is detectable at the per-interaction input level, memory poisoning operates over weeks or months, embeds latent backdoors that activate only under attacker-chosen trigger conditions, and exploits the agent's own memory-consolidation processes (summarisation, semantic embedding, retrieval prioritisation) to amplify the malicious signal into the agent's default reasoning context. The structural analogy that fits is insider threat: the agent's own past decisions slowly become the adversary against the agent's current decisions, with no external entity to point at as the attacker. This paper presents , a detection framework that models the agent's memory trajectory as a temporal behavioural signal and identifies deviations indicative of poisoning and latent backdoor formation. The framework combines: (i) temporal trajectory modelling over the agent's episodic and semantic memory representations; (ii) sequence anomaly detection using a transformer-based one-class classifier trained on benign-only memory evolution; (iii) latent-backdoor trigger probing via controlled counterfactual memory queries; and (iv) causal influence analysis that quantifies the disproportionate contribution of suspect memory segments to recent agent decisions. We evaluate on a calibrated long-lived agent simulator covering four attack patterns (slow-drip poisoning, latent backdoor embedding, context manipulation, self-reinforcing corruption) at varying intensity levels. achieves AUROC 0.917 across all attack classes at 0.7% false-positive rate against benign behavioural drift; latent-backdoor probing detects 84% of embedded triggers within 200 controlled queries. We document the framework's structural limits: distinguishing poisoning from legitimate behavioural drift is fundamentally constrained when the drift mimics natural variation; intervention (memory sanitisation, segmentation, controlled forgetting) carries a measurable performance cost that operators must weigh against detection confidence. Note: This preprint includes a Methodological Disclosure section (inserted after the abstract) identifying which specific quantitative claims in this paper are illustrative/simulated/unverified, not from a real deployment, human-subjects study, partner data, or hardware evaluation. See the PDF for the full disclosure text.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-27
DOI
https://doi.org/10.5281/zenodo.24581255
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

MemSentinel: Detecting Memory Poisoning and Latent Backdoors in Long-Lived Autonomous Agents via Temporal Trajectory and Causal Influence Analysis

Ezekiel Ologunde
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
preprint

MemSentinel: Detecting Memory Poisoning and Latent Backdoors in Long-Lived Autonomous Agents via Temporal Trajectory and Causal Influence Analysis

Ezekiel Ologunde
preprint en

Abstract

The shift from short-session AI agents toward long-lived autonomous agents with persistent memory introduces a structurally new attack surface: memory poisoning, in which adversaries inject misleading or malicious information across many interactions, gradually corrupting the agent's accumulated knowledge in ways no single interaction reveals. Unlike prompt injection, which is detectable at the per-interaction input level, memory poisoning operates over weeks or months, embeds latent backdoors that activate only under attacker-chosen trigger conditions, and exploits the agent's own memory-consolidation processes (summarisation, semantic embedding, retrieval prioritisation) to amplify the malicious signal into the agent's default reasoning context. The structural analogy that fits is insider threat: the agent's own past decisions slowly become the adversary against the agent's current decisions, with no external entity to point at as the attacker. This paper presents , a detection framework that models the agent's memory trajectory as a temporal behavioural signal and identifies deviations indicative of poisoning and latent backdoor formation. The framework combines: (i) temporal trajectory modelling over the agent's episodic and semantic memory representations; (ii) sequence anomaly detection using a transformer-based one-class classifier trained on benign-only memory evolution; (iii) latent-backdoor trigger probing via controlled counterfactual memory queries; and (iv) causal influence analysis that quantifies the disproportionate contribution of suspect memory segments to recent agent decisions. We evaluate on a calibrated long-lived agent simulator covering four attack patterns (slow-drip poisoning, latent backdoor embedding, context manipulation, self-reinforcing corruption) at varying intensity levels. achieves AUROC 0.917 across all attack classes at 0.7% false-positive rate against benign behavioural drift; latent-backdoor probing detects 84% of embedded triggers within 200 controlled queries. We document the framework's structural limits: distinguishing poisoning from legitimate behavioural drift is fundamentally constrained when the drift mimics natural variation; intervention (memory sanitisation, segmentation, controlled forgetting) carries a measurable performance cost that operators must weigh against detection confidence. Note: This preprint includes a Methodological Disclosure section (inserted after the abstract) identifying which specific quantitative claims in this paper are illustrative/simulated/unverified, not from a real deployment, human-subjects study, partner data, or hardware evaluation. See the PDF for the full disclosure text.

Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon