Towards Practical N-Day Attack Detection: A Few-Shot Learning Perspective

Network attack detection is a critical technique for identifying anomalies and classifying malicious traffic. Large Language Models (LLMs), trained on massive corpora, possess remarkable contextual-understanding and commonsense-reasoning abilities, opening new avenues for network-threat detection. In this study, we explore for the first time zero-shot and few-shot learning approaches for this task. We cast network-attack detection as a multi-class classification problem and conduct experiments with several instruction-tuned LLMs, including Mistral-7B-Instruct, Llama-3.2-8B-Instruct, and Qwen3-8B-Instruct, focusing on diverse prompt templates. In addition, we introduce a new network-attack dataset, NAMatch. A systematic evaluation shows that the task can be effectively addressed by transferring knowledge from semantically related, more mature tasks such as natural-language inference or semantic textual similarity. Finally, we present a complete processing pipeline tailored to network-attack detection and validate its effectiveness on texts of varying lengths.

Authors

Institutions

Publication Details

Published
2025-06-20
DOI
https://doi.org/10.1109/isaeece66033.2025.11159944
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Towards Practical N-Day Attack Detection: A Few-Shot Learning Perspective

Yuan Pan, Guocong Feng, Chunmei Zhang, Kaitian Huang
Network Security and Intrusion Detection
article

Towards Practical N-Day Attack Detection: A Few-Shot Learning Perspective

Yuan Pan, Guocong Feng, Chunmei Zhang, Kaitian Huang
article en

Abstract

Network attack detection is a critical technique for identifying anomalies and classifying malicious traffic. Large Language Models (LLMs), trained on massive corpora, possess remarkable contextual-understanding and commonsense-reasoning abilities, opening new avenues for network-threat detection. In this study, we explore for the first time zero-shot and few-shot learning approaches for this task. We cast network-attack detection as a multi-class classification problem and conduct experiments with several instruction-tuned LLMs, including Mistral-7B-Instruct, Llama-3.2-8B-Instruct, and Qwen3-8B-Instruct, focusing on diverse prompt templates. In addition, we introduce a new network-attack dataset, NAMatch. A systematic evaluation shows that the task can be effectively addressed by transferring knowledge from semantically related, more mature tasks such as natural-language inference or semantic textual similarity. Finally, we present a complete processing pipeline tailored to network-attack detection and validate its effectiveness on texts of varying lengths.

China Southern Power Grid (China) (CN)
Openalex Percentile: Top 70%
Network Security and Intrusion Detection
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.

Towards Practical N-Day Attack Detection: A Few-Shot Learning Perspective — Yuan Pan, Guocong Feng, et al. · (2025) | TGRS Research Map | TGRS