agentic-pcap
收藏资源简介:
该数据集旨在评估用于网络攻击检测的智能体式大语言模型,围绕一个核心研究问题构建:一个能够使用工具的LLM智能体,在仅给定原始网络数据包捕获文件路径和11种可能攻击的自然语言描述的情况下,能否自主选择并执行数据包分析查询,根据观察结果调整策略,并最终做出捕获级别的攻击判定。数据集用于研究模型选择、推理配置、提示指导和背景流量如何影响智能体的调查过程与决策。核心包含44个时长30分钟的网络数据包捕获文件,分为两种背景流量条件:低背景流量(仅包含场景流量和测试床空闲活动)和生成的高背景流量(添加了自动生成的良性背景流量,使数据更嘈杂、体积更大)。其中包含22个攻击捕获和22个良性捕获,覆盖了TCP ACK洪水攻击、ARP欺骗、DNS洪水攻击、FIN扫描、ICMP分片洪水、NULL扫描、TCP SYN端口扫描、Slowloris、UDP分片洪水、UDP扫描、Xmas扫描等11种攻击类型。除了原始PCAP文件,数据集还提供了完整的元数据(记录每个捕获的ID、流量条件、类型、基准标签、公开攻击类别名称、文件大小和路径)以及全部4,752次智能体调查会话的完整记录。这些会话记录涵盖了18种不同的模型/推理配置(包括Qwen、Gemma、GPT-5.5等多种模型)和6种不同指导级别的提示词变体(从仅提供攻击特征到提供完整调查工作流程),使得研究者能够深入分析智能体行为、查询模式、提示效果和失败案例。数据集总大小为73.33 GiB,主要适用于网络信息安全、入侵检测、智能体式AI以及大语言模型评估等领域的研究,特别是关注于基于原始网络流量的、由LLM驱动的自主调查任务。数据在受控的测试环境中生成,不包含真实用户流量或敏感信息。
This dataset is designed to evaluate agent-based large language models for network attack detection. It is built around a core research question: given only the path to a raw network packet capture file and natural language descriptions of 11 possible attacks, can an LLM agent capable of using tools autonomously select and execute packet analysis queries, adjust strategies based on observations, and ultimately make capture-level attack judgments? The dataset is used to study how model selection, inference configuration, prompt guidance, and background traffic affect the agents investigation process and decisions. The core consists of 44 network packet capture files with a duration of 30 minutes each, divided into two background traffic conditions: low background traffic (containing only scenario traffic and testbed idle activity) and generated high background traffic (with added automatically generated benign background traffic, making the data noisier and larger in volume). It includes 22 attack captures and 22 benign captures, covering 11 attack types such as TCP ACK flood, ARP spoofing, DNS flood, FIN scan, ICMP fragmentation flood, NULL scan, TCP SYN port scan, Slowloris, UDP fragmentation flood, UDP scan, and Xmas scan. In addition to the raw PCAP files, the dataset provides complete metadata (recording each captures ID, traffic condition, type, ground truth label, public attack category name, file size, and path) and full records of all 4,752 agent investigation sessions. These session records cover 18 different model/inference configurations (including models like Qwen, Gemma, GPT-5.5) and 6 prompt variants with varying levels of guidance (from providing only attack characteristics to offering a complete investigation workflow), enabling researchers to deeply analyze agent behavior, query patterns, prompt effectiveness, and failure cases. The total dataset size is 73.33 GiB, primarily suitable for research in network information security, intrusion detection, agent-based AI, and large language model evaluation, especially focusing on LLM-driven autonomous investigation tasks based on raw network traffic. The data is generated in a controlled test environment and does not contain real user traffic or sensitive information.
数据集总览
Agentic LLMs for Network Attack Detection 是一个用于评估自主网络流量调查中智能体大语言模型(Agentic LLM)表现的实验数据集。它包含原始网络数据包捕获(PCAP)文件、完整的智能体调查记录和汇总结果。
- 目的: 研究仅给定原始PCAP文件和11种可能的攻击的自然语言描述,LLM智能体能否独立进行调查并识别攻击。
- 数据组成:
- 44个30分钟长度的PCAP文件。
- 覆盖11种攻击类别及相应的良性捕获。
- 6种不同引导级别的提示变体。
- 18种模型/推理配置。
- 4,752个完整的智能体会话记录(包括提示、工具使用、观察结果和最终决策)。
数据集详情
- 语言: 英语 (en)
- 许可协议: CC-BY-4.0(数据集和实验工件);软件部分为MIT许可。
- 应用标签: 网络安全、网络安全、数据包捕获、入侵检测、智能体AI。
数据特征
数据集包含一个名为 capture_metadata 的配置,其元数据特征如下:
| 特征名 | 数据类型 | 描述 |
|---|---|---|
run_id |
字符串 (string) | 运行标识符 |
traffic_condition |
类别标签 (class_label) | 流量背景:low_background 或 generated_high_background |
capture_kind |
类别标签 (class_label) | 捕获类型:attack (攻击) 或 benign (良性) |
benchmark_label |
类别标签 (class_label) | 基准标签:Attack 1 到 Attack 11 及 No attack detected |
public_class_name |
类别标签 (class_label) | 公开攻击名称:如 TCP ACK flood using IP fragmentation, ARP spoofing, Benign 等共12个类别 |
file_size_mib |
浮点数 (float64) | 文件大小(MiB,1 MiB = 1,048,576 字节) |
pcap_path |
字符串 (string) | PCAP文件路径 |
file_size_bytes |
整数 (int64) | 文件大小(字节) |
- 数据划分: 包含一个名为
benchmark的划分,共 44 个样本。
数据文件结构
项目文件在Hugging Face仓库中的组织方式:
| 路径 | 内容说明 |
|---|---|
data/pcaps/low_background/ |
22个低背景流量的PCAP文件 |
data/pcaps/generated_high_background/ |
22个生成的高背景流量的PCAP文件 |
metadata/captures.csv |
每个捕获的标签、条件、路径和大小元数据 |
metadata/condition_summary.csv |
按流量条件统计的捕获数量和大小汇总 |
artifacts/primary_runs/ALL_MODELS/ |
4,752个完整的智能体调查会话记录 |
artifacts/primary_runs/ALL_MODELS_SUMMARIES/ |
按提示和全局的结果表格与仪表盘 |
SHA256SUMS |
44个PCAP文件的SHA-256校验和文件 |
智能体调查记录
每个智能体会话包含以下文件:
final_answer.txt: 捕获级别的决策结果。prompt.md: 提交的调查提示。session_export.json,.md,.html: 完整的会话记录。
提示变体
共6种提示变体,应用于所有44个捕获。
| 变体 | 目录名 | 提供给智能体的信息 |
|---|---|---|
| P0 | P0_signature |
仅提供简单攻击签名 |
| P1 | P1_observables |
签名及需要检查的流量指标 |
| P2 | P2_differential |
签名及区分相似类别的指导 |
| P3 | P3_workflow |
签名及高级调查工作流程 |
| P4 | P4_evidence_policy |
签名、所需证据及排除性观察 |
| P5 | P5_full |
P0-P4提供的所有信息 |
发布的模型配置
所有模型配置共产生264个调查(44个捕获 × 6个提示)。
| 服务路径 | 模型 | 架构 | 参数 | 推理配置 | 调查数量 |
|---|---|---|---|---|---|
| 本地开源,vLLM | Qwen 3.5 9B BF16 | Dense | 9B | 禁用/启用思考 | 528 |
| 本地开源,vLLM | Gemma 4 12B IT BF16 | Dense | 11.95B | 禁用/启用思考 | 528 |
| 本地开源,vLLM | Qwen 3.6 27B BF16 | Dense | 27B | 禁用/启用思考 | 528 |
| 本地开源,vLLM | Gemma 4 31B IT BF16 | Dense | 30.7B | 禁用/启用思考 | 528 |
| 本地开源,vLLM | Qwen 3.6 35B-A3B BF16 | Mixture of experts | 35B/3B (活跃) | 禁用/启用思考 | 528 |
| 本地开源,vLLM | gpt-oss-120b MXFP4 | Mixture of experts | 117B/5.1B (活跃) | 提供者默认 | 264 |
| 开源,外部API | Mistral Medium 3.5 | Dense | 128B | 努力程度无/高 | 528 |
| 开源,外部API | DeepSeek V4 Flash | Mixture of experts | 284B/13B (活跃) | 努力程度最大 | 264 |
| 开源,外部API | MiMo V2.5 | Mixture of experts | 310B/15B (活跃) | 努力程度高 | 264 |
| 开源,外部API | MiniMax M3 | Mixture of experts | ≈428B/≈23B (活跃) | 提供者默认 | 264 |
| 开源,外部API | GLM 5.2 | Mixture of experts | 744B/40B (活跃) | 提供者默认 | 264 |
| 专有API参考 | GPT-5.5 | 未公开 | 未公开 | 努力程度极高 | 264 |
数据收集与安全
- 流量在仿真GNS3测试平台中生成,所有攻击流量仅限于该测试平台。
- 未收集任何人类用户流量,发布的PCAP文件不包含凭据或其他敏感信息。
- 数据集仅供离线研究使用,其范围限于已发布的拓扑结构、流量生成过程及11种攻击类别。
引用信息
如需引用此数据集及相关的调查工件,可参考以下BibTeX格式:
bibtex @misc{aureille2026agentic, author = {Matthieu Aureille and Jan Fesl}, title = {Agentic LLMs for Network Attack Detection}, year = {2026}, howpublished = {Hugging Face dataset}, note = {Version 1.0.0}, url = {https://huggingface.co/datasets/maureille/agentic-pcap} }




