ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs

Fengqing Jiang, Zhangchen Xu, Luyao Niu, Zhen Xiang, Bhaskar Ramasubramanian, Bo Li, R. Poovendran

arXiv:2402.11753 · 2026-07-27 공개 · arXiv · PDF

benchmark-evaluation llm-safety prompt-engineering black-box-attack jailbreak-attack ascii-art vision-in-text aligned-llms

Abstract

Safety is critical to the usage of large language models (LLMs). Multiple techniques such as data filtering and supervised fine-tuning have been developed to strengthen LLM safety. However, currently known techniques presume that corpora used for safety alignment of LLMs are solely interpreted by semantics. This assumption, however, does not hold in real-world applications, which leads to severe vulnerabilities in LLMs. For example, users of forums often use ASCII art, a form of text-based art, to convey image information. In this paper, we propose a novel ASCII art-based jailbreak attack and introduce a comprehensive benchmark Vision-in-Text Challenge (ViTC) to evaluate the capabilities of LLMs in recognizing prompts that cannot be solely interpreted by semantics. We show that five SOTA LLMs (GPT-3.5, GPT-4, Gemini, Claude, and Llama2) struggle to recognize prompts provided in the form of ASCII art. Based on this observation, we develop the jailbreak attack ArtPrompt, which leverages the poor performance of LLMs in recognizing ASCII art to bypass safety measures and elicit undesired behaviors from LLMs. ArtPrompt only requires black-box access to the victim LLMs, making it a practical attack. We evaluate ArtPrompt on five SOTA LLMs, and show that ArtPrompt can effectively and efficiently induce undesired behaviors from all five LLMs. Our code is available at https://github.com/uw-nsl/ArtPrompt.

한국어 요약

한 줄 요약

ASCII 아트를 활용한 새로운 제이크브레이크 공격 ArtPrompt가 기존 안전 정렬 기법의 취약점을 드러낸다.

핵심 기여도

핵심 아이디어

기존 LLM 안전 정렬 기법은 텍스트가 의미론적 해석만으로 처리된다고 가정하지만, 실제 사용 환경에서는 ASCII 아트처럼 시각적 구조를 통해 정보가 전달되는 경우가 많다. 이는 LLM이 의미론적 해석만으로는 ASCII 아트를 올바르게 해석하지 못함을 악용한 새로운 제이크브레이크 공격이 가능하게 한다.

ArtPrompt는 두 단계로 구성된다: 첫째, 사용자의 악의적 프롬프트에서 거부 반응을 유발할 수 있는 단어를 식별하고, 둘째, 해당 단어를 ASCII 아트로 시각화하여 LLM에 전달함으로써 안전 메커니즘을 우회한다. 이는 LLM이 ASCII 아트를 의미론적으로 해석하지 못함을 악용한 공격 방식이다.

기술적 접근법

주요 결과

의의 및 한계

ArtPrompt는 LLM 안전 정렬 기법의 핵심 가정인 '의미론적 해석만으로 텍스트를 처리한다'는 가정을 무효화함으로써, 기존 방어 기법을 우회하는 새로운 공격 벡터를 제시한다. 이는 LLM의 안전성 평가 기준을 확장하고, 시각적 구조를 포함한 다중 해석 방식을 고려한 새로운 정렬 기법 개발을 촉구한다.

한계로는 ArtPrompt가 특정 ASCII 아트 폰트나 정렬 방식에 따라 효과가 달라질 수 있으며, 수직 정렬은 성능 저하를 초래한다는 점이 있다. 또한, ArtPrompt는 Black-box 공격이므로 모델 내부 구조를 모르는 공격자도 사용할 수 있다는 점에서 실용적 위협이 크다.

실용적 활용

ArtPrompt는 포럼, 채팅, SNS 등에서 사용자들이 텍스트 기반 이미지(ASCII 아트)로 악의적 요청을 숨기는 경우에 적용될 수 있다. 이는 LLM 기반 챗봇, 콘텐츠 필터링 시스템, 보안 감시 플랫폼 등에서 시각적 구조를 포함한 텍스트 해석 능력을 강화해야 하는 중요한 시사점을 제공한다.