Skip to content

Security: OWASP Agent Memory Guard for memory poisoning defense (ASI06) #164

Description

@vgudur-dev

Feature Request: OWASP Agent Memory Guard Integration

What is Agent Memory Guard?

OWASP Agent Memory Guard is the official OWASP reference implementation for ASI06 - Memory Poisoning from the OWASP Top 10 for Agentic Applications.

Why LangMem Needs This

LangMem's memory management system (semantic memory, episodic memory, procedural memory) is exactly the attack surface that memory poisoning targets. Malicious content stored via LangMem can persist across all future agent runs.

Integration Example

pip install agent-memory-guard langchain-agent-memory-guard
from langmem import create_memory_store
from langchain_agent_memory_guard import MemoryGuardMiddleware

# Wrap LangMem store with security middleware
store = create_memory_store()
secure_store = MemoryGuardMiddleware(store, policy="strict")

# All writes are automatically scanned
secure_store.put(namespace, key, {"content": user_message})

Request

Would the LangMem team consider adding a security section covering memory poisoning (OWASP ASI06) and referencing Agent Memory Guard?

Apache 2.0 licensed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions