CAN-QA: A Question-Answering Benchmark for Reasoning over In-Vehicle CAN Traffic

Jing Chen, Abhijay Deevi, Onat Gungor, Tajana Rosing
4/27/2026
cs.CRcs.LG

Official code: Kriiiiss/CAN-QA (0 stars, last commit 2026-05-02).

Abstract

The Controller Area Network (CAN) is a safety-critical in-vehicle communication protocol that lacks built-in security mechanisms, making intrusion detection essential. Existing approaches predominantly formulate CAN intrusion detection as a classification task, mapping complex traffic patterns to attack labels. However, this formulation abstracts away the temporal and relational structure of CAN traffic and misaligns with real-world forensic workflows, which require systematic reasoning about traffic behavior. To address this gap, we introduce CAN-QA, the first benchmark that reformulates CAN traffic analysis as a question-answering (QA) task. CAN-QA converts raw CAN logs into temporally segmented windows and applies deterministic rule-based templates to generate natural-language questions paired with automatically derived ground-truth answers. The resulting dataset comprises 33,128 QA pairs across 10 categories, each targeting distinct semantic and temporal properties of CAN traffic. Using CAN-QA, we evaluate large language models across both True/False and multiple-choice formats. Our results indicate that, although these models capture superficial statistical regularities, they struggle with temporal reasoning, multi-condition inference, and higher-level behavioral interpretation. Our code is available at https://github.com/Kriiiiss/CAN-QA.

View on arXivView PDF

Code Implementations(1)

Kriiiiss/CAN-QAOfficial100%
00Jupyter NotebookApr 26, 20265 months ago

Similar Papers

Cite this paper

@article{chen2026canqa,
  title  = {CAN-QA: A Question-Answering Benchmark for Reasoning over In-Vehicle CAN Traffic},
  author = {Jing Chen and Abhijay Deevi and Onat Gungor and Tajana Rosing},
  year   = {2026},
  eprint = {2604.24935},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.24935v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.24935.svg)](https://codeofpaper.com/paper/2604.24935)

Discussion