The invention discloses a GRU-based vehicle-mounted CAN intrusion detection method and
system, a storage medium and a computer
system. According to the method, an automatic
encoder (AE) is introduced to deepen the understanding of a model on input sequence characteristics, a sliding window is used for selecting batch CAN data to be preprocessed to obtain 13-dimensional
time sequence data, and a
scalar value within the range of [0, 1] is obtained through
processing of the
encoder, a GRU, a decoder, a full connection layer and a
sigmoid activation function and used for classification of abnormal data. The Conv1D is used as a
hidden layer, and compared with two-dimensional
convolution, the one-dimensional
convolution parameter quantity is smaller, and the calculation is simpler and more convenient. An
attack message and a normal message can be completely distinguished, the precision and the accuracy rate reach 100%, and the precision in Fuzz detection is 0.9983; compared with the prior art, the method has high accuracy and reliability in the aspect of intrusion behavior detection, can effectively identify most intrusion events, and can keep a relatively low overall error rate, so that good balance between safety and availability is realized.