arXiv preprint · cs.CR · research brief
MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval
arXiv API-verified bibliographic record (2512.16962). Summary and empirical context retained for internal Observatory reference only.
Executive summary
- What the authors do
In this paper, we introduce MemoryGraft.
- Mapped technique RAG Poisoning AML.T0070. The paper targets retrieval-augmented generation or knowledge-base integrity.
- Model families named OpenAI/GPT
- Defensive priorities Sanitize Training Data, Generative AI Guardrails, and Maintain AI Dataset Provenance, plus 1 more ATLAS mitigation
Quotations come from the arXiv abstract. Read the paper for its full methods, threat model, and limitations.
Technique mapping
| Technique | Relationship | Why it maps |
|---|---|---|
| RAG Poisoning AML.T0070 | Primary | The paper targets retrieval-augmented generation or knowledge-base integrity. |
| AI Agent Context Poisoning AML.T0080 | Secondary | The paper targets poisoning of an AI agent's context, memory, or retrieved knowledge. |
Model routes mapped to this paper
Named mappings link a model family the paper names to its current route. Model-class mappings link papers on model classes that are commonly evaluated against that family. Neither asserts a paper-specific score.
| Model route | Mapping | Rationale |
|---|---|---|
| OpenAI: GPT Sol Latest | Named in the paper | The paper names OpenAI/GPT; the current OpenAI route is retained as a modern mapping without asserting a paper-specific score. |
Mitigations for RAG Poisoning
- Sanitize Training Data AML.M0007
Screen pre-training, fine-tuning, RLHF, and RAG ingestion corpora for poisoned samples, hidden instructions, backdoor triggers, PII, and anomalous label distributions before use.
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- Maintain AI Dataset Provenance AML.M0025
Maintain cryptographic lineage, authorization records, and immutable transformation logs for every training, RLHF, and RAG corpus revision to enable clean rollback after poisoning.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. These packs exercise the techniques this paper maps to. Replace <model-id> with an OpenRouter route ID.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery rag_indirect_injection,multiturn_live_escalation
refract reportrag_indirect_injectioninstructions embedded in retrieved tickets, emails, wikis, and other RAG documentsmultiturn_live_escalationlive multi-turn escalation and context poisoning across real conversation turns
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Citation record
Inspect in Observatory Sources Registry
- arXiv identifier
2512.16962- Observatory record
RA-2512.16962- Publication or host
- arXiv (author preprint; peer-review status not inferred)
- Published
- Primary category
- cs.CR
- Categories
- cs.CR, cs.AI, cs.LG
- Evidence provenance
- Verified against the arXiv API
- Retrieved
- Discovery query
- arXiv LLM poisoning and integrity research
- Reference URI
https://arxiv.org/abs/2512.16962- Metadata fingerprint (SHA-256)
2e5307f3344d5bd7a246c9cd33160d94c6c4f6075ee000633b283a4bd8ca7a2f