Safety module for CAN nodes

By introducing a security module into the CAN network, detecting and decoupling identifier matching of malicious messages, and setting dominant bits to invalidate CAN messages, the problem of malicious messages being mistaken for legitimate messages in the vehicle network is solved and network security is improved.

CN112347023BActive Publication Date: 2024-10-22NXP BV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010747735.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-06
Filing Date
2020-07-28
Publication Date
2024-10-22
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

The CAN bus protocol in the vehicle network is vulnerable to attacks, causing malicious messages to be mistaken for legitimate messages and then control vehicle components, causing security risks.

Method used

Design a security module that compares the identifier of the received CAN frame with the identifier associated with the local controller. After detecting the match, it decouples the local controller from the CAN bus and invalidates the CAN message by setting the dominant bit. Prevent malicious messages from spreading across the network.

Benefits of technology

Effectively identify and prevent malicious messages from spreading in the CAN network, ensuring that only legitimate nodes can transmit messages, preventing attackers from controlling vehicle components, and improving network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112347023B_ABST
    Figure CN112347023B_ABST
Patent Text Reader

Abstract

A security module for a CAN node. It includes: an RXD input interface for receiving data from a CAN bus; a TXD output interface for sending data to the CAN bus; and an RXD output interface for providing data to a local controller. The security module is configured to receive a CAN frame from the CAN bus. The CAN frame includes a CAN message. The security module is also configured to: compare an identifier of the received CAN frame with at least one identifier associated with the local controller; and upon detecting a match between the identifier of the received CAN frame and at least one identifier associated with the local controller: pass the received CAN message to the local controller via the RXD output interface; decouple the local controller from the CAN bus; and invalidate the CAN message on the CAN bus via the TXD output interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to security in controller area networks. Background Art

[0002] The controller area network (CAN) bus is a message-based communication bus protocol often used in automobiles. The CAN bus protocol is used to enable communication between various electronic control units (ECUs), such as engine control modules (ECMs), powertrain control modules (PCMs), airbags, anti-lock brakes, cruise control systems, electric power steering systems, audio systems, windows, doors, mirror adjustment systems, batteries and recharging systems for hybrid / electric vehicles, etc. The data link layer of the CAN protocol is standardized as the International Standards Organization (ISO) 11898-1. The standardized CAN data link layer protocol has also been extended to provide higher data rates. An extended protocol called CAN Flexible Data Rate or "CAN FD" is part of the ISO11898-1:2015 standard version. The next generation CAN protocol, called CAN XL, is still under development.

[0003] One of the growing concerns with in-vehicle networks, such as those using the CAN bus protocol, is cybersecurity, including intrusion detection and intrusion prevention. For example, a compromised in-vehicle network could allow an attacker to maliciously control components of the vehicle. Summary of the invention

[0004] According to a first aspect of the present disclosure, a security module for a controller area network (CAN) node is provided, the security module comprising:

[0005] Receive data RXD input interface, receive data RXD input interface is used to receive data from the CAN bus;

[0006] A transmit data TXD output interface, wherein the transmit data TXD output interface is used to send data to the CAN bus; and

[0007] RXD output interface: The RXD output interface is used to provide data to the local controller;

[0008] The security module is configured as follows:

[0009] Receiving a CAN frame from the CAN bus via the RXD input interface, wherein the CAN frame includes a CAN message;

[0010] comparing an identifier of the received CAN frame with at least one identifier associated with a local controller; and

[0011] Upon detecting a match between an identifier of the received CAN frame and at least one identifier associated with a local controller:

[0012] Delivers received CAN messages to the local controller via the RXD output interface;

[0013] Decoupling the local controller from the CAN bus; and

[0014] Disables CAN messages on the CAN bus via the TXD output interface.

[0015] Such a security module can advantageously provide nodes on a CAN network with a means to identify that they are under attack, while still disabling spoofed CAN messages on the CAN bus. This is achieved by decoupling the local controller associated with the spoofed message from the CAN bus and disabling the CAN messages on the CAN bus.

[0016] In one or more embodiments, the security module further includes a TXD input interface for receiving data from the local controller. The security module can be further configured to decouple the local controller from the CAN bus by coupling the TXD input interface to the RXD output interface, optionally so that the local controller does not discard CAN frames.

[0017] In one or more embodiments, the security module is configured to disable a CAN message on the CAN bus by setting a plurality of bits following a cyclic redundancy check CRC bit of the CAN frame to a dominant value.

[0018] In one or more embodiments, the security module is configured to decouple the local controller from the CAN bus and invalidate CAN messages on the CAN bus for bits of the CAN frame immediately following a cyclic redundancy check CRC bit of the CAN frame.

