METHOD AND UNIT FOR REPLAYING SECURE MESSAGES - Patent application

The method and playback unit address the challenge of counter and authenticator mismatches in secure bus communication by manipulating serialized messages, ensuring secure playback and effective testing with minimal computational resources.

JP7542129B2Active Publication Date: 2024-08-29DSPACE SE & CO KG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023502944
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-17
Filing Date
2021-07-15
Publication Date
2024-08-29
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

Existing methods for simulating secure bus communication in control unit testing fail to account for the mismatch between counter values and authenticators in recorded messages, leading to authentication failures and the inability to test security mechanisms effectively.

Method used

A method and playback unit that manipulate serialized secure messages by identifying and replacing counter values and authenticators using a communication description and encryption information, reducing the need for full deserialization and decoding.

Benefits of technology

Enables secure message playback that is accepted by receiving devices, allowing effective testing of authentication and security mechanisms with reduced computational effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542129000006
    Figure 0007542129000006
  • Figure 0007542129000003
    Figure 0007542129000003
  • Figure 0007542129000004
    Figure 0007542129000004
Patent Text Reader

Abstract

A method and a playback unit for transmitting a secure message to a receiving device under test via a message system, the playback unit being connected to the device under test via the message system, the playback unit being configured to obtain a secure first message to be played back, remove a first counter value and a first authenticator from the secure first message, and generate a second authenticator using a second counter value, an encryption algorithm, and a key, the playback unit being configured to generate a secure second message by adding the second counter value and the second authenticator to the first message, and the playback unit being further configured to transmit the secure second message to the receiving device under test via the message system.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The invention relates to a method and a playback unit for transmitting recorded secure messages via a message system to a receiving device under test, in particular a control device under test. [Background technology]

[0002] In the field of bus simulation for control unit testing, for example in the automotive sector, the focus is on simulating the bus communication of one or more control units as realistically as possible. In the field of control unit (ECU) protection, the manipulation of the bus communication is also important. In this case, the bus communication can be simulated by a "live" simulation in the test environment (e.g. with MicroAutobox, VEOS or SCALEXIO, which are products from dSPACE GmbH for offline simulation or Hardware-in-the-Loop (HIL) simulation) or by replaying recorded bus communication. In the simplest case, for communication used in vehicles, it is configured such that the signals to be transmitted are sent as the only user data in bus or network messages. However, according to new standards (AUTOSAR ≥ 4.2.1 and FIBEX ≥ 4.1.2), this is being extended so that the user data can be additionally authenticated or protected (see for example Secure Onboard Communication, Cryptographic PDU, Transport Layer Security, IPsec (Internet Protocol Security)).

[0003] The data generated in the control device or in the framework of the bus simulation is recorded in order to be played back again at a later time for test purposes. Conventionally, the recorded bus communication could be played back again without modification in order to simulate the correct bus communication in one or more receiving control devices.

[0004] Logging of the bus communication can be done, for example, by tools from dSPACE GmbH (Bus Navigator or Autera). Such tools also often make it possible to replay the recorded and stored bus communication.

[0005] The new encryption and authentication algorithms of the above mentioned standard aim to prevent so-called replay attacks, which is why bus communication secured by this type of algorithm cannot be used directly for simulation of a control device by simple replay.

[0006] Typically, a secure message, recorded in the vehicle or simulated for testing purposes by a simulator, contains the following information: a header, user data, a monotonically increasing counter value and an authentication code (encrypted).

[0007] The problem with replay is that while the user data may be correct, the counter value in the recorded data will most likely not match the counter value in the control device under test (and the counter cannot be changed, as it is monotonically increasing). Even if it were possible to reset this counter, the authenticator value created for authentication (and the authenticator) would no longer match the counter value, because the encrypted authenticator value is constructed from a value derived from the user data and the counter value.

[0008] When this problem has previously occurred in the early development phase, the authentication has usually been deactivated in the receiving control device, but in this case the authentication can no longer be tested.

