SoK: Prompt Hacking of Large Language Models
Preprint
Abstract
The safety and robustness of large language models (LLMs) based applications remain critical challenges in artificial intelligence. Among the key threats to these applications are prompt hacking attacks, which can significantly undermine the security and reliability of LLM-based systems. In this work, we offer a comprehensive and systematic overview of three distinct types of prompt hacking: jailbreaking, leaking, and injection, addressing the nuances that differentiate them despite their overlapping characteristics. To enhance the evaluation of LLM-based applications, we propose a novel framework that categorizes LLM responses into five distinct classes, moving beyond the traditional binary classification. This approach provides more granular insights into the AI's behavior, improving diagnostic precision and enabling more targeted enhancements to the system's safety and robustness.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Developing a Framework for Auditing Large Language Models using Human-in-the-loop2025
- Jailbreaking Black Box Large Language Models in Twenty Queries2025
- "Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models2024
- A survey on large language model (LLM) security and privacy: The Good, The Bad, and The UglyHigh-Confidence Computing, 2024
- Defending ChatGPT against jailbreak attack via self-remindersNature Machine Intelligence, 2023
- Jailbreaker in Jail: Moving Target Defense for Large Language Models2023
- Unveiling security, privacy, and ethical concerns of ChatGPTJournal of Information and Intelligence, 2023
- From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and PrivacyIEEE Access, 2023
- Machine-Generated Text: A Comprehensive Survey of Threat Models and Detection MethodsIEEE Access, 2023
- How well do hate speech, toxicity, abusive and offensive language classification models generalize across datasets?Information Processing & Management, 2021