Skip to main content
QUICK REVIEW

[論文レビュー] AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents

Edoardo Debenedetti|arXiv (Cornell University)|Jun 19, 2024
Network Security and Intrusion DetectionComputer Science被引用数 6
ひとこと要約

AgentDojo は、4つの状態を持つ環境にまたがる 97 のタスクと 629 のセキュリティ テスト ケースを特徴とする、LLM ベースのエージェントをプロンプトインジェクション攻撃と防御に対して評価する動的ベンチマーク環境です。

ABSTRACT

AI agents aim to solve complex tasks by combining text-based reasoning with external tool calls. Unfortunately, AI agents are vulnerable to prompt injection attacks where data returned by external tools hijacks the agent to execute malicious tasks. To measure the adversarial robustness of AI agents, we introduce AgentDojo, an evaluation framework for agents that execute tools over untrusted data. To capture the evolving nature of attacks and defenses, AgentDojo is not a static test suite, but rather an extensible environment for designing and evaluating new agent tasks, defenses, and adaptive attacks. We populate the environment with 97 realistic tasks (e.g., managing an email client, navigating an e-banking website, or making travel bookings), 629 security test cases, and various attack and defense paradigms from the literature. We find that AgentDojo poses a challenge for both attacks and defenses: state-of-the-art LLMs fail at many tasks (even in the absence of attacks), and existing prompt injection attacks break some security properties but not all. We hope that AgentDojo can foster research on new design principles for AI agents that solve common tasks in a reliable and robust manner.. We release the code for AgentDojo at https://github.com/ethz-spylab/agentdojo.

研究の動機と目的

  • ツールを使用するAIエージェントが信頼できないデータをどのように処理するかを評価する、動的で拡張可能なフレームワークを提供する。
  • 実際的なタスクとセキュリティテストをフレームワークに組み込み、攻撃者の成功とエージェントの頑健性を測定する。
  • 状態を持つツール使用エージェントに対するプロンプトインジェクションに対する既存および新しい防御の評価を可能にする。
  • LLM シミュレータではなく環境状態に基づく形式的な効用評価を提供する。

提案手法

  • 複数のアプリケーションを含む状態を持つ環境をモデル化する(例:電子メール、カレンダー、クラウドストレージ)。
  • 成功を判断するための正式な効用チェックを用いて、ユーザタスクとインジェクションタスクを定義する。
  • 4つの環境にまたがって74のツールと97の現実的なユーザタスクを実装する。
  • ユーザタスクとインジェクションタスクの直積を用いて629のセキュリティテストケースを作成する。
  • さまざまなプロンプトインジェクション攻撃と防御を用いてエージェントと攻撃者を評価する。
  • 新しいタスク、ツール、攻撃、防御を追加するための拡張可能なインターフェースを提供する。

実験結果

リサーチクエスチョン

  • RQ1現在の LLM エージェントがプロンプトインジェクションの存在下で現実的なタスクを完了するのはどれくらい難しいか?
  • RQ2攻撃者の成功を減らすのに既存の防御はどれくらい効果的で、エージェントの有用性を損なわないか?
  • RQ3AgentDojo はより頑健なエージェント設計と防御機構の開発を導くことができるか?
  • RQ4攻撃者がユーザーやモデルについて知っている情報は、タスク全体での攻撃成功にどのように影響するか?

主な発見

  • 最先端の LLM は善意の設定で AgentDojo のタスクの 66% 未満を解決する。
  • トップパフォーマンスのエージェントに対しての攻撃はケースの中で25%未満で成功する。
  • セカンダリ攻撃検出器のような防御は攻撃成功を約8%に抑えるが、効用のトレードオフが生じる。
  • プロンプトインジェクションの有効性は、ツール出力のどこにインジェクションを配置するかに影響され、出力の終端でのインジェクションが最も効果的である。
  • ツール分離防御(ツールフィルタリング)は攻撃成功を7.5%まで下げられるが、タスクが柔軟なツール利用を必要とする場合には失敗することがある。
  • GPT-4o は最も良好な善意の有用性を示すが、適応型プロンプトの下で顕著な頑健性の課題に直面する;Claude Opus は競争力のある有用性と頑健性のトレードオフを提供する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。