[0009] The PCT application with the docket number PCT / EP2020 / 053254 describes a solution to this problem, whereby the authenticator and counter values ​​are removed from the secure message and replaced with newly determined values. However, in this case the difficulty arises that the message is transmitted in serialized form on the bus or in the network. In serialized form, the message consists only of data, without any information about what data it is and where in the message it is, so that without deserialization it is not known which data should be replaced. It takes time and computational power to convert the full message from serialized form to a deserialized and decoded message, in order to be able to identify the data to be replaced at all. Summary of the Invention [Problem to be solved by the invention]

[0010] Against this background, the object of the present invention is to provide a method and a regeneration unit which further develop the state of the art. [Means for solving the problem]

[0011] This problem is solved by the method mentioned at the beginning and the playback unit mentioned above, the method having the following steps: Providing a secure first message, still serialized, from the secure first message packet for processing in the replay unit, where the first message is defined by the payload of the message packet, the first message itself comprising user data, a first counter value and a first authenticator, and where the replay unit has the following information stored or available to it (i.e. the information is stored in a memory allocated to the replay unit or the replay unit has access to information stored in the test environment): at least a part of the communication description and / or a data interpretation algorithm for the receiving device under test; a second counter value for the receiving device under test; · Encryption information and corresponding keys. Using the playback unit, reducing the amount of data defined by the serialized first message by identifying in the first message the position of the user data or the position of the first authenticator in the first message and removing at least the first authenticator and possibly the first counter value from the first message; deserializing and decrypting the reduced first message, creating a secure second message by adding a second counter value or possibly replacing the first counter value with the second counter value, and creating and adding a second authenticator using the second counter value, the encryption information and the key and using the communication description or by information obtained by applying a data interpretation algorithm, Step. · Serializing the secure second message and transmitting the corresponding message packets to a receiving device under test.

[0012] The core idea of ​​the method according to the invention is that, using the playback unit according to the invention, the recorded secure message is manipulated before playback in such a way that the receiving device accepts this message as a correct message, whereby a data reduction of the first message still serialized is performed, without the need to completely and extensively deserialize and decode it in order to manipulate the first message to be played back. Messages are usually serialized and then transmitted over a message system in a "message package". In general, "serialization" means encoding data and organizing it in a message packet that includes a header, a payload and a trailer segment to be transmitted over the message system, or "deserialization" means the opposite process.

[0013] In this application serialization or deserialization mostly relates to only one part of this process, namely the serialization or deserialization of messages present in the payload of message packets transmitted through the message system. In this case, "serialization" as discussed herein removes information from the message to arrange the data, or "deserialization" adds the information. For example, the data for a physical value in a message, in its deserialized and interpreted form, might look like this: Temperature 24℃ Speed ​​123km / h Altitude 320 above sea level Authenticator 345678 → Correct.

[0014] An example of an encoded form of deserialized data would be: temperature 10 Speed ​​B24 Altitude 8AF Authenticator 835D. After serialization, the content of the message (user data) will be determined by: 10B248AF835D.

[0015] The replay tool (replay unit) according to the invention identifies and separates the individual components of a message already before deserialization, thus reducing the amount of data to be deserialized and decoded.

[0016] Preferably, based on the information contained in the communication description and on the encryption information for regeneration defined by the user, a new incremented counter value and a new appropriate authentication code (authenticator) corresponding to the user data, the counter value and the encryption algorithm are generated. The encryption information depends on where the invention is used or which protection mechanism (e.g. SecOC or IPSec...) is used. The encryption information includes, for example, the encryption algorithm and possibly further information about the encryption algorithm, for example the information (bits or bytes) on which the algorithm is applied. Using this information, a new complete message is generated or the original first message is reprocessed (since the counter value / authenticator is out of date) to form a second message, which is accepted by the receiving device (i.e. the (control) device under test). The current counter value (e.g. in the form of a so-called freshness value or sequence number) for the control device under test is usually globally present and therefore known to the test environment (i.e. the HIL simulator or the offline simulator or the host PC connected to the simulator).