[0019] In one or more embodiments, the security module is configured to decouple the local controller from the CAN bus until the security module receives a recessive bit from the CAN bus via the RXD input interface.

[0020] In one or more embodiments, the security module is further configured to recouple the local controller to the CAN bus after receiving a recessive bit from the CAN bus.

[0021] In one or more embodiments, the security module is configured to pass a portion of the CAN frame to the local controller. The portion may include bits of the CAN frame preceding and optionally including one or more acknowledge bits of the CAN frame.

[0022] In one or more embodiments, the security module is configured to provide unmodified received CAN frames to the local controller via the RXD output interface.

[0023] A CAN node is also disclosed, comprising: a CAN transceiver; a local controller; and any security module disclosed herein. The RXD input interface and the TXD output interface of the security module can be configured to communicate with the CAN bus via the CAN transceiver. The security module can be configured to communicate with the local controller via the RXD output interface and the TXD input interface.

[0024] In one or more embodiments, the local controller is configured to determine that a received CAN frame is a malicious frame.

[0025] In one or more embodiments, the local controller is configured to determine that the received CAN frame is a malicious frame by comparing an identifier of the received CAN frame to at least one identifier associated with the local controller.

[0026] In one or more embodiments, the local controller is configured to output a dominant acknowledge bit followed by a recessive bit upon receipt of the received CAN frame.

[0027] In one or more embodiments, upon determining that the received frame is a malicious frame, the local controller is configured to perform one or more of the following operations:

[0028] Log CAN frames as malicious frames;

[0029] Alert or display errors to network operators that CAN nodes and / or CAN networks are under attack;

[0030] Put the CAN node into emergency mode or shut down the CAN node;

[0031] placing one or more other CAN nodes on the CAN bus and / or the CAN network into emergency mode; and

[0032] Send a message to other CAN nodes on the CAN bus indicating that the CAN network is under attack.

[0033] In one or more embodiments, the security module or CAN node is for use in a Classical CAN, CAN FD or CAN XL network.

[0034] According to another aspect of the present invention, there is provided a method for disabling a CAN message on a CAN bus, the method comprising:

[0035] Receive a CAN frame from a CAN bus, wherein the CAN frame includes a CAN message;

[0036] comparing an identifier of the received CAN frame with at least one identifier associated with a local controller;

[0037] detecting a match between an identifier of the received CAN frame and at least one identifier associated with the local controller;

[0038] Passing the received CAN message to the local controller;

[0039] Decoupling the local controller from the CAN bus; and

[0040] Disables CAN messages on the CAN bus.

[0041] Although the present disclosure allows various modifications and alternative forms, the details of the present disclosure have been shown in the accompanying drawings by way of example and will be described in detail. However, it should be understood that other embodiments other than the specific embodiments described are also possible. All modifications, equivalents and alternative embodiments within the spirit and scope of the appended claims are also encompassed.

[0042] The above discussion is not intended to represent every example embodiment or every implementation within the scope of the current or future claim sets. The following figures and detailed descriptions also illustrate various example embodiments. Considering the following detailed descriptions in conjunction with the drawings, various example embodiments may be more fully understood. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] One or more embodiments will now be described, by way of example only, with reference to the accompanying drawings, in which:

[0044] Figure 1 Shows the CAN network;

[0045] Figure 2 Shows an expanded diagram of a CAN node;

[0046] Figure 3 Showing a Classical CAN frame and a CAN FD frame in basic frame format;

[0047] Figure 4A A CAN node including a security module according to an embodiment of the present disclosure is shown;

[0048] Figure 4B A CAN node including another security module according to an embodiment of the present disclosure is shown;

[0049] Figure 5 shows the response of the CAN node of FIG. 4 after determining that the CAN node is attacked;

[0050] Figure 6 showing a malicious CAN message at a bit level as seen by the CAN bus and nodes connected to the CAN bus; and

[0051] Figure 7An example embodiment of a method for invalidating CAN messages on a CAN bus is shown. DETAILED DESCRIPTION

[0052] Figure 1 A CAN network 100 is depicted, comprising a plurality of CAN nodes 102, also referred to as ECUs, each connected to a CAN bus 104. Figure 1 In an embodiment of the present invention, each CAN node 102 includes a CAN transceiver 120 and a local controller 110 or microcontroller having an embedded CAN protocol controller 114. The local controller 110 is typically connected to at least one device (not shown) such as a sensor, an actuator, or some other control device, and is programmed to determine the meaning of a received message and generate an appropriate outgoing message. The local controller may also be referred to as a host processor, a host, or a digital signal processor (DSP). In some examples, the host supports application software that interacts with the CAN protocol controller 114.

