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

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
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| HeadyZhang / agent-audit | 244 | 57 days ago | MIT | No downloads |
| microsoft / agent-governance-toolkit | 6,544 | 2 days ago | MIT | No downloads |
| PrismorSec / prismor | 480 | 2 days ago | Apache-2.0 | Mac, 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
