Skip to main content
QUICK REVIEW

[Paper Review] Revolutionizing Cyber Threat Detection with Large Language Models: A privacy-preserving BERT-based Lightweight Model for IoT/IIoT Devices

Mohamed Amine Ferrag, Mthandazo Ndhlovu|arXiv (Cornell University)|Jun 25, 2023
Network Security and Intrusion DetectionComputer Science22 citations
TL;DR

SecurityBERT is a privacy-preserving, lightweight 15‑layer BERT-based model for IoT/IIoT cyber threat detection that uses PPFLLE encoding and BBPE for high accuracy and fast inference on resource-constrained devices.

ABSTRACT

The field of Natural Language Processing (NLP) is currently undergoing a revolutionary transformation driven by the power of pre-trained Large Language Models (LLMs) based on groundbreaking Transformer architectures. As the frequency and diversity of cybersecurity attacks continue to rise, the importance of incident detection has significantly increased. IoT devices are expanding rapidly, resulting in a growing need for efficient techniques to autonomously identify network-based attacks in IoT networks with both high precision and minimal computational requirements. This paper presents SecurityBERT, a novel architecture that leverages the Bidirectional Encoder Representations from Transformers (BERT) model for cyber threat detection in IoT networks. During the training of SecurityBERT, we incorporated a novel privacy-preserving encoding technique called Privacy-Preserving Fixed-Length Encoding (PPFLE). We effectively represented network traffic data in a structured format by combining PPFLE with the Byte-level Byte-Pair Encoder (BBPE) Tokenizer. Our research demonstrates that SecurityBERT outperforms traditional Machine Learning (ML) and Deep Learning (DL) methods, such as Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs), in cyber threat detection. Employing the Edge-IIoTset cybersecurity dataset, our experimental analysis shows that SecurityBERT achieved an impressive 98.2% overall accuracy in identifying fourteen distinct attack types, surpassing previous records set by hybrid solutions such as GAN-Transformer-based architectures and CNN-LSTM models. With an inference time of less than 0.15 seconds on an average CPU and a compact model size of just 16.7MB, SecurityBERT is ideally suited for real-life traffic analysis and a suitable choice for deployment on resource-constrained IoT devices.

Motivation & Objective

  • Address the need for accurate cyber threat detection in IoT/IIoT with resource constraints.
  • Develop a privacy-preserving data encoding to enable NLP models on network traffic data.
  • Create a lightweight BERT-based architecture suitable for on-device or edge deployment.
  • Demonstrate superior performance against traditional ML/DL methods on a realistic IoT/IIoT dataset.

Proposed method

  • Introduce Privacy-Preserving Fixed-Length Encoding (PPFLE) to convert network features into a text-like representation.
  • Combine PPFLE with Byte-level BPE (BBPE) tokenizer to process encoded data using transformers.
  • Design a 15-layer, 11M-parameter SecurityBERT model pre-trained on PPFLE-encoded data.
  • Apply contextual representations via a transformer encoder with self-attention for multi-class threat classification.
  • Evaluate on the Edge-IIoTset dataset, comparing against CNNs and LLM-based approaches.

Experimental results

Research questions

  • RQ1Can a privacy-preserving, fixed-length encoding scheme enable effective BERT-based cyber threat detection on IoT/IIoT traffic?
  • RQ2Does a lightweight BERT architecture with PPFLE-BBPE achieve higher accuracy than traditional ML/DL models on edge devices?
  • RQ3What are the inference time and memory requirements of SecurityBERT on typical CPU/GPU hardware for real-time traffic analysis?

Key findings

  • SecurityBERT achieves 98.2% overall accuracy across fourteen attack types on Edge-IIoTset.
  • Inference time is less than 0.15 seconds on average CPU hardware.
  • Model size is 16.7 MB with 11M parameters, suitable for resource-constrained devices.
  • PPFLE encoding + BBPE tokenizer outperform traditional ML and DL baselines including CNNs and LSTM-based models.
  • The approach maintains privacy by using hashed textual representations rather than raw network data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.