Chiosa
AI Security & Safety

LinEra makes forgotten agent memories unreadable

Forget the Lineage: Forward-Secure, Lineage-Complete Cryptographic Erasure for LLM-Agent Memory · arXiv:2611.18133

3 min
Updated
LinEra in one example. Keys flow along the lineage (grey arrows). Forgetting s1 punctures the PPRF at ts1: ks1 can no longer be computed, so neither can the keys of its descendants r and f, even by…
LinEra in one example. Keys flow along the lineage (grey arrows). Forgetting s1 punctures the PPRF at ts1: ks1 can no longer be computed, so neither can the keys of its descendants r and f, even by an attacker who later steals the store and the current key S. s2 and g stay…Figure 1 · Forget the Lineage: Forward-Secure, Lineage-Complete Cryptographic Erasure for LLM-Agent Memory · Yulliwas Ameur et al. · CC BY 4.0

In plain words

An AI assistant can keep summaries and facts that it wrote from a conversation. Deleting the original message may leave those copies, or old storage files, readable.

LinEra records which memories were available when each new memory was written, then ties their encryption keys together. In a test with 35 planted secrets, an attacker with all files and current keys recovered none through four checked channels under LinEra’s full-context rule. The result applies to that test, not every system.

The research

Deleting a message may leave its information in summaries, facts or storage residue, so a forget request can fail to remove what an assistant remembers.

LinEra changes what an erasure test must check: whether an attacker with later access to stored files and current keys can recover information from memories derived from the source.

LinEra records which memories informed each new one and links their encryption keys, so forgetting a source also makes its recorded descendants unreadable.

The system was tested by replaying the same model-written memories under logical deletion, per-object keys, epoch keys and LinEra, then giving an attacker all files and current secret state. The attacker checked readable records, raw bytes, vectors and descendants that mentioned forgotten topics.

It recovered 35 of 35 planted secrets with logical deletion, but none of 35 with LinEra’s sound rule. This supports the claim that recording the full writing context can make derived memories unreadable in the tested setup.

The leakage test covered 35 planted secrets in 128 sessions written by one small open model, and the answer test covered 60 questions from two LoCoMo conversations.

LinEra’s guarantee concerns stored memories and recorded lineage; it excludes model weights, copies made before a forget request, and some other information.

What the evidence shows

  • Deletion leaves derived copies

    LinEra is a cryptographic erasure system for memories written by large language model agents. It addresses a gap in ordinary deletion: an agent can turn a user’s message into summaries, facts and embeddings, while storage can retain deleted records in files or backups. Erasing the message alone therefore may leave readable copies of its information.

  • Keys follow memory lineage

    LinEra records which memory objects were available when a new one was written, then derives its encryption key from its parents’ keys. Forgetting a source disables its key and makes descendant keys unavailable.

    In a test with 35 planted secrets, an attacker with all files and current secret state recovered 0 of 35 under LinEra’s sound rule, compared with 35 of 35 under logical deletion.

  • Full context changes the result

    The decisive detail is how the system chooses a memory’s parents. An attributed rule selected three likely context objects, but the attacker still found information about 3 of 35 secrets through descendants.

    The sound rule recorded every object in the writer’s context, and none of the 35 secrets leaked through the tested channels. The result shows why incomplete parent records weaken the erasure claim in this test.

  • Broader erasure has a cost

    Sound lineage can erase memories that merely saw a forgotten source, so the researchers measured that cost. When 1% of source turns were forgotten, the whole-session writer lost a mean 64.4% of derived memories, while a four-turn-window writer lost 3.9% in the measured conversations. The authors connect the difference to how many source turns each memory depends on.

  • Re-derivation can restore answers

    After 1% forgetting, re-deriving affected memories raised token F1 from 10.5 to 17.2 in a 60-question test from two LoCoMo conversations. This suggests rebuilding from surviving information can recover answer quality in that setting while keeping the sound lineage rule for new memories.

Deep

Next paperDeleting a record can leave its secret recoverable by an agent