Explainability of Network Intrusion Detection Using Transformers: A Packet-Level Approach

Network Intrusion Detection Systems (NIDS) are critical in ensuring the security of connected computer systems by actively detecting and preventing unauthorized activities and malicious attacks. Machine learning based NIDS models leverage algorithms that learn from historical network traffic data to identify patterns and anomalies to capture complex relationships. The primary objective of this research is to generate tags and descriptions for the packets that are difficult to classify by the NIDS. Most NIDS datasets that are publicly available have focused on flow data, offering aggregated information about network connections, and have played a crucial role in enabling researchers and network security professionals to design and develop flow-based NIDS solutions. While flow records provide valuable information for detecting network-level anomalies and attacks, they do not consider packet-level information and payload content. In this research, we propose a packet-level approach for NIDS that leverages the flow information with the packet header fields and payload. To facilitate this research, we have curated a comprehensive Packet-level dataset constructed by extracting the network packet captures from two widely used flow-level datasets, namely CIC-IDS2017 and UNSW-NB15. Recent advancements in natural language processing have demonstrated the effectiveness of Transformer-based models in handling sequence data with tasks such as token classification and text generation. We have adapted this technology to NIDS to extract key features and characteristics of the header and payload in the context of various attacks. Unlike traditional classification methods that assign predefined labels to network packets, this method focuses on generating tags based on the packet signature that explains the packet content and potential risks through high variability and explainability based on cosine semantic similarity scores of embeddings. The tags and descriptions offer network security professionals a tool to comprehend suspicious packets with an unfamiliar or potentially malicious signature, assess their nature, and help make informed decisions promptly. For the purposes of open science, all the code related to this paper is shared publicly.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2024-12-31
DOI
https://doi.org/10.1109/access.2024.3525008
Citations
3
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
1.05

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Explainability of Network Intrusion Detection Using Transformers: A Packet-Level Approach

Nathaniel D. Bastian, Lance Fiondella, Gökhan Kul, R. J. Berry et al.
3 citations
IEEE Access
Network Security and Intrusion Detection
1.05
article

Explainability of Network Intrusion Detection Using Transformers: A Packet-Level Approach

Nathaniel D. Bastian, Lance Fiondella, Gökhan Kul, R. J. Berry, Pahavalan RajkumarDheivanayahi, Nicholas Costagliola
article en
3 citations

Abstract

Network Intrusion Detection Systems (NIDS) are critical in ensuring the security of connected computer systems by actively detecting and preventing unauthorized activities and malicious attacks. Machine learning based NIDS models leverage algorithms that learn from historical network traffic data to identify patterns and anomalies to capture complex relationships. The primary objective of this research is to generate tags and descriptions for the packets that are difficult to classify by the NIDS. Most NIDS datasets that are publicly available have focused on flow data, offering aggregated information about network connections, and have played a crucial role in enabling researchers and network security professionals to design and develop flow-based NIDS solutions. While flow records provide valuable information for detecting network-level anomalies and attacks, they do not consider packet-level information and payload content. In this research, we propose a packet-level approach for NIDS that leverages the flow information with the packet header fields and payload. To facilitate this research, we have curated a comprehensive Packet-level dataset constructed by extracting the network packet captures from two widely used flow-level datasets, namely CIC-IDS2017 and UNSW-NB15. Recent advancements in natural language processing have demonstrated the effectiveness of Transformer-based models in handling sequence data with tasks such as token classification and text generation. We have adapted this technology to NIDS to extract key features and characteristics of the header and payload in the context of various attacks. Unlike traditional classification methods that assign predefined labels to network packets, this method focuses on generating tags based on the packet signature that explains the packet content and potential risks through high variability and explainability based on cosine semantic similarity scores of embeddings. The tags and descriptions offer network security professionals a tool to comprehend suspicious packets with an unfamiliar or potentially malicious signature, assess their nature, and help make informed decisions promptly. For the purposes of open science, all the code related to this paper is shared publicly.

IEEE AccessVol. 13
University of Massachusetts Dartmouth (US), United States Military Academy (US)
U.S. Military Academy
Openalex Percentile: Top 20%
Network Security and Intrusion Detection
1.05
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.