← Lab /AI/ML

MIDS detects stealthy masquerade attacks on CAN with 96.9% F1

MIDS can reliably detect in-situ masquerade and tampering attacks on CAN bus traffic

AI/ML arXiv 17 Jun 2026 Defense Prototype evidence

Published as “MIDS: Detecting Stealthy Masquerade and Tampering Attacks on CAN Bus via Bidirectional Mamba”

Why it matters

MIDS’s high detection rates and low latency make it a practical candidate for on-board automotive IDS deployment.

Summary

MIDS attains an F1 score of up to 99.21% on tampering detection, beating eight reproduced baselines by up to 13.94 percentage points and running at 1.147 ms per 100-frame window, demonstrating both high accuracy and real-time feasibility. The evidence comes from extensive experiments on a 108 M-message Tesla Model 3 dataset and several public CAN benchmarks, using a unified 5-fold chronological cross-validation protocol.

What they found 3

  1. MIDS achieves the highest precision, recall, F1 score, and accuracy among all baselines on the tampering dataset.

    “MIDS achieves the highest F1 and accuracy, with CanTransformer second; the 8-point gap suggests that attention-based aggregation is a strong but still inferior alternative to bidirectional state-space modelling for masquerade detection.”

  2. MIDS inference latency is 1.147 ms per 100-frame window, well within CAN timing constraints.

    “MIDS’s measured latency of 1.147 ms per 100frame window is well within the deployability envelope of the CAN bus.”

  3. On public benchmarks, MIDS’s F1 ranges from 93.70% to 99.61%, surpassing the strongest baseline by up to 13.94 pp.

    “Across all five benchmarks MIDS achieves the highest F1, with margins over the strongest reproducible baseline ranging from a near-tie on saturated OTIDS (99.61 vs. 100.00) to substantial gaps of +13.94 pp on ROAD, +6.80 pp on CrySyS, and +4.29 pp on CT&T.”

Caveats 3

  • On the CT&T dataset, MIDS exhibits a false-negative rate of 8.49%, higher than on other benchmarks, reflecting class-imbalance rather than a model limitation.
  • We do not claim perfect statistical independence between driving regime and attack class-a guarantee that would require strict per-scenario replication of every attack vector-but the procedure neutralizes the most direct shortcut by which scenario information could leak into the attack-prediction signal.
  • The elevated CT&T FNR reflects its > 95%-majority Normal class rather than a model limitation.

What’s new here 4

  • Applies the bidirectional Mamba state-space model to CAN-bus intrusion detection for the first time.
  • Introduces a dual-stream architecture that processes ID and data fields separately to capture cross-field semantics.
  • Provides a large, high-fidelity real-world dataset of masquerade and tampering attacks from a production Tesla Model 3.
  • Implements a rigorous leakage-free evaluation protocol that interleaves driving scenarios and enforces temporal separation.