Funfact: that’s not a simple solution as it sounds at first. It start to become very complex and expansive when you start looking at it in detail.
It starts with costly crypto support at the microcontroller. It goes with complex key agreement protocols. Then everything needs to be unique for each and every car. Because of you don’t do all of this, you can defeat everything very easily.