PreprintCited by 76Adversarial Robustness in Machine LearningSecurity and Verification in ComputingTopic Modeling

MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval

Open access
Srivastava, Saksham Sahai, He, Haoyu·2025·arXiv

Abstract

Large Language Model (LLM) agents increasingly rely on long-term memory and Retrieval-Augmented Generation (RAG) to persist experiences and refine future performance. While this experience learning capability enhances agentic autonomy, it introduces a critical, unexplored attack surface, i.e., the trust boundary between an agent's reasoning core and its own past. In this paper, we introduce MemoryGraft. It is a novel indirect injection attack that compromises agent behavior not through immediate jailbreaks, but by implanting malicious successful experiences into the agent's long-term memory. Unlike traditional prompt injections that are transient, or standard RAG poisoning that targets factual knowledge, MemoryGraft exploits the agent's semantic imitation heuristic which is the tendency to replicate patterns from retrieved successful tasks. We demonstrate that an attacker who can supply benign ingestion-level artifacts that the agent reads during execution can induce it to construct a poisoned RAG store where a small set of malicious procedure templates is persisted alongside benign experiences. When the agent later encounters semantically similar tasks, union retrieval over lexical and embedding similarity reliably surfaces these grafted memories, and the agent adopts the embedded unsafe patterns, leading to persistent behavioral drift across sessions. We validate MemoryGraft on MetaGPT's DataInterpreter agent with GPT-4o and find that a small number of poisoned records can account for a large fraction of retrieved experiences on benign workloads, turning experience-based self-improvement into a vector for stealthy and durable compromise. To facilitate reproducibility and future research, our code and evaluation data are available at https://github.com/Jacobhhy/Agent-Memory-Poisoning.

AI snapshot

Written from the paper’s full text.

TL;DR

MemoryGraft is a trigger-free indirect memory poisoning attack that implants malicious “successful” experiences into an LLM agent’s long-term RAG memory through benign-looking documentation. On MetaGPT’s DataInterpreter with GPT-4o, 10 poisoned seeds among 110 total records accounted for 47.9% of retrieved records across 12 benign evaluation queries.

Key findings

  • A small poisoned set can dominate retrieval: with 100 benign and 10 poisoned experience seeds, the agent retrieved 23 poisoned records out of 48 total retrieved records, yielding a Poisoned Retrieval Proportion (PRP) of 47.9%.
  • Union retrieval over BM25 lexical similarity and FAISS embedding similarity amplifies the attack because a poisoned item only needs to align with one similarity channel to be surfaced.
  • Poisoned entries were retrieved across heterogeneous tasks including schema validation, anonymization, reporting, EDA sampling, and pipeline inspection, inducing unsafe patterns such as skipping validation, remote script execution, forced success flags, and external data uploads.
  • The poisoned store persists across sessions until explicitly purged, making the behavioral drift durable and trigger-free.

Methods

  • Threat model: the attacker can only supply benign-looking ingestion artifacts such as README files or markdown notes; they cannot directly edit memory, modify retrieval hyperparameters, or override system instructions. The attack assumes persistent long-term memory, trust in retrieved memories, semantic retrieval, no provenance/sanitization, and executable documentation.
  • Attack implementation: a payload note contains runnable code that builds a poisoned RAG store with BM25 and, when embeddings are available, FAISS indices over benign and poisoned seeds; both use `similarity_top_k = 3`, and the store is serialized to a shared path for cross-session reuse.
  • Evaluation: MetaGPT’s DataInterpreter agent with GPT-4o under its standard ingestion pipeline; 12 handcrafted queries reflecting common DataInterpreter workloads; primary metric is PRP, the fraction of all retrieved records originating from the poisoned seed set.

Limitations

  • The paper states that tests rely on a relatively small set of handcrafted benign and poisoned seeds, and that larger, more diverse datasets and memory-poisoning benchmarks are needed.
  • The paper states that evaluation focuses primarily on aggregate retrieval statistics; more extensive metrics such as retrieval precision/recall, behavioral severity scores, and long-term stability measures are not provided.
  • The paper states that the attack is closer to a white-box or semi-white-box setting, focuses on a single agent within MetaGPT, and leaves black-box constraints, multi-agent memory spread, and closed-source MetaGPT variants for future work.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2512.16962

