Prompt Injection: attacks for cybersecurity analysis using Large Language Models (LLMs)
Authors
- Manju Arora Department of Information Technology Jagan Institute of Management Studies
- Radhey Choudhary Department of Information Technology Jagannath University,Bhadurgarh,Haryana
Keywords
Abstract
Llms have honestly changed the way we think about computing, this discuss a major security vulnerability in AI which is called as Prompt injections eg’s: are like content creation, tutoring, healthcare support, chatbots its all running on these models now and its moving really fast but here’s the thing most people dont really think or talk about that these models can be attacked in a pretty unique way, and unlike normal cyberattacks this one does not go after the code or software, it goes after the language itself, the way the model reads and understands instructions, which is honestly kind of a scary if you think about it so we decided to actually dig into this properly, we looked at how these attacks work, built a proper way to categories them and then tested everything across three different llm setups, wanted to see real numbers how often do attacks succeed, which defenses actually help, and does adding security make the model less useful, spoiler it sometimes does what we found was pretty interesting, no single fix works on its own honestly, but when you stack multiple defenses together and keep an eye on things in real time - attack success dropped by up to 73%, which is significant what was done in this Study : this research paper focused on three primary objectives like -classifying and categorizing the various types of these attacks, Threat model- explaining the nature of this threat using established security frameworks Experimentation-testing the severity of these attacks in real-world scenarios. As a result, the biggest thing is that threat security can’t be ignored anymore, it needs to be incorporated from the output, and the NLP and Security companies must work closely together because right now, they’re kind of operating in the gaps and taking advantage of it.
References
- OWASP Foundation, "OWASP Top 10 for Large Language Model Applications," OWASP, 2023.
- T. Brown et al., "Language Models are Few-Shot Learners," Advances in Neural Information Processing Systems, vol. 33, pp. 1877-1901, 2020.
- I. Goodfellow, J. Shlens, and C. Szegedy, "Explaining and Harnessing Adversarial Examples," Proc. ICLR, 2015.
- I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, Cambridge, MA, 2016.
- A. Vaswani et al., "Attention Is All You Need," Advances in Neural Information Processing Systems, pp. 5998-6008, 2017.
- K. Greshake et al., "Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injections," arXiv preprint arXiv:2302.12173, 2023.
- F. Perez and I. Ribeiro, "Ignore Previous Prompt: Attack Techniques For Language Models," Proc. NeurIPS ML Safety Workshop, 2022.
- L. Ouyang et al., "Training Language Models to Follow Instructions with Human Feedback," Advances in Neural Information Processing Systems, vol. 35, pp. 27730-27744, 2022.
- Y. Bai et al., "Constitutional AI: Harmlessness from AI Feedback," arXiv preprint arXiv:2212.08073, 2022.
- Y. Liu et al., "Prompt Injection Attacks and Defenses in LLM-Integrated Applications," arXiv preprint arXiv:2310.12815, 2023.
- T. Rebedea, R. Diaconescu, M. Sreedhar, C. Busbridge, and J. Tanner, "NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails," Proc. EMNLP, 2023.
- X. Yi et al., "Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models," arXiv preprint arXiv:2312.14197, 2023.
- P. Liang et al., "Holistic Evaluation of Language Models (HELM)," arXiv preprint arXiv:2211.09110, 2022.
- NIST, "Artificial Intelligence Risk Management Framework (AI RMF 1.0)," National Institute of Standards and Technology, Gaithersburg, MD, 2023.
- M. Zhu et al., "AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models," Proc. ICLR, 2024.
- European Parliament and Council, "Regulation (EU) 2024/1689 - Artificial Intelligence Act," Official Journal of the European Union, 2024.
- C. Szegedy et al., "Intriguing Properties of Neural Networks," Proc. ICLR, 2014.
- S. Abdelnabi et al., "Compromising Real-World LLM-Integrated Applications - Extended Version," IEEE S&P Workshop on LLM Security, 2023.
- A. Wei, N. Haghtalab, and J. Steinhardt, "Jailbroken: How Does LLM Safety Training Fail?" Proc. NeurIPS, 2023.
- P. Lewis et al., "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," Advances in Neural Information Processing Systems, vol. 33, pp. 9459-9474, 2020.