[0017] In order to even be able to manipulate the secure first message to create a secure second message, the playback unit stores (the required part of) the communication description (e.g. (at least part of) the communication matrix, also called the K-matrix), or an algorithm for interpreting the data obtained in the message, so that the counter value and the authenticator can be identified in the message.

[0018] According to a first exemplary embodiment, the identification of the user data is performed using a look-up table extracted from the communication description, which includes at least the message ID, the position of the user data and the length of the user data. Possibly the look-up table also includes information about the position of the counter in the secure first message as serialized. Further information of the K matrix, such as the sender, receiver, initial value, data type, trigger, CompuMethod, etc., is ignored.

[0019] The look-up table is preferably created automatically from the communication description before carrying out the method steps according to the invention described above and stored by the playback unit in the playback unit or in a test environment to which it has access. Particularly preferably, the entries of the look-up table are sorted according to the frequency of occurrence of the messages, so that frequently occurring messages are listed in a particularly quickly accessible position in the table. The frequency of the messages can be derived, for example, from information in the communication matrix or can be dynamically adapted during the course of the method based on statistics carried out on the arrival of the messages. Such statistics are particularly useful for service-based communication. According to a further possibility of creating the look-up table using the communication description, the communication description is first used to generate executable communication code for the simulation, which deserializes only the first message, or the first message type in the case of multiplexed messages, respectively, to form the respective message IDs, thereby determining the position of the MAC in this deserialized first message or this deserialized first message type, and storing at least this information in the look-up table to be created in such a way.

[0020] According to a second exemplary embodiment, the identification of the first authenticator is performed by searching the serialized data of the message packet with a data interpretation algorithm. In this case, the data interpretation algorithm is formed by a suitable algorithm for identifying the encrypted information, whereby the identification is performed, for example, by the algorithm searching for the consecutive values ​​with the maximum entropy. The identification of the encrypted information is based on the fact that all current encryption methods generate the largest possible entropy value (=the largest possible "disorder") of the encrypted information. What is to be prevented here is that decryption becomes possible by statistical tests (n-grams). Therefore, to identify the encrypted information, it is sufficient to search for the consecutive values ​​with the maximum entropy only in the user data of the first message, which remains serialized, using a symbol window (preferably with a symbol window of a predetermined size depending on the length of the authenticator). As long as the positions of the authenticator and the user data are statically, i.e. fixedly predetermined for each message, the search for the authenticator does not have to be performed consecutively for each message, but only once per message ID. Preferably, also in this embodiment, a look-up table can be created from which it is possible to determine where the user data is located without the need for a costly search or deserialization beforehand. Further time savings are achieved if the data interpretation algorithm, i.e. the authenticator identification algorithm, is implemented in the hardware of the message system, for example next to or just behind a controller that receives and already partially decomposes the message packets sent via the message system. This controller can be a commercially available controller (e.g. Infineon Aurix) or can be implemented, for example, as a so-called soft core in an FPGA, in which case the data interpretation algorithm can be implemented in the remaining plane of the FPGA.However, a data interpretation algorithm may also be incorporated in an additional FPGA or ASIC in order to apply this algorithm to the messages extracted by the controller from the message packets. In this case, the controller is also not necessarily considered to be part of the replay unit, but it is part of the test environment and can be controlled by the replay unit. The advantage of working with an additional data interpretation algorithm is that additional time can be saved by implementing the algorithm in hardware.

[0021] According to a further embodiment of the invention, the second counter value is determined by a current counter value of the control device under test. According to an alternative embodiment, the second counter value can be predetermined by a user or is calculated in advance according to a counter calculation algorithm.

