On a standard CAN bus, a message can claim to come from anywhere, and nothing in the protocol checks. It offers no message or device authentication, so a receiving ECU cannot tell a legitimate sender from a malicious one. (Security Issues in Controller Area Networks in Automobiles, arXiv)
The ‘Gateway ECU’ for vehicle body networks we developed was specifically designed to solve this communication-security problem.
Why CAN needs messages Authentication
CAN began as a single flat bus where every message is broadcast to every node. Any ECU can therefore send a message to a safety-critical unit such as the brake controller. Because nothing proves who sent what, spoofed and replayed messages become possible.
The consequence is simple. If one ECU is compromised, whatever it says is believed by the ECUs that hear it.
What authenticating a message actually means
In simple terms, each message carries a proof that only the real sender could have produced. The receiver checks the proof before acting on the message. A forged message arrives without a valid proof and is ignored.
The concept is simple. The challenge here is, making this work on small ECU’s that must respond in real time ECU’s, which is where the next point comes in.
Where the keys live matters
The proof depends on a secret key. A hardware security module (HSM) protects such keys from being scraped, copied or compromised: keys are generated and kept inside the module, which runs isolated from the host processor.
That is the practical difference. If the key sits in ordinary software memory, taking over the software can hand over the key. If it sits in hardware, it cannot be read out so easily.
How it looked in a real gateway
The gateway we delivered for a US OEM, through a global Tier-1, connects CAN FD, J1939, LIN and GPIO, and supports CAN authentication based on a hardware security module. It was built on an AUTOSAR base reused from an earlier programme.
A gateway is a natural home for this kind of feature because it sits where networks meet. NXP describes the gateway as playing a critical role in vehicle security on top of routing traffic.
Security of this kind lives inside a lot of ordinary software
The authentication was one part of a programme with 22 features, 1,662 software requirements and 1,315 tests, delivered across 72 releases. After delivery the gateway moved into maintenance.
The numbers make a point that is easy to miss. Hardware-backed authentication is not a switch you turn on. It is part of the same requirements, tests and releases as everything else on the product, and it has to be built and verified the same way.
One point is worth stating plainly. We make no claim about attacks this gateway has stopped, because that is not in our record. The evidence here is delivery: when the feature is shipped, no security issues were reported, and the CAN messages were not compromised during the maintenance phase.
What to take from it
If you are weighing how to protect your own in-vehicle networks, we are glad to share how we approached it. You can talk to one of our cybersecurity engineers.
On your next gateway, will message authentication be a requirement in the plan, or a retrofit after the first review?