Cites

18 of 18 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

4 of 4 cited sources checked · 0 supported · 0 flagged · accuracy not yet measured

  • Findingreasoning
    § Abstract · p. 1

    An attacker who can supply benign ingestion-level artifacts that the agent reads during execution can induce it to construct a poisoned RAG store where a small set of malicious procedure templates is persisted alongside benign experiences.

    “We demonstrate that an attacker who can supply benign ingestion-level artifacts that the agent reads during execution can induce it to construct a poisoned RAG store where a small set of malicious procedure templates is persisted alongside benign experiences.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
    • The authors state this as an assumption: The agent may execute code embedded in notes or markdown files, enabling indirect construction of poisoned RAG stores.
  • Findingreasoning
    § Abstract · p. 1

    When the agent later encounters semantically similar tasks, union retrieval over lexical and embedding similarity reliably surfaces these grafted memories.

    “When the agent later encounters semantically similar tasks, union retrieval over lexical and embedding similarity reliably surfaces these grafted memories”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
  • Findingown data
    § 5.3 Quantitative Results: Aggregate Retrieval · p. 8

    The cumulative number of poisoned retrievals was 23.

    “Similarly, the cumulative number of poisoned retrievals was P tot = ∑ N i =1 p i = 23”
    Quote in the paperSubstantial claim
  • Findingreasoning
    § Haoyu He · p. 2

    The attack persists across sessions until the memory is purged.

    “The attack persists across sessions until the memory is purged.”
    • Also stated in: § Haoyu He · p. 3 · plain
      “The compromise persists across sessions until the memory is manually purged.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
  • Findingown data
    § Abstract · p. 1

    A small number of poisoned records can account for a large fraction of retrieved experiences on benign workloads.

    “find that a small number of poisoned records can account for a large fraction of retrieved experiences on benign workloads”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
  • May combine two claims. 23
  • Classified as probably not a substantial claim. 15
  • May combine two claims.

    Premisecitation
    § Haoyu He · p. 2

    Existing memory systems assume stored experiences are trustworthy and rarely track provenance.

    “Existing memory systems assume stored experiences are trustworthy and rarely track provenance.”
    • Also stated in: § 2 Related Work · p. 3 · plain
      “These systems significantly improve reasoning and personalization, yet they implicitly assume that stored experiences are trustworthy and do not incorporate provenance or adversarial filtering.”
    Quote in the paperSubstantial claim3 of 3 sources checked
    • cites [1] [1] Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. Memorybank: Enhancing large language models with long-term memory. arXiv preprint arXiv:2305.10250 , 2023. - source

      Section 2.1 describes MemoryBank storing conversations with timestamps, and Section 2.3 describes updating memories based on time and recall. Neither passage says that existing memory systems assume stored experiences are trustworthy or rarely track provenance; searches for those points found no supporting passage. Page numbers were unavailable in our copy. (LLM, conf=0.72)

      Experimental — accuracy not yet measured
    • cites [2] [2] Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. Memgpt: Towards llms as operating systems. arXiv preprint arXiv:2310.08560 , 2023. - source

      The Introduction (pp. 1–2) and Related Work (p. 8) discuss extending LLM memory and retrieving stored information, but do not say that existing systems assume stored experiences are trustworthy or rarely track provenance. Searches for provenance, trustworthiness, and source attribution found no passage making that claim. (LLM, conf=0.73)

      Experimental — accuracy not yet measured
    • cites [3] [3] Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-mem: Agentic memory for llm agents. arXiv preprint arXiv:2502.12110 , 2025. - source

      The Introduction and Related Work discuss limitations of existing memory systems in storage, retrieval, organization, and adaptability. Neither those passages nor searches for provenance, trustworthiness, source attribution, and reliability address whether systems treat stored experiences as trustworthy or track their provenance. (LLM, conf=0.73)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Premisecitation
    § Haoyu He · p. 2

    MINJA shows that agents treat retrieved memories as ground truth and imitate them because memory retrieval is based purely on embedding similarity without provenance checks or sanitization.

    “MINJA[7] shows that agents treat retrieved memories as ground truth and imitate them because memory retrieval is based purely on embedding similarity without provenance checks or sanitization.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [7] [7] Shen Dong, Shaochen Xu, Pengfei He, Yige Li, Jiliang Tang, Tianming Liu, Hui Liu, and Zhen Xiang. A practical memory injection attack against llm agents. arXiv preprint arXiv:2503.03704 , 2025. - source

      Section 5.1 (p. 6) says the tested agents retrieve similar records as demonstrations using text-embedding similarity, supporting the claim that retrieved memories can influence their behavior. But Appendix I (p. 30) says the attack also works without embedding-based retrieval and may remain effective under filtering or security checks. The paper does not establish that agents treat memories as ground truth or that retrieval is always purely similarity-based and lacks sanitization. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingown data
    § 5.3 Quantitative Results: Aggregate Retrieval · p. 8

    Nearly half of all retrieved records originated from the poisoned set, despite poisoned items forming only a small minority of the overall memory.

    “Thus, nearly half of all retrieved records originated from S poison , despite poisoned items forming only a small minority of the overall memory.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5.5 Qualitative Analysis: Retrieval Dynamics · p. 9

    Despite n_p << n_b, the union retrieval mechanism assigns disproportionately high similarity scores to poisoned items, resulting in a global PRP approaching 50% and substantial per-query poisoned fractions.

    “Even though n p ≪ n b , the union retrieval mechanism assigns disproportionately high similarity scores to poisoned items. This results in a global PRP approaching 50%, and substantial per-query poisoned fractions.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data
    § 5.3 Quantitative Results: Aggregate Retrieval · p. 8

    Across the full evaluation set, the agent retrieved a total of 48 records.

    “Across the full evaluation set Q = { q (1) , . . . , q ( N ) } , the agent retrieved a total of T tot = ∑ N i =1 t i = 48 records”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 5.5 Qualitative Analysis: Retrieval Dynamics · p. 9

    Poisoned entries surfaced not only for tasks closely related to the injected patterns, but also for schema validation, anonymization, reporting, EDA sampling, and pipeline inspection.

    “Poisoned entries surfaced not only for tasks closely related to the injected patterns, but also for schema validation, anonymization, reporting, EDA sampling, and pipeline inspection.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationnone given
    § 3.3 Realistic Constraints and Assumptions · p. 5

    These documents induce the agent to read and execute their contents, which triggers automatic writes to long-term memory.

    “These documents induce the agent to read and execute their contents, which in turn triggers automatic writes to longterm memory.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The agent may execute code embedded in notes or markdown files, enabling indirect construction of poisoned RAG stores.
  • May combine two claims.

    Interpretationreasoning
    § Haoyu He · p. 2

    MemoryGraft closes the gap by presenting a single-shot, indirect memory grafting attack that persists across sessions and activates naturally through semantic similarity.

    “MemoryGraft closes this gap by presenting a single-shot, indirect memory grafting attack that persists across sessions and activates naturally through semantic similarity, expanding the known threat surface for LLM agents.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
  • May combine two claims.

    Interpretationnone given
    § Haoyu He · p. 2

    MemoryGraft requires access to write to surface files such as README but modifies no queries.

    “MemoryGraft requires access to write to the surface files(such as README ) but modifies no queries.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The attacker has no privileged access to internal system files, memory stores, or other users' interactions, and cannot directly edit M, modify retrieval hyperparameters, or override system instructions.
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given
    § 3.3 Realistic Constraints and Assumptions · p. 5

    The attacker can supply crafted documents that embed malicious yet plausible success examples.

    “Specifically, the attacker can supply crafted documents d ∈ D adv that embed malicious yet plausible success examples.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The agent may execute code embedded in notes or markdown files, enabling indirect construction of poisoned RAG stores.
  • May combine two claims.

    Interpretationreasoning
    § 4.4 Mechanism of Persistence and behavioral Drift · p. 7

    Once retrieved, poisoned records induce drift through the agent's imitation heuristic; the agent treats them as trusted examples of successful past solutions and incorporates the unsafe pattern into its current reasoning.

    “Once retrieved, poisoned records induce drift through the agent's imitation heuristic. The agent treats ( q ( j ) p , R ( j ) p ) as a trusted example of a successful past solution and incorporates the unsafe pattern encoded in R ( j ) p into its current reasoning.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationreasoning
    § 3.3 Realistic Constraints and Assumptions · p. 5

    Because the memory store M persists across sessions, poisoned experiences continue to influence future interactions even after the attacker has disengaged.

    “Because the memory store M persists across sessions, poisoned experiences continue to influence future interactions even after the attacker has disengaged.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
  • Classified as probably not a substantial claim.

    Study design and conductnone given
    § 5.1 Agent Configuration and Environment · p. 8

    In all experiments, the agent operated under its standard ingestion pipeline without any modification to internal parameters, retrieval thresholds, or tool-calling behaviour.

    “In all experiments, the agent operates under its standard ingestion pipeline without any modification to internal parameters, retrieval thresholds, or tool-calling behaviour.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § Haoyu He · p. 2

    Compromising long-term memory, not the prompt, can quietly redirect agent behavior, yielding a more persistent and covert attack than existing techniques.

    “We show that compromising long-term memory, not the prompt, can quietly redirect agent behavior, yielding a more persistent and covert attack than existing techniques.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
    • The authors state this as an assumption: Retrieved items are interpreted as trusted prior successes, and the agent imitates their procedural structure without verifying correctness or provenance.
  • May combine two claims.

    Interpretationreasoning
    § 4.4 Mechanism of Persistence and behavioral Drift · p. 7

    In the absence of a purge or replacement mechanism, the grafted experiences continue to influence retrieval indefinitely, making MemoryGraft a stealthy and durable attack vector.

    “In the absence of such a mechanism, the grafted experiences continue to influence retrieval indefinitely, making MemoryGraft a stealthy and durable attack vector.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationreasoning
    § 3.3 Realistic Constraints and Assumptions · p. 5

    The attack operates solely by contaminating the agent's ingestion pipeline.

    “The attack operates solely by contaminating the agent's ingestion pipeline.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The attacker has no privileged access to internal system files, memory stores, or other users' interactions, and cannot directly edit M, modify retrieval hyperparameters, or override system instructions.
  • May combine two claims.

    Interpretationreasoning
    § 4.4 Mechanism of Persistence and behavioral Drift · p. 7

    The dense benign cover prevents trivial anomaly detection while still allowing poisoned entries to surface due to their tailored semantic proximity to common queries.

    “The dense benign cover prevents trivial anomaly detection while still allowing poisoned entries to surface due to their tailored semantic proximity to common queries.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § Haoyu He · p. 2

    Semantic similarity becomes a heuristic for reliability and makes the system susceptible to poisoned examples.

    “This way, semantic similarity becomes a heuristic for reliability and makes the system susceptible to poisoned examples.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
    • The authors state this as an assumption: The agent does not track the origin of stored records or evaluate whether they were produced safely, so benign and malicious successes are indistinguishable.
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationreasoning
    § 3.3 Realistic Constraints and Assumptions · p. 5

    By repeating this process, the attacker can increase the concentration of malicious memory entries in the similarity space, increasing the likelihood that poisoned records are retrieved during subsequent tasks.

    “By repeating this process, the attacker can increase the concentration of malicious memory entries in the similarity space. This increases the likelihood that poisoned records are retrieved during subsequent tasks.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
  • Classified as probably not a substantial claim. May combine two claims.

    Interpretationreasoning
    § 4.3 Evaluation Phase · p. 7

    A higher value of PRP indicates that the poisoned memory entries dominate the retrieval distribution, meaning that the agent is frequently exposed to malicious successful experiences even when solving clean, semantically ordinary tasks.

    “A higher value of PRP indicates that the poisoned memory entries dominate the retrieval distribution, meaning that the agent is frequently exposed to malicious successful experiences even when solving clean, semantically ordinary tasks.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Study design and conductnone given
    § 4.1 Attack Setup · p. 6

    The code has no external dependencies and executes deterministically, guaranteeing that the resulting store contains exactly n_b + n_p records with the desired distribution of benign and poisoned entries.

    “Crucially, the code has no external dependencies and executes deterministically, guaranteeing that the resulting store contains exactly n b + n p records with the desired distribution of benign and poisoned entries.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning
    § 4.1 Attack Setup · p. 6

    The persistence mechanism ensures that M poison survives across agent sessions and becomes part of the global memory accessible to all users.

    “The persistence mechanism ensures that M poison survives across agent sessions and becomes part of the global memory accessible to all users.”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.
  • May combine two claims.

    Interpretationnone given
    § 4.4 Mechanism of Persistence and behavioral Drift · p. 7

    After construction, the poisoned store is serialized to disk and becomes part of the agent's persistent memory.

    “After construction, the poisoned store is serialized to disk and becomes part of the agent's persistent memory.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § 5.4 Mechanism Analysis: Impact of Union Retrieval (BM25+Embeddings) · p. 8

    BM25 captures lexical overlap, allowing poisoned entries that share surface phrasing to be ranked highly, and FAISS captures semantic similarity, allowing poisoned entries that share deeper workflow-level meaning to appear even when wording diverges.

    “This is because BM25 captures lexical overlap , allowing poisoned entries that share surface phrasing (e.g., quick fix, skip validation, sanitized) to be ranked highly, and FAISS captures semantic similarity , allowing poisoned entries that share deeper workflow-level meaning to appear even when wording diverges.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given
    § 8 Limitations and Future Work · p. 10

    The evaluation relies on a relatively small set of handcrafted benign and poisoned seeds.

    “First, our tests rely on a relatively small set of handcrafted benign and poisoned seeds.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given
    § 8 Limitations and Future Work · p. 10

    The attack design is closer to a white-box or semi-white-box setting, in that the attacker knows which documentation files and scripts the agent will ingest and can target those artifacts directly.

    “Finally, our attack design is closer to a white-box or semi-white-box setting, in that the attacker knows which documentation files and scripts the agent will ingest and can target those artifacts directly.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning
    § 5.5 Qualitative Analysis: Retrieval Dynamics · p. 9

    Once injected into the long-term memory store, poisoned entries reliably outcompete benign experiences across a wide range of evaluation queries, consistently exposing the agent to unsafe procedural templates.

    “Once injected into the long-term memory store, poisoned entries reliably outcompete benign experiences across a wide range of evaluation queries, consistently exposing the agent to unsafe procedural templates.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationnone given
    § 7 Conclusion · p. 9

    Once written, these entries are treated as trusted prior examples, and the union of lexical and embedding-based similarity reliably retrieves them in exactly the scenarios the attacker targets.

    “Once written, these entries are treated as trusted prior examples, and the union of lexical and embedding-based similarity reliably retrieves them in exactly the scenarios the attacker targets.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § 6 Potential Defense · p. 9

    Even if malicious records are physically written to storage, signature verification fails and the agent discards the poisoned observations before they can influence prompt construction.

    “Consequently, even if malicious records are physically written to the storage medium, the verification step Verify( · ) fails, and the agent discards the poisoned observations before they can influence the prompt construction.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given
    § 8 Limitations and Future Work · p. 10

    The study focuses primarily on aggregate retrieval statistics rather than more extensive metrics such as retrieval precision and recall, behavioral severity scores, and long-term stability measures.

    “Second, we focus primarily on aggregate retrieval statistics; more extensive metrics such as retrieval precision and recall, behavioral severity scores, and long-term stability measures would offer a clearer picture of how quickly and strongly an agent becomes compromised.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Interpretationreasoning
    § 6 Potential Defense · p. 9

    Since the adversary interacts only through ingestion channels and lacks access to the private signing key, they cannot generate valid signatures for the poisoned set.

    “Since the adversary A adv interacts only through ingestion channels (e.g., README fi les) and lacks access to K priv , they cannot generate valid signatures for the poisoned set S poison .”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given
    § B Evaluation Query Set · p. 13

    The evaluation used a standardized set of 12 queries designed to be semantically distinct from the specific phrasing of the poisoned seeds while mapping to the same underlying intents.

    “To validate the effectiveness of the MemoryGraft attack, we utilized a standardized set of 12 evaluation queries. These queries were designed to be semantically distinct from the specific phrasing of the poisoned seeds while mapping to the same underlying intents”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data
    § 7 Conclusion · p. 9

    The agent adopted unsafe shortcuts such as skipping validation, reusing stale results, or executing risky automation.

    “leading the agent to adopt unsafe shortcuts such as skipping validation, reusing stale results, or executing risky automation.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given
    § 8 Limitations and Future Work · p. 10

    The study focuses on a single agent within MetaGPT.

    “Our study focuses on a single agent within MetaGPT, but many MetaGPT workflows involve multiple agents that share or read from the same memory resources.”
    Quote in the paperNot a substantial claim
