HuntGPT: Integrating Machine Learning-Based Anomaly Detection and Explainable AI with Large Language Models (LLMs)
Tarek Ali, Panos Kostakos, Saeid Sheikhi
University of Oulu
Abstract
Machine learning (ML) methods for network anomaly detection are emerging as effective proactive strategies in threat hunting, substantially reducing the time required for threat detection and response. However, the challenges in training and maintaining ML models, coupled with frequent false positives, diminish their acceptance and trustworthiness. In response, Explainable AI (XAI) techniques have been introduced to enable cybersecurity operations teams to assess alerts generated by AI systems more confidently. Despite these advancements, XAI tools have encountered limited acceptance from incident responders and have struggled to meet the decision-making needs of both analysts and model maintainers. Large Language Models (LLMs) offer a unique approach to tackling these challenges. Through tuning, LLMs have the ability to discern patterns across vast amounts of information and meet varying functional requirements. In this research, we introduce the development of HuntGPT, a specialized intrusion detection dashboard created to implement a Random Forest classifier trained utilizing the KDD99 dataset. The tool incorporates XAI frameworks like SHAP and Lime, enhancing user-friendliness and intuitiveness of the model. When combined with a GPT-3.5 Turbo conversational agent, HuntGPT aims to deliver detected threats in an easily explainable format, emphasizing user understanding and offering a smooth interactive experience. We investigate the system’s comprehensive architecture and its diverse components, assess the prototype’s technical accuracy using the Certified Information Security Manager (CISM) Practice Exams, and analyze the quality of response readability across six unique metrics. Our results indicate that conversational agents, underpinned by LLM technology and integrated with XAI, can enable a robust mechanism for generating explainable and actionable AI solutions, especially within the realm of intrusion detection systems.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- eX-NIDS: A framework for explainable network intrusion detection leveraging Large Language ModelsComputers & Electrical Engineering · 2025
- Enhancing network security using knowledge graphs and large language models for explainable threat detectionFuture Generation Computer Systems · 2025
- LLM-Orchestrated Evasion of Tabular NIDS and GAN Augmentation for Multimodal DetectionApplied Sciences · 2026
- Large Language Models for Cybersecurity Intelligence, Threat Hunting, and Decision SupportJisuanji shenghuojia. · 2025
- Generative and agentic artificial intelligence for network intrusion detection: a systematic literature reviewInternational Journal of Information Security · 2026
- Evaluating large language models effectiveness for flow-based intrusion detection: a comparative study with ML and DL baselinesArtificial Intelligence Review · 2026