[0053] The CAN protocol controller 114, which may be embedded within the local controller 110 or external to the local controller (e.g., a separate IC device), implements data link layer operations. For example, in a receive operation, the CAN protocol controller 114 stores serial bits received from the transceiver 120 until the entire message is available for extraction by the local controller 110. The CAN protocol controller 114 may also decode CAN messages according to a standardized frame format of the CAN protocol. In a transmit operation, the CAN protocol controller 114 receives a message from the local controller and sends the message to the CAN transceiver 120 as serial bits in one of the CAN frame formats.

[0054] The CAN transceiver 120 is located between the CAN protocol controller 114 and the CAN bus 104 and implements physical layer operations. For example, in a receive operation, the CAN transceiver 120 converts analog differential signals from the CAN bus into serial digital signals that the CAN protocol controller 114 can interpret. The CAN transceiver also protects the CAN protocol controller 114 from extreme electrical conditions on the CAN bus 104, such as surges. In a transmit operation, the CAN transceiver 120 converts serial digital bits received from the CAN protocol controller 114 into analog differential signals that are transmitted on the CAN bus 104.

[0055] The CAN bus 104 carries analog differential signals and includes a CAN high (CANH) bus line 124 and a CAN low (CANL) bus line 126 .

[0056] Figure 2 An expanded view of a CAN node 202 is depicted. Figure 2 Also in Figure 1Features shown in have been given corresponding reference numerals in the 200 series and will not be described again here.

[0057] The local controller 210 includes a host 216, which may be, for example, a software application stored in a memory of the local controller 210 and executed by a processing circuit of the local controller 210. The local controller 210 and the CAN transceiver 220 of the CAN node 202 are connected between a power supply voltage Vcc and a ground GND. In some examples, the local controller 210 and the CAN transceiver 220 may have different power supply voltages. Figure 2 As shown, data communicated from the local controller 210 to the CAN transceiver 220 is identified as transmit data (TXD), and data communicated from the CAN transceiver 220 to the local controller 210 is referred to as receive data (RXD). Data is communicated to and from the CAN bus via the CANH bus line 224 and the CANL bus line 226, respectively.

[0058] Figure 3 The format of a Classic CAN frame 330 (in the Classic Base Frame Format (CBFF) or Standard format) used in CAN Normal mode is depicted, and the format of a CAN FD frame 332 (in the FD Base Frame Format or FBFF) used in CAN FD mode is also depicted. The fields of the CAN Normal mode and CAN FD mode frames are defined as follows:

[0059] SOF: Start of Frame (always dominant)

[0060] Identifier: Identifier bit, defines the message content

[0061] RTR: Remote Transmit Request

[0062] IDE: ID Extension

[0063] r0: Reserved bit 0 (replaced by FDF in CAN FD format)

[0064] FDF: FD Format (this is the bit that distinguishes the frame format)

[0065] BRS: Baud rate selector switch

[0066] ESI: Error Status Indicator

[0067] DLC: Data Length Code

[0068] Data: Data Bytes

[0069] CRC: Cyclic Redundancy Check

[0070] CRC Del: CRC delimiter (always recessive)

[0071] ACK: Acknowledge

[0072] ACK Del: Response delimiter

[0073] EOF: End of frame

[0074] There is another version of the classic frame format, called the "Classic Extended Frame Format (CEFF)", in which the FDF bit is in the old r1 position, while the FDF bit is in the r0 position in the CBFF. There is also an "FD Extended Frame Format (FEFF)", where "extended" refers to the 29-bit identifier. It is worth noting that the CAN protocol uses a reserved bit (r0 or r1) within the CAN frame (also commonly referred to as the FDF bit) to identify the frame as a CAN FD mode frame. Specifically, the FDF bit is a 1-bit field that indicates whether the frame is a CAN normal mode frame or a CAN FD mode frame. When the FDF bit is dominant (e.g., low or "0"), the frame is a CAN normal mode frame, and when the FDF bit is recessive (e.g., high or "1"), the frame is a CAN FD mode frame. In a CAN normal mode frame, the reserved bits (r0, r1) are always driven to be dominant to the bus line.

[0075] CAN messages are broadcast messages, and the identifier is unique to the transmitter CAN node. The CAN protocol controller of the receiving CAN node has an identifier filter that is "tuned" to a specific identifier to ensure that the host receives relevant messages and is not disturbed by irrelevant messages. The standard CAN frame has an 11-bit identifier field to carry the 11-bit identifier, and the extended CAN frame has a 29-bit identifier field to carry the 29-bit identifier. The 29-bit identifier field is divided into two sections: the 11-bit basic identifier field and the 18-bit extended identifier field.

