Abstract
Spurred by the recent rapid increase in the development and distribution of large language models (LLMs) across industry and academia, much recent work has drawn attention to safety- and security-related threats and vulnerabilities of LLMs, including in the context of potentially criminal activities. Specifically, it has been shown that LLMs can be misused for fraud, impersonation, and the generation of malware; while other authors have considered the more general problem of AI alignment. It is important that developers and practitioners alike are aware of security-related problems with such models. In this paper, we provide an overview of existing - predominantly scientific - efforts on identifying and mitigating threats and vulnerabilities arising from LLMs. We present a taxonomy describing the relationship between threats caused by the generative capabilities of LLMs, prevention measures intended to address such threats, and vulnerabilities arising from imperfect prevention measures. With our work, we hope to raise awareness of the limitations of LLMs in light of such security concerns, among both experienced developers and novel users of such technologies.
Introduction
As Large Language Models (LLMs) transition from research novelties to foundational infrastructure, their "dual-use" nature presents a significant security challenge. While these models can assist in writing beneficial code or summarizing information, they can also be leveraged to generate polymorphic malware or scale personalized phishing attacks to unprecedented levels. This paper addresses the lack of a unified framework for describing these risks by synthesizing recent research into a comprehensive taxonomy.
A Taxonomy of Malicious Use
The core contribution of this work is a three-part taxonomy that maps the "cat-and-mouse" game between LLM capabilities and security measures:
- Threats: Malicious use cases enabled by the model’s inherent generative capabilities (e.g., automated phishing, malware generation).
- Prevention Measures: Technical hurdles, such as safety training (RLHF) or filters, designed to mitigate these threats.
- Vulnerabilities: Flaws or unintended behaviors in the prevention measures themselves that allow attackers to bypass guardrails (e.g., prompt injection, jailbreaking).
This framework distinguishes between the harm itself (the threat) and the exploit used to enable it (the vulnerability). Prevention strategies are further categorized into "discriminating" approaches (detecting AI-generated text) and "generative" approaches (modifying model behavior via RLHF).
Key Insights: The Safety-Utility Paradox
A critical finding is the "Safety-Utility" trade-off. Aggressive safety tuning often results in "exaggerated safety," where models refuse benign prompts containing sensitive keywords (e.g., refusing to explain how to "kill" a background process).
Furthermore, the paper posits that many vulnerabilities are actually exploits of the alignment layer rather than the base model. Attackers utilize the model's own reasoning capabilities to circumvent its safety filters. This is particularly evident in "Indirect Prompt Injection," where an LLM integrated with external tools (like a web browser) can be compromised by hidden instructions in third-party content.
Empirical Findings and Threats
The survey highlights several alarming metrics regarding the scale and effectiveness of LLM-enabled threats:
- Phishing Efficiency: Research indicates that LLMs can generate 1,000 personalized phishing emails for approximately $10 in just two hours, drastically lowering the barrier to entry for cybercriminals.
- Data Memorization: Models can regurgitate between 20% and 60% of sequence inputs from their training data, posing significant risks for Personally Identifiable Information (PII) leakage.
- Adversarial Transferability: "Universal" adversarial suffixes can bypass filters across diverse architectures (e.g., Llama-2, GPT-3.5, Claude), suggesting fundamental weaknesses in current alignment techniques.
Conclusion and Future Outlook
The rapid pace of LLM development means that safety research is often playing catch-up; nearly half of the literature reviewed was in pre-print form at the time of the survey. Current detection tools remain brittle and easily defeated by simple human paraphrasing.
Future research must address the frontier of personalized LLMs, where privacy risks escalate as models gain access to sensitive user data. Ultimately, the authors argue that safety mechanisms must be treated as "first-class citizens" during the pre-training phase, moving toward "intrinsic" safety that cannot be easily stripped away by clever prompting.
Summary updated