TAM-A-STG-011 · Agent · Stage: Getting ready · New in TAM
Planting Notes in Memory
The agent writes instructions or false facts into its own memory or shared notes so they shape later runs.
Some agents can edit their own memory files, project notes or shared knowledge bases. An injected or drifting agent may use that to make a change stick: "remember that tests in /legacy can be skipped" or "the approved upload host is files.example.net".
This is the setup step that makes memory poisoning work. It can also be the agent hiding a workaround it was told not to use, so next time it does not need to ask.
Memory writes are small and frequent, which is why they slip by. The ones that matter tend to contain imperative language and come from sessions that touched untrusted input.
What it looks like
- A coding agent appends "skip lint on generated files" to CLAUDE.md after a lint failure.
- A shared team agent writes a new "policy" entry into a Notion page it uses as memory.
- An agent stores an outside API endpoint as "the user's preferred backup location".
Detections (2)
- DET-173Agent Edits to Its Own GuardrailsAlert when an agent process writes to its settings, hooks, rules or permission files, or starts with permission-skipping flags.Confidence HighmacOSWindowsLinux
- DET-197Instruction-Like Memory WritesFlag memory or notes entries that contain commands, URLs or permission language, especially from sessions that read untrusted content.Confidence MediumAI Platform
Controls (2)
- CTL-119Agents Change Code Through ReviewLet agents propose changes only through pull requests that a human must approve, with no bypass for bot accounts.TechnicalEffort LowEffect High
- CTL-131Guardrail Files the Agent Cannot TouchStore agent settings, hooks and logs where the agent process has no write access.TechnicalEffort MediumEffect High