Skip to main content
QUICK REVIEW

[論文レビュー] Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents

Hanrong Zhang, Jingyuan Huang|arXiv (Cornell University)|Oct 3, 2024
Digital Rights Management and SecurityComputer Science被引用数 6
ひとこと要約

ASBは、複数のシナリオ、バックボーン、ツール/メモリ設定に跨るLLMベースのエージェントに対する攻撃と防御を正式化・ベンチマーク・評価する総合的なベンチマークであり、敵対的攻撃に対する高い脆弱性と防御の効果が限定的であることを明らかにします。

ABSTRACT

Although LLM-based agents, powered by Large Language Models (LLMs), can use external tools and memory mechanisms to solve complex real-world tasks, they may also introduce critical security vulnerabilities. However, the existing literature does not comprehensively evaluate attacks and defenses against LLM-based agents. To address this, we introduce Agent Security Bench (ASB), a comprehensive framework designed to formalize, benchmark, and evaluate the attacks and defenses of LLM-based agents, including 10 scenarios (e.g., e-commerce, autonomous driving, finance), 10 agents targeting the scenarios, over 400 tools, 27 different types of attack/defense methods, and 7 evaluation metrics. Based on ASB, we benchmark 10 prompt injection attacks, a memory poisoning attack, a novel Plan-of-Thought backdoor attack, 4 mixed attacks, and 11 corresponding defenses across 13 LLM backbones. Our benchmark results reveal critical vulnerabilities in different stages of agent operation, including system prompt, user prompt handling, tool usage, and memory retrieval, with the highest average attack success rate of 84.30\%, but limited effectiveness shown in current defenses, unveiling important works to be done in terms of agent security for the community. We also introduce a new metric to evaluate the agents' capability to balance utility and security. Our code can be found at https://github.com/agiresearch/ASB.

研究の動機と目的

  • LLMベースのエージェントを標的とするシステムプロンプト、ユーザープ prompts、メモリ、ツールを含む広範な敵対的脅威を正式化する。
  • 多様なシナリオとバックボーンにわたる攻撃と防御を評価する統一ベンチマークフレームワークを提供する。
  • LLMエージェントの将来のセキュリティ研究を導くために、攻撃の有効性と防御のギャップを定量化する。
  • ブラックボックスのメモリとツールアクセス下でのPlan-of-Thoughtバックドア攻撃の新規性を示し、その影響を評価する。

提案手法

  • 直接的および観測プロンプト注入攻撃(DPI/OPI)と、LLM-エージェントフレームワーク内のメモリ汚染を定義する。
  • システムプロンプトにバックドード計画ステップとトリガーを埋め込む新規のPlan-of-Thought (PoT)バックドア攻撃を導入する。
  • DPI、OPI、メモリ汚染、PoTバックドアを組み合わせた混成攻撃をエージェントの各段階で定式化する。
  • 10のタスクシナリオで10エージェントと400のツールを用い、13のLLMバックボーンに対して23タイプの攻撃/防御をベンチマークする。
  • 攻撃成功と防御有効性を定量化する評価指標(ASR、RR、PNA、BP、FPR/FNR)を提供する。
  • 再現性のあるLLMベースのエージェントのセキュリティ検証を可能にするコードとベンチマークを公開する。

実験結果

リサーチクエスチョン

  • RQ1さまざまな攻撃表面(システムプロンプト、ユーザープ prompts、メモリ取得、ツール使用)がLLMベースのエージェントのセキュリティにどのような影響を与えるか。
  • RQ2多様なバックボーンとシナリオに跨る広範な技術に対する防御の有効性はどれほどか。
  • RQ3統一ベンチマーク(ASB)は現在の防御の脆弱性とギャップを露呈できるか。
  • RQ4提案されたPlan-of-Thoughtバックドア攻撃はブラックボックスのメモリとツールアクセス下で高い攻撃成功率を実現できるか。

主な発見

  • 13のLLMバックボーン全体で、混合攻撃の平均攻撃成功率(ASR)は84.30%に達し、全体的に高い脆弱性を示す。
  • プロンプト注入攻撃(DPI/OPI)は平均ASRが72.68%と実質的な影響を示し、OPIにも顕著な結果がある。
  • メモリ汚染とPoTバックドア攻撃は特定のバックボーンで高いASRに寄与し、システムプロンプト、メモリ、ツール使用という複数の脆弱点を浮き彫りにする。
  • 現在の防御は限定的な有効性を示し、混合攻撃下で観測される高いASRを完全には緩和できていない。
  • ASBはほぼ9万件のテストケース、10シナリオ、400ツールを提供し、LLMベースのエージェントのセキュリティリスクを広範で現実的に評価できる。

この論文を読む

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

Nubintでこの論文を読む

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