CAN-QA:用于车载CAN流量推理的问答基准
CAN-QA: A Question-Answering Benchmark for Reasoning over In-Vehicle CAN Traffic
AI总结:
本文提出CAN-QA基准,将车载CAN流量分析转化为问答任务,评估大语言模型在时间推理和多条件推理上的表现。
摘要:
控制器局域网络(CAN)是一种安全关键的车载通信协议,缺乏内置的安全机制,因此入侵检测至关重要。现有方法大多将CAN入侵检测视为分类任务,将复杂的流量模式映射到攻击标签。然而,这种 formulation 抽象了CAN流量的时序和关系结构,并与现实中的取证工作流程不一致,后者需要系统推理流量行为。为解决这一差距,我们引入CAN-QA,第一个将CAN流量分析重新表述为问答(QA)任务的基准。CAN-QA将原始CAN日志转换为时间分段窗口,并应用确定性规则模板生成自然语言问题并自动推导真实答案。所生成的数据集包含33,128个问答对,涵盖10个类别,每个类别针对CAN流量不同的语义和时间属性。使用CAN-QA,我们评估了大语言模型在True/False和多选格式中的表现。我们的结果表明,尽管这些模型能捕捉表面统计规律,但在时间推理、多条件推理和高层行为解释方面表现不佳。我们的代码可在https://github.com/Kriiiiss/CAN-QA获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。