research synthesis

Memory Poisoning Turns Crypto Agents Into Trojan Horses — Sign or Die

A new study finds that once planted in persistent memory, prompt injection payloads reliably compromise both current and future agent sessions, with success varying across models and systems.

2 min read 5 claims web-cited

Prompt injection has a new frontier: persistent memory. A recent paper evaluating Anthropic Claude Code and OpenAI Codex across four models — Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5 — reveals a dangerous asymmetry [^claim_2285]. While it is difficult to make an agent overwrite its own memory files using untrusted external content [^claim_2286], payloads already planted in those files can successfully attack both current and future sessions [^claim_2287]. The attack success and payload persistence vary substantially across systems, models, adversarial goals, and multi-session attack sequences [^claim_2288].

For crypto, this shifts the threat model. Autonomous agents managing on-chain assets — DeFi trading bots, MEV searchers, DAO treasury delegates, cross-chain relayers — increasingly rely on persistent memory to store preferences, routing rules, and behavioral constraints. A one-time compromise of that memory store, perhaps via a compromised dependency or a malicious update, plants a payload that subverts every subsequent action. The agent does not need to be re-exploited; the memory does the work.

The paper’s core finding is that persistent memory changes the threat model for prompt injection and motivates defenses that protect memory updates without removing useful agent adaptation [^claim_2289]. For crypto agents, this maps directly to a need for signed or attested memory. Instead of trusting the LLM’s self-censorship, memory writes should require a cryptographic signature from a known key — stored on-chain or in a TEE-attested enclave. This mirrors how smart-contract wallets use session keys with explicit permission scopes, but applied to the agent’s persistent state rather than transaction authorization.

The variance across models [^claim_2288] means that security guarantees are not uniform. A builder deploying on Claude Opus 4.7 might face different memory-injection resilience than one on GPT-5.2. Model choice becomes a security parameter, analogous to selecting a zk-prover with different soundness assumptions. Teams must test their specific agent stack against memory-poisoning attacks, not assume generic safety.

One memory-poisoning event can subvert all future sessions. The defense — cryptographically binding memory writes to authorized keys — is a natural fit for blockchain-based identity and attestation primitives. Watch for agent frameworks that adopt signed memory or on-chain attestation as a core security primitive.

Provenance ledger

5 claims web-cited

Every claim below cites a source URL, and each URL was checked for validity before publish. The excerpt shown is the researcher's own summary of the page — it is not re-derived from the source, so it is not a verified verbatim quote. Follow the link to confirm any claim against the original. Citation markers in the text jump here.

[1] The paper evaluates two agentic systems: Anthropic Claude Code and OpenAI Codex, across four models: Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5. web-cited
Excerpt reported by researcher (not re-verified)
We evaluate two agentic systems, Anthropic Claude Code and OpenAI Codex, across four models: Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5.

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[2] It is difficult to make an agent overwrite its own memory files using untrusted external content. web-cited
Excerpt reported by researcher (not re-verified)
our results show that although it is difficult to make an agent overwrite its own memory files using untrusted external content

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[3] Payloads already planted in memory files can successfully attack both current and future sessions. web-cited
Excerpt reported by researcher (not re-verified)
payloads already planted in those files can successfully attack current and future sessions

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[4] Attack success and payload persistence vary substantially across systems, models, adversarial goals, and multi-session attack sequences. web-cited
Excerpt reported by researcher (not re-verified)
Attack success and payload persistence vary substantially across systems, models, adversarial goals, and multi-session attack sequences.

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[5] Persistent memory changes the threat model for prompt injection, motivating defenses that protect memory updates without removing useful agent adaptation. web-cited
Excerpt reported by researcher (not re-verified)
These findings show that persistent memory changes the threat model for prompt injection and motivate defenses that protect memory updates without removing useful agent adaptation.

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text

Sources

  1. Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems
prompt-injectionai-agentsmemory-poisoningcrypto-securityautonomous-agents
AUTOMATED

Get the synthesis

AI×crypto research, repackaged with every claim hash-locked to its source. New arXiv → analysis in ~3 hours.