
This is a dataset of prompt injections from Gandalf by Lakera.
Note that we might update the dataset occasionally by cleaning the data or adding more samples.
There are millions of prompts and many of them are not actual prompt injections (people ask Gandalf all kinds of things).
We used the following process to obtain relevant data:
text-embedding-ada-002) to compute the similarity between the prompts and the phrase "Ignore all previous instructions".Note that there is a small amount of noise in the data since an automatic method was used to obtain it: a few of the samples might not be real prompt injections.
If you use this dataset in your research, please cite our paper introducing the game Gandalf the Red: Adaptive Security for LLMs:
@article{gandalf_paper,
title={Gandalf the Red: Adaptive Security for LLMs},
author={Pfister, Niklas and Volhejn, V{\'a}clav and Knott, Manuel and Arias, Santiago and Bazi{\'n}ska, Julia and Bichurin, Mykhailo and Commike, Alan and Darling, Janet and Dienes, Peter and Fiedler, Matthew and others},
journal={arXiv preprint arXiv:2501.07927},
year={2025}
}
gandalf_ignore_instructions is distributed under the MIT License.

This is a dataset of prompt injections from Gandalf by Lakera.
Note that we might update the dataset occasionally by cleaning the data or adding more samples.
There are millions of prompts and many of them are not actual prompt injections (people ask Gandalf all kinds of things).
We used the following process to obtain relevant data:
text-embedding-ada-002) to compute the similarity between the prompts and the phrase "Ignore all previous instructions".Note that there is a small amount of noise in the data since an automatic method was used to obtain it: a few of the samples might not be real prompt injections.
If you use this dataset in your research, please cite our paper introducing the game Gandalf the Red: Adaptive Security for LLMs:
@article{gandalf_paper,
title={Gandalf the Red: Adaptive Security for LLMs},
author={Pfister, Niklas and Volhejn, V{\'a}clav and Knott, Manuel and Arias, Santiago and Bazi{\'n}ska, Julia and Bichurin, Mykhailo and Commike, Alan and Darling, Janet and Dienes, Peter and Fiedler, Matthew and others},
journal={arXiv preprint arXiv:2501.07927},
year={2025}
}
gandalf_ignore_instructions is distributed under the MIT License.