Skip to content
The Daily Repo

OWASP / www-project-agent-memory-guard

Runtime defense against memory poisoning in AI agents (OWASP ASI06). Drop-in for LangChain, OpenAI Agents, AutoGen, CrewAI and mem0.

Why this job: topics: security, ai-security, llm-security, prompt-injection, ai-safety

Attack demo: poisoning survives context reset, AMG catches it

What it does

  • Integrity. SHA-256 baselines flag out-of-band tampering with immutable keys.
  • Threat detection. built-in detectors for prompt injection, secret/PII leakage, protected-key modifications, size anomalies, and self-reinforcement loops.
  • Policy enforcement. YAML-defined rules map findings to actions: allow, redact, quarantine, or block.
  • Forensics. every decision emits a structured SecurityEvent; point-in-time snapshots enable rollback to a known-good state.
  • Drop-in middleware. ships with GuardedChatMessageHistory for LangChain; framework-agnostic MemoryStore protocol covers any backend.

Get started

pip install agent-memory-guard
Maintenance
Active
Last commit today
Stars
200
+7 this week
Licence
Apache-2.0
Allows business use
Downloads for
None listed
No release files
Latest version
v0.4.0
Released 12 days ago
Built with
Python
100% of the code

Is it looked after?

Contributors
7
Last 90 days
Issues
66% closed
11 still open
Pull requests
84 merged
16 waiting
Releases
6
6 in the last year

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
HeadyZhang / agent-audit24457 days agoMITNo downloads
microsoft / agent-governance-toolkit6,5442 days agoMITNo downloads
PrismorSec / prismor4802 days agoApache-2.0Mac, Windows, Linux
More: languages, topics and project record

Languages

  • Python 100%
  • HTML <1%
  • Ruby <1%

Topics

  • ai-agents
  • langchain
  • llm-security
  • memory-poisoning
  • owasp
  • prompt-injection
  • python
  • ai-safety
  • autogen
  • crewai
  • security
  • agentic-ai

Project record

  • JobAI security
  • StatusListed
  • Commits634
  • Forks64
  • Watching2
  • Stars in 28 days+17
  • CreatedFeb 16, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 9, 2026

Type to search.

Try