Evaluation of local LLMs for network traffic packet analysis
Sara-Päivi Paukkeri, Tapio Frantti
University of Jyväskylä
Abstract
Large language models (LLMs) have recently been utilized in several cybersecurity-related tasks. They have the potential for significant impact, both good and evil. Despite the widespread interest, a basic understanding of LLMs in the network traffic analysis of Internet of Things (IoT) is still lacking. This study analyzed the strengths and weaknesses of Llama 3.1 in detecting various cyberattack techniques from IoT network traffic. We focused on identifying the reasons behind the successful or unsuccessful answers of the LLM. Moreover, we compared five local LLMs to examine whether the main findings from the Llama 3.1 analysis apply to other models. This knowledge is essential for planning future research and real-life solutions, ensuring that the quality of LLM responses can be improved. Overall, LLMs demonstrate general, albeit limited, knowledge of IoT network traffic context. They are aware of various cyberattack techniques and can detect various signs of attacks in network traffic data. LLMs perform well in identifying language-based indicators of malicious activity, such as SQL queries. However, local LLMs have not demonstrated reliability in detecting cyberattacks. Moreover, they cannot process hexadecimal-formatted packets, and their success rate varies across attack types. Encrypted traffic data also weakens model performance by causing hallucinations.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Do LLMs Understand Network Traces? A Comparative Study of Reasoning over Raw and Filtered Traffic DataarXiv · 2026
- TrafficLLM: LLMs for improved open-set encrypted traffic analysisComputer Networks · 2025
- Securing the Cognitive Layer: A Survey on Security Threats, Defenses, and Privacy-Preserving Architectures for LLM-IoT IntegrationJournal of Cybersecurity and Privacy · 2026
- Evaluating large language models effectiveness for flow-based intrusion detection: a comparative study with ML and DL baselinesArtificial Intelligence Review · 2026
- An IoT Malware Detection Framework Based on Large Language Models and Deep Learning TechniquesSymmetry · 2026
- LLM-Orchestrated Evasion of Tabular NIDS and GAN Augmentation for Multimodal DetectionApplied Sciences · 2026