[0076] As stated above, the security of vehicle networks is increasingly gaining attention. Many components of vehicle networks utilize software that must be updated regularly. In order to update the software, vehicle networks often have "backdoor" access ports. If the backdoor access port is hacked, the components in the vehicle network will be compromised. One attack technique for vehicle networks using the CAN protocol involves an attacker transmitting an error flag to interfere with a frame that begins with a specific identifier, which may cause the legitimate transmitting CAN node of this specific identifier to enter a "bus off" state. When the legitimate CAN node recovers from the bus off state, the attacker can transmit a CAN message (such as a "data frame", which is a CAN frame with the RTR bit set to "0") with an identifier that is usually used by the transmitting CAN node. Suspicious CAN messages may be received by a CAN node on the CAN bus and identified as valid messages because the identifier has been previously used within the CAN network. Therefore, there are deceptive messages on the CAN bus. Once a CAN node on the CAN bus receives a suspicious message, the suspicious message can be used to implement malicious activities within the receiving CAN node.

[0077] In order to detect and prevent such attacks on the CAN network, the CAN node can be configured to store the identifier of the CAN message transmitted by the CAN node itself, and further configured to compare the identifier of the incoming CAN message with the stored identifier to determine whether any incoming CAN message has a matching identifier. Since each CAN node is usually uniquely assigned an identifier, if the received identifier matches the stored identifier, the receiving CAN node can assume that the CAN message is from an intruder and can take measures to prevent the intrusion. For example, in response to detecting a match between the received identifier and the stored identifier, the CAN node can be configured to transmit an error signal such as an error flag to the CAN bus to prevent the malicious CAN message from being successfully and completely received by any CAN node on the CAN bus, such as invalidating, destroying and / or terminating the CAN message. By applying such technology, only the original (or legitimate) CAN node using a specific identifier can transmit a CAN message with an identifier without invalidating, destroying and / or terminating the CAN message.

[0078] Figure 4A A CAN node 402 is depicted including a security module 460 according to an embodiment of the present disclosure. In this embodiment, the security module 460 is provided separately to the CAN transceiver 420 and the CAN local controller 410. The security module 460 is located in the data path between the CAN transceiver 420 and the CAN local controller 410.

[0079] Figure 4BA CAN node 402 is depicted including a security module 460 according to another embodiment of the present disclosure. In this embodiment, the security module 460 is provided as part of a CAN local controller 410. For example, the functionality of the security module 460 may be provided by a CAN protocol controller.

[0080] In yet another embodiment, the functionality of the security module 460 may be provided by the CAN transceiver 420 .

[0081] The security module 460 is configured to implement the above-described intrusion detection / prevention techniques in a manner that enables the CAN node 402 to inspect any malicious CAN messages and / or take appropriate remedial actions. It should be appreciated that the examples disclosed herein may be relevant to classic CAN nodes, CAN FD nodes, CAN XL nodes, or any other CAN nodes that meet the associated CAN standards, whether now or in the future.

[0082] CAN node 402 includes the Figure 1 and Figure 2 A CAN transceiver 420 and a CAN local controller 410 are depicted.

[0083] The security module 460 is configured to decode the identifier of a CAN message (or CAN frame) received on the CAN bus 404 (e.g., a CAN message on the RXD path), and compare the identifier of the CAN message with a local identifier associated with the CAN node 402. The local controller 410 may include a memory for storing one or more local identifiers associated with the local controller 410 or the CAN node 402. The security module 460 is located before the CAN local controller 410 so that the comparison can be performed before the CAN message is completely received at the CAN local controller 410. If the CAN message identifier and the local identifier match, the CAN node 402 is considered to be a CAN node under attack. If the comparison indicates that the identifier from the CAN message and the local identifier match (and assuming that the CAN node 402 itself did not send the CAN message), the security module 460 may: provide the received CAN message to the local controller 410; decouple the local controller 410 from the CAN bus 404; and invalidate the received CAN message on the CAN bus 404, which may destroy and / or terminate the CAN message on the rest of the CAN network.

[0084] The security module 460 can invalidate the received CAN message by setting a plurality of dominant bits in the frame end field of the CAN message. The CAN message is invalidated and discarded without being processed at all CAN nodes that receive the invalidated CAN message from the CAN bus 404. This can prevent the CAN message from carrying out any malicious activities in other CAN nodes in the CAN network.

