Architecture

Agent Memory Guard

OWASP's open-source runtime middleware defense layer for AI agent memory systems, mapped to the **ASI06: Memory Poisoning** entry in the OWASP Top 10 for Agentic Applications. Ships as a drop-in integration for LangChain, LlamaIndex, and CrewAI. Enforces strict memory-governance protocols at the read/write boundary: cryptographic integrity (SHA-256 hashing of memory blobs at rest), real-time anomaly detection on rapid state changes + protected-key modifications + unusual blob-size expansions, composite trust scoring with temporal decay during retrieval, and automatic state snapshots for time-travel rollback to a known-good cognitive state when poisoning is detected.

10 connections2 posts

Definition

What it is

OWASP's open-source runtime middleware defense layer for AI agent memory systems, mapped to the ASI06: Memory Poisoning entry in the OWASP Top 10 for Agentic Applications. Ships as a drop-in integration for LangChain, LlamaIndex, and CrewAI. Enforces strict memory-governance protocols at the read/write boundary: cryptographic integrity (SHA-256 hashing of memory blobs at rest), real-time anomaly detection on rapid state changes + protected-key modifications + unusual blob-size expansions, composite trust scoring with temporal decay during retrieval, and automatic state snapshots for time-travel rollback to a known-good cognitive state when poisoning is detected.

Why it exists

Prompt injection was stateless — neutralized when the user's session ended. Memory poisoning is persistent — once a malicious instruction is written to long-term semantic memory, it blends into the agent's "learned" identity and triggers data exfiltration / unaligned behavior / unauthorized tool calls weeks or months later as "trusted historical context." The defense had to move into the memory layer itself, not the prompt layer. Agent Memory Guard is the runtime substrate that does that.

Primary use cases

Drop-in defense for agent frameworks (LangChain / LlamaIndex / CrewAI) reading + writing persistent memory, cryptographic-integrity validation of memory blobs against tampering at rest, real-time anomaly detection on memory-write patterns suggestive of injection payloads, composite-trust scoring + temporal decay for retrieval-time sanitization, forensic rollback to pre-poisoning snapshots after detected incidents, multi-agent environments where one poisoned agent could propagate corruption via shared memory orchestration.

Connections10

Outbound7
Inbound3

Featured in