Application, Security Risks and Defense Strategies of Large Language Models in Cybersecurity
Hengyi Zhou
Key points
From the paper's conclusion- A layered defense is needed, including input separation, source verification, least-privilege tool access, data cleaning, output checking, human review, and continuous monitoring.
Abstract
Cybersecurity work is becoming more difficult as cloud services, the Internet of Things, phishing campaigns, malware, and ransomware attacks continue to expand. In this context, large language models have started to attract attention. This paper reviews the use of large language models in cybersecurity and discusses both their practical value and their risks. It first examines four main application areas: vulnerability detection and code security auditing, malware analysis, phishing detection, threat intelligence and log analysis, and penetration testing with incident response support. The review shows that large language models are useful for explaining complex evidence, summarizing scattered information, and helping analysts move from raw data to a clearer investigation path. However, they should not be treated as independent security decision-makers. Their outputs may be affected by prompt injection, jailbreak attacks, data poisoning, backdoors, privacy leakage, hallucinated evidence, and malicious use. These problems become more serious when models are connected to retrieval systems, plugins, or automated tools. For this reason, secure deployment requires more than better prompts. A layered defense is needed, including input separation, source verification, least-privilege tool access, data cleaning, output checking, human review, and continuous monitoring.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Large Language Models for Cybersecurity Intelligence, Threat Hunting, and Decision SupportJisuanji shenghuojia. · 2025
- Towards trustworthy foundation models: a systematic review of safety, evaluation, and defence mechanismsInternational Journal of Information Security · 2026
- Securing LLM-based agents against cyberattacks: a comprehensive survey on attack techniques and defense strategiesJournal of Computer Virology and Hacking Techniques · 2026
- Prompt Injection Attacks on Large Language Models: A Survey of Attack Methods, Root Causes, and Defense StrategiesComputers, materials & continua/Computers, materials & continua (Print) · 2025
- Security and privacy in LLMs: A comprehensive survey of threats and mitigation strategiesInformation Fusion · 2026
- Cybersecurity of Large Language Models Across the Deployment Life Cycle in Health Systems.JMIR medical informatics · 2026