[0022] The playback unit preferably includes all components and / or modules required for the generation and subsequent synthesis of these values. In particular, this includes the import of the log file, the import of the K-matrix, the deserialization / serialization, the counter value generation and the encryption algorithm. Alternatively, however, these components and / or modules can not be implemented in the playback unit but elsewhere, for example in the test environment, and provide the playback unit with the required information only. The above-mentioned components and modules are individually known as part of various bus simulation software, for example RTI CAN MM, FlexRay Configuration Package, Ethernet Configuration Package or Bus Manager) or bus test software (Bus Navigator). The difference with the prior art is that in typical application cases the user data is generated by an offline or real-time model, whereas in the method according to the invention the user data is extracted from the log file, disassembled using the identification according to the invention and reassembled in combination with new content.

[0023] According to one embodiment of the invention, the user data, the first counter value and the first authenticator of a message are transmitted distributed over at least two message packets (e.g. the payload of the first message packet contains the authenticator and the payload of the second message packet contains the counter value and the user data of a message). According to another embodiment of the invention, a message packet contains (as the payload of the message packet) the entire message with the user data, the counter value and the authenticator. Whether the message with the user data, the counter value and the authenticator is transmitted in a single message packet or distributed over two or more message packets depends on the security mechanism used. The former is the case for SecOC for example, and the latter is the case for IPsec. What is important here is only that a message secured by a particular first authenticator is provided, for replay purposes, with a current second authenticator and a corresponding second counter value, which replace an obsolete first authenticator and an obsolete first counter value.

[0024] The receiver is formed, for example, by a real controller in HIL tests or by a virtual controller if the bus communication is to be tested in the framework of virtual protection. Virtual protection means in this context that the controller is tested by simulating the controller network (and the environment of the controller network, for example in the form of a vehicle and traffic situation) without concrete hardware and with a corresponding offline simulator, which also simulates, for example, the time characteristics and the communication of the controller complex. The virtual controller is, so to speak, a controller front implemented in software and usually already contains the final management code. However, even though the future operating system is usually already simulated and the realistic planning behavior is simulated based on the time and trigger information defined for the functions, the actual hardware of the controller is not yet required, so that the virtual controller can be connected, for example, to a simulated bus (https: / / www.dspace.com / de / gmb / home / news / engineers-insights / blog-virtuals-ecus-1808.cfm). If necessary, the message system is formed by a bus communication system or network or a combination of a bus system and a network, in particular by a message system of the vehicle, which message system is either real or simulated in the framework of the virtual protection. It is also possible to combine a virtual control device with a real message system or a real control device with a simulated message system via a corresponding test environment.

[0025] According to a further embodiment of the invention, the user data of the secure first message is also encrypted with the first counter value and is first decrypted in the playback unit and then encrypted and encrypted again with the second counter value, preferably again contained in the encryption information which parts of the message should be encrypted and decrypted.

[0026] According to one embodiment of the method according to the invention, the method is applied to so-called services transmitted in secure messages, thus also allowing the replay of so-called service discovery, for example of network and / or system services.

[0027] Preferably, during the operation, i.e. during the creation of the secure second message, errors can also be sprinkled in a deliberate manner, for example the encryption information contains additional information for creating the secure second message for test purposes, such that the secure second message is identified as erroneous by the receiving device, thereby also allowing the safety mechanism to be tested.

[0028] The above mentioned object is also achieved by a regeneration unit for carrying out the method according to the invention with the features of the independent claim 10.

[0029] The playback unit according to the invention extends the functionality of the playback unit according to the prior art in that the transmitted messages now no longer consist only of stored messages, but, so to speak, of newly generated or reprocessed messages, which partly contain old information (in particular user data), but are modified by new information (authenticators and / or counter values) so that they are either accepted by the receiving device or discarded as intended, with the relevant parts of the messages being identified already before deserialization with regard to said modifications, such that only minimal time and computing power is spent for deserialization and decoding.

[0030] Preferably, the playback unit is configured as an (additional) unit for the HIL simulator (in the form of hardware with corresponding software) and / or for the simulator for virtual protection (as a purely software unit or as an additional program).

[0031] The invention makes it possible to efficiently record secure communications in the vehicle and to make them available for later protection, for example in the HIL, but also for virtual protection.

[0032] Next, the present invention will be described in detail with reference to the drawings.

