DET-203 · agent · confidence Medium

Logging Every Write to Agent Memory

Record each memory create, edit, promotion and delete as an audit event tied to a source.

When an agent acts on a memory days later, you need to know where it came from. This detection logs every write path, in-session, per-user, shared, vector and cross-session, before the entry is available for retrieval. Each record holds the entry ID, action, agent, session, user, identity, tool, source content hash and prior version.

This gives you a lookup from behavior to origin. It also allows rollback and identifies cross-user contamination, where one person's content ends up in another's context. Without writes logged, memory poisoning can run for weeks unseen.

Data sources
Memory store audit logsVector database logsAgent gateway logsDatabase audit logs
Platforms
AI Platform

Logic

Schema: memory_events(entry_id, action, ts, agent_id, session_id, user_id, identity, source_hash, prior_hash). Hunt: entries read in a session whose writer user_id differs from the reading user_id; writes with source_type in (web, email); deletes of entries cited in past incidents. Alert if any write path emits no event (coverage test).

False positives

Shared team memory legitimately crosses users. Scope the cross-user rule to private memories.

Catches 4 techniques