Automotive Experiences
Vol. 9 No. 2 (2026)

Enhancing CAN Bus Security via Lightweight Hardware‑Based Identifier Randomization

Darouiche, Mohammed Saad (Unknown)
Tazi, Elbachir (Unknown)



Article Info

Publish Date
19 Jul 2026

Abstract

The controller area network (CAN) communication protocol used in vehicles relies on fixed message identifiers, which makes it vulnerable against frame injection and replay attacks. This study proposes an efficient lightweight hardware method that randomizes the identifier while preserving the priority rules that control bus arbitration. The design is implemented in a hardware description language (Verilog) and uses a linear feedback shift register (LFSR) as the randomization engine. The upper four bits of the identifier are kept unchanged to retain priority, where the lower seven bits are randomized. The module supports reseeding from a cryptographically secure random source. However, for the baseline statistical evaluation, reseeding was intentionally disabled to measure the intrinsic distribution. The design was evaluated using Xilinx Vivado environment. Statistical analysis was performed on 8,188 randomized ID, achieving a Shannon entropy of 6.999978 bits (maximum 7), and a chi‑square goodness‑of‑fit test that showed no detectable deviation from a uniform distribution (  = 0.2482, -value ≈ 1). Synthesis to a Artix-7 field‑programmable device reported only 15 lookup tables and 23 flip-flops (<0.1% of resources), with a maximum operating frequency of 482 MHz, indicating a minimal hardware footprint. The mechanism was further validated on a physical CAN testbed confirming protection against replay and spoofing attempts, while the mechanism added no measurable bus or timing overhead. These results show that simple, hardware‑level identifier randomization can strengthen in‑vehicle communication while keeping arbitration behaviour intact and without requiring protocol changes.

Copyrights © 2026






Journal Info

Abbrev

AutomotiveExperiences

Publisher

Subject

Aerospace Engineering Automotive Engineering Chemical Engineering, Chemistry & Bioengineering Control & Systems Engineering Electrical & Electronics Engineering Energy Materials Science & Nanotechnology Mechanical Engineering

Description

Automotive experiences invite researchers to contribute ideas on the main scope of Emerging automotive technology and environmental issues; Efficiency (fuel, thermal and mechanical); Vehicle safety and driving comfort; Automotive industry and supporting materials; Vehicle maintenance and technical ...