[0033] For ease of illustration, the following is shown in the drawings: [Brief description of the drawings]

[0034] [Figure 1] FIG. 2 illustrates a secure message. [Diagram 2] This is a schematic diagram showing Secure Onboard Communication according to AUTOSAR 4.2.1. [Diagram 3] FIG. 1 is a schematic diagram showing typical control device communication when using secure communication. [Figure 4] FIG. 13 illustrates the use of a data logger to store transmitted data. [Figure 5a] FIG. 2 illustrates a method according to the invention using an extracted look-up table. [Figure 5b] FIG. 2 illustrates a method according to the invention using a data interpretation algorithm. [Figure 6] FIG. 1 illustrates the behavior of the data interpretation algorithm. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0035] The following description of the invention is directed to Secure Onboard Communication (SecOC), but can also be applied to other methods.

[0036] When authentication is performed in SecOC, the transmission on the medium changes with respect to non-secure message transmission, because now, besides the user data, further data is transmitted in the message that allows the receiver to check whether the received data is valid or not. A so-called "Secured PDU" is then formed from the original PDU (Protocol Data Unit), which only contained the user data.

[0037] Figure 1 shows the structure of this kind of secure message. According to the SecOC standard from AUTOSAR and FIBEX, in a secure communication a "Secured PDU" is transmitted. It is built from a still unencrypted (but usually encoded) user data PDU, a counter value Z and an encrypted authenticator MAC. The user data PDU is still unencrypted, but without knowledge of the communication description, for example in the form of the so-called K-matrix or communication matrix, one lacks the information where which data is (counter value Z (also called "freshness value" in SecOC), authenticator MAC, user data PDU) since these data remain serialized in the message. Without this information, it is difficult to interpret the data.

[0038] A secure message contains not only the yet unencrypted user data (also referred to herein as the PDU or "authenticated PDU"), but also a counter value Z (also referred to as the "freshness value") and an authenticator ("message authentication code" MAC). This authenticator MAC is an encrypted value calculated using a key algorithm, a secret key K, the user data PDU and the counter value Z. Figure 2 illustrates this process. The counter value Z is a monotonically increasing consecutive counter value. At the sender, the counter value Z and information / data from the user data PDU are used to generate the authenticator MAC. The sender then creates a message containing the user data PDU, the counter value Z and the authenticator MAC. At the receiver, the authenticator MAC and the counter value Z are checked and based on this check it is decided whether the message is valid or not, or whether the user data can be used or not.

[0039] FIG. 3 shows typical controller communication when using secure communication.

[0040] In the transmission control device (transmitter), the application software generates the user data PDU to be transmitted (f(x)). Furthermore, a module for generating a counter value ZG and a generator for an authenticator MAC are provided. In particular, serialization takes place in the lower software layers, where the COM configuration (e.g. a communication description in the form of a K-matrix) defines which data in the message to be transmitted or in the corresponding message packet NP to be transmitted are represented by the counter value Z and which data represent the authenticator MAC. Correspondingly "packetized", this message is then transmitted by a suitable controller as a message packet NP on the bus / network. On the bus / network, it is not possible to distinguish between the user data PDU, the counter value Z and the authenticator MAC in the data contained in the serialized message set NP without knowledge of the K-matrix or without a suitable data interpretation algorithm.

[0041] When testing a control device, for example with HIL for real-time testing or with an offline simulator for virtual protection, information about or the K matrix is ​​usually present.

[0042] In the case of Fig. 3, the receiving control device (receiver) receives the message and evaluates it in the reverse order to that of the sender: based on the authenticator check, it is determined in the receiving control device whether the received user data PDU is used for an application, i.e. the corresponding function f(x), in the receiving control device or not.

[0043] If the communication between the control devices is to be used for later playback, the communication on the bus is tapped or mirrored in the network using switches or test access points, as shown in Figure 4. For recording, a data logger D is typically used, which collects the data on a mass storage device, whereby the storage takes place without interpretation of the data.

