Method of preventing vehicle controller from being hacked and system thereof
View Patent ↗A method for preventing a vehicle controller from being hacked includes allowing the vehicle controller to transition from a lock state to an unlock state as a security access with a vehicle diagnostic device is completed, transmitting, by the vehicle controller, a session holding time to the vehicle diagnostic device in the unlock state, monitoring, by the vehicle controller, whether a request message is received from the vehicle diagnostic device every session holding time, and determining, by the vehicle controller, whether to transition from the unlock state to the lock state based on whether the request message is received.
1 . A method of preventing a vehicle controller from being hacked, the method comprising:
allowing the vehicle controller to transition from a lock state to an unlock state in response to a security access with a vehicle diagnostic device being completed within a first session holding time;
recording a second session holding time in a message for approving the security access of the vehicle diagnostic device, by the vehicle controller in the unlock state;
transmitting, to the vehicle diagnostic device, the message in which the second session holding time is recorded, by the vehicle controller in the unlock state;
monitoring, by the vehicle controller, whether a request message is received from the vehicle diagnostic device within the second session holding time; and
determining, by the vehicle controller, whether to transition from the unlock state to the lock state based on receipt of the request message,
wherein the second session holding time is set to be less than the first session holding time.
2 . The method of claim 1 , wherein determining the transition includes:
maintaining, based on the request message being received from the vehicle diagnostic device within the second session holding time, the unlock state; and
transitioning, based on the request message not being received from the vehicle diagnostic device within the second session holding time, from the unlock state to the lock state.
3 . The method of claim 1 , wherein the vehicle controller is connected to a gateway provided in a vehicle.
4 . The method of claim 1 , wherein the vehicle diagnostic device is configured to perform a security access procedure with the vehicle controller through an on-board diagnostics (OBD) connector provided in a vehicle.
5 . A system comprising:
a vehicle controller configured to:
allow transition from a lock state to an unlock state in response to a security access, with a vehicle diagnostic device being completed within a first session holding time,
record, a second session holding time in a message for approving the security access of the vehicle diagnostic device,
transmit, to the vehicle diagnostic device, the message in which the second session holding time is recorded,
monitor whether a request message is received from the vehicle diagnostic device within the second session holding time, and
determine whether to transition from the unlock state to the lock state based on receipt of the request message,
wherein, the vehicle diagnostic device configured to:
receive, based on the security access with the vehicle controller being completed, the message in which the second session holding time is recorded from the vehicle controller, and
transmit the request message to the vehicle controller within the second session holding time,
wherein the second session holding time is set to be less than the first session holding time.
6 . The system of claim 5 , wherein the vehicle controller is configured to:
maintain, based on the request message being received from the vehicle diagnostic device within the second session holding time, the unlock state, and
transition, based on the request message not being received from the vehicle diagnostic device within the second session holding time, from the unlock state to the lock state.
7 . The system of claim 5 , wherein the vehicle controller is connected to a gateway provided in a vehicle.
8 . The system of claim 5 , wherein the vehicle diagnostic device is configured to perform a security access procedure with the vehicle controller through an on-board diagnostics (OBD) connector provided in a vehicle.