Python: Security: OWASP Agent Memory Guard for Semantic Kernel memory protection

Author: vgudur-devCreated May 14, 2026Updated Sep 29, 2026
Labelspythontriagestale

Feature Request: Memory Security Integration

Hi Semantic Kernel team,

Semantic Kernel is Microsoft's premier framework for building AI agents and copilots. As SK agents increasingly use memory stores (volatile, semantic, episodic), memory poisoning is an emerging security concern for enterprise deployments.

The threat: Malicious content injected into SK memory stores can silently bias agent behavior across sessions — a persistent, hard-to-detect attack vector.

OWASP Agent Memory Guard is the reference implementation for OWASP ASI06 (Memory Poisoning) in the OWASP Top 10 for Agentic Applications:

  • Runtime scanning of memory reads/writes for injection payloads, secret leakage, and structural tampering
  • SHA-256 integrity baselines to detect post-write tampering
  • Policy-driven enforcement (block / warn / strip)
  • Sub-100μs overhead
python
pip install agent-memory-guard

GitHub: https://github.com/OWASP/www-project-agent-memory-guard PyPI: https://pypi.org/project/agent-memory-guard/

As a fellow Microsoft engineer working on AI security, I'd love to explore adding this as a recommended security layer in SK's memory pipeline or as a featured integration in the SK documentation.

Source: microsoft/semantic-kernel