用双向Mamba模型检测车载总线隐蔽伪装攻击,准确率超96%。
MIDS: Detecting Stealthy Masquerade and Tampering Attacks on CAN Bus via Bidirectional Mamba

- 并行处理CAN标识符与数据帧,通过双向状态空间建模捕捉时序关联
- 在百万级真实数据上实现96.94%的F1值,误报率低且推理延迟仅1.147毫秒
- 适用于车辆安全防护、自动驾驶系统验证等场景
控制器局域网络(CAN)是现代汽车电子控制单元间通信的主要标准,但缺乏加密和认证使其面临多种安全威胁。现有入侵检测系统多针对注入类攻击(如拒绝服务、模糊测试、ID伪造),依赖每帧间隔等统计特征进行检测。本文聚焦更隐蔽的伪装攻击:内部攻击者在原传输时刻替换合法帧,保持周期性,使传统基于流量统计的防御失效。为此提出Mamba入侵检测系统(MIDS),采用双流架构并行处理CAN标识符与载荷,通过双向选择性状态空间建模重构其联合时序语义。我们在特斯拉Model 3上采集超过1亿条CAN帧,涵盖三种驾驶工况,并合成54种伪装攻击变体(仅改ID、仅改数据、联合修改)。MIDS在该数据集上达96.94% F1值,优于最强可复现基线8个百分点以上,单窗口推理延迟仅1.147毫秒,具备实时部署潜力。进一步在四个公开基准(ROAD、CrySyS、OTIDS、CT&T)上验证泛化能力,覆盖伪装与注入场景,F1值介于93.70%至99.61%,超越八种复现基线最高达13.94个百分点,采用统一五折协议。
原文摘要 · Abstract (English)
The Controller Area Network (CAN) protocol is the primary communication standard for Electronic Control Units (ECUs) in modern vehicles, but its lack of encryption and authentication exposes it to a range of security threats. Existing intrusion detection systems are largely tuned to fabrication-style attacks (DoS, fuzzing, ID spoofing realised by frame injection), in which detection signals such as per-ID inter-arrival statistics are readily available. We instead address the harder \emph{masquerade} setting~\cite{b37}, in which an internal adversary substitutes a legitimate frame in-situ at its original transmission slot, preserving traffic periodicity and rendering traffic-statistic defences ineffective. We propose the Mamba Intrusion Detection System (MIDS), an innovative dual-stream framework that processes CAN identifiers and payloads in parallel and reconstructs their joint temporal semantics through bidirectional selective state-space modelling. To evaluate MIDS, we collected over 100 million CAN frames from a physical Tesla Model 3 across three driving regimes and synthesised 54 masquerade attack variants spanning ID-only, data-only, and combined modifications. MIDS attains an F1 of 96.94\% on this dataset, exceeding the strongest reproducible baseline by more than 8 percentage points, while sustaining a 1.147~ms single-window inference latency -- ample headroom for real-time onboard deployment. To verify generalisation, we further evaluate MIDS on four public benchmarks (ROAD, CrySyS, OTIDS, CT\&T) covering both masquerade and injection scenarios; MIDS attains F1 from 93.70\% to 99.61\%, outperforming the strongest of eight reproduced baselines by up to 13.94 percentage points under a unified 5-fold protocol.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。