Skip to main content
QUICK REVIEW

[논문 리뷰] garak: A Framework for Security Probing Large Language Models

Leon Derczynski, Erick Galinkin|arXiv (Cornell University)|2024. 06. 16.
Topic ModelingComputer Science인용 수 5
한 줄 요약

garak은 LLM의 구조화된 레드팀 구축과 보안 감사를 위한 오픈소스 프레임워크로, 프로브, 디텍터, 및 취약점 발견을 위한 버프의 생성을 가능하게 하여 취약점을 발견합니다. 탐색을 벤치마크보다 우선시하여 정렬 및 정책 결정에 정보를 제공하는 것이 핵심입니다.

ABSTRACT

As Large Language Models (LLMs) are deployed and integrated into thousands of applications, the need for scalable evaluation of how models respond to adversarial attacks grows rapidly. However, LLM security is a moving target: models produce unpredictable output, are constantly updated, and the potential adversary is highly diverse: anyone with access to the internet and a decent command of natural language. Further, what constitutes a security weak in one context may not be an issue in a different context; one-fits-all guardrails remain theoretical. In this paper, we argue that it is time to rethink what constitutes ``LLM security'', and pursue a holistic approach to LLM security evaluation, where exploration and discovery of issues are central. To this end, this paper introduces garak (Generative AI Red-teaming and Assessment Kit), a framework which can be used to discover and identify vulnerabilities in a target LLM or dialog system. garak probes an LLM in a structured fashion to discover potential vulnerabilities. The outputs of the framework describe a target model's weaknesses, contribute to an informed discussion of what composes vulnerabilities in unique contexts, and can inform alignment and policy discussions for LLM deployment.

연구 동기 및 목표

  • LLM 보안 감사를 탐색과 발견을 지원하는 포괄적이고 구조화된 접근 방식으로 동기를 부여한다.
  • 대상 LLM 또는 대화 시스템의 취약점을 탐지하고 설명하기 위한 유연한 프레임워크를 제공한다.
  • 다양한 생성기 및 배포 맥락에서 엔드투엔드 테스트를 가능하게 한다.
  • 취약점을 드러내기 위한 확장 가능한 프로브, 디텍터, 공격 생성 메커니즘의 모듈형 도구를 제공한다.
  • 정책 결정을 inform하기 위한 취약점 데이터베이스와의 보고 및 통합을 촉진한다.

제안 방법

  • LLM 보안 평가를 구조화하기 위해 네 가지 핵심 구성요소(Generators, Probes, Detectors, Buffs)를 정의한다.
  • 특정 취약성 클래스를 이끌어내는 다양한 프로브를 제공한다(예: 사실과 다른 주장, 프롬프트 인젝션, 데이터 염출).
  • 출력을 판단하고 실패를 식별하기 위한 키워드 기반 및 ML 기반 디텍터를 구현한다.
  • 이전 히트를 학습해 새로운 테스트 케이스를 생성하는 적응적 공격 생성(atkgen)을 허용한다.
  • 다양한 생성기(Hugging Face, OpenAI, NVIDIA NIMs 등) 및 확장 가능한 통합을 지원한다.
  • JSONL 로그 및 HTML 대화형 보고서를 통한 보고와 취약점 데이터베이스 업로드 옵션을 제공한다.
Figure 1: The garak architecture. Run configuration determines a set of probes to be used. Each probe interacts with the generator, an abstraction for the target LLM or dialog system. Probes pose prompts to this system in an attempt to elicit insecure responses, and generator responses are recorded.
Figure 1: The garak architecture. Run configuration determines a set of probes to be used. Each probe interacts with the generator, an abstraction for the target LLM or dialog system. Probes pose prompts to this system in an attempt to elicit insecure responses, and generator responses are recorded.

실험 결과

연구 질문

  • RQ1탐색과 발견을 지원하는 구조화된 방식으로 LLM 보안을 어떻게 감사할 수 있는가?
  • RQ2Garak 같은 모듈식 프레임워크가 서로 다른 LLM에서 알려진 취약점과 알려지지 않은 취약점을 효과적으로 발견할 수 있는가?
  • RQ3자동 디텍터와 적응적 공격 생성이 다양한 배포 맥락에서 LLM 위험 평가를 어떻게 개선하는가?
  • RQ4레드팀 결과로부터 도출된 보고 및 정책 지침의 역할은 LLM 배포에서 무엇인가?
  • RQ5오픈 소스 도구가 외부 레드팀 평가를 얼마나 가속화할 수 있는가?

주요 결과

  • Garak는 Generators, Probes, Detectors, Buffs를 통해 LLM의 약점을 구조적으로 탐색하게 한다.
  • 적응적 공격 생성(atkgen)은 성공적인 프로브로부터 학습하여 새로운 테스트 케이스를 생성한다.
  • 키워드 기반과 ML 디텍터의 혼합은 다수의 출력에 대해 확장 가능한 실패 탐지를 지원한다.
  • 독성 공격은 모델 전반의 실패율을 크게 증가시킬 수 있다(독성 결과 표에 의해 입증).
  • 프레임워크는 보고 및 외부 취약점 공유를 지원하여 LLM 보안 이슈를 목록화한다.
Figure 2: Examples top-level grouping of probe results using the OWASP Top 10 categories of LLM vulnerability. Different groupins lead to different top level results and different concentrations of failure, so it is important to choose a taxonomy applicable to the target context.
Figure 2: Examples top-level grouping of probe results using the OWASP Top 10 categories of LLM vulnerability. Different groupins lead to different top level results and different concentrations of failure, so it is important to choose a taxonomy applicable to the target context.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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