VANET-IDS26
收藏资源简介:
VANET-IDS26是一个大规模车载自组织网络入侵检测数据集,包含良性VANET消息和26种网络攻击类别。该数据集专为VANET网络安全、入侵检测系统、机器学习、深度学习、基于Transformer的模型、图学习和联邦学习等研究设计。数据集总规模为786,798,378行,46列,其中良性记录37,577,963行,攻击记录749,220,415行,压缩后主文件约79GB。数据由20个大型模拟运行生成,涵盖四种交通密度(低、中、高、极高)和四种攻击者比例(5%、10%、20%、30%)。每条记录包含二进制标签(0表示良性,1表示攻击)和多类标签(0-26,对应26种具体攻击类型,如位置伪造、运动学伪造、事件伪造、定时重放、身份欺骗和可用性洪水等)。数据集提供了46个详细字段,包括模拟时间、真实与声称的发送者ID、坐标、速度、加速度、航向、车道信息、攻击相关参数以及为Transformer模型准备的文本表示(`text_input`列)。数据集以单一压缩CSV文件形式发布,支持用户自定义数据划分策略,适用于二进制入侵检测、多类攻击分类、传统机器学习、深度学习、图学习和联邦学习等多种任务。GitHub仓库提供了一个包含27,000行(每类1,000行)的平衡样本用于快速测试。
VANET-IDS26 is a large-scale Vehicular Ad-hoc Network intrusion detection dataset containing benign VANET messages and 26 categories of network attacks. This dataset is specifically designed for research in VANET network security, intrusion detection systems, machine learning, deep learning, Transformer-based models, graph learning, and federated learning. The total dataset size is 786,798,378 rows and 46 columns, with 37,577,963 benign records and 749,220,415 attack records, and the compressed main file is approximately 79GB. Data is generated from 20 large-scale simulation runs, covering four traffic densities (low, medium, high, very high) and four attacker ratios (5%, 10%, 20%, 30%). Each record includes binary labels (0 for benign, 1 for attack) and multi-class labels (0-26, corresponding to 26 specific attack types, such as location forgery, kinematics forgery, event forgery, timed replay, identity spoofing, and availability flooding). The dataset provides 46 detailed fields, including simulation time, real and claimed sender IDs, coordinates, speed, acceleration, heading, lane information, attack-related parameters, and a text representation for Transformer models (`text_input` column). The dataset is released as a single compressed CSV file, supporting user-defined data splitting strategies, and is suitable for various tasks such as binary intrusion detection, multi-class attack classification, traditional machine learning, deep learning, graph learning, and federated learning. A balanced sample of 27,000 rows (1,000 rows per class) is provided in the GitHub repository for quick testing.
数据集名称
VANET-IDS26
数据集概述
VANET-IDS26 是一个大规模车载自组织网络入侵检测数据集,包含良性 VANET 消息和 26 类网络攻击。该数据集适用于 VANET 网络安全、入侵检测系统、机器学习、深度学习、基于 Transformer 的模型、图学习和联邦学习等研究领域。
数据规模与统计
| 项目 | 数值 |
|---|---|
| 完整主文件 | vanet_ids26_master.csv.gz |
| 完整主文件大小 | 约 79 GB(压缩后) |
| 总行数 | 786,798,378 |
| 良性行数 | 37,577,963 |
| 攻击行数 | 749,220,415 |
| 列数 | 46 |
| 二分类标签数 | 2 |
| 多分类标签范围 | 0–26 |
| 攻击类别数 | 26 |
| 最终仿真运行次数 | 20 |
| 密度等级数 | 4 |
| 攻击者比例 | 5%、10%、20%、30% |
样本文件
GitHub 仓库中提供了一个平衡样本文件 samples/vanet_ids26_sample.csv.gz,包含:
- 1,000 行良性数据
- 每个攻击类别(1–26)各 1,000 行
- 总共 27,000 行
- 46 列
- 压缩后约 2.26 MB
数据集用途
- 二分类入侵检测
- 多分类攻击分类
- 基于 Transformer 的入侵检测系统(使用
text_input) - 经典机器学习入侵检测系统
- 深度学习入侵检测系统
- 基于图的入侵检测系统
- 联邦学习入侵检测系统
- 非独立同分布客户端划分
- 基于密度的鲁棒性评估
- 基于攻击者比例的鲁棒性评估
- 攻击家族泛化能力评估
数据集设计
数据集包含两种主要记录类型:
benign_base:原始良性 VANET 消息attack_overlay:被攻击或合成的攻击覆盖消息
最终主文件将良性 VANET 消息与攻击覆盖消息合并为一个压缩 CSV 文件 vanet_ids26_master.csv.gz。
数据来源
最终主文件由 20 个大规模仿真运行构建,包括 dataset/processed/run_001001 至 run_001020 的 messages.csv 文件及对应的攻击覆盖文件 attack_overlay.csv。
仿真运行与密度等级
| 运行编号 | 密度 |
|---|---|
run_001001–run_001005 |
低 (low) |
run_001006–run_001010 |
中 (medium) |
run_001011–run_001015 |
高 (high) |
run_001016–run_001020 |
非常高 (very_high) |
密度信息包含在 density 列中。
攻击者比例
攻击覆盖生成时使用了四种攻击者比例,记录在 attack_ratio 列中(良性行该值为 0)。
| 值 | 含义 |
|---|---|
| 5 | 5% 攻击者比例 |
| 10 | 10% 攻击者比例 |
| 20 | 20% 攻击者比例 |
| 30 | 30% 攻击者比例 |
标签
二分类标签 (binary_label)
| 值 | 含义 |
|---|---|
| 0 | 良性 |
| 1 | 攻击 |
多分类标签 (multiclass_label)
| 标签 | 攻击类型 |
|---|---|
| 0 | 良性 |
| 1 | constant_position |
| 2 | position_offset |
| 3 | random_position |
| 4 | speed_manipulation |
| 5 | acceleration_manipulation |
| 6 | heading_manipulation |
| 7 | lane_spoofing |
| 8 | impossible_kinematics |
| 9 | eventual_stop |
| 10 | false_brake_event |
| 11 | false_emergency_vehicle |
| 12 | false_hazard_event |
| 13 | replay |
| 14 | delayed_message |
| 15 | timestamp_shift |
| 16 | stale_message_replay |
| 17 | sybil |
| 18 | impersonation |
| 19 | pseudonym_abuse |
| 20 | flooding_ddos |
| 21 | beacon_rate_abuse |
| 22 | gnss_spoofing |
| 23 | map_location_spoofing |
| 24 | ghost_vehicle |
| 25 | false_object_injection |
| 26 | object_position_shift |
攻击分类
| 标签 | 攻击类型 | 攻击家族 | 简要描述 |
|---|---|---|---|
| 0 | benign | benign | 正常 VANET 消息 |
| 1 | constant_position | position_falsification | 报告固定的虚假位置 |
| 2 | position_offset | position_falsification | 报告偏移的虚假位置 |
| 3 | random_position | position_falsification | 报告随机伪造的位置 |
| 4 | speed_manipulation | kinematic_falsification | 篡改声称的速度 |
| 5 | acceleration_manipulation | kinematic_falsification | 篡改声称的加速度 |
| 6 | heading_manipulation | kinematic_falsification | 篡改声称的航向 |
| 7 | lane_spoofing | lane_map_falsification | 报告虚假车道 |
| 8 | impossible_kinematics | kinematic_falsification | 创建物理上不合理的运动 |
| 9 | eventual_stop | kinematic_falsification | 伪造倾向于停止的行为 |
| 10 | false_brake_event | event_falsification | 注入或报告虚假制动事件 |
| 11 | false_emergency_vehicle | event_falsification | 声明虚假的应急车辆行为 |
| 12 | false_hazard_event | event_falsification | 注入或报告虚假危险事件 |
| 13 | replay | timing_replay | 重放先前的 VANET 消息 |
| 14 | delayed_message | timing_replay | 延迟消息时间 |
| 15 | timestamp_shift | timing_replay | 移动消息时间戳 |
| 16 | stale_message_replay | timing_replay | 将过时消息重放为当前消息 |
| 17 | sybil | identity_spoofing | 创建多个声称的身份 |
| 18 | impersonation | identity_spoofing | 冒充其他车辆 |
| 19 | pseudonym_abuse | identity_spoofing | 滥用假名或身份变更行为 |
| 20 | flooding_ddos | availability_flooding | 用过多消息泛洪网络 |
| 21 | beacon_rate_abuse | availability_flooding | 滥用信标传输频率 |
| 22 | gnss_spoofing | position_falsification | 伪造 GNSS 衍生的位置 |
| 23 | map_location_spoofing | lane_map_falsification | 伪造地图匹配的位置 |
| 24 | ghost_vehicle | identity_spoofing | 注入不存在的车辆身份 |
| 25 | false_object_injection | event_falsification | 注入虚假感知对象 |
| 26 | object_position_shift | event_falsification | 移动对象的报告位置 |
列模式
数据集中包含 46 列,例如:
dataset_name:数据集标识符,始终为VANET-IDS26record_id:主文件中行的唯一标识符source_type:benign_base或attack_overlaysource_file:用于创建该行的原始文件路径base_run_id:仿真运行 IDdensity:交通密度(low、medium、high、very_high)attack_ratio:攻击者比例(0、5、10、20 或 30)message_id:主文件中的消息 IDbase_message_id:原始基础消息 IDoverlay_message_id:攻击行的覆盖消息 IDoriginal_message_id:重放或延迟攻击时的原始消息 IDtime:仿真时间claimed_time:声称的消息时间physical_sender_id:实际发送者车辆 IDclaimed_sender_id:声称的发送者身份sequence_number:消息序列号true_x、true_y:真实坐标true_speed:真实速度true_acceleration:真实加速度true_heading:真实航向true_lane:真实车道标识符claimed_x、claimed_y:声称坐标claimed_speed:声称速度claimed_acceleration:声称加速度claimed_heading:声称航向claimed_lane:声称车道标识符malicious_delay_ms:恶意延迟(毫秒)sybil_group_id:Sybil 组标识符event_type:基于事件的攻击的事件类型false_object_id:虚假对象标识符object_type:注入或移动对象的类型object_x、object_y:对象坐标attack_start_time:攻击开始时间attack_notes:额外攻击备注is_attacker:物理发送者是否为攻击者is_synthetic_message:该行是否为合成注入消息attack_type:人类可读的攻击类型attack_label:数值攻击标签message_label:源文件中的原始消息标签binary_label:0 为良性,1 为攻击multiclass_label:0 为良性,1–26 为攻击类别text_input:VANET 消息的 BERT-ready 文本表示
Transformer 模型的文本输入
数据集中包含 text_input 列,适用于 BERT、DistilBERT、RoBERTa 等基于 Transformer 的模型。该列排除了直接标签列以减少标签泄漏。
类别不平衡
完整主文件存在不平衡:
- 良性行:37,577,963
- 攻击行:749,220,415
研究人员可选择使用所有行、对攻击行进行下采样、对良性行进行上采样、创建平衡子集、使用类别权重或分层抽样等方法。
建议的评估协议
- 协议 A:随机分层划分:用于快速基线实验
- 协议 B:运行级划分:减少跨仿真运行的信息泄漏
- 协议 C:密度留出:评估对未见交通密度的泛化能力
- 协议 D:攻击者比例留出:评估对未见攻击者强度的泛化能力
- 协议 E:攻击家族留出:评估对未见攻击家族的泛化能力
- 协议 F:联邦非独立同分布划分:用于联邦学习
推荐模型输入
- 基于 Transformer 的模型:
text_input - 结构化机器学习模型:
time、claimed_time、physical_sender_id、claimed_sender_id、sequence_number、true_x、true_y、true_speed、true_acceleration、true_heading、true_lane、claimed_x、claimed_y、claimed_speed、claimed_acceleration、claimed_heading、claimed_lane、malicious_delay_ms、sybil_group_id、event_type、object_x、object_y、is_attacker、is_synthetic_message
应避免作为特征的列
不应将直接标签或标识符列用作模型输入,例如:
attack_typeattack_labelmessage_labelbinary_labelmulticlass_labelrecord_idsource_fileattack_dataset_id
完整数据集下载
完整数据集可在 Hugging Face 上获取:
- 数据集页面:https://huggingface.co/datasets/mail2sia/VANET-IDS26
- 数据文件目录:https://huggingface.co/datasets/mail2sia/VANET-IDS26/tree/main/data
- 完整主文件:
data/vanet_ids26_master.csv.gz
引用要求
如果在任何出版物、论文、报告、基准测试、软件发布、模型发布或衍生数据集中使用 VANET-IDS26,请引用该数据集及相关研究工作。
临时引用格式: bibtex @ARTICLE{Ahsan2024-mo, title = "Privacy-preserving intrusion detection in software-defined {VANET} using Federated Learning with {BERT}", author = "Ahsan, Shakil Ibne and Legg, Phil and Iftekharul Alam, S M", year = 2024, eprint = "2401.07343" }




