Method for detecting manipulation of data in a network
Patent Information
- Application Number
- EP2022812675
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-11
- Filing Date
- 2022-11-07
- Publication Date
- 2024-09-18
AI Technical Summary
Existing methods for data transmission in networks lack assurance that data has not been manipulated, especially over insecure channels, and require knowledge of public keys for encryption and decryption, which complicates secure data verification.
A method using asymmetric cryptography to generate a device key pair with a private and public key, where data packets are digitally signed with the private key and verified using the public key, creating a verifiable security chain that ensures data integrity and detectability of manipulation.
This method provides a robust and simple way to verify data integrity across networks, preventing undetectable manipulation by establishing a security chain that can be checked by anyone, ensuring data authenticity and integrity.
Smart Images

Figure 1.1
Abstract
Description
[0001] Method for detecting manipulation of data in a network
[0002] The invention relates to a method for detecting manipulation of data which is sent in a network comprising a field device of the measurement and automation technology and a receiving device.
[0003] Data can be transmitted securely, for example, through encryption and subsequent decryption in a network, see DE202006000817T2. However, there is often no interest in a secret transmission, but rather in the certainty that data has not been subsequently altered. In addition, the
[0004] Encryption and subsequent decryption requires knowledge of the public keys of each data recipient.
[0005] The object of the invention is therefore to propose a method in which data is verifiable and made available in a network in a simple and robust manner.
[0006] The object is achieved by a method according to independent claim 1.
[0007] In a method according to the invention for detecting manipulation of data from a field device of measurement and automation technology, which data is sent in the form of data packets within a network via an insecure communication channel to a receiving device, wherein the field device is part of a secure subnetwork formed from at least one subnetwork device, which subnetwork comprises at least the field device of the measurement and automation technology or an edge device and at least the field device of the measurement and automation technology, wherein by means of an asymmetric cryptosystem in a first method step a device key pair with a private device key and a public device key is generated, wherein the private device key is stored in a signing subnetwork device,In a second method step, the signing subnet device generates a digital data signature for a group of data packets comprising at least one data packet using the private device key and sends this digital data signature and the group of data packets to the receiving device. In a third method step, the receiving device sends the group of at least one data packet using a digital data signature. The digital data signature and the associated group of data packets can be sent together or independently of one another. The signing subnet device of the network is, for example, a field device of the measurement and automation technology or an edge device.
[0008] The data may, for example, include measurement data and / or device characteristics from a field device in measurement / automation technology.
[0009] An asymmetric cryptosystem such as RSA or ECC (Elliptic Curve Cryptography) can be used. The expert uses a cryptosystem of his or her choice. This takes advantage of the fact that a private key can be used to create a signature for data, which can then be verified using the signature and a public key associated with the private key.
[0010] It is essential for the invention that the data to be transmitted is digitally signed using the private device key and can therefore be verified using the public device key.
[0011] In one embodiment, the affiliation of data groups and digital data signatures is documented by means of timestamps.
[0012] In one embodiment, to increase security, the generation of the digital data signature can be applied to a hash value of the group of data packets.
[0013] In one embodiment, a master key pair is additionally generated with a private master key and a public master key, wherein the public device key is verifiable using the public master key, and wherein the private device key is stored in the signing subnet device. To ensure the verifiability of the public device key using the public master key, a digital key signature is created for the public device key using the private master key, and the receiving device verifies the public device key using the public master key. The digital key signature can be sent together with the public device key or the digital key signature can be appended to the public device key.
[0014] It is advantageous if the data to be transmitted is digitally signed using the private device key, and the public device key used to verify the data is itself verifiable. This allows a security chain to be established that can be verified at any time and by anyone, thus practically ruling out undetectable manipulation of the data. This allows a security chain to be established that can be verified at any time and by anyone, thus practically ruling out undetectable manipulation of the data.
[0015] In this way, the security chain can be ensured by the owner of the private device key, for example by the manufacturer of the field device of the measurement and automation technology.
[0016] In one embodiment, the digital key signature of the public device key is provided by a subnet device, in particular by the signing subnet device. This allows anyone to use the public master key to verify the public device key and thus subsequently the transmitted data.
[0017] In one embodiment, the private device key is stored in a secure manner in the signing subnet device, for example by means of a TPM chip (Trusted Platform Module).
[0018] In one embodiment, the signing subnetwork device is a field device of the measurement and automation technology or an edge device in a network with at least one such field device.
[0019] There may be an increased interest in data that is created by such devices or passed on to an external communication channel because it relates, for example, to the measurement of a medium to be sold, such as petroleum or beer.
[0020] In one embodiment, the public device key is provided over the channel so that it is publicly available.
[0021] In one embodiment, to further increase security, it can be set up that a group of data packets with the same content require the same hash values.
[0022] In one embodiment, the master key pair is generated by the manufacturer of the signing subnetwork device or the field device of the measurement automation technology.
[0023] In one embodiment, the device key pair is predefined, for example by a manufacturer of a TPM chip or is created during production of the signing subnet device.
[0024] In one embodiment, the device key pair is generated by the manufacturer of the signing subnet device or by the signing subnet device itself.
[0025] The invention is described below using exemplary embodiments. Figure 1 describes an exemplary system according to the invention for implementing the method according to the invention;
[0026] Fig. 2 outlines exemplary networks;
[0027] Fig. 3 describes an exemplary method according to the invention;
[0028] Fig. 4 describes an exemplary structure of data packets to be transmitted.
[0029] Fig. 1 describes an exemplary system according to the invention for implementing the method according to the invention, comprising a secure subnetwork 1, from which subnetwork data such as measurement data from a field device of the measurement / automation technology 1.1 (see Fig. 2) is sent to a receiving device 2 in the form of data packets 11 via, for example, an insecure communication channel 3. A generator 5.1 of a device key pair provides the device key pair SG with a public device key SG0 and a private device key SPG to a signing subnetwork device SSG. The signing subnetwork device is configured to sign this data from the field device 1.1 with the private device key. The signing subnetwork device SSG can be the field device 1.1 or an edge device 1.2 (see Fig. 2), which, if present, is configured to enable communication between field devices 1.1 of the subnetwork 1 and the receiving device 2.
[0030] In one embodiment, as shown here, a generator 5.2 of a master key pair comprising a public master key SHO and a private master key SHP can provide the public master key SHO to the network. Both key pairs are based on an asymmetric cryptosystem such as RSA or ECC (Elliptic Curve Cryptography) or a method derived therefrom. In addition, a digital key signature 30 of the public device key can be created and transmitted, for example, to a receiving device.
[0031] Fig. 2 shows two different exemplary networks 4 comprising a secure subnet 1 of the network, wherein the secure subnet is connected to the receiving device 2 via the, for example, insecure communication channel 3. In its simplest form, the secure subnet 1 can, for example, comprise a single field device of the measurement / automation technology, which determines and provides measured values for a measured variable and, if necessary, sends this measured variable with device information in the form of data packets to the receiving device. However, the secure subnet 1 can also comprise multiple devices, such as an edge device 1.2, to which one or more, in this example three, field devices 1.1 described above are connected.
[0032] The generator of the device key pair 5.1 and the generator of the master key pair 5.2 can be different or the same; the key pairs are different. For example, the generator of the device key pair can be a manufacturer of a security chip such as a TPM module, and the generator of the master key pair can be a manufacturer of the edge device or field device. For example, the manufacturer of the edge device or field device can also be the generator of both key pairs.
[0033] Using the private device key, a digital data signature 20 can be created for a group of data packets 10 (see also Fig. 4) comprising at least one data packet 11, which digital data signature can be verified by the public device key. The digital data signature can be applied to the group itself or to a hash value of the group. Verification of the group of data packets means applying the public device key SGO to the data signature and comparing the resulting group or its hash value with the directly output group or its hash value. The digital data signature is created by a signing subnetwork device SSG of the secure subnetwork 1.1, for example, by a data-generating field device 1.1 or by the edge device 1.2.
[0034] In one embodiment, the public device key SGO itself is verifiable by the public master key SOH. For this purpose, a digital key signature 30 is created for the public device key using the private master key. The digital key signature 30 can, for example, be appended to the public device key and made available to the receiving device or a user of the receiving device.
[0035] The receiving device or an operator of the receiving device can then verify the group of data packets using the public device key as well as verify the public device key itself using the digital key signature and the public master key.
[0036] For example, the signing subnet device can be provided with multiple private device keys for generating the digital data signatures 20, so that, upon occasion or necessity, a private device key currently in use can be invalidated and replaced with a new private device key. The public device key associated with a private device key can be provided by the signing subnet device or otherwise. For example, the public device key can be legibly affixed to a housing of a receiving device. This can be achieved, for example, by means of a plaque or a sign.
[0037] Fig. 3 outlines the sequence of an exemplary method 100 according to the invention, wherein in a first method step 101 a device key pair SG with a public device key SG0 and a private device key SGP is generated. The private device key and in particular the public device key is stored in a signing subnetwork device for generating the data signature. The private device key is kept secret by this signing subnetwork device, wherein the public device key is provided, for example, by the signing subnetwork device. In a second method step 102, a digital data signature is created for the group of data packets, which can, for example, be attached to the group of data packets or sent separately. In a third method step 103, the group of data packets is verified using the public device key.
[0038] In one embodiment, as already mentioned, the public device key is verifiable using the public master key, so that the effort required for a manipulation attempt with the data to be transmitted is unjustified. For this purpose, a master key pair SH is generated with a public master key SHO and a private master key SHP, and the public device key is signed with the private master key. The public device key is signed before the second method step is executed to prevent manipulation of the private master key. The master key pair can, for example, be available independently of the method steps or generated during the execution of the method.
[0039] For security reasons, verification of the public master key can be performed occasionally or regularly, but is not mandatory.
[0040] Fig. 4 outlines a purely exemplary structure of a group of data packets 10 transmitted over communication channel 3, comprising at least one data packet 11, for example, three in this case. The digital signature 20 for the group and the public device key SGO can be appended to the group 10. For example, a timestamp 40 can also be appended. However, the digital signature 20 and / or the public device key and / or the timestamp can also be transmitted separately.
[0041] List of reference symbols
[0042] 1 secure subnet
[0043] 1.1 Field device of measurement and automation technology
[0044] 1.2 Edge Device
[0045] 2 Receiver
[0046] 3 communication channels
[0047] 4 Network
[0048] 5.1 Device key pair generator
[0049] 5.2 Master key pair generator
[0050] 10 group of data packets
[0051] 11 data package
[0052] 20 digital data signatures
[0053] 30 digital key signatures
[0054] 40 timestamps
[0055] 100 methods for detecting manipulation
[0056] 101 first procedural step
[0057] 102 second procedural step
[0058] 103 third procedural step
[0059] SG device key pair
[0060] SGP private device key
[0061] SGO public device key
[0062] SH master key pair
[0063] SHP private master key
[0064] SHO public master key
[0065] SSG signing subnet device
Claims
8 Patent claims 1. Method (100) for detecting manipulation of data from a field device of measurement and automation technology (1.1), which data in the form of data packets are sent within a network (4) via, for example, an insecure communication channel (3) to a receiving device (2), wherein the field device (1.1) is part of a secure subnet (1) formed from at least one subnet device, which subnet (1) includes at least the field device of measurement and automation technology (1.1) or an edge device (1.2) and at least the field device of measurement and automation technology (1.1) comprises, wherein in a first procedure step (101) a device key pair (SG) with a private device key (SGP) and a public device key (SGO) is generated using an asymmetric cryptosystem, wherein the private device key is stored in a signing subnet device (SSG), wherein in a second procedure step (102) the signing subnet device (SSG) generates a digital data signature (20) for a group of data packets (10) comprising at least one data packet (11) using the private device key and sends this digital data signature and the group of data packets to the receiving device, wherein in a third procedure step (103) the receiving device verifies the group of at least one data packet using an associated data signature (20) and the public device key.
2. Method according to claim 1, wherein the association of data groups and digital data signatures is documented by means of timestamps (40).
3. Method according to claim 1 or 2, wherein the generation of the digital data signature is applied to a hash value of the group of data packets.
4. Method according to one of the preceding claims, wherein the public device key (SGO) is provided via the communication channel (3).
5. Method according to any of the preceding claims, 9 wherein a master key pair (SH) is generated with a private master key (SHP) and a public master key (SHO), wherein the public device key (SGO) is verifiable by means of the public master key, wherein for the verifiability of the public device key by the public The master key (SHO) creates a digital key signature (30) for the public device key using the private master key (SP2), with the receiving device verifying the public device key using the public master key.
6. Method according to claim 4 or 5, wherein the digital key signature (30) of the public device key (SGO) is provided by a subnet device, in particular by the signing subnet device (SSG).
7. Method according to any of the preceding claims, wherein the private device key (SGP) is stored securely in the signing subnet device (SSG), for example by means of a Trusted Platform Module (TPM) chip.
8. Method according to one of the preceding claims, wherein groups of data packets (10) of the same content result in the same hash values.
9. Method according to any of the preceding claims, wherein the master key pair (SH) is managed by a manufacturer of a subnet device (1).
10. Method according to any of the preceding claims, wherein the device key pair (SG) is predefined.
11. Method according to any one of the preceding claims 1 to 9, wherein the device key pair (SG) is generated by the manufacturer or by a subnet device.
