> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flintai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory poisoning

> Persistent agent memory stores unsanitized content that poisons future reasoning sessions

Persistent agent memory stores unsanitized content that poisons future reasoning sessions

## How to resolve

Scan all memory writes for malicious content before commit. Track provenance of memory entries. Use expiry and down-weighting for unverified memories.

## Risk

**Governance/Compliance**

This vulnerability falls under [ASI06:2026 — Memory and Context Poisoning](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) in the OWASP Top 10 for Agentic Applications. Persistent memory, RAG stores, or context summaries poisoned to alter future agent behavior.

**Security**

Persistent agent memory stores unsanitized content that poisons future reasoning sessions. If exploited, this can compromise the agent's integrity, confidentiality, or availability, potentially affecting downstream systems and data.

## Explanation

Persistent agent memory stores unsanitized content that poisons future reasoning sessions. This falls under ASI06 (Memory and Context Poisoning): Persistent memory, RAG stores, or context summaries poisoned to alter future agent behavior.

## Specifications

**Trigger**

* Agent scan detects persistent agent memory stores unsanitized content that poisons future reasoning sessions

The scanner looks for patterns such as:

* memory=True with no content filter
* store\_memory() called on unvalidated output
* append to memory without sanitization

**Severity**

* HIGH

**Applies to**: Agent
