Goal Hijacking Using Adversarial Vocabulary for Attacking Vulnerabilities of Large Language Model Applications

The fast advancements in Large Language Models (LLMs) are driving an increasing number of applications. Especially in the context of retrieval augmented generation techniques, LLM applications are widely distributed for public use or as proprietary applications. Together with the growing number of users, we also see an increasing number of attackers who try to outsmart these systems. They want the model to reveal confidential information, specific false information, or offensive behavior, compromising the information security, reliability, and trustworthiness of this otherwise revolutionary technology. To this end, they manipulate their instructions for the LLM by inserting separators or rephrasing them systematically until they reach their goal. Our approach is different. It inserts words from the model vocabulary. We find these words using an optimization procedure and embeddings from another LLM, the attacker LLM. We prove our approach by goal hijacking two popular open-source LLMs from the Llama2 and Flan-T5 families, respectively. We present two main findings. First, our approach creates inconspicuous instructions, and therefore it is hard to detect. For many attack cases, we find that even a single word insertion is sufficient. Second, we demonstrate that we can carry out our attack using a different model than the target model with which we carry out our attack. We conducted variations of our study to investigate the effect of the main attack parameter on the success of the attack. Furthermore, we investigate the effect of selected text generation strategies of the LLM on attack success. While our attack remains successful, in particular, the softmax temperature seems to influence the attack success.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-12-01
DOI
https://doi.org/10.5281/zenodo.14680185
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Goal Hijacking Using Adversarial Vocabulary for Attacking Vulnerabilities of Large Language Model Applications

Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
article

Goal Hijacking Using Adversarial Vocabulary for Attacking Vulnerabilities of Large Language Model Applications

article en

Abstract

The fast advancements in Large Language Models (LLMs) are driving an increasing number of applications. Especially in the context of retrieval augmented generation techniques, LLM applications are widely distributed for public use or as proprietary applications. Together with the growing number of users, we also see an increasing number of attackers who try to outsmart these systems. They want the model to reveal confidential information, specific false information, or offensive behavior, compromising the information security, reliability, and trustworthiness of this otherwise revolutionary technology. To this end, they manipulate their instructions for the LLM by inserting separators or rephrasing them systematically until they reach their goal. Our approach is different. It inserts words from the model vocabulary. We find these words using an optimization procedure and embeddings from another LLM, the attacker LLM. We prove our approach by goal hijacking two popular open-source LLMs from the Llama2 and Flan-T5 families, respectively. We present two main findings. First, our approach creates inconspicuous instructions, and therefore it is hard to detect. For many attack cases, we find that even a single word insertion is sufficient. Second, we demonstrate that we can carry out our attack using a different model than the target model with which we carry out our attack. We conducted variations of our study to investigate the effect of the main attack parameter on the success of the attack. Furthermore, we investigate the effect of selected text generation strategies of the LLM on attack success. While our attack remains successful, in particular, the softmax temperature seems to influence the attack success.

Zenodo (CERN European Organization for Nuclear Research)
Ostbayerische Technische Hochschule Amberg-Weiden (DE)
Peace, Justice and strong institutions
Openalex Percentile: Top 57%
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.