AlertSeverity (agent_os/memory_guard.py)

agent-governance-toolkit · agent-governance-python/agent-os/src/agent_os/memory_guard.py · python · MIT
ai

Defines severity levels for memory poisoning alerts used by agent memory guard.

# Source: https://github.com/NousResearch/agent-governance-toolkit | License: MIT | Copyright Microsoft Corporation
# Provided via justclaw.it.com; keep this notice with the code.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""Memory & Context Poisoning Detection — OWASP ASI06.

Guards agent memory stores (RAG, episodic, working memory) against
poisoning attacks where adversaries inject malicious data to manipulate
agent behaviour.

Public Preview protections:
    - **Hash integrity**: SHA-256 hash per memory entry; detects tampering.
    - **Injection pattern detection**: Blocks prompt-injection payloads
      written into memory.
    - **Content validation**: Rejects entries with dangerous code or
      excessive special-character manipulation.
    - **Write 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key