crewai - 💡(How to fix) Fix Security: Add OWASP Agent Memory Guard for memory poisoning defense [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
crewAIInc/crewAI#5793Fetched 2026-05-14 03:34:11
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
closed ×1

Code Example

pip install agent-memory-guard

---

from agent_memory_guard import MemoryGuard

guard = MemoryGuard()

# Before writing to memory
result = guard.scan_write(memory_content)
if result.is_safe:
    crew_memory.save(memory_content)
else:
    print(f"Blocked: {result.threat_type}")
RAW_BUFFERClick to expand / collapse

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.

The Problem

CrewAI agents store and retrieve memory across sessions. A single poisoned memory entry can:

  • Bias all future agent decisions
  • Exfiltrate secrets stored in memory
  • Cause agents to execute attacker-controlled instructions

What Agent Memory Guard Does

pip install agent-memory-guard
from agent_memory_guard import MemoryGuard

guard = MemoryGuard()

# Before writing to memory
result = guard.scan_write(memory_content)
if result.is_safe:
    crew_memory.save(memory_content)
else:
    print(f"Blocked: {result.threat_type}")

Request

Would the CrewAI team consider:

  1. Adding a security note in the docs about memory poisoning (ASI06)
  2. Referencing Agent Memory Guard as the recommended defense layer

References

This is an open-source, Apache 2.0 licensed tool with no external dependencies.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

crewai - 💡(How to fix) Fix Security: Add OWASP Agent Memory Guard for memory poisoning defense [1 participants]