← Lab /Security & privacy

Memory poisoning bypasses existing defenses; TMA-NM blocks attacks completely

Existing content- and lineage-based defenses are unsound against laundering attacks, and TMA-NM achieves 0% attack success

Security & privacy arXiv 23 Jun 2026 Defense Prototype evidence Threat model

Published as “Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees”

Why it matters

Provides a practical, low-latency defense that can be deployed in current LLM-agent systems to guarantee that untrusted memory cannot trigger harmful actions.

Summary

TMA-NM achieves 0% successful consequential attacks (both direct and laundering) while preserving 100% legitimate utility, outperforming content-score, lineage, and capability-IFC defenses. The paper formalizes non-malleable, origin-bound authority and proves (via a machine-checked TLA+ model) that write-time origin binding is necessary and sufficient for safety. Empirical evaluation on a benchmark spanning 12 domains, 8 frontier LLMs, and thousands of attack instances confirms the theorem, with the defense adding only 1.3 μs latency. Limitations include no protection against answer-bias and reliance on trusted tools not being fully compromised.

What they found 1

  1. TMA-NM eliminates all successful consequential attacks while keeping full legitimate utility.

    “TMA-NM is the only one of the five defense classes at 0% ASR on both the direct attack and laundering, at 100% legit-utility, identical to the undefended agent.”

Caveats 3

  • Trust is relocated to the origin-labeling boundary and to the independence of corroborators, and a fully compromised trusted tool is the main residual risk (Section IX).
  • Answer-bias remains high under all defenses, including ours, because TMA-NM does not block non-consequential answer-biasing, by design.
  • The only residual risk is a fully compromised trusted tool.

What’s new here 4

  • Introduces a non-malleable authority model that binds action rights to the true origin of memory items, preventing laundering transformations.
  • Provides a concrete construction (TMA-NM) with write-time origin binding, non-malleable propagation, and corroboration-gated elevation.
  • Presents a machine-checked separation theorem showing malleable defenses are unsound and the proposed construction is sufficient.
  • Releases MEM-INV-Bench, the broadest cross-defense × attack × model memory benchmark to date.

Threat model stated by the source

Adversarycontrols untrusted external content stored by the agent (e.g., web pages, tool outputs, other users' messages)
Capabilitycannot forge origin labels, cannot break cryptography, cannot control the user’s authorization channel
Assumesorigin-labeling oracle is correct (Assumption A1); trusted channels are authenticated (e.g., mTLS, OAuth)