Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.53 KB

memory-poisoning.md

File metadata and controls

34 lines (27 loc) · 1.53 KB

Memory Poisoning

Malicious input corrupts agent memory, leading to unsafe or unintended actions.

An attacker manipulates input during one session so a poisoned fact is committed to long-term memory; in a later, unrelated session the agent retrieves it as trusted state and lets it shape decisions the attacker is no longer present to make.

stateDiagram-v2
    [*] --> UntrustedWrite : Manipulated<br/>input arrives
    UntrustedWrite --> StoredAsTrusted : No classification<br/>at write
    StoredAsTrusted --> RetrievedAsState : Future task<br/>reads memory
    RetrievedAsState --> InfluencesAction : Treated as<br/>agent fact
    InfluencesAction --> [*]
Loading



Defence classifies and tags every write with provenance and expiry, blocks instruction-shaped content from entering memory, and re-checks freshness and trust on every read so that no untrusted fact silently becomes durable agent state.

flowchart TD
    M["Memory store"]
    M --> W["Write-side<br/>controls"]
    M --> R["Read-side<br/>controls"]
    W --> W1["Classification<br/>before write"]
    W --> W2["Provenance and<br/>expiry tags"]
    W --> W3["Anomaly detection on<br/>instruction-shaped content"]
    R --> R1["Freshness<br/>filter"]
    R --> R2["Instruction-data<br/>separation in memory"]
    R --> R3["Logging of<br/>influential reads"]
Loading