[0044] In a non-secure communication, the data for the stimulus (simulation) of the receiving control device can be sent to the receiving control device without being modified substantially (possibly with an adapted timestamp) without the receiving control device being able to detect the stimulus (simulation) (replay, i.e. simple playback / new playback of a recorded message).

[0045] However, in the case of secure communications, the use of a monotonic counter in the receiving control device would detect that the message is out of date, so that the recorded data can no longer be used without further manipulation, although merely modifying the counter would also not be successful, since the counter value is involved in the calculation of the authenticator MAC together with the user data.

[0046] FIG. 5a shows an embodiment of the method according to the invention using a regeneration unit R according to the invention.

[0047] The recorded data (secure message) is read from the mass storage device D. It is serialized or serial data, i.e. completely uninterpreted data, without it being clear where the signals are and how they are coded. From the (very large) communication matrix COM matrix present in the reproduction unit R or read, at the start of the method according to the invention, a look-up table LT of much smaller size is generated, which contains the message ID, the position of the user data and the length of the user data. Based on the information extracted from the look-up table LT, all data except the user data PDUs of the message are discarded, i.e. in particular the first counter value Z1 and the signal of the first authenticator MAC1. In order to obtain the user data PDUs so that they can be reused for the message to be transmitted, the remaining data (serial data) that remains serialized must be deserialized, since the user data PDUs are involved in the calculation of the authenticator. However, here the amount of data to be deserialized is reduced to the user data PDUs compared to the data of the entire message. The second counter value Z2 and the signal for the second authenticator MAC2 are also newly generated in the reproduction unit R, as in the control device or, as in the case of a bus simulation in a HIL or offline simulator, where the second counter value Z2 and the key K are provided, for example, by a user. Together with the user data PDU, a valid message is again constructed from them, which is then transmitted over the bus or network as a message packet NP after serialization has been completed.

[0048] A further embodiment of the invention is shown in figure 5b, which differs from the method described in figure 5a in the following ways.

[0049] A data interpretation algorithm A is applied to identify the position of a particular message component within the still serialized message. This algorithm A locates the position of the encrypted data within the message in such a way as to identify the consecutive values ​​with the greatest entropy. The encrypted authenticator MAC is then identified and discarded to again reduce the amount of data in the message. Then, in a further step, the remaining data of the message is deserialized and the counter value Z1 is identified and removed. The method then proceeds in the same way as in FIG. 5a.

[0050] In Fig. 6, the procedure of the data interpretation algorithm A is shown. To identify the encrypted information, the data of the serialized message is searched for consecutive values ​​with the maximum entropy by means of a symbol window. In this case, the size of the symbol window used for the search for the first authenticator does not necessarily have to be predefined. Basically, the search can be performed by means of symbol windows of different sizes. In practice, however, only certain authenticator lengths are used (e.g. AES=128 bits), which are preferably used as the symbol window length. For each window depicted in Fig. 6, the entropy is calculated. It is assumed from the window with the calculated maximum entropy that the position of the authenticator MAC1 is located there.

[0051] If by chance there are two windows with the same amount of entropy, then the algorithm can be reapplied to another message with the same ID to make a determination.

[0052] A further embodiment of the invention consists in deliberately manipulating the signals for the counter value Z and the authenticator MAC for the purpose of testing protection measures in the receiving control device, i.e. it is possible to operate with a correct counter value Z but an incorrect authenticator MAC, or with a correct authenticator MAC and an incorrect counter value Z.

[0053] In security mechanisms different from SecOC, the message containing the user data, the counter value and the authenticator is possibly not sent in a single message packet but distributed over several message packets, as is the case for example with IPsec or Cryptographic PDUs. The method according to the invention can also be applied to such methods. In this case, it is necessary to make some minor modifications regarding the counter value, possibly. In the case of IPsec, the counter value, then called sequence number, must not for example increase monotonically but must be located within a certain window of sequence numbers ("sliding window").

Claims

