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)|2024. 10. 03.
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-based 에이전트를 대상으로 하는 광범위한 적대적 위협을 형식화한다.
  • 다양한 시나리오와 백본에 걸쳐 공격과 방어를 평가하기 위한 통합 벤치마크 프레임워크를 제공한다.
  • LLM 에이전트의 향후 보안 연구를 안내하기 위해 공격 효과성과 방어 격차를 정량화한다.
  • 새로운 Plan-of-Thought (PoT) backdoor 공격을 시연하고 블랙박스 메모리 및 도구 접근 하에서 그 영향을 평가한다.]
  • method":["LLM-에이전트 프레임워크 내에서 직접 프롬프트 주입 공격(DPI)과 관찰 프롬프트 주입 공격(OPI), 그리고 메모리 오염을 정의한다.","시스템 프롬프트에 백도어 계획 단계와 트리거를 포함시키는 새로운 Plan-of-Thought (PoT) backdoor 공격을 도입한다.","에이전트 단계에 걸쳐 DPI, OPI, 메모리 오염, PoT 백도어를 결합한 혼합 공격을 형식화한다.","10개의 태스크 시나리오에서 10명의 에이전트와 400개의 도구로 13개의 LLM 백본에 대해 23개의 공격/방어 유형을 벤치마크한다.","공격 성공과 방어 효과를 정량화하기 위한 평가 지표들(ASR, RR, PNA, BP, FPR/FNR)을 제공한다.","LLM-based 에이전트의 재현 가능한 보안 테스트를 가능하게 하는 동반 코드와 벤치마크를 공개한다."]
  • research_questions":["다양한 공격 표면(시스템 프롬프트, 사용자 프롬프트, 메모리 검색, 도구 사용)이 LLM 기반 에이전트의 보안에 어떤 영향을 미치는가?","다양한 백본과 시나리오에 걸친 광범위한 적대적 기법들에 대한 다양한 방어의 효과는 무엇인가?","통합 벤치마크(ASB)가 LLM 에이전트에 대한 현재 방어의 취약점과 격차를 드러낼 수 있는가?","제안된 Plan-of-Thought backdoor 공격이 블랙박스 메모리 및 도구 접근에서 높은 공격 성공율을 가능하게 하는가?"]
  • key_findings":["13개 LLM 백본에 걸쳐 혼합 공격에서 최고 평균 공격 성공률(ASR)이 84.30%에 도달하여 전반적인 취약성이 강함을 시사한다.","프롬프트 주입 공격(DPI/OPI)은 평균 ASR이 72.68%(DPI)로 상당한 영향을 보이며 OPI에서도 주목할 만한 결과를 보인다.","메모리 오염과 PoT 백도어 공격은 일부 백본에서 높은 ASR에 기여하여(시스템 프롬프트, 메모리, 도구 사용 등 여러 취약점 지점을 강조)","현재 방어는 효과가 제한적이며, 혼합 공격에서 관찰되는 높은 ASR을 완전히 완화하지 못한다.","ASB는 약 ~90k 건의 테스트 케이스, 10개 시나리오, 400개의 도구를 제공하여 LLM 기반 에이전트의 보안 리스크에 대한 광범위하고 현실적인 평가를 가능하게 한다."]
  • table_headers: []
  • table_rows: []} }|})) |} // Note: The field formatting preserved; table fields intentionally left as empty arrays per instruction. } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
  • title_hint_text_remove_extraneous } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
  • generated_review_id_1_DO_NOT_REMOVE_THIS_FIELD_to_avoid_parsing_error_Please_ignore_} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
  • version_created_AT_202406 } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
  • title_english_placeholder_DO_NOT_REMOVEthis

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.