The invention relates to the technical field of
electronic security, and discloses a vehicle-mounted ECU identity
authentication method and
system based on a multi-factor
random seed and multiple security levels, and the method comprises the steps: synthesizing a
random seed at an ECU end through
multiple factors such as CRC32, a random number, a
timestamp and a global seed, and returning the
random seed to a
client; the
client calculates a key and returns the key by using a corresponding key
algorithm according to the target
security level; the ECU calculates an expected key through the same
algorithm and compares the expected key with a
client key, if the expected key is consistent with the client key, the session of the level is opened and the
delay timer is closed, if the session fails, the number of failure times of the level is accumulated, and if a threshold value is reached, the
delay timer of the corresponding
security level is started and the access of the level is locked until the timing is finished; and meanwhile, the
authentication result, the
security level, the
timestamp, the failure count and the seed state are written into a security log. According to the method, it is guaranteed that each time of seed is unpredictable and is strongly correlated with the historical state, a non-zero recalculation mechanism is matched, hidden dangers of fixed seeds, replay attacks and prediction attacks are thoroughly eliminated, and attacks can be protected, and events can be traced.