Python: Security: OWASP Agent Memory Guard for SK memory poisoning defense (ASI06)

オープン
#14,006 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

  • #14608 @sparkysolutions10-pixel による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
43/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

まず Python SemanticTextMemory のエントリーポイントと issue で言及されているメモリコネクターを確認し、その後、リポジトリのドキュメント構成を調査します。関連するガイダンスで OWASP ASI06 を扱い、提案されている enforcement layer として Agent Memory Guard を明確に説明または参照できていれば完了です。issue では具体的なファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

python triage

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 in Semantic Kernel

Semantic Kernel's memory connectors (volatile, Redis, Azure AI Search, etc.) are vulnerable to memory poisoning attacks. Malicious content stored in semantic memory can:

  • Manipulate kernel function outputs
  • Cause the planner to execute attacker-controlled steps
  • Persist attack payloads across sessions

Integration Example (Python)

pip install agent-memory-guard
from semantic_kernel.memory import SemanticTextMemory
from agent_memory_guard import MemoryGuard

guard = MemoryGuard()

async def safe_save_information(memory: SemanticTextMemory, collection: str, text: str, **kwargs):
    result = guard.scan_write(text)
    if not result.is_safe:
        raise ValueError(f"Memory poisoning blocked: {result.threat_type}")
    await memory.save_information(collection=collection, text=text, **kwargs)

Request

Would the SK team consider:

  1. Adding memory security guidance to the docs (OWASP ASI06)
  2. Referencing Agent Memory Guard as the recommended enforcement layer

Apache 2.0 licensed. Already integrated with LangChain via langchain-agent-memory-guard.

主要言語
C#
スター
28.8k
フォーク
4.9k
平均マージ
2日 17時間
マージ済み PR(30日)
48

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/semantic-kernel のほかの issue

microsoft/semantic-kernel の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。