arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.21230

Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Ranking

Arulnidhi Karunanidhi

Abstract

Persistent memory gives an attacker something a single request does not: a false statement accepted once is retrieved into every future session that matches it. We measure what such an attack costs, using the weakest form of it we could construct — plainly-worded false assertions generated in a single pass, carrying no instruction, no trigger, and no optimization against the retriever. At 1.2% of the corpus, this removes two-thirds of an agent memory’s value on LongMemEval (accuracy 0.850 to 0.300), and a four-stage write-time content screening pipeline — one that reaches 0.832 recall on indirect prompt injection while flagging only 1.5% of trigger-word-laden benign text — refuses 0 of 360 poisoned memories. We argue this marks a boundary of content-only screening rather than a detector deficiency: distinguishing a false assertion from a true one generally requires external grounding beyond the text being screened.

The defensive burden therefore falls on retrieval, where provenance-weighted ranking prefers content from trusted channels. Two results follow, neither flattering to the system we build. The shipped weight was statistically indistinguishable from no defense (p=0.80p{=}0.80{}), for a reason derivable in three lines from the scoring function. Raising it recovers utility, but by exclusion rather than preference: its absolute penalty on untrusted content exceeds half the range available to semantic similarity. We show this with two further corpora. Where untrusted content is predominantly benign, the defense still works (0.3167 to 0.7000); where the answer-bearing evidence itself arrives untrusted, retrieval collapses to zero — no evidence memory survives ranking for any of 120 questions, and accuracy falls to 0.0417. In this measured similarity regime, we find no usable setting for the additive provenance term: any weight sufficient against an attacker who can shape content is also sufficient to exclude untrusted content categorically. We argue provenance belongs in retrieval as a bounded occupancy constraint instead, and release the harnesses, corpora, and aggregate run reports.

1 Introduction

Agents that remember are agents that can be lied to durably. When an LLM application is stateless, whatever an attacker achieves is bounded by a single request; when it writes to persistent memory, a false statement accepted once is retrieved into every future session that matches it. The security literature for LLM agents has concentrated on the first setting, where the threat is instructions hidden in content and the defenses are detection, instruction hierarchies, and constraints on what untrusted data may cause. This paper is about a threat that none of those defenses is built to see, because it does not involve instructions at all.

We poisoned an established memory benchmark with false statements. Not optimized adversarial strings, not hidden instructions, not embedding-space triggers — ordinary sentences asserting wrong facts, produced in a single generation pass with no iteration of any kind. At 1.2% of the corpus, that attack removes two-thirds of the memory’s value: accuracy on LongMemEval falls from 0.850 to 0.300.

The system under attack screens every write through a four-stage content pipeline that reaches 0.832 recall on indirect prompt injection while flagging only 1.5% of trigger-word-laden benign text — an order of magnitude below the DeBERTa-based detectors we compare against. Against the poison it refused 0 of 360 memories.

That result is not a tuning failure, and we do not think a better content-only detector would change it. Distinguishing a false assertion from a true one generally requires external grounding beyond the text being screened. Content screening addresses payloads; this attack has no payload. Locating that boundary is the first contribution of this paper.

If the write path cannot see the attack, the read path must carry the defense. Ours ranks retrieved memories by a weighted sum of semantic similarity and a provenance prior, so that content arriving through untrusted channels is preferred less. Measuring it produced two results we did not expect, and neither is flattering.

The shipped configuration did nothing. A simple derivation — one we should have performed before choosing the parameter — shows that provenance can outbid similarity only within a margin of 0.175 at the shipped weights, while the poison gained 0.32 in similarity by being phrased like the query. The defense was statistically indistinguishable from no defense (p=0.80p{=}0.80{}). We report this as a negative result about a default in our own released system.

Raising the weight worked, and then we asked why. In absolute terms the corrected weight imposes a score penalty of 0.245 on untrusted content against a maximum semantic contribution of 0.45: more than half the available range. Any untrusted memory competing against a moderately similar trusted one is not merely disfavoured but unrankable. To test this we built two further corpora. In the first, most untrusted content is benign, breaking the correlation between the trust label and maliciousness that the original experiment inadvertently created; the defense still works there. In the second, the answer-bearing evidence itself arrives untrusted. Retrieval collapses to zero — not one evidence memory survives ranking across 120 questions, and accuracy falls to 0.0417.

The claim we draw for this scoring form under the measured similarity regime is that the additive provenance term has no usable setting. Any weight large enough to resist an attacker who can shape content is large enough to exclude untrusted content categorically, because the attacker’s achievable similarity advantage and the corpus’s own similarity spread are quantities of the same order. Provenance should enter retrieval as a bounded occupancy constraint — reserving space rather than penalising score — and we say plainly that we have motivated that design without building it.

Underlying all of this is a measurement argument. Attack success rate, the field’s default metric, cannot distinguish a memory that resisted an attack from one the attack rendered useless, and is silent on what a defense costs when nothing is attacking. We report utility retained instead, and report false positive rate beside recall everywhere a detector appears. Both of the surprises above are invisible under attack success rate.

References (16)