Defending Language Models Against Image-Based Prompt Attacks via User-Provided Specifications
Authors:
- 23 May 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 112-131
Abstract
In recent years, there has been an exponential growth of real-world applications where humans interact with chatbots through a combination of images and text. Specifically, these multi-modal large language models (MLLMs) can digest various forms of data and understand users’ intents and needs encoded in both images and text. However, defending these models against prompt-based injection attacks is a less explored area. This problem is further exacerbated by the limitations of current defense mechanisms for language models, which are restricted to handling only text data. This paper introduces a novel defense mechanism for MLLM-based chatbots, addressing image-based injection attacks through a two-stage approach: input validation to identify unsafe inputs before reaching the chatbot, and prompt injection detection to safeguard the MLLM backbone from malicious image attacks. The framework utilizes a domain-specific programming language tailored for secure chatbot definitions and user-specified specifications for chatbots and image inputs. Through experiments on models like GPT-4VISION and LLAVA, we demonstrate the limitations of relying on model robustness and showcase our approach’s effectiveness in improving malicious attack detection for MLLM-based chatbots.Keywords
This publication has 7 references indexed in Scilit:
- LLM Platform Security: Applying a Systematic Evaluation Framework to OpenAI's ChatGPT PluginsProceedings of the AAAI/ACM Conference on AI, Ethics, and Society, 2024
- PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Rails2024
- Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection2023
- ProActive: Self-Attentive Temporal Point Process Flows for Activity Sequences2022
- An empirical analysis of input validation mechanisms in web applications and languages2012
- The essence of command injection attacks in web applicationsACM SIGPLAN Notices, 2006
- Abstracting application-level web security2002