[0085] By providing the received message to the local controller 410 and decoupling the local controller 410 from the CAN bus 404, the local controller 410 of the attacked CAN node 402 can: (i) determine that the CAN node is an attacked CAN node; (ii) process the received CAN message; and (iii) potentially take any remedial measures before invalidating the CAN message on the CAN bus 410. If the security module 460 does not decouple the local controller 410 from the CAN bus 404, the attacked CAN node 402 will discard the message without processing the message or checking its payload in the same way as other CAN nodes connected to the CAN bus. As a result, neither the CAN node nor the CAN network can: (i) distinguish between an attack / security backend and errors caused by non-security issues such as noise interference; (ii) inspect the CAN message to gain insight or intelligence into the nature of the attack; or (iii) take remedial measures to protect the CAN network from the attack or further attacks.

[0086] Figure 5 The response of the security module 560 to determining that the CAN node 502 is under attack is shown after a comparison match between the CAN message identifier and the local identifier. Figure 5 Features also shown in FIG. 4 have been given corresponding reference numerals in the 500 series and will not be described again here.

[0087] The security module 560 includes a receive data RXD input interface 562 configured to receive data from the CAN bus 504 via the CAN transceiver 520, an RXD output interface 564 configured to pass data (received from the CAN bus 504) to the local controller 510, a transmit data TXD input interface 566 configured to receive data from the local controller 510 (for onward transmission to the CAN bus 510), and a TXD output interface 568 configured to transmit data to the CAN bus 504. In this way, the security module 560 is located on the TXD and RXD paths between the CAN transceiver 520 and the local controller 510. When the security module 560 passes data, the security module 560 can preferably do so with no / minimal latency increase and without any kind of buffering.

[0088] Upon detecting an identifier match, just in a first step, the security module 560 passes the received CAN message 570 (rogue message or malicious message or spoofed message) to the local controller 510. This may involve passing the CAN message to the local controller 510 effectively, i.e., not invalidating the message by setting a plurality of bits after the cyclic redundancy check CRC bits of the CAN frame to a dominant value. Optionally, the security module 560 passes a portion of the CAN message 570 including the data payload to the local controller 510. The security module 560 may provide a portion of the CAN message including all bits before and optionally including the ACK bit and / or ACK Del bit of the CAN message 570.

[0089] In a second step, after providing at least a portion of the CAN message 570 to the local controller 510, the security module 560 decouples the local controller 510 from the CAN bus 504. In some examples, the security module 560 decouples the local controller 510 from the CAN bus 504 by connecting the TXD input interface 566 to the RXD output interface 564. In this way, the local controller 510 can transmit a dominant ACK bit and a recessive frame end field bit after receiving the CAN message, indicating that there is no error in the received CAN message. The local controller 510 will then receive back the bit transmitted by the local controller 510 itself via the RXD output interface 564. The local controller 510 will interpret these error-free bits to mean that other nodes on the CAN network have not yet triggered an error flag. In this way, the local controller 510 is isolated from the CAN bus 504, thereby allowing the local controller 510 to process malicious CAN messages 570. As discussed below, this can enable the CAN node to determine that a spoofing attack is being attempted.

[0090] Also during the second step, the security module 560 disables the CAN message on the CAN bus 504 via the TXD output interface 568 and the CAN transceiver 520. In this way, the security module 560 disables the CAN message for all nodes connected to the CAN bus 504. The security module 560 can disable the CAN message at the same time or after connecting the TXD input interface 566 to the RXD output interface 564. As a result, the CAN bus 504 does not indicate that the CAN message is invalid before the local controller 510 has been decoupled from the CAN bus 504.

[0091] The security module 560 can disable the CAN message by setting a single or multiple bits to a dominant value in any manner known in the art. According to ISO 11898-1, multiple bits can be six consecutive bits. The security module 560 can mark multiple bits after the CRC bit of the CAN message. Multiple dominant bits can include multiple dominant bits in the frame end field of the CAN message and one or more bits in the ACK and / or ACK del field. Multiple dominant bits can start immediately after the CRC bit, or can be delayed after the CRC bit. For example, multiple dominant bits can start at 5 bits after the CRC bit. Multiple dominant bits can start at any bit position after the CRC bit position, and any bit position is fast enough so that multiple dominant bits can be identified as requests to disable the CAN message.

[0092] By implementing Figure 5 In steps 1 and 2 of the present invention, the security module 560 enables the attacked CAN node 502 (the legitimate transmitter of the attacked CANID) to receive the malicious CAN message 570 transmitted by the non-legitimate transmitter, while all other nodes on the CAN bus 504 will discard the fraudulent CAN message. This allows the attacked CAN node 502 to record the attack and take other remedial steps.