34 of 34
  • The authors state this as an assumption.

    The agent maintains a durable long-term memory store M (BM25 index and FAISS vector store) reused across sessions.

    “A1 Persistent Long-Term Memory The agent maintains a durable store M (BM25 index and FAISS vector store) reused across sessions.”
  • The authors state this as an assumption.

    Retrieved items are interpreted as trusted prior successes, and the agent imitates their procedural structure without verifying correctness or provenance.

    “A2 Trust in Retrieved Memories Retrieved items are interpreted as trusted prior successes. The agent imitates their procedural structure without verifying correctness or provenance.”
  • The authors state this as an assumption.

    Retrieval is based on semantic as well as lexical similarity, so malicious entries crafted to be near common analytic or engineering queries appear in retrieval for many clean queries.

    “A3 Semantic Retrieval Retrieval is based on semantic as well as lexical similarity. Thus, if malicious entries are crafted to be near common analytic or engineering queries, they appear in Retr( q ⋆ ) for many clean q ⋆ .”
  • The authors state this as an assumption.

    The agent does not track the origin of stored records or evaluate whether they were produced safely, so benign and malicious successes are indistinguishable.

    “A4 No Provenance or Sanitization The agent does not track the origin of stored records or evaluate whether they were produced safely. Benign and malicious successes are indistinguishable.”
  • The authors state this as an assumption.

    The agent may execute code embedded in notes or markdown files, enabling indirect construction of poisoned RAG stores.

    “A5 Executable Documentation The agent may execute code embedded in notes or markdown files (e.g., Python blocks), enabling indirect construction of poisoned RAG stores.”
  • The authors state this as an assumption.

    The attacker has no privileged access to internal system files, memory stores, or other users' interactions, and cannot directly edit M, modify retrieval hyperparameters, or override system instructions.

    “The attacker has no privileged access to internal system files, memory stores, or other users' interactions. They cannot (i) directly edit M , (ii) modify retrieval hyperparameters, or (iii) override system instructions.”
  • The paper relies on this without support.

    MetaGPT's agents persist memory across sessions and store it under shared paths so that multiple invocations reuse accumulated successful experiences.

    “This retrieval-write cycle mirrors the operation of frameworks such as MetaGPT's agents (e.g., DataInterpreter ), where memory persists across sessions and is stored under shared paths so that multiple invocations of the agent reuse the accumulated successful experiences.”
  • The paper relies on this without support.

    The 12 handcrafted evaluation queries are representative of common DataInterpreter workloads and ordinary task conditions.

    “we design a set of 12 handcrafted queries reflecting common DataInterpreter workloads”
    “These queries serve as probes to measure how the poisoned memory influences retrieval behavior under ordinary task conditions.”
  • The paper relies on this without support.

    The poisoned seeds are semantically distinct from the evaluation query phrasing while mapping to the same underlying intents.

    “These queries were designed to be semantically distinct from the specific phrasing of the poisoned seeds while mapping to the same underlying intents”
  • The paper relies on this without support.

    The poisoned retrieval proportion is a valid proxy for the attack's behavioral impact on the agent.

    “using the Poisoned Retrieval Proportion (PRP) as the primary metric of interest”
    “leading the agent to adopt unsafe shortcuts such as skipping validation, reusing stale results, or executing risky automation.”
