Data acquisition system and method with network isolation and one-way encrypted transmission functions
By combining asymmetric and symmetric encryption in the data collection system to generate high-strength keys, and encrypting the collected data and hash verification during the transmission process, the problems of leakage, tampering and loss during data transmission are solved, and the data is realized safe and reliable transmission.
Patent Information
- Application Number
- CN202211422658.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-11-14
AI Technical Summary
Existing technology cannot realize safe and reliable one-way transmission of data from a high-density LAN to a low-density network without destroying network isolation, and there is a risk of data leakage, tampering, and loss.
Using a data collection system with network isolation and one-way encrypted transmission functions, a high-strength key is generated through a combination of asymmetric encryption and symmetric encryption. The collected data is encrypted together with the hash verification data. Only when it has not been tampered with and is complete Decryption can be successful only after the next step, ensuring the integrity and reliability of the data.
It reduces the risk of leakage, tampering and loss during data transmission and ensures the integrity and reliability of data. Even if a clear text protocol is used for transmission, hijackers cannot decipher the data content.
Smart Images

Figure CN115664841B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition, and in particular to a data acquisition system and method with network isolation and one-way encrypted transmission functions. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] There are mutually isolated LANs with different security levels between different organizations, and there is a widespread demand to transfer specific data from the LAN to the outside for processing. If the LAN is directly connected to other external networks, the network isolation between the internal and external networks will be broken, and the data assets in the LAN will be exposed to external attackers. When data is transmitted from a high-density network to a target in a low-density network, the data may be hijacked in the low-density network. If the data is transmitted using a plain text protocol, it may cause the data to be tampered with or leaked. In order to achieve one-way, secure, and reliable collection of data in the LAN without destroying the physical isolation of the LAN, it is necessary to establish a data collection system with network isolation and one-way encrypted data transmission functions.
[0004] The patent with publication number CN108769076A discloses a collection device with network isolation function, including a first data collection body, the first data collection body including a first collection configuration module, which is used to perform transmission configuration with network isolation function and obtain collection configuration information, wherein the collection configuration information includes collection configuration information of the target device; a data collection module, which is used to obtain data of the target device according to the transmission configuration of the first collection configuration module and the obtained collection configuration information; a first data sending module, which is used to output the data obtained by the data collection module. However, this technical solution cannot guarantee the security and reliability of data transmission. Without encryption processing for the collected data to be sent, in the process of data being transmitted to the sending target, the attacker can obtain the plaintext data through ARP attack, man-in-the-middle attack and brute force cracking, and has the ability to tamper with the data and transmit the tampered data to the sending target.
[0005] The patent with publication number CN107749840B relates to a one-way secure data transmission and collaborative processing system and method based on a one-way network gate. In the invention, the source local area network is connected to the target local area network through a one-way network gate; the front unit interacts with the data source and is linked to the one-way network gate through a first firewall; the rear unit receives the data transmitted by the one-way network gate and sends the data to the data distribution system through a firewall and a second firewall; the data distribution system interacts with the client. However, this technical solution uses MD5 to verify the integrity of the data transmission. However, in the process of plaintext data being transmitted to the target, the attacker has the ability to modify the data content and the corresponding MD5 value, resulting in data tampering during the transmission process, and cannot prevent the data from being tampered with or leaked to a third party.
[0006] It can be seen that the existing technology cannot solve the problems of data leakage, data tampering and data loss that may occur in the process of collecting data being transmitted to the sending target. Summary of the invention
[0007] In order to solve the above problems, the present invention provides a data acquisition system and method with network isolation and one-way encrypted transmission functions, which not only ensures that the interface on the hardware acquisition device is opened on demand through the network isolation module to reduce the attack surface, but also encrypts the collected data together with the hash verification data. Only when the encrypted data has not been tampered with and maintains its integrity can it be successfully decrypted through verification, thereby ensuring the integrity and reliability of the collected data.
[0008] In order to achieve the above object, the present invention adopts the following technical solution:
[0009] The first aspect of the present invention provides a data acquisition system with network isolation and one-way encrypted transmission functions, which includes a user configuration module, an acquisition task scheduling module, a data acquisition module, a network isolation module, a data encryption module and a data sending module deployed on a hardware acquisition device, and a data decryption module deployed on a sending target end; the hardware acquisition device includes an acquisition interface and a sending interface;
[0010] The user configuration module is used to add and delete collection task configuration data and generate public and private keys;
[0011] The acquisition task scheduling module is used to load the acquisition task from the acquisition task configuration data, and call the network isolation module, the data acquisition module, the data encryption module and the data sending module to execute the acquisition task;
[0012] The data acquisition module is used to collect intranet data from the local area network through the acquisition interface;
[0013] The network isolation module is used to ensure that the collection interface and the sending interface are not in an open state at the same time;
[0014] The encryption module is used to calculate the hash value of the collected intranet data, splice the hash value to the end of the archive file, generate a token, encrypt the archive file, encrypt the token using the public key to obtain the token ciphertext, and obtain the encrypted data based on the token ciphertext and the data ciphertext;
[0015] The data sending module is used to send encrypted data through the sending interface;
[0016] The data decryption module is used to split the encrypted data, obtain token ciphertext and data ciphertext, and use the private key to decrypt the token ciphertext. After using the token to decrypt the data ciphertext, the verification data at the end of the decrypted data is used to verify the remaining decrypted data. After the verification is successful, the remaining decrypted data is archived intranet data, and the archived data is unpacked to obtain the collected data.
[0017] Furthermore, the acquisition task configuration data includes target information to be acquired in the local area network, acquisition interface configuration information, sending target information and sending interface configuration information.
[0018] Furthermore, the acquisition task scheduling module performs the following steps for each acquisition task:
[0019] Calling a network isolation module, wherein the calling parameter is a first set value;
[0020] Call the data collection module to collect intranet data;
[0021] Call the data encryption module to encrypt the collected intranet data and obtain encrypted data;
[0022] Calling the network isolation module, the calling parameter is the second set value;
[0023] Call the data sending module to send encrypted data to the sending target;
[0024] The network isolation module is called, and the calling parameter is the third set value.
[0025] Furthermore, the network isolation module is configured as follows:
[0026] Close the collection interface and the sending interface;
[0027] Receive the calling parameter of the collection task scheduling module. If the parameter is the third setting value, clear the configuration information of the collection interface and the sending interface; if the parameter is the first setting value, turn on the collection interface and configure the collection interface according to the collection interface configuration information; if the parameter is the second setting value, turn on the sending interface and configure the sending interface according to the sending interface configuration information in the collection task.
[0028] Furthermore, the data acquisition module is configured as follows:
[0029] Obtain the target information to be collected in the collection task configuration information;
[0030] The client terminal that starts the communication protocol specified in the target information to be collected obtains data from the collection target in the local area network;
[0031] Check whether the cache directory is empty. If so, save the acquired data to the cache directory; otherwise, clear the cache directory and save the acquired data to the cache directory.
[0032] Furthermore, the execution steps of the data sending module are as follows:
[0033] Obtain the sending target information in the collection task configuration information;
[0034] The client that initiates the communication protocol specified in the sending target information sends the encrypted data in the cache directory to the external sending target;
[0035] Clear the cache directory.
[0036] Furthermore, a symmetric encryption algorithm is used to symmetrically encrypt the archive file using the token as the key.
[0037] Furthermore, an asymmetric encryption algorithm is used to asymmetrically encrypt the token using the public key.
[0038] Furthermore, the data decryption module is also used to determine the length of the verification data according to the hash algorithm, take the data of the verification data length from the end of the decrypted data as the verification value, and the remaining data as the data to be verified; calculate the hash value of the data to be verified according to the hash algorithm, and compare it with the verification value. If the two are equal, use the archiving software to unpack the data to be verified to obtain the collected data.
[0039] A second aspect of the present invention provides a data collection method with network isolation and one-way encrypted transmission functions, which comprises the following steps:
[0040] The user configuration module adds and deletes collection task configuration data and generates public and private keys;
[0041] The collection task scheduling module loads the collection task from the collection task configuration data, and calls the network isolation module, the data collection module, the data encryption module and the data sending module to execute the collection task;
[0042] The data acquisition module acquires intranet data from the target to be acquired in the local area network through the acquisition interface;
[0043] The network isolation module configures the collection interface and the sending interface to ensure that the two interfaces are not in an open state at the same time;
[0044] The encryption module calculates the hash value of the collected intranet data, splices the hash value to the end of the archive file, generates a token, uses the token as a key to encrypt the archive file, uses the public key to encrypt the token to obtain a token ciphertext, and splices the token ciphertext, token ciphertext, and data ciphertext in order to obtain encrypted data;
[0045] The data sending module sends the encrypted data through the sending interface;
[0046] The data decryption module divides the encrypted data to obtain the token ciphertext and the data ciphertext, and uses the private key to decrypt the token ciphertext to obtain the token. After using the token to decrypt the data ciphertext to obtain the decrypted data, the verification data at the end of the decrypted data is used to verify the remaining decrypted data. After the verification is successful, the remaining decrypted data is the archived intranet data, and the archived data is unpacked to obtain the collected data;
[0047] Among them, the user configuration module, the collection task scheduling module, the data collection module, the network isolation module, the data encryption module and the data sending module are deployed on the hardware collection device, and the data decryption module is deployed on the sending target end; and the hardware collection device includes a collection interface and a sending interface.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The present invention provides a data acquisition system with network isolation and one-way encrypted transmission functions. By combining asymmetric encryption with symmetric encryption, a high-strength key is generated by the acquisition device itself during the configuration and encryption process, thereby avoiding users from manually setting weak passwords and reducing the risk of brute force cracking. Even if plain text protocol is used for transmission, hijackers who intercept encrypted data cannot crack the data content.
[0050] The present invention provides a data acquisition system with network isolation and one-way encrypted transmission functions, which encrypts the acquired data together with the hash verification data. Only when the encrypted data has not been tampered with and maintains integrity can it be successfully decrypted through verification, thus ensuring the integrity and reliability of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which constitute a part of the specification of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but do not constitute limitations of the present invention.
[0052] Figure 1This is a structural diagram of a data acquisition system with network isolation and one-way encrypted transmission functions according to the first embodiment of the present invention;
[0053] Figure 2 This is a flow chart of a user configuration module in Embodiment 1 of the present invention;
[0054] Figure 3 This is a flow chart of a collection task scheduling module according to the first embodiment of the present invention;
[0055] Figure 4 This is a flow chart of a data acquisition module according to the first embodiment of the present invention;
[0056] Figure 5 This is a flow chart of a network isolation module according to the first embodiment of the present invention;
[0057] Figure 6 This is a flow chart of a data encryption module according to Embodiment 1 of the present invention;
[0058] Figure 7 This is a flow chart of a data sending module according to Embodiment 1 of the present invention;
[0059] Figure 8 This is a flow chart of a data decryption module according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0060] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0061] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0062] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0063] In the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention is further described below with reference to the accompanying drawings and embodiments.
[0064] Embodiment 1
[0065] The purpose of this embodiment 1 is to provide a data acquisition system with network isolation and one-way encrypted transmission functions to meet the needs of safely and reliably collecting data from a local area network. Figure 1 As shown, it includes a hardware acquisition device (hardware part) and a data decryption module (decryption module); the hardware acquisition device is deployed with a user configuration module, an acquisition task scheduling module, a data acquisition module, a network isolation module, a data encryption module (encryption module), and a data sending module.
[0066] The hardware acquisition device is a Linux system board with three RJ-45 interfaces, which are used as the acquisition interface, the transmission interface, and the control interface respectively. The Linux operating system is configured to close the acquisition interface and the transmission interface by default, and only open the control interface, and configure a static address for the control interface as the configuration address. The Linux firewall is configured to only allow inbound requests from the control interface, and only open ports 22 and 80 on the control interface to avoid any active connection initiated by the outside to the hardware acquisition device through the transmission interface or the acquisition interface, and avoid network attacks.
[0067] The user configuration module is deployed in the hardware part of the acquisition system and is used to provide the user with a WEB configuration page through the configuration interface to complete the addition and deletion of acquisition task configuration data and the generation and distribution of keys. Figure 2 As shown in the figure, the steps for users to create a new collection task through the user configuration module are as follows:
[0068] Step (a1): The user logs in to the configuration page through the configuration interface address;
[0069] Step (a2): the user configuration module responds to the configuration page login instruction and determines whether the data acquisition system is powered on for the first time. If so, step (a3-1) is executed; otherwise, step (a3-2) is executed.
[0070] Step (a3-1): If the data acquisition system is powered on for the first time, the system returns to the password initialization interface to guide the user to configure the initialization password. After the password is initialized, step (a3-2) is executed.
[0071] Step (a3-2): Get the password and verify it. If the verification is successful, the user logs in successfully with the password and enters the new collection task page;
[0072] Step (a4): The user fills in a collection task configuration form, which includes the target information to be collected in the local area network, the collection interface configuration information, the sending target information, and the sending interface configuration information;
[0073] Step (a5): Obtain the collection task configuration form submitted by the user, and the user configuration module writes the collection task configuration data into the hardware memory, that is, serializes the collection task in JSON format based on the collection task configuration form and writes it into the memory; and generates a pair of high-strength keys (public key and private key) through an asymmetric encryption algorithm. The public key is stored in the memory of the hardware part of the data collection system and is associated with the current collection task. The private key is provided to the user for download and is not written into the memory.
[0074] The acquisition task scheduling module is deployed in the hardware part of the data acquisition system. It is used to load the acquisition tasks from the user configuration and call the network isolation module, data acquisition module, data encryption module and data sending module according to the user configuration to automatically execute the acquisition tasks. Figure 3 As shown, the acquisition task scheduling module executes the following steps:
[0075] Step (b1): read the collection task configuration, obtain a set of collection tasks to be executed, and generate a task queue;
[0076] Step (b2): Execute the collection tasks serially; for each collection task, the execution steps are as follows:
[0077] Step ①: Call the network isolation module, and the calling parameter is the first setting value 1;
[0078] Step ②: Call the data collection module to collect intranet data;
[0079] Step 3: Call the data encryption module to encrypt the collected intranet data to obtain encrypted data;
[0080] Step ④: calling the network isolation module, with the calling parameter being the second set value 2;
[0081] Step ⑤: Call the data sending module to send encrypted data to the sending target;
[0082] Step ⑥: Call the network isolation module, the calling parameter is the third set value 0, and return to step ①.
[0083] The data acquisition module is deployed in the hardware part of the data acquisition system and is used to collect data from the target to be collected in the local area network through the acquisition interface, such as Figure 4 As shown, the execution steps of the data acquisition module are as follows:
[0084] Step (c1): obtaining the target information to be collected in the collection task configuration;
[0085] Step (c2): according to the target information to be collected in the collection task configuration, start the client of the communication protocol specified in the target information to be collected to obtain data from the collection target in the local area network (i.e., the target to be collected in step (c1));
[0086] Step (c3): Check whether the cache directory is empty. If so, execute step (c4-2); otherwise, execute step (c4-1);
[0087] Step (c4-1): Clear the cache directory and execute step (c4-2);
[0088] Step (c4-2): Save the data obtained in step (c2) to the cache directory.
[0089] The network isolation module is deployed in the hardware part of the data acquisition system to configure the acquisition interface and the sending interface to ensure that the two interfaces are not open at the same time. At the same time, it ensures that the interface is opened as needed. After the acquisition is completed, the interface is closed and the interface information is cleared to reduce the attack surface. Figure 5 As shown, the execution steps of the network isolation module are as follows:
[0090] Step (d1): close the collection interface and the sending interface;
[0091] Step (d2): receiving the calling parameter of the acquisition task scheduling module, if the parameter is 0, executing step (d3-3); if the parameter is 1, executing step (d3-1); if the parameter is 2, executing step (d3-2);
[0092] Step (d3-1): Open the collection interface and configure the collection interface according to the collection interface configuration information in the collection task;
[0093] Step (d3-2): Enable the sending interface and configure the sending interface according to the sending interface configuration information in the collection task;
[0094] Step (d3-3): Clear the configuration information of the collection interface and the transmission interface to ensure that even if the interface is accidentally opened, it is in a state where communication is impossible.
[0095] The encryption module is deployed in the hardware part of the data acquisition system to encrypt the collected data. Figure 6 As shown, the execution steps of the encryption module are as follows:
[0096] Step (e1): Use an archiving program (such as tar) to archive and package the data in the cache directory (collected intranet data);
[0097] Step (e2): Use a hash algorithm (such as MD5, sha256, SM3) to calculate the hash value of the packaged data;
[0098] Step (e3): concatenate the hash value to the end of the archive file;
[0099] Step (e4): randomly generate a token;
[0100] Step (e5): Use a symmetric encryption algorithm (such as AES, SM4), use the token as the key, and symmetric encrypt the spliced data (archive file) to obtain the data ciphertext;
[0101] Step (e6): read the collection task configuration and obtain the public key associated with the collection task;
[0102] Step (e7): Use an asymmetric encryption algorithm (such as RSA, SM2) to asymmetric encrypt the token using the public key to obtain the token ciphertext;
[0103] Step (e8): The final encrypted data is obtained by concatenating the token ciphertext length, token ciphertext, and data ciphertext in order, where the token ciphertext length is stored in the first two bytes of the encrypted data; that is, encrypted data = token ciphertext length (fixed two-byte storage) + token ciphertext (length is the aforementioned length) + data ciphertext (length is not fixed).
[0104] Step (e9): Save the final encrypted data to the cache directory, and delete all data except the encrypted data in the cache directory.
[0105] The data sending module is deployed in the hardware part of the data acquisition system and is used to send encrypted data through the sending interface. The data sending module is designed to only actively initiate connections to the outside. Figure 7 As shown, the execution steps of the data sending module are as follows:
[0106] Step (f1): Obtain the sending target information in the collection task configuration;
[0107] Step (f2): according to the sending target information in the collection task configuration, the client of the communication protocol specified in the sending target information is started to send the encrypted data in the cache directory to the external sending target;
[0108] Step (f3): Clear the cache directory.
[0109] The data decryption module is deployed on the external target computer system (target end) to decrypt data files and ensure the reliability of data transmission. Figure 8 As shown, the execution steps of the data decryption module are as follows:
[0110] Step (g1): import encrypted data;
[0111] Step (g2): Split the encrypted data according to the encryption format to obtain token ciphertext and data ciphertext;
[0112] Step (g3): Import the corresponding private key to decrypt the token ciphertext and obtain the token;
[0113] Step (g4): Use token to decrypt the data ciphertext and obtain the decrypted data;
[0114] Step (g5): Determine the verification data length according to the selected hash algorithm, take the data of the aforementioned verification data length from the end of the decrypted data as the verification value, and use the remaining data as the data to be verified.
[0115] Step (g6): Calculate the hash value of the data to be verified according to the selected hash algorithm, and compare it with the verification value. If the two are equal, execute step (g7-1), otherwise execute step (g7-2);
[0116] Step (g7-1): Decryption is successful, the above data to be verified has passed the verification, and is the archived collected intranet data. Use the corresponding archiving software to unpack it to obtain the collected data;
[0117] Step (g7-2): Decryption fails, reminding the user that the data has been tampered with or the private key is incorrect.
[0118] The steps for users to use the data acquisition system with network isolation and one-way encrypted transmission functions are as follows:
[0119] Step (1): The user uses a twisted pair cable to connect the configuration interface of the data acquisition system hardware part to the PC;
[0120] Step (2): The user successfully logs in to the configuration page; fills in the collection configuration according to the page instructions and downloads the collection task private key;
[0121] Step (3): The user disconnects the data acquisition system hardware and connects the acquisition interface and the transmission interface of the hardware part to the network where the target to be acquired is located and the network where the target to be transmitted is located respectively;
[0122] Step (4): the data acquisition system automatically executes the acquisition task;
[0123] Step (5): The user uses the private key and decryption software to obtain the collected data at the target end.
[0124] The protocols that the data sending module and the data receiving module can use can be selected from http, https, ftp, ftps, sftp, smb, webdav, etc.
[0125] The asymmetric encryption algorithms that can be used by the data encryption module and the decryption module can be selected from RSA, SM2, etc.; the hash algorithms used can be selected from SHA family, SM3, MD5, etc.; the symmetric encryption algorithms can be selected from AES, SM4, etc.
[0126] The network control tools used by the network isolation module can select ip, ifconf ig, etc.
[0127] The data acquisition system with network isolation and one-way encrypted transmission functions of this embodiment uses asymmetric encryption and symmetric encryption to generate a high-strength key during the configuration and encryption process by the acquisition device itself, thereby avoiding users from manually setting weak passwords and reducing the risk of brute force cracking. Even if plain text protocol is used for transmission, hijackers who intercept encrypted data will not be able to crack the data content.
[0128] The data acquisition system with network isolation and one-way encrypted transmission functions of this embodiment encrypts the collected data together with the hash verification data. Only when the encrypted data has not been tampered with and maintains its integrity can it be successfully decrypted through verification, thus ensuring the integrity and reliability of the data.
[0129] Embodiment 2
[0130] The purpose of this second embodiment is to provide a data collection method with network isolation and one-way encrypted transmission functions, including the following steps:
[0131] The user configuration module adds and deletes collection task configuration data and generates public and private keys;
[0132] The collection task scheduling module loads the collection task from the collection task configuration data, and calls the network isolation module, the data collection module, the data encryption module and the data sending module to execute the collection task;
[0133] The data acquisition module acquires intranet data from the target to be acquired in the local area network through the acquisition interface;
[0134] The network isolation module configures the collection interface and the sending interface to ensure that the two interfaces are not in an open state at the same time;
[0135] The encryption module calculates the hash value of the collected intranet data, splices the hash value to the end of the archive file, generates a token, uses the token as a key to encrypt the archive file, uses the public key to encrypt the token to obtain a token ciphertext, and splices the token ciphertext, token ciphertext, and data ciphertext in order to obtain encrypted data;
[0136] The data sending module sends the encrypted data through the sending interface;
[0137] The data decryption module divides the encrypted data to obtain the token ciphertext and the data ciphertext, and uses the private key to decrypt the token ciphertext to obtain the token. After using the token to decrypt the data ciphertext to obtain the decrypted data, the verification data at the end of the decrypted data is used to verify the remaining decrypted data. After the verification is successful, the remaining decrypted data is the archived intranet data, and the archived data is unpacked to obtain the collected data;
[0138] The user configuration module, acquisition task scheduling module, data acquisition module, network isolation module, data encryption module and data sending module are deployed on the hardware acquisition device, and the data decryption module is deployed on the sending target end; and the hardware acquisition device includes an acquisition interface, a sending interface and a control interface.
[0139] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0140] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A data acquisition system with network isolation and one-way encrypted transmission functions, characterized by: It includes a user configuration module, a collection task scheduling module, a data collection module, a network isolation module, a data encryption module and a data sending module deployed on the hardware collection device, and a data decryption module deployed on the sending target end; the hardware collection device includes a collection interface and a sending interface; The user configuration module is used to add and delete collection task configuration data and generate public and private keys; The acquisition task scheduling module is used to load the acquisition task from the acquisition task configuration data, and call the network isolation module, the data acquisition module, the data encryption module and the data sending module to execute the acquisition task; The acquisition task scheduling module performs the following steps for each acquisition task: Calling a network isolation module, wherein the calling parameter is a first set value; Call the data collection module to collect intranet data; Call the data encryption module to encrypt the collected intranet data and obtain encrypted data; Calling the network isolation module, the calling parameter is the second set value; Call the data sending module to send encrypted data to the sending target; Calling the network isolation module, the calling parameter is the third set value; The data acquisition module is used to collect intranet data from the local area network through the acquisition interface; The network isolation module is used to ensure that the collection interface and the sending interface are not in an open state at the same time; The network isolation module is configured as follows: Close the collection interface and the sending interface; Receive the calling parameter of the collection task scheduling module, and if the parameter is the third setting value, clear the configuration information of the collection interface and the sending interface; if the parameter is the first setting value, open the collection interface, and configure the collection interface according to the collection interface configuration information; if the parameter is the second setting value, open the sending interface, and configure the sending interface according to the sending interface configuration information in the collection task; The encryption module is used to calculate the hash value of the collected intranet data, splice the hash value to the end of the archive file, generate a token, encrypt the archive file, encrypt the token using the public key to obtain the token ciphertext, and obtain the encrypted data based on the token ciphertext and the data ciphertext; Use a symmetric encryption algorithm and token as the key to symmetric encrypt the archive file; Use an asymmetric encryption algorithm to asymmetrically encrypt the token using the public key; The execution steps of the encryption module are as follows: Use the archive program to archive and package the data in the cache directory; Use the hash algorithm to calculate the hash value of the packaged data; Add the hash value to the end of the archive file; Generate tokens randomly; Use a symmetric encryption algorithm and token as the key to symmetric encrypt the concatenated data to obtain the data ciphertext; Read the collection task configuration and obtain the public key associated with the collection task; Use an asymmetric encryption algorithm to asymmetric encrypt the token using the public key to obtain the token ciphertext; The final encrypted data is obtained by concatenating the token ciphertext length, token ciphertext, and data ciphertext in order, where the token ciphertext length is stored in the first two bytes of the encrypted data; that is, encrypted data = token ciphertext length + token ciphertext + data ciphertext; Save the final encrypted data to the cache directory and delete all data except the encrypted data in the cache directory; The data sending module is used to send encrypted data through the sending interface; The data decryption module is used to split the encrypted data, obtain token ciphertext and data ciphertext, and use the private key to decrypt the token ciphertext. After using the token to decrypt the data ciphertext, the verification data at the end of the decrypted data is used to verify the remaining decrypted data. After the verification is successful, the remaining decrypted data is archived intranet data, and the archived data is unpacked to obtain the collected data.
2. The data acquisition system with network isolation and one-way encrypted transmission functions as claimed in claim 1, characterized in that: The acquisition task configuration data includes target information to be acquired in the local area network, acquisition interface configuration information, sending target information and sending interface configuration information.
3. The data acquisition system with network isolation and one-way encrypted transmission functions as claimed in claim 1, characterized in that: The data acquisition module is configured as follows: Obtain the target information to be collected in the collection task configuration information; Start the client of the corresponding communication protocol to obtain data from the collection target in the local area network; Check whether the cache directory is empty. If so, save the acquired data to the cache directory. Otherwise, after clearing the cache directory, save the acquired data to the cache directory.
4. The data acquisition system with network isolation and one-way encrypted transmission functions as claimed in claim 3, characterized in that: The execution steps of the data sending module are as follows: Obtain the sending target information in the collection task configuration information; The client that starts the corresponding communication protocol sends the encrypted data in the cache directory to the external sending target; Clear the cache directory.
5. The data acquisition system with network isolation and one-way encrypted transmission functions as claimed in claim 1, characterized in that: The data decryption module is also used to determine the length of the verification data according to the hash algorithm, take the data of the verification data length from the end of the decrypted data as the verification value, and the remaining data as the data to be verified; calculate the hash value of the data to be verified according to the hash algorithm, and compare it with the verification value. If the two are equal, use the archiving software to unpack the data to be verified to obtain the collected data.
6. A data collection method with network isolation and one-way encrypted transmission functions, characterized in that: The steps include: The user configuration module adds and deletes collection task configuration data and generates public and private keys; The collection task scheduling module loads the collection task from the collection task configuration data, and calls the network isolation module, the data collection module, the data encryption module and the data sending module to execute the collection task; The acquisition task scheduling module performs the following steps for each acquisition task: Calling a network isolation module, wherein the calling parameter is a first set value; Call the data collection module to collect intranet data; Call the data encryption module to encrypt the collected intranet data and obtain encrypted data; Calling the network isolation module, the calling parameter is the second set value; Call the data sending module to send encrypted data to the sending target; Calling the network isolation module, the calling parameter is the third set value; The data acquisition module acquires intranet data from the target to be acquired in the local area network through the acquisition interface; The network isolation module configures the collection interface and the sending interface to ensure that the two interfaces are not in an open state at the same time; The network isolation module is configured as follows: Close the collection interface and the sending interface; Receive the calling parameter of the collection task scheduling module, and if the parameter is the third setting value, clear the configuration information of the collection interface and the sending interface; if the parameter is the first setting value, open the collection interface, and configure the collection interface according to the collection interface configuration information; if the parameter is the second setting value, open the sending interface, and configure the sending interface according to the sending interface configuration information in the collection task; The encryption module calculates the hash value of the collected intranet data, splices the hash value to the end of the archive file, generates a token, uses the token as a key to encrypt the archive file, uses the public key to encrypt the token to obtain a token ciphertext, and splices the token ciphertext, token ciphertext, and data ciphertext in order to obtain encrypted data; Use a symmetric encryption algorithm and token as the key to symmetric encrypt the archive file; Use an asymmetric encryption algorithm to asymmetrically encrypt the token using the public key; The execution steps of the encryption module are as follows: Use the archive program to archive and package the data in the cache directory; Use the hash algorithm to calculate the hash value of the packaged data; Add the hash value to the end of the archive file; Generate tokens randomly; Use a symmetric encryption algorithm and token as the key to symmetric encrypt the concatenated data to obtain the data ciphertext; Read the collection task configuration and obtain the public key associated with the collection task; Use an asymmetric encryption algorithm to asymmetric encrypt the token using the public key to obtain the token ciphertext; The final encrypted data is obtained by concatenating the token ciphertext length, token ciphertext, and data ciphertext in order, where the token ciphertext length is stored in the first two bytes of the encrypted data; that is, encrypted data = token ciphertext length + token ciphertext + data ciphertext; Save the final encrypted data to the cache directory and delete all data except the encrypted data in the cache directory; The data sending module sends the encrypted data through the sending interface; The data decryption module divides the encrypted data to obtain the token ciphertext and the data ciphertext, and uses the private key to decrypt the token ciphertext to obtain the token. After using the token to decrypt the data ciphertext to obtain the decrypted data, the verification data at the end of the decrypted data is used to verify the remaining decrypted data. After the verification is successful, the remaining decrypted data is the archived intranet data, and the archived data is unpacked to obtain the collected data; The user configuration module, acquisition task scheduling module, data acquisition module, network isolation module, data encryption module and data sending module are deployed on the hardware acquisition device, and the data decryption module is deployed on the sending target end; and the hardware acquisition device includes an acquisition interface and a sending interface.
Citation Information
Patent Citations
A System and Method for Secure One-Way Data Transmission and Collaborative Processing Based on a One-Way Gateway
CN107749840B
Data collection system, method and device with network isolation function
CN108769076A
One-way secure data transmission method based on a public key password
CN109802974A
Isolation device and isolation method suitable for power Internet of Things client side
CN112073375A
Data transmission system and data transmission method
CN114297687A
