TY - GEN
T1 - The Dual Role of Artificial Intelligence and LLM in Cybersecurity
AU - Maglaras, Leandros
AU - Gerogiannis, Vassilis C.
AU - Ferrag, Mohamed Amine
AU - Lekidis, Alexios
AU - Lakas, Abderrahmane
AU - Moradpoor, Naghmeh
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025
Y1 - 2025
N2 - Artificial Intelligence (AI) and Large Language Models (LLMs) are transforming the cybersecurity landscape, taking a dual role as both enablers of defense. This paper explores this duality by distinguishing between AI for Security, where intelligent models enhance threat analysis, intrusion detection, and automated mitigation, and Security for AI, which focuses on securing models themselves against adversarial manipulation, data leakage, and prompt-based exploitation. To empirically evaluate the capabilities of modern LLMs in cybersecurity, we conducted extensive experiments using the newly developed CyberMetric dataset, which assesses cybersecurity knowledge across multiple domains such as cryptography, network defense, and software vulnerabilities. Our evaluation of twenty state-of-the-art LLMs-including GPT-5 Chat, Grok 4 Fast, Qwen3 235B, Gemini 2.5 Flash, and DeepSeek V3.2-demonstrates that the 2025 generation of models achieves near-human performance, with GPT-5 Chat reaching 98.75% accuracy and several open-source models performing within a 2-3% margin. These results highlight the growing maturity of open LLM ecosystems for cybersecurity applications and confirm that modern LLMs are becoming reliable instruments for cyber defense, capable of supporting automated threat analysis, vulnerability assessment, and compliance verification, while also emphasizing the need to ensure their safety, transparency, and resilience against misuse.
AB - Artificial Intelligence (AI) and Large Language Models (LLMs) are transforming the cybersecurity landscape, taking a dual role as both enablers of defense. This paper explores this duality by distinguishing between AI for Security, where intelligent models enhance threat analysis, intrusion detection, and automated mitigation, and Security for AI, which focuses on securing models themselves against adversarial manipulation, data leakage, and prompt-based exploitation. To empirically evaluate the capabilities of modern LLMs in cybersecurity, we conducted extensive experiments using the newly developed CyberMetric dataset, which assesses cybersecurity knowledge across multiple domains such as cryptography, network defense, and software vulnerabilities. Our evaluation of twenty state-of-the-art LLMs-including GPT-5 Chat, Grok 4 Fast, Qwen3 235B, Gemini 2.5 Flash, and DeepSeek V3.2-demonstrates that the 2025 generation of models achieves near-human performance, with GPT-5 Chat reaching 98.75% accuracy and several open-source models performing within a 2-3% margin. These results highlight the growing maturity of open LLM ecosystems for cybersecurity applications and confirm that modern LLMs are becoming reliable instruments for cyber defense, capable of supporting automated threat analysis, vulnerability assessment, and compliance verification, while also emphasizing the need to ensure their safety, transparency, and resilience against misuse.
KW - Adversarial Machine Learning
KW - Artificial Intelligence
KW - Cybersecurity
KW - Deep Learning
KW - Explainable AI
KW - LLM
KW - Threat Detection
UR - https://www.scopus.com/pages/publications/105037444932
UR - https://www.scopus.com/pages/publications/105037444932#tab=citedBy
U2 - 10.1109/ICAISG68699.2025.11452144
DO - 10.1109/ICAISG68699.2025.11452144
M3 - Conference contribution
AN - SCOPUS:105037444932
T3 - 2025 International Conference on Artificial Intelligence Security and Governance, ICAISG 2025
SP - 113
EP - 118
BT - 2025 International Conference on Artificial Intelligence Security and Governance, ICAISG 2025
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 2025 International Conference on Artificial Intelligence Security and Governance, ICAISG 2025
Y2 - 12 December 2025 through 14 December 2025
ER -