Prompt Engineering-Based Network Intrusion Detection System

Recent advancements in generative AI and evolution of Large Language Models have opened up new paths to explore them for various applications including network attack detection. LLMs’ capability of learning the distribution of training data and subsequently generating new content based on this distribution on the basis of prompts supplied as input has paved the way for predicting anomalies in network features represented as text. In this paper, we propose an LLM prompt-engineering based network intrusion detection method for detection of attacks from raw network packet features represented in text form. The proposed method uses multiple extracted views based on features derived from raw network packets and uses various prompt formats for LLM inferencing. We perform various experiments using packet-level and flow-level information on a recent dataset i.e. CICIDS2018 for FTP Bruteforce attack, and the results show that our proposed prompt engineering based method performs better than current state-of-the-art techniques.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3629761
Citations
2
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
2.97
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Prompt Engineering-Based Network Intrusion Detection System

Sunit Kumar Nandi, Sukumar Nandi, Ritesh Ratti, Sanasam Ranbir Singh
2 citations
IEEE Access
Network Security and Intrusion Detection
2.97
article

Prompt Engineering-Based Network Intrusion Detection System

Sunit Kumar Nandi, Sukumar Nandi, Ritesh Ratti, Sanasam Ranbir Singh
article en
2 citations

Abstract

Recent advancements in generative AI and evolution of Large Language Models have opened up new paths to explore them for various applications including network attack detection. LLMs’ capability of learning the distribution of training data and subsequently generating new content based on this distribution on the basis of prompts supplied as input has paved the way for predicting anomalies in network features represented as text. In this paper, we propose an LLM prompt-engineering based network intrusion detection method for detection of attacks from raw network packet features represented in text form. The proposed method uses multiple extracted views based on features derived from raw network packets and uses various prompt formats for LLM inferencing. We perform various experiments using packet-level and flow-level information on a recent dataset i.e. CICIDS2018 for FTP Bruteforce attack, and the results show that our proposed prompt engineering based method performs better than current state-of-the-art techniques.

IEEE AccessVol. 13
Indian Institute of Technology Guwahati (IN), Universidad Panamericana (MX)
Openalex Percentile: Top 7%
Network Security and Intrusion Detection
2.97
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.