[0093] The security module 560 can maintain the local controller 510 decoupled from the CAN bus 504 until data received from the CAN bus 504 indicates error-free operation. In some examples, in response to the security module 560 receiving a recessive bit from the CAN bus via the RXD input interface 562, the security module 560 couples the local controller 510 to the CAN bus 504 again.

[0094] Figure 6 An example of a malicious CAN message at the bit level as seen by the local controller of the attacked node and as seen by the CAN bus and other remote CAN nodes after identifier matching of the security module according to an embodiment of the present disclosure is shown.

[0095] Figure 6 The upper portion of the CAN bus shows the end portion 674 of the malicious CAN message as seen by the CAN bus and other remote nodes connected to the CAN bus. The first shown bit is the recessive CRC Del bit 678. The security module invalidates the CAN message on the CAN bus by setting a plurality of consecutive bits after the CRC Del bit 678 to a dominant value. In this example, the security module sets a multi-bit security error flag 681 starting with the ACK bit 679 immediately following the CRC Del bit 678.

[0096] A remote node connected to the CAN bus will interpret the dominant ACK bit 679 as normal operation. In addition, there may be a tolerance 680 in the timing of the ACK bit 678 and the ACK Del bit, so that the remote node will not be sure that there is an error before it receives two (classic CAN) or three (CAN FD) consecutive dominant bits indicating a dominant ACKDel bit. The tolerance takes into account the transmission time of the ACK bit 678 and the synchronization offset between various nodes. After receiving more than two or three consecutive dominant bits, the remote node on the CAN bus determines that there is a formal error and outputs its own error flag 682 to the bus. In classic CAN and CAN FD, this formal error flag 682 includes setting 6 consecutive dominant bits in the CAN message.

[0097] After the error flag, the bit on the CAN bus is at time t F Return to the recessive state 684. In other examples, this return to the recessive state may occur at a later time.

[0098] Figure 6 The lower portion of shows the end of the CAN message 676 as received by the local controller of the attacked CAN node. The dominant ACK bit 688 indicating the response to the CAN message follows the recessive CRC Del bit 686. The dominant bit can be set by the security module or the local controller of the attacked CAN node. In this example, the local controller is decoupled from the CAN bus immediately before the ACK bit 688. In other examples, the local controller can be decoupled from the CAN bus at a later time as long as the local controller is decoupled from the CAN bus before the CAN bus indicates that the CAN message is invalid.

[0099] In this example, the local controller of the attacked node is decoupled from the CAN bus by connecting the TXD input interface to the RXD output interface. In this example, the two interfaces are coupled to each other simultaneously with the first bit of the explicit ACK bit being set to the security error flag 681. In the case where the TXD input interface is coupled to the RXD output interface, the local controller transmits and receives back a continuous stream of recessive bits 690. This is because after receiving the dominant ACK bit 688, the local controller transmits multiple recessive bits to the security module via the TXD input interface due to not perceiving any error. By connecting the TXD input interface to the RXD output interface, the security module loops the recessive bits directly back to the local controller. The local controller interprets this recessive bit as an error-free indication from the CAN bus. Therefore, the local controller continues to provide and receive recessive bits back to the security module from the security module, and therefore receives a continuous stream of recessive bits. In this way, the local controller is "cheated" to determine an error-free CAN bus.

[0100] The safety module keeps the local controller decoupled from the CAN bus until the safety error flag 681 expires and until the safety module receives a recessive bit from the CAN bus. In the figure, this is at time t F The security module may be configured to receive a local controller and to provide a secure error flag 681 of 692. In other examples, the CAN bus may not provide a recessive bit until a later time, for example if other nodes determine additional errors. After receiving the recessive bit from the CAN bus, the security module recouples the local controller to the CAN bus. In this way, after the CAN bus has returned to the recessive state, the RXD path of the local controller associated with the fraudulent message is driven by the CAN bus again.

[0101] After receiving the malicious CAN message and during the decoupling time, the local controller may begin processing the malicious CAN message. To process the malicious message, the local controller may first determine that the received CAN message is a malicious message. The local controller may determine that the message is malicious in the same manner as the security module, i.e., by comparing the identifier of the received CAN message with an identifier associated with the local controller or an associated CAN node that is attacked. Additionally or alternatively, the local controller may compare the message with a message that the local controller has previously transmitted. In other examples, the local controller may receive an indication from the security module that the CAN message is a fraudulent CAN message.

[0102] After determining that the received CAN message is a malicious CAN message, the local controller can perform one or more of the following operations:

[0103] 1. The local controller can log CAN messages as malicious messages. The logged messages can be accessed by the CAN node or network operator for future analysis.