10 of 10

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Each of the four memory-poisoning attacks (MemMorph, MemoryGraft, Trojan Hippo, conversational Trojan) is an instance of an attack class in TMA-NM's threat model and injects through a channel TMA-NM labels untrusted external at write time, so the laundered value reaches the act gate act=none and is refused regardless of disguise, extraction evasion, or trigger timing.

    “Each of these is an instance of an attack class in our threat model, and each injects through a channel TMANMlabels untrusted external at write time, so the laundered value reaches the act gate act=none and is refused regardless of how convincingly it was disguised, how it evaded extraction, or when its trigger fires.”

    From Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees (2026) · cites this paper as [20]

    Split into 2 atoms — 0 confirmed, 2 partially supported, 0 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.

    Experimental — accuracy not yet measured
  • Recent research indicates that unrestricted expansion of memory is detrimental to the performance of LLM agents, as errors propagate within the memory system and contaminate the efficacy of learning.

    “However, recent research indicates that the unrestricted expansion of memory is detrimental to the performance of LLM agents, as errors propagate within the system for memory and contaminate the efficacy of learning (Xiong et al., 2025; Srivastava and He, 2025).”

    From From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms (2026) · cites this paper as Srivastava and He, 2025

    The Conclusion (p. 9) reports that poisoned memories can persist, be retrieved on later tasks, and lead agents to adopt unsafe shortcuts. This supports the concern that corrupted memories undermine experience-based learning, but the paper does not show that unrestricted memory expansion itself harms performance; it studies an attack using a small number of poisoned records. (LLM, conf=0.86)

    Experimental — accuracy not yet measured
  • Persistent agent memory introduces a security concern: poisoned records retrieved from long-term memory or external knowledge bases can influence subsequent agent behavior.

    “Beyond efficiency and reasoning quality, persistent agent memory also introduces a security concern: poisoned records retrieved from long-term memory or external knowledge bases can influence subsequent agent behavior (Chen et al., 2024; Srivastava and He, 2025; Ferrag et al., 2026; Dong et al., 2025).”

    From Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents (2026) · cites this paper as Srivastava and He, 2025

  • Recent work has demonstrated memory poisoning attacks in various settings.

    “Recent work has demonstrated memory poisoning attacks in various settings (Dong et al., 2025; Srivastava &amp; He, 2025; Anonymous, 2025; Chen et al., 2024; Zou et al., 2026; Xu et al., 2026).”
  • TMA-NM blocks all four published memory-poisoning pipelines (MemMorph, MemoryGraft, Trojan Hippo, conversational Trojan) with 0/1152 (0.0%) ASR at benign-task utility identical to the undefended agent (264/384 under both).

    “Pooled over the eight models, TMANM blocks every one ( 0 / 1152 , 0 . 0% ) at benign-task utility identical to the undefended agent ( 264 / 384 under both)”

    From Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees (2026) · cites this paper as [20]

    Section 5.3 (p. 8) reports MemoryGraft’s poisoned-retrieval proportion, not results for TMA-NM. Searches for TMA-NM, the eight-model comparison, 0/1152, and 264/384 found no passage in our copy supporting the claimed defense performance or identical benign-task utility. (LLM, conf=0.78)

    Experimental — accuracy not yet measured

Cites

Flagged first, then by citations

Research works printed but not linked: 1

  1. [16][16] Anonymous. Injecmem: Memory injection attack on llm agent memory systems. ICLR 2026 Conference Submission , 2025. Preprint.

Cited by

Sorted by citations

Authors
Srivastava, S. S., & He, H.
Venue
arXiv
Publisher
arXiv
Published
2025
ISSN
2331-8422 (ISSN-L)
OpenAlex
W7116866437
Cited by
0
References
17
Type
posted content
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Security and Verification in Computing
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
LLM agents, memory poisoning, retrieval-augmented generation, long-term memory, agent security, prompt injection, GPT-4o

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-16.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-16.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review