Research Article

Advanced Temperature-Varied ECU Fingerprints for Source Identification and Intrusion Detection in Controller Area Networks

Algorithm 2

Masquerade attack detection.
Require:: a set of timestamp sequence of new arrival messages with that are sent from ECU ;
: the empirical temperature of ECU at the moment;
the standard deviation of ECU average clock offset distribution at the temperature of .
Ensure: periodic message with the period of T.
(1)
(2)
(3)
(4)
(5)end for
(6)Average offset
(7)
(8)ifthen
(9)  return 1 Intrusion message
(10)else
(11)  return 0
(12)end if