[0104] 2. The local controller may alert or display an error to the network operator that the associated CAN node and / or CAN network is under attack. This may occur immediately after identifying the malicious message or after re-coupling the local controller to the CAN bus. The network operator may take appropriate remedial measures, such as shutting down the CAN network, enabling safe mode for one or more nodes in the network, and / or identifying and isolating the source of the attack.

[0105] 3. The local controller can automatically put the attacked CAN node into emergency mode or safe mode. This can include deactivating, limiting or denying access to specific features.

[0106] 4. The local controller can automatically transmit a message to one or more other CAN nodes or the entire CAN network via an emergency transmission path independent of the CAN bus. The message can alert the CAN node or network of an attack and / or put one or more CAN nodes into emergency mode.

[0107] 5. After re-coupling to the CAN bus, the local controller may automatically transmit a message to other nodes on the CAN bus indicating that the network is under attack. The message may alert the CAN node or network of the attack and / or place one or more CAN nodes in emergency mode. Other nodes may enable a safe mode that disables, limits or denies access to specific features.

[0108] The disclosed security module functionality advantageously provides a CAN network owner with a means for identifying attacked CAN nodes. This is achieved by masking error signals in the receiving path of the attacked CAN node.

[0109] In the absence of local controller decoupling, when the security module issues a false signal to invalidate a CAN message, the CAN message will be invalidated and none of the connected CAN nodes will determine which CAN ID has been spoofed. Decoupling the local controller after it has received the spoofed message will allow the attacked CAN node (the legitimate transmitter of the spoofed CAN ID) to know that one of the CAN nodes' CAN IDs has been attacked and the CAN node's security module will prevent the attack.

[0110] In some examples, the security module issues an error signal (error flag) after the CRC Del bit to invalidate the CAN message and simultaneously disconnects the RXD output interface from the CAN bus. When the CAN bus returns to the recessive state, the RXD output mirrors the TXD input until the RXD output becomes reconnected to the CAN bus. The local controller of the attacked CAN node will see the CAN message of the appropriate response, while the remote node on the CAN bus will see the form error according to ISO11898-1 and therefore discard the CAN message. In other words, the legitimate transmitter of the attacked CAN ID can receive the CAN message transmitted by the illegal transmitter, and all other receivers on the bus will discard the fraudulent message. This will allow the legitimate transmitter to record the attack and take additional remedial steps.

[0111] Figure 7 An example embodiment of a method for invalidating CAN messages on a CAN bus is shown.

[0112] At step 790, the method includes receiving a CAN frame from the CAN bus. As discussed above, a CAN frame includes a CAN message. The method may involve determining whether the received message is transmitted from a local host. If the message is transmitted by a local host / node, then the message may be subject to different or additional conditions than if the message has been received by a remote host / node. For example, for a remotely received message having an identifier of a local host / node, only one or more policies may be checked to see if they have been violated.

[0113] At step 791, the method includes comparing the identifier of the received CAN frame with at least one identifier associated with the local controller. The at least one identifier associated with the local controller may be stored in a memory and optionally may be received by a security module executing the method.

[0114] At step 792, the method involves detecting a match between an identifier of the received CAN frame and at least one identifier associated with the local controller. In response to detecting a match at step 792, the method performs each of steps 793, 794, and 795.

[0115] At step 793, the method includes passing the received CAN frame to the local controller. At step 794, the method includes decoupling the local controller from the CAN bus. At step 795, the method involves disabling the CAN message on the CAN bus. In some examples, step 795 may involve setting a plurality of bits after a cyclic redundancy check CRC bit of the CAN frame to a dominant value.

[0116] Unless a specific order is explicitly stated, the instructions and / or flow chart steps in the above figures can be executed in any order. Moreover, those skilled in the art will recognize that although examples of instruction sets / methods have been discussed, the materials in this specification can also be combined in various ways to produce other examples, and should be understood in the context provided in this specific embodiment.

[0117] In some example embodiments, the instruction sets / method steps described above are implemented as functional instructions and software instructions embodied as a set of executable instructions that act on a computer or machine programmed with and controlled by the executable instructions. Such instructions are loaded for execution on a processor (e.g., one or more CPUs). The term processor includes a microprocessor, a microcontroller, a processor module or subsystem (including one or more microprocessors or microcontrollers), or other control or computing devices. A processor may refer to a single component or multiple components.

[0118] In other examples, the instruction sets / methods shown herein and the data and instructions associated therewith are stored in corresponding storage devices, which are implemented as one or more non-transitory machine or computer readable or computer usable storage media. Such computer readable or computer usable storage media are considered to be part of an article (or product). An article or product may refer to a single component or multiple components of any manufacture. A non-transitory machine or computer usable medium as defined herein does not include signals, but such a medium may be able to receive and process information from signals and / or other transient media.

