AUTHENTICATION CODE VERIFICATION DEVICE AND METHOD FOR VERIFYING AN AUTHENTICATION CODEWORD
By enforcing a minimum MAC length and incorporating attack detection, the system fortifies communication networks against MAC manipulation attacks, ensuring robust authentication code verification.
Patent Information
- Application Number
- DE102019105246
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-03-01
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2039-03-01
AI Technical Summary
Existing authentication code verification systems in communication networks, particularly in vehicles, are vulnerable to attacks where attackers can sniff out valid authentication codes by exploiting the configurable width of Message Authentication Code (MAC) comparisons, allowing them to manipulate messages and control critical vehicle systems.
Implementing a minimum MAC length requirement for authentication code verification, ensuring that comparisons only occur with a specified minimum number of bits, thereby limiting the number of attempts an attacker can make to determine valid MACs, and incorporating an attack detection mechanism to trigger alarms upon exceeding a threshold of failed comparisons.
This approach significantly reduces the ability of attackers to spy on and manipulate valid MACs, enhancing the security of communication devices by requiring a minimum number of bits for MAC validation and providing an effective countermeasure against such attacks.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] Embodiments generally relate to authentication code verification devices and methods for Verifying an authentication password.
[0002] In many applications, messages sent between communication devices over a communication connection, e.g. a communication network such as a (computer) bus network, protected in such a way that a recipient of such a message can check whether it is authentic, e.g. whether it was sent by the This is especially important for safety-critical applications, such as in a vehicle in which slave modules of a vehicle bus system are provided for specific control tasks, which may be safety-relevant (such as engine control or brake control). One way to protect Messages are authentication codes such as the MAC (Message Authentication Code). However, there are ways to allow an attacker to spy on valid authentication codes. It is desirable to prevent such attacks impede.
[0003] The publication US 2015 / 0270968 A1 describes a method for securing electronic control units, which checks whether the length of a received MAC is greater than or equal to a predefined value. The MAC is rejected if its length is found to be less than the predefined value.
[0004] According to one embodiment, an authentication code checking device for a Communication device provided having an input interface which is configured to receive a authentication code word associated with a message, a processing device which is set up to check whether the number of bits of the authentication code word to be checked exceeds a predetermined Minimum number is met and to check whether the authentication codeword is valid for the message, a Output device configured to output, as a result of the verification, that the authentication code word is valid if the number of bits of the authentication codeword to be verified meets the specified minimum number and the authentication code word is valid for the message and a counting device configured to count a count value to increase if an invalid authentication code word is supplied to the authentication code checking device and to issue an attack detection signal depending on the count value.
[0005] The figures do not reflect the actual size but are intended to illustrate the principles of various embodiments. In the following, various embodiments are described with reference to the following figures are described. Fig. 1 shows a communication network for a vehicle. Fig. 2 shows a communication device, for example an electronic control unit for a vehicle, e.g. B. implemented using a microcontroller. Figure 3 illustrates the MAC generation on the sender side. Figure 4 illustrates the MAC verification on the receiver side. Fig. 5 shows a communication device according to an embodiment. Fig. 6 shows a comparator. Fig. 7 illustrates the MAC verification on the receiver side when using a minimum MAC length according to one embodiment. Fig. 8 shows an authentication code verification device for a communication device. Fig. 9 shows a flowchart illustrating a method for verifying an authentication code word according to an embodiment is illustrated.
[0006] The following detailed description refers to the accompanying figures, the details and These embodiments are described in such detail that the person skilled in the art can Other embodiments are also possible and the embodiments may be structurally, logical and electrical aspects without departing from the subject matter of the invention. The various Embodiments do not necessarily exclude each other but different embodiments can be be combined with each other so that new versions Within the scope of this description, the terms ´´connected´´, ´´attached´´ and ´´coupled´´ used to describe both a direct and an indirect connection, a direct or indirect connection and direct or indirect coupling.
[0007] Various bus systems can be used in modern vehicles. For example, CAN (Controller Area Network), Flexray and the LIN (Local Interconnect Network), also known as the LIN bus. A typical application for such a bus system is the networking of a vehicle door, a seat, air conditioning flaps or the various light sources of an interior lighting system.
[0008] Fig. 1 shows a communication network 100 for a vehicle.
[0009] The communication network 100 is formed by a bus master, which in this example is controlled by a central Control unit 101 is formed, e.g. a central control unit in a vehicle, and one or more slave(s), in this example a plurality of nodes 102. The central control unit 101 and the nodes 102 are connected via a bus 103 connected in series.
[0010] The central control unit 101 (as bus master) has information for scheduling the transmission between the central control unit 101 and the nodes (slaves) 102. A node 102 sends data as soon as it is received from the central Control unit 101 is requested to do so. The central control unit 101 sends a message header that contains a specific address. In response, node 102 places the data to be sent on bus 103 Each node 102 has a unique address, via which it can be controlled by the central control unit 101. can be.
[0011] It should be noted that embodiments of the invention are not limited to the above case of a strict master Slave communication is limited, which is intended here only as a possible embodiment. are applicable to any type of message communication.
[0012] The modules (ie the central control unit 101 and the nodes 102) each have a transmitter / receiver which the data to be sent (e.g. from a microcontroller of the module) is translated into 12V signals, which are then transmitted via the bus 103 to another module. In the case of an application in a door or seat of a vehicle These can be different nodes (slaves) 102 that communicate via the bus.
[0013] In the case of air conditioning or (interior) lighting, the slaves 102 are usually identical. For example, the communication network 100 comprises a plurality of identical slaves 102, each controlling an air conditioning flap and each have their own (micro) controller, their own power supply and their own LIN transmitter / receiver. In the case of interior lighting, for example, the communication network 100 has a plurality of identical slaves 102, where each slave 102 is a printed circuit board with an LED, a power supply, a microcontroller and a LIN transmitter / receiver. In both applications, air conditioning and lighting, a large number of such identical modules are used, e.g. more than 30.
[0014] In a communication network as shown in Fig. 1, it is typically provided that the participating Modules check the authenticity of incoming messages. This is especially important when a module has safety-relevant tasks, e.g. controlling the vehicle's brakes.
[0015] Fig. 2 shows a communication device 200, for example an electronic control unit for a vehicle, e.g. implemented using a microcontroller.
[0016] Since the following describes the behavior when receiving a message, in particular the verification of the authenticity a message, the components involved are shown in Fig. 2. The communication device 200 may also include components for sending messages and, for example, for controlling parts of a vehicle, but are not shown here.
[0017] The communication device 200 has a secure area 201, for example implemented by a secure controller, e.g. a hardware security module (HSM).
[0018] The secure area 201 has cryptographic keys 202 in a key memory 203 for Verifying the authenticity of received messages.
[0019] This verification is performed by extracting the Message Authentication Code (MAC) from the message data using a key shared (by the sender and receiver of the message). The same calculation is performed on the receiver side and the calculated MAC is compared with a MAC used by the sender for the message compared to the sent MAC. To save bandwidth, the MAC can be shortened by the sender, e.g., from 256 bits to e.g. B. 16 bits. Various MAC algorithms are available and can be used. An example of a MAC is an HMAC (Keyed-Hash Message Authentication Code).
[0020] The secure area 201 is contained (hosted) in the communication device 200. The host 204, ie the Area of the communication device 200 outside the secure area 201, typically the non-secure Area of the communication device 200 contains a message decoder (COM 205) which is connected to a bus 206 with the the communication device is connected, for example, as described with reference to Fig. 1, a message receives and forwards it to the secure area 201, breaking the message down into its individual components decomposed or parameters used to authenticate (MAC verification) the message are generated, namely key Identifier (KeyID) 207, Command (CMD) 208, Input Data (IN) 209 and the received MAC (MAC ) 210, the R stored in respective memory areas of the secure area 201.
[0021] The input user data is, for example, data exchanged between control units in a vehicle, such as a RPM, temperature, speed, gear with optional additional information. The key identifier is, for example, a key number.
[0022] The secure area 201 contains a checking device 213 to which the message parts CMD, IN and KeyID are fed become.
[0023] KeyID 207 is the parameter to select the key 202 for authenticating the received message, ie, for example, the key number ´´i´´. CMD 208 is the parameter to run the command ´´MAC check´´ by the Select examination facility 213.
[0024] The checking device 213 is used to independently calculate the MAC of the received message. Key number, for example, 1, the testing device 213 takes the key with the number 1 ´´K1´´ from the Key memory 203. Subsequently, a MAC generating device 211 of the checking device 213 calculates with the aid of of the key K1 the MAC for the message (e.g. depending on the transmitted payload IN or at least one of them) and stores the calculated MAC (MAC ) in an associated memory area. G
[0025] The testing device 213 has a comparator 212 which compares the calculated MAC MAC and the G received MAC MAC. The comparison results in either a ´´Yes´´ or a ´´No´´ (or ´´Validation Success´´ R or ´´Validation Failure´´ or similar), depending on whether the comparison is successful or not. This yes / no information gives the checking device 213 to the host 204, e.g. an application running on it for which the message is intended, back.
[0026] Figure 3 illustrates the MAC generation on the transmitter side.
[0027] The sender generates a MAC in 301 using a cryptographic key 302 and to be sent Data 303.
[0028] In 304, the transmitter, which corresponds for example to the central control unit 101 of Fig. 1, can transmit the generated Optionally shorten the MAC, ie truncate it, for example to save bandwidth on bus 103. The sender sends then the data to be sent 303 and the possibly truncated MAC 305 to the receiver.
[0029] Figure 4 illustrates the MAC verification on the receiver side.
[0030] The receiver receives from the sender the transmitted data 401 and the possibly truncated MAC 408.
[0031] The received data 401 corresponds to the input payload data IN of Fig. 2.
[0032] In 402, the receiver, e.g. the checking device 213 as described above, checks the validity of the received (possibly truncated) MACs 403 using the received data 401 and the appropriate key 404 (which indicated by the key identifier from the sender).
[0033] For a communication device that has a secret key for MAC authentication, the Security problem that if the communication device is infected by malicious software, this software with a secret key to create valid MACs for messages to the system (e.g. another node 102). In a vehicle, there can be many ´´unimportant´´ control units that receive messages that be authenticated using a key, which is also used for critical messages. It must be ensured that even such ´´unimportant´´ control units cannot be attacked, which is why, if necessary, costly security measures are required.
[0034] In the above procedure, this security problem is first addressed by the secret Key is only present within the secure area 201 and the interaction between the host 204 (especially the software running on the host) and the secure area 201 in such a way that the MAC Calculation and MAC comparison are within safe range 201.
[0035] However, the above approach has a weakness, which lies in the configurable width of the MAC comparison which results from the fact that the sender can truncate the MAC and thus reduce the number of bits that For example, automotive security standards such as SHE (Secure Hardware Extension) the width of the checked MAC is configurable from 1 to 128 bits.
[0036] The following describes an attack based on the configurable width of the MAC comparison. It is assumed that an attacker has already compromised host 204. Host 204 is therefore already under The attacker then tries to explore valid MACs, ie to spy on them. If he has determined a valid MAC (e.g. for a specific command), it can put a message on the bus 103 and so that another component 101, 102 connected to the bus 103 can control this message or manipulate.
[0037] To determine a MAC for a specific command, the attacker generates using the host 204 the command, specifies a key number (e.g. key number 1) and uses a MAC with length 1, for example with bit 0, and key number 1 and gives the command with the MAC (and if necessary any payload) to the secure area 201 as a message to be checked for MAC validity.
[0038] The secure area 201 outputs, as described above with reference to Fig. 2, after calculating the correct MAC MAC G and comparison with the MAC supplied as received MAC, the information returns whether the received MAC MAC RR is right or wrong.
[0039] However, since the received MAC MAC only has 1 bit, the host 204 (and thus the attacker) learns from this R Information immediately the correct first bit for the MAC: If the secure area 201 ´´correct´´ (or ´´yes´´) returns, the host 204 knows that the first bit of the MAC is 0. If the secure area 201 is 'false' (or 'no') returns, the host 204 knows that the first bit of the MAC is 1.
[0040] After the compromised host 204 knows the first bit of the MAC, it executes the command again as MAC- The message to be checked for validity is assigned to the secure area 201, but now with a two-digit MAC, the first of which Bit is set to the correct bit and the second bit is set arbitrarily. Analogous to the first bit, the Feedback from safe area 201 whether the second bit is correct or not.
[0041] Thus, the host 204 can successively read all digits of the MAC for the respective key (e.g. with key number 1) for the command. It can then determine the MACs for the other key numbers in a similar way. This enables it to create a message with MACs that other bus participants authenticate as valid.
[0042] For example, an attacker can use the following algorithm to create a valid MAC of any length spy on: calc_mac(msg, macSize) { mac = 0; for (compBits = 1; compBits <= macSize; compBits++) { if(!hsm_mac_is_valid(msg, mac, compBits)) { mac|= 1<<(compBits-1); } } return mac; }
[0043] The command hsm_mac_is_valid represents a request to the secure area 201 (e.g. HSM) as to whether the current MAC mac is valid.
[0044] The instruction mac|= 1<<(compBits-1) swaps the value of the bit at the currently spied location of the MAC.
[0045] The above algorithm is fast and generates on average only macSize / 2 invalid MACs, ie a number of macSize / 2 Requests to secure area 201 for MAC verification (MAC validations), resulting in ´´false´´. This is a relatively small number of validation errors, since validation failures of this magnitude may also occur for other reasons (e.g. due to transmission errors). The secure area 201 can therefore from this number of invalid MACs it cannot be concluded that an attack has occurred, ie the number of validation errors is not suitable as a clear criterion for detecting an attack in such a scenario.
[0046] According to various embodiments, a hardening measure is therefore provided such that a minimum comparison length is specified.
[0047] Fig. 5 shows a communication device 500 according to an embodiment.
[0048] Analogous to the communication device 200, the communication device 500, for example a electronic control unit for a vehicle, e.g. implemented by means of a microcontroller, and has a safe Area 501, a key store 503 with one or more cryptographic keys 502, a host 504 with a message decoder 505 which generates a key identifier 507 from a message received via a bus 506, a command 508, input payload 509 and a received MAC are extracted, and a MAC generating device 511 and a comparator 512 in a testing device 513.
[0049] In contrast to Fig. 2, for each key 502 in the key memory 503, a minimum MAC length 514 specified.
[0050] A key K thus has an associated property ´´minimal length of the MAC´´ M =minMAC(K ). This iii means that the comparator 512 outputs or displays a No or an Error (validation failure) if a MAC Comparison should be performed with a length L < M, ie the received MAC MAC has a length L < M or the i R i Host 504 instructs the checking device 513 to compare only a number of L < M bits of the received MAC MAC with the i R generated MAC MAC should be compared. G Wed
[0051] This means that an attacker can no longer spy on a valid MAC, as he needs up to 2 attempts to to spy on a valid MAC, instead of a maximum of M attempts in case no minimum MAC length is provided i is.
[0052] For example, for a key 502 in the key memory 503, the minimum MAC length 514 is specified that the minimum length of a MAC generated based on the key with key number 1 is sixteen bits This means that the comparator 512 returns a No or an Error (validation failure) if it finds a MAC comparison for a MAC generated based on the key with key number 1, which 16 less than 16 bits long, e.g. only 1 bit. An attacker who wants to spy on a MAC needs up to 2 15 Attempts and on average 2 attempts to determine a valid MAC (instead of exactly 16 attempts in the case of no Length limitation and successive spying as described above).
[0053] As an additional measure, the number of attempts can be limited, for example by the examination institution 513 after a specified number of failed MAC checks an alarm (e.g. by means of a alarm detection signal). For example, as described above, a minimum MAC size (MAC length) can be specified as Key attribute for each key stored in the secure area 501, the number of MAC validation errors be counted (whereby the count value can also be reset, e.g. after one or more successful validations) and an attack detection response is triggered when the count exceeds a configurable threshold Because of the minimum MAC length for spying on a MAC as explained above, a high number of validation errors is possible, which in a typical scenario is significantly higher than the number of validation errors that caused by transmission errors, the number of validation errors can be reduced by using a minimum MAC length as a criterion for attack detection and triggering an attack detection reaction such as an alarm signal to the central control unit, blocking various functions of the communication device, etc.
[0054] The function of the comparator 512 is described in more detail below with reference to Fig. 6.
[0055] Fig. 6 shows a comparator 600.
[0056] The comparator 600 receives as inputs a received MAC MAC 601, a generated MAC MAC 602 RG and the command 603 (for example, from a control unit of the test device 513), L bits of the received MAC MAC 601. The restriction to L bits can be done implicitly by giving the comparator a R received MAC MAC 601 with L bits. R
[0057] In addition, the comparator 600 is provided with the minimum MAC length M 604 for the key (e.g. key i) used for i used to generate the received MAC MAC 601 and the generated MAC MAC 602. RG
[0058] A check block 605 compares whether L is at least as large as the minimum MAC length M. If this is not the case, i the comparator 600 returns a negative comparison result (validation failure). If L is at least as large as the minimum MAC length Mi, a comparison block compares 606 L bits of the received MAC MAC with the corresponding R L Bits of the generated MAC MAC . Do these bits match pairwise between the received MAC MAC and the generated GR MAC MAC, the comparator returns a positive comparison result (validation success), otherwise a G negative comparison result (validation failure).
[0059] Fig. 7 illustrates the MAC verification on the receiver side when using a minimum MAC length according to one embodiment.
[0060] The receiver receives the transmitted data 701 and the possibly truncated MAC 708 from the transmitter.
[0061] In 702, the receiver, e.g. the checking device 513 as described above, checks the validity of the received (possibly truncated) MACs 703 using the received data 701 and the appropriate key 704 (which is indicated by the key identifier from the sender). The receiver takes into account the minimum MAC length 705 associated with key 706, e.g., a minimum number of MAC bits to be compared as described with reference to Fig. 6.
[0062] In summary, according to various embodiments, an authentication code Verification device is provided as shown in Fig. 8.
[0063] Fig. 8 shows an authentication code checking device 800 for a communication device.
[0064] The authentication code checking device 800 has an input interface 801 which is Receiving an authentication code word to be verified that is associated with a message.
[0065] The authentication code checking device 800 further comprises a processing device 802 which is set up to check whether the number of bits of the authentication codeword meets a specified minimum number and to check whether the authentication codeword for the message is valid.
[0066] Furthermore, the authentication code checking device 800 has an output device 803 which is set up to output as a result of the verification that the authentication code word is valid if the number of bits of the authentication code word to be checked meets the specified minimum number and the Authentication codeword is valid for the message.
[0067] In other words, according to various embodiments, during MAC validation, ie checking whether an authentication code word, e.g. a MAC, is valid, takes into account whether the length of the authentication codeword meets a minimum length criterion. The Authentication codeword can be a partial word of a longer authentication codeword. For example, the longer authentication codeword is truncated and thus generates the authentication codeword to be checked or it can The complete longer authentication code word must also be present, but only a partial word must be requested of the longer authentication codeword that corresponds to the authentication codeword to be verified is.
[0068] The authentication code checking device 800 outputs, for example, that the Authentication codeword is not valid if the number of bits of the authentication codeword to be checked exceeds the specified minimum number is not met, regardless of whether the authentication code word is Authentication code (for example, for the message associated with it) is valid or not.
[0069] This can prevent an attacker from using the authentication code word checking device 800 with short authentication code words and thus, for example, as described above, successively valid spies on parts of a longer authentication code word.
[0070] The output device may be configured to output that the authentication code word is valid if the Number of bits of the authentication code word to be checked does not meet the specified minimum number and the authentication code word is not valid for the message. Similarly, the output device can (additionally or alternatively be configured to output that the authentication code word is not valid if the number of bits of the authentication codeword to be verified does not meet the specified minimum number and the Authentication code word is valid for the message. In other words, for example, the Authentication Codeword Verification Facility conceals from a host system to which it is assigned that the authentication code word to be verified does not meet the specified minimum number. This allows an attacker who attempts to spy out correct parts of an authentication code word in the manner described above, misleading be conducted.
[0071] The components of the authentication code verification device as well as all other functional blocks, Devices etc. can be implemented by one or more circuits. In one embodiment, a ´´Circuit´´ is to be understood as any unit that implements logic and that includes both hardware, software, firmware or a combination thereof. Thus, in one embodiment, a ´´circuit´´ may be a hard- wired logic circuit or a programmable logic circuit, such as a programmable Processor, e.g. a microprocessor. A ´´circuit´´ can also be understood as a processor that executes software A circuit can be understood as a device that executes a function, e.g. any kind of computer program. Embodiment should be understood as any type of implementation of the described functions.
[0072] Fig. 9 shows a flowchart 900 illustrating a method for verifying an authentication code word according to an embodiment is illustrated.
[0073] In 901, an authentication code word to be verified, which is associated with a message, is received.
[0074] In 902 it is checked whether the number of bits of the authentication code word to be checked is a predetermined Minimum number met.
[0075] In 903, it is checked whether the authentication code word for the message is valid.
[0076] In 904, the result of the check is output that the authentication code word is valid if the number of bits of the authentication code word to be checked meets the specified minimum number and the Authentication codeword is valid for the message.
[0077] Various embodiments are given below.
[0078] Embodiment 1 is an authentication code checking device for a communication device, as described in claim 1.
[0079] Embodiment 2 is the authentication code checking device according to Embodiment 1, wherein the output device is configured to output the result of the check to the host system.
[0080] Embodiment 3 is the authentication code checking device according to Embodiment 1 or 2, wherein the input interface is configured to receive the message to which the authentication codeword and the processing device is configured to check, based on the message, whether the Authentication codeword is valid for the message.
[0081] Embodiment 4 is the authentication code checking device according to one of the Embodiments 1 to 3, wherein the output device is arranged to output that the Authentication codeword is valid if the number of bits of the authentication codeword to be checked exceeds the specified minimum number is not met and the authentication codeword for the message is not valid.
[0082] Embodiment 5 is the authentication code checking device according to one of the Embodiments 1 to 4, wherein the output device is arranged to output as a result of the check, that the number of bits of the authentication code word to be verified does not meet the specified minimum number, if the number of bits of the authentication codeword to be verified does not meet the specified minimum number.
[0083] Embodiment 6 is the authentication code checking device according to one of the Embodiments 1 to 5, wherein the authentication code word is a code word according to a Message Authentication Code is.
[0084] Embodiment 7 is the authentication code checking device according to one of the Embodiments 1 to 6, wherein the counting device is arranged to output the attack detection signal when the Count value exceeds a specified threshold.
[0085] Embodiment 8 is the authentication code checking device according to one of the Embodiments 1 to 7, wherein the communication device is an electronic control device for a vehicle is.
[0086] Embodiment 9 is the authentication code checking device according to one of the Embodiments 1 to 8, wherein the message is a control message for an electronic control device.
[0087] Embodiment 10 is the authentication code checking device according to one of the Embodiments 1 to 9, wherein the input interface is configured to provide an indication of the number of bits of the to receive the authentication codeword to be verified.
[0088] Embodiment 11 is the authentication code checking device according to one of the Embodiments 1 to 10, wherein the input interface is configured to receive an instruction to determine the number of bits of the authentication codeword.
[0089] Embodiment 12 is the authentication code checking device according to one of the Embodiments 1 to 11, wherein the processing device is configured to generate an authentication code word for the message and based on a comparison of the received authentication code word with the generated authentication codeword to check whether the received authentication codeword for the message is valid.
[0090] Embodiment 13 is the authentication code verification device according to Embodiment 12, wherein the Processing device is set up to multiply the number of bits of the received authentication code word by a corresponding number of bits of the generated authentication codeword.
[0091] Embodiment 14 is a communication device with an authentication code Verification device according to one of the embodiments 1 to 13, and a communication interface for Sending and receiving messages over a communications network.
[0092] Embodiment 15 is the communication device according to embodiment 14, wherein the Communication device has a host system which is configured to transmit the authentication code word to be checked to the authentication code verification device.
[0093] Embodiment 16 is the communication device according to embodiment 14 or 15, wherein the Communication device has a host system which is configured to transmit the authentication code word to be checked to the authentication code verification device and the output device is configured to send the host system that the number of bits of the authentication code word to be checked exceeds the specified Minimum number not met.
[0094] Embodiment 17 is a method for verifying an authentication code word as set forth in claim 17 described.
[0095] Embodiment 18 is the method according to embodiment 17, comprising outputting the result of the Verification to the host system.
[0096] Embodiment 19 is the method according to embodiment 17 or 18, comprising receiving the Message to which the authentication codeword is assigned and checking, based on the message, whether the Authentication codeword is valid for the message.
[0097] Embodiment 20 is the method according to any one of embodiments 17 to 19, comprising outputting, that the authentication codeword is valid if the number of bits of the authentication codeword to be checked the specified minimum number is not met and the authentication codeword for the message is not valid.
[0098] Embodiment 21 is the method according to any one of embodiments 17 to 20, comprising outputting, as a result of the verification that the number of bits of the authentication code word to be verified exceeds the specified Minimum number is not met if the number of bits of the authentication code word to be checked exceeds the specified Minimum number not met.
[0099] Embodiment 22 is the method according to one of the embodiments 17 to 21, wherein the Authentication codeword is a codeword according to a Message Authentication Code.
[0100] Embodiment 23 is the method according to one of the embodiments 17 to 22, wherein the Counting device is arranged to output the attack detection signal when the count value exceeds a predetermined exceeds threshold.
[0101] Embodiment 24 is the method according to one of the embodiments 17 to 23, carried out by a electronic control device for a vehicle.
[0102] Embodiment 25 is the method according to any one of embodiments 17 to 24, wherein the message is a Control message for an electronic control device.
[0103] Embodiment 26 is the method according to one of the embodiments 17 to 25, comprising receiving an indication of the number of bits of the authentication code word to be verified.
[0104] Embodiment 27 is the method according to one of the embodiments 17 to 26, comprising receiving an instruction to check the number of bits of the authentication codeword.
[0105] Embodiment 28 is the method according to one of the embodiments 17 to 27, comprising generating an authentication code word for the message and verifying based on a Comparison of the received authentication code word with the generated authentication code word, whether the received authentication codeword is valid for the message.
[0106] Embodiment 29 is the method according to embodiment 28, comprising comparing the number of Bits of the received authentication code word with a corresponding number of bits of the generated Authentication codeword.
[0107] Embodiment 30 is the method according to embodiment 28 or 29, comprising concealing that the number of bits of the authentication codeword to be verified does not meet the specified minimum number.
[0108] According to a further embodiment, a device for checking a authentication code word provided comprising receiving means for receiving a authentication code word associated with a message, first verification means for verifying whether the number of bits of the authentication code word to be checked meets a specified minimum number, second Verification means for checking whether the authentication code word for the message is valid and output means for Output, as a result of the verification that the authentication codeword is valid, if the number of bits of the authentication codeword to be verified meets the specified minimum number and the authentication codeword for the message is valid.
[0109] According to a further embodiment, an authentication code checking device for a Communication device provided having an input for receiving an authentication code word, a verification device configured to check whether the authentication code word contains at least one has a predetermined minimum length and an output device which is arranged to output that the Authentication codeword is valid, depending on whether the length of the authentication codeword is at least has a specified minimum length.
[0110] Although the invention has been shown and described primarily with reference to certain embodiments It should be understood by those familiar with the subject that numerous changes regarding design and details can be made without departing from the nature and scope of the invention, such as as defined by the following claims. The scope of the invention is therefore determined by the appended claims, and it is intended that any changes which come within the literal or implied meaning of the range of equivalence of the claims. List of reference symbols 100 communication network 101 central control unit 102 knots 103 Bus 200 communication device 201 safe area 202 cryptographic keys 203 Key storage 204 Host 205 message decoders 206 buses 207 Key identifier 208 Command 209 Input payload 210 received MAC 211 MAC generating device Comparator 212 213 Examination institution 301 MAC generation 302 cryptographic key 303 data to be sent 304 MAC truncation 305 truncated MAC 401 sent data 402 MAC Validation 403 received MAC 404 cryptographic key 500 communication devices 501 safe area 502 cryptographic keys 503 Key storage 504 Host 505 message decoder 506 Bus 507 Key identifier 508 Command 509 Input payload 510 received MAC 511 MAC generating device 512 comparators 513 Examination institution 514 minimum MAC length 600 comparators 601 received MAC 602 generated MAC 603 Validation command 604 minimum MAC length 605 test block 606 Comparison block 701 data sent 702 MAC validation 703 received MAC 704 cryptographic key 705 minimum MAC length 800 Authentication Code Verification Facility 801 input interface processing facility 802 803 Output device 900 Flowchart 901-904 Process steps
Claims
1. Authentication code verification device for a communication device comprising - an input interface configured to accept an authentication codeword to be verified, which is associated with a message assigned to receive; - a processing device arranged to check whether the number of bits of the data to be checked authentication codeword meets a specified minimum number and to check whether the authentication codeword is valid for the message; - an output device which is arranged to output as a result of the verification that the Authentication codeword is valid if the number of bits of the authentication codeword to be checked exceeds the specified minimum number is met and the authentication code word for the message is valid and a counting device, which is set up to increment a counter value if the authentication code verification device receives an invalid authentication code word is supplied and an attack detection signal is issued depending on the count value.
2. Authentication code checking device according to claim 1, wherein the output device is arranged to Output the result of the check to the host system.
3. Authentication code checking device according to claim 1 or 2, wherein the input interface is arranged is for receiving the message to which the authentication code word is assigned, and the processing device is set up to check, based on the message, whether the authentication codeword is valid for the message.
4. Authentication code checking device according to one of claims 1 to 3, wherein the output device is configured to output that the authentication codeword is valid if the number of bits of the authentication codeword does not meet the specified minimum number and the authentication codeword for the Message is not valid.
5. Authentication code checking device according to one of claims 1 to 4, wherein the output device is set up to output as a result of the check that the number of bits of the authentication code word does not meet the specified minimum number if the number of bits of the authentication codeword does not meet the specified minimum number.
6. Authentication code checking device according to one of claims 1 to 5, wherein the Authentication codeword is a codeword according to a Message Authentication Code.
7. Authentication code checking device according to one of claims 1 to 6, wherein the counting device is configured to output the attack detection signal when the count value exceeds a predetermined threshold exceeds.
8. Authentication code checking device according to one of claims 1 to 7, wherein the Communication device is an electronic control device for a vehicle.
9. Authentication code checking device according to one of claims 1 to 8, wherein the message is a Control message for an electronic control device.
10. Authentication code checking device according to one of claims 1 to 9, wherein the input interface is configured to receive an indication of the number of bits of the authentication codeword to be verified.
11. Authentication code checking device according to one of claims 1 to 10, wherein the input interface is configured to receive an instruction to check the number of bits of the authentication codeword.
12. Authentication code checking device according to one of claims 1 to 11, wherein the processing device is configured to generate an authentication code word for the message and based on a comparison of the received authentication code word with the generated authentication code word to check whether the received authentication codeword is valid for the message.
13. Authentication code checking device according to claim 12, wherein the processing device is arranged is the number of bits of the received authentication codeword with a corresponding number of bits of the generated authentication codeword.
14. Communication device with an authentication code checking device according to one of claims 1 to 13, and a communication interface for sending and receiving messages via a Communication network.
15. Communication device according to claim 14, wherein the communication device comprises a host system that is set up, the authentication code word to be checked of the authentication code checking device to supply.
16. Communication device according to claim 14 or 15, wherein the communication device is a host system which is configured to check the authentication code word of the authentication code verification device and the output device is configured to conceal from the host system that the number of bits of the authentication codeword to be verified does not meet the specified minimum number.
17. A method for verifying an authentication code word comprising: - Receiving an authentication code word to be verified that is associated with a message; - Check whether the number of bits of the authentication codeword to be checked exceeds a specified minimum number fulfilled; - Check whether the authentication codeword for the message is valid; - Output, as a result of the verification, that the authentication codeword is valid if the number of bits of the authentication codeword to be verified meets the specified minimum number and the authentication codeword for the message is valid; - Increment a counter value when the authentication code verification device receives an invalid authentication code word is supplied and - Outputting an attack detection signal depending on the count value.
Citation Information
Patent Citations
Securing electronic control units using message authentication codes
US20150270968A1