1. 1. A method of transmitting a recorded secure message to a receiving device under test via a message system, said message being transmitted using serialized message packets, said method comprising the steps of: Providing a secure first message, still serialized, from a message packet (NP) for processing in a recovery unit (R), said first message being formed by the payload of said message packet (NP), said first message itself comprising user data (PDU), a first counter value (Z1) and a first authenticator (MAC1), said recovery unit (R) receiving the following information: At least a portion of the communication description (Com matrix) and / or a data interpretation algorithm (A) for the receiving device under test; a second counter value (Z2) for the receiving device under test; and - encryption information and corresponding key (K); and Using the regeneration unit (R), - reducing the amount of data of the serialized secure first message (serial data) by identifying the position of the user data (PDU) or the position of the first authenticator (MAC1) in the first message and removing at least the first authenticator (MAC1) and possibly the first counter value (Z1) from the serialized secure first message; - deserializing the reduced first message, creating a secure second message by adding the second counter value (Z2) or possibly replacing the first counter value (Z1) with the second counter value (Z2), and creating and adding a second authenticator (MAC2) using the second counter value (Z2), the encryption information and the key (K) and using the communication description (Com matrix) or by information obtained by application of the data interpretation algorithm (A); - serializing the secure second message and sending a corresponding message packet (NP) to the receiving device under test; The method according to claim 1,

2. The user data is identified using a lookup table (LT) created from the communication description, the lookup table (LT) including a message ID, a position of the user data (PDU), and a length of the user data (PDU). The method of claim 1.

3. The identification of the first authenticator is performed by searching the serialized data of the message using the data interpretation algorithm (A), the data interpretation algorithm (A) being based on the identification of encrypted information by searching for the successive values ​​having the maximum entropy. The method of claim 1.

4. The algorithm is implemented in hardware. The method of claim 3.

5. A message is sent distributed over multiple message packets (NP).

5. The method according to any one of claims 1 to 4.

6. the receiving device is a real or virtual control device and the message system is formed by a real or simulated bus communication system or a real or simulated network or a combination of a bus system and a network, in particular by a message system of a motor vehicle, 6. The method according to any one of claims 1 to 5.

7. the second counter value (Z2) being determined by a current counter value for the respective receiving device under test, or The second counter value (Z2) is determined by a counter value predetermined by a user or an automatically calculated counter value.

7. The method according to any one of claims 1 to 6.

8. the user data (PDU) of the secure first message is also encrypted using the first counter value (Z1), the user data (PDU) being decrypted in the regeneration unit (R) and encrypted again using the encryption and the second counter value (Z2); 3. The method according to claim 1 or 2.

9. the encryption information also includes information for creating a secure second message for test purposes such that the secure second message will be identified as erroneous by the receiving device.

9. The method according to any one of claims 1 to 8.

10. a reproduction unit (R) for transmitting a secure message to a receiving device under test via a message system, said reproduction unit (R) being connected to said receiving device under test via said message system; The regeneration unit (R) comprises: Retrieving the secure first message to be played back as serialized from the payload of the recorded message packet (NP); Identifying a position of user data (PDU) or a position of a first authenticator (MAC1) within the secure serialized first message; removing said authenticator (MAC1) and possibly also a corresponding first counter value (Z1) from said serialized message; generating a second authenticator (MAC2) using the second counter value (Z2), the encryption algorithm and the key (K); It is structured as follows: the regeneration unit (R) is adapted to generate a secure second message by appending the second authenticator (MAC2) to the first message and by further appending the second counter value (Z2) or by replacing the first counter value (Z1) with the second counter value (Z2); the reproduction unit (R), further configured to transmit the secure second message in a corresponding message packet (NP) via the message system to the receiving device under test; Regeneration unit (R).

11. The reproduction unit (R) is configured as an (additional) unit for a hardware-in-the-loop (HIL) simulator and / or a virtual protection simulator, A regeneration unit (R) according to claim 10.

Citation Information

Patent Citations

  • Simulation method, system, and program

    JP2010033130A

  • Communication node test device, communication node test method, and program

    JP2018098707A