[0119] Example embodiments of the materials discussed in this specification may be implemented in whole or in part through network, computer or data-based devices and / or services. These may include cloud, Internet, intranet, mobile device, desktop, processor, lookup table, microcontroller, consumer device, infrastructure or other enabled devices and services. As used herein and in the claims, the following non-exclusive definitions are provided.

[0120] In one example, one or more instructions or steps discussed herein are automated. The term automated or automatically (and similar variations thereof) means that the controlled operation of an apparatus, system, and / or process using computers and / or mechanical / electrical devices does not require human intervention, observation, effort, and / or decision making.

[0121] It should be understood that any components that are said to be coupled may be coupled or connected directly or indirectly. In the case of an indirect coupling, additional components may be located between the two components that are said to be coupled.

[0122] In this specification, example embodiments have been presented according to a selected set of details. However, one of ordinary skill in the art will appreciate that many other example embodiments including different selections of these details may be practiced. The appended claims are intended to cover all possible example embodiments.

Claims

1. A security system, comprising a security module (560) for a controller area network (CAN) node (502), characterized in that: The security module (560) comprises: A received data RXD input interface (562), the received data RXD input interface (562) is used to receive data from the CAN bus (504); A transmit data TXD output interface (568), the transmit data TXD output interface (568) is used to send data to the CAN bus (504); and A RXD output interface (564), the RXD output interface (564) is used to provide data to the local controller (510); The security module (560) is configured as follows: receiving a CAN frame from a CAN bus (504) via a RXD input interface (562), wherein the CAN frame includes a CAN message; comparing an identifier of the received CAN frame with at least one identifier associated with a local controller (510); and Upon detecting a match between an identifier of the received CAN frame and at least one identifier associated with a local controller (510): Passing received CAN messages to the local controller (510) via the RXD output interface (564); decoupling a local controller (510) from a CAN bus (504) so ​​that the local controller does not discard the CAN frames; and CAN messages on the CAN bus (504) are disabled via the TXD output interface (568).

2. The safety system according to claim 1, characterized in that Further comprising a TXD input interface (566), the TXD input interface (566) is used to receive data from the local controller (510); The security module (560) is further configured to decouple the local controller (510) from the CAN bus (504) by coupling the TXD input interface (566) to the RXD output interface (564).

3. A safety system according to claim 1 or claim 2, characterized in that The security module (560) is configured to disable CAN messages on the CAN bus (504) by setting a plurality of bits following a cyclic redundancy check (CRC) bit of the CAN frame to a dominant value.

4. The safety system according to claim 1 or 2, characterized in that The security module (560) is configured to decouple the local controller (510) from the CAN bus (504) and invalidate CAN messages on the CAN bus for bits of the CAN frame immediately following a cyclic redundancy check (CRC) bit of the CAN frame.

5. The safety system according to claim 1 or 2, characterized in that The security module is configured to decouple the local controller (510) from the CAN bus (504) until the security module receives a recessive bit from the CAN bus via the RXD input interface (562).

6. A safety system according to claim 1 or 2, characterized in that The security module is further configured to recouple the local controller (510) to the CAN bus (504) after receiving a recessive bit from the CAN bus (504).

7. A safety system according to claim 1 or 2, characterized in that The security module (560) is configured to pass a portion of a CAN frame to a local controller (510), wherein the portion includes bits of the CAN frame preceding and optionally including one or more acknowledge bits of the CAN frame.

8. The safety system according to claim 1 or 2, characterized in that The security module is configured to provide unmodified received CAN frames to the local controller (510) via the RXD output interface (564).

9. A CAN node (502), characterized in that: include: CAN transceiver (520); Local controller (510); as well as A security system according to any one of claims 2 to 8, in: The RXD input interface (562) and the TXD output interface (568) of the security module (560) are configured to communicate with the CAN bus (504) via the CAN transceiver (520), and The security module (560) is configured to communicate with the local controller (510) via the RXD output interface (564) and the TXD input interface (566).

10. A method for disabling CAN messages on a CAN bus (504), characterized in that Methods include: receiving a CAN frame from a CAN bus (504), wherein the CAN frame includes a CAN message; comparing an identifier of the received CAN frame with at least one identifier associated with a local controller (510); detecting a match between an identifier of the received CAN frame and at least one identifier associated with a local controller (510); Passing the received CAN message to the local controller (510); decoupling a local controller (510) from a CAN bus (504) so ​​that the local controller does not discard the CAN frames; as well as Disable CAN messages on the CAN bus (504).