An Entropy Analysis Based Intrusion Detection System for Controller Area Network in Vehicles

Qian Wang, Zhaojun Lu, Gang Qu

Abstract

Modern vehicles are increasingly reliant on Electronic Control Units (ECUs) communicating via the Controller Area Network (CAN). However, the CAN protocol's lack of security features makes it vulnerable to message injection attacks. This paper proposes a passive, bit-level entropy-based Intrusion Detection System (IDS) that monitors the statistical distribution of bits within the 11-bit CAN identifier. By leveraging the physical properties of CAN arbitration, the system identifies anomalies without requiring protocol modifications. Evaluation using real-world vehicle data shows detection rates exceeding 90% for various injection attacks.

Introduction

The "nervous system" of a modern car consists of dozens of ECUs connected via the CAN bus. Designed for reliability in the 1980s, CAN lacks encryption and sender authentication, allowing compromised components—such as OBD-II dongles or infotainment systems—to inject malicious frames. Traditional security measures like Message Authentication Codes (MACs) are difficult to deploy due to the protocol's small 8-byte payload and strict real-time constraints. This research addresses these challenges by introducing a lightweight IDS that detects attacks through passive monitoring of bit-level entropy.

Methodology: Bit-Level Entropy Analysis

The proposed IDS focuses on the 11-bit identifier (ID) field of the CAN frame. The core mechanism involves establishing a "Golden Template" of normal network behavior by recording bit probabilities during standard driving conditions. Instead of analyzing entire messages, the system tracks the probability of '1' vs. '0' for each of the 11 bit positions in the ID field.

CAN uses a "dominant/recessive" arbitration where a '0' bit overrides a '1'. Consequently, any injected message alters the statistical balance of these bits. If the entropy of any bit-slice deviates beyond a threshold, an alert is triggered.

Bit-level probability shifts during an attack compared to the Golden Template.

The system further employs a Rank Selection Method to infer the specific ID being spoofed by identifying which bits shifted toward 0 or 1. This approach is highly memory-efficient, requiring only 11 memory spaces to track the network state.

Experimental Setup and Results

The IDS was evaluated using traffic collected from a 2016 Ford Fusion via the OBD-II port, identifying 223 unique legitimate IDs. Malicious traffic was simulated using Arduino UNO microcontrollers and CAN shields to inject frames into the recorded stream.

The system was tested against several scenarios, including flooding and various injection rates. As shown in the table below, the IDS achieved a 100% detection rate for flooding and maintained high accuracy for single and multiple injection attacks.

Performance metrics across various attack scenarios.

While detection remains robust, the accuracy of inferring the specific malicious ID decreases as the number of simultaneous attackers increases, dropping to approximately 69.7% for four concurrent injections.

Conclusion

This bit-level entropy analysis provides a non-intrusive and protocol-agnostic solution for securing vehicle networks. By exploiting the physical layer characteristics of the CAN bus, the IDS achieves high detection accuracy with minimal computational overhead, making it suitable for real-time automotive applications. Future work will focus on improving inference accuracy in multi-attacker scenarios and integrating the system with active gateway filtering to neutralize threats upon detection.

Summary updated

BibTeX
@inproceedings{wang2018entropy,
  author = {Qian Wang and Zhaojun Lu and Gang Qu},
  title = {{An Entropy Analysis Based Intrusion Detection System for Controller Area Network in Vehicles}},
  booktitle = {SoCC},
  year = {2018},
  doi = {10.1109/socc.2018.8618564},
}
Figure