Data protection method and device, equipment and storage medium
By verifying the target address on the I2C bus and generating virtual data, the I2C bus data security problem is solved, preventing external attacks and ensuring data security.
Patent Information
- Application Number
- CN202411025930.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art cannot effectively protect the data security of devices connected to the I2C bus, especially when attacks are conducted on external networks or local area networks.
When receiving the communication request, the target address is verified. If the verification is not passed, a virtual device is generated and virtual data is generated based on the pre-collected daily communication data, and sent to the request initiator to prevent data leakage.
Through verification and virtual data generation and transmission, external attacks on device data connected to the I2C bus are prevented, ensuring data security.
Smart Images

Figure CN119004499A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network security technology, and more specifically, to a data protection method, apparatus, device, and storage medium. Background Art
[0002] I2C (Inter-Integrated Circuit) bus is a two-wire serial bus used to connect microcontrollers and their peripheral devices. The I2C bus generally integrates multiple devices. The outside world accesses the data stored in the devices connected to the I2C bus by sending access requests to the I2C bus.
[0003] In the related art, when a device connected to the I 2 C bus is attacked on an external network or a local area network, the data security of the device connected to the I 2 C bus cannot be effectively protected. Summary of the invention
[0004] Embodiments of the present application provide a data protection method, apparatus, device, and storage medium, which are intended to protect the data security of a serial bus.
[0005] A first aspect of an embodiment of the present application provides a data protection method, the method comprising:
[0006] In the case where the serial bus receives a communication request, verifying a target address included in the communication request;
[0007] If the target address verification fails, generating a virtual device corresponding to the communication request;
[0008] Generate virtual data corresponding to the virtual device according to the pre-collected daily communication data;
[0009] The virtual data is sent to a request initiator corresponding to the communication request.
[0010] Optionally, the method further comprises:
[0011] Determine a target device corresponding to the target address in the serial bus;
[0012] Acquire target data stored in a register of the target device;
[0013] Reading a data tag corresponding to the target data;
[0014] In a case where the data tag indicates that the target data is key protected data, determining the number of accesses corresponding to the target data within a target time period;
[0015] Determining whether the number of visits exceeds a preset number of visits threshold;
[0016] When the number of accesses corresponding to the target data exceeds the preset access number threshold, communication interference is performed on the register corresponding to the target data.
[0017] Optionally, before verifying the target address included in the communication request, the method further includes:
[0018] Read the data stored in each device connected to the serial bus;
[0019] According to a preset data protection rule, determining the key protected data among the data stored in each of the devices;
[0020] Add corresponding data tags for the key protected data.
[0021] Optionally, the verifying the target address included in the communication request includes:
[0022] Reading the communication request to determine the target address included in the communication request;
[0023] Performing a query and match on the target address in the internal register to determine whether the target address matches the address stored in the internal register;
[0024] If the target address matches the address stored in the internal register, determining that the target address passes verification;
[0025] In the event that the target address does not match the address stored in the internal register, it is determined that the target address has failed verification.
[0026] Optionally, the generating a virtual device corresponding to the communication request includes:
[0027] Determining device parameters of a target device corresponding to the communication request;
[0028] According to the device parameters of the target device, the corresponding virtual device is simulated in the serial bus.
[0029] Optionally, generating virtual data corresponding to the virtual device according to pre-collected daily communication data includes:
[0030] According to the target data corresponding to the communication request, determining the to-be-processed data corresponding to the virtual device from the daily communication data;
[0031] The data to be processed is randomly modified to obtain the virtual data.
[0032] Optionally, the performing communication interference on a register corresponding to the target data includes:
[0033] sending a stop signal to the register;
[0034] When receiving the stop signal, the register stops transmitting data.
[0035] Optionally, the method further comprises:
[0036] intercepting data sent by the register;
[0037] Randomly modifying the data to obtain randomly modified data;
[0038] The randomly modified data is sent to the request initiator corresponding to the access request.
[0039] A second aspect of an embodiment of the present application provides a data protection device, the device comprising:
[0040] An address verification module, used for verifying a target address included in a communication request when the serial bus receives the communication request;
[0041] A virtual device generation module, used for generating a virtual device corresponding to the communication request when the target address verification fails;
[0042] A virtual data generation module, used to generate virtual data corresponding to the virtual device according to pre-collected daily communication data;
[0043] The virtual data sending module is used to send the virtual data to the request initiator corresponding to the communication request.
[0044] Optionally, the device further comprises:
[0045] A target device determination module, used to determine a target device corresponding to the target address in the serial bus;
[0046] A target data determination module, used for acquiring the target data stored in the register of the target device;
[0047] A data tag reading module, used to read the data tag corresponding to the target data;
[0048] An access count determination module, used to determine the access count corresponding to the target data within a target time period when the data tag indicates that the target data is key protected data;
[0049] A number comparison module, used to determine whether the number of visits exceeds a preset number of visits threshold;
[0050] The communication interference module is used to perform communication interference on the register corresponding to the target data when the number of accesses corresponding to the target data exceeds the preset access number threshold.
[0051] Optionally, the device further comprises:
[0052] A data reading module, used to read the data stored in each device connected to the serial bus;
[0053] A key protected data determination module, used to determine the key protected data from the data stored in each of the devices according to a preset data protection rule;
[0054] The data label adding module is used to add corresponding data labels to the key protected data.
[0055] Optionally, the target address verification module includes:
[0056] A target address acquisition submodule, used to read the communication request and determine the target address included in the communication request;
[0057] An address matching submodule, used to query and match the target address in the internal register to determine whether the target address matches the address stored in the internal register;
[0058] a verification pass submodule, configured to determine that the target address passes verification if the target address matches the address stored in the internal register;
[0059] The verification failed submodule is used to determine that the target address has failed the verification if the target address does not match the address stored in the internal register.
[0060] Optionally, the virtual device generation module includes:
[0061] A device parameter determination submodule, used to determine the device parameters of the target device corresponding to the communication request;
[0062] The virtual device generation submodule is used to simulate the corresponding virtual device in the serial bus according to the device parameters of the target device.
[0063] Optionally, the virtual data generation module includes:
[0064] A to-be-processed data determination submodule, used to determine the to-be-processed data corresponding to the virtual device from the daily communication data according to the target data corresponding to the communication request;
[0065] The virtual data generation submodule is used to randomly modify the data to be processed to obtain the virtual data.
[0066] Optionally, the communication interference module includes:
[0067] A stop signal sending submodule, used for sending a stop signal to the register;
[0068] The data transmission submodule is used for the register to stop data transmission when receiving the stop signal.
[0069] Optionally, the device further comprises:
[0070] A data interception submodule, used for intercepting data sent by the register;
[0071] A data modification submodule, used for randomly modifying the data to obtain randomly modified data;
[0072] A data sending submodule is used to send the randomly modified data to the request initiator corresponding to the access request.
[0073] A third aspect of an embodiment of the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.
[0074] A fourth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect of the present application are implemented.
[0075] By adopting the data protection method provided by the present application, when a serial bus receives a communication request, the target address included in the communication request is verified; if the target address verification fails, a virtual device corresponding to the communication request is generated; based on the daily communication data collected in advance, virtual data corresponding to the virtual device is generated; and the virtual data is sent to the request initiator corresponding to the communication request.
[0076] In this method, when the serial bus receives a communication request, the target address is verified. If the address verification fails, a virtual device is generated and virtual data is restored, and the virtual data is sent to the request initiator, which will not cause data leakage and prevent external attacks on data on devices connected to the high-speed serial bus. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0078] Figure 1 is a flow chart of a data protection method proposed in an embodiment of the present application;
[0079] Figure 2 is a serial bus framework diagram proposed in one embodiment of the present application;
[0080] Figure 3 is an internal structure diagram of a security module proposed in an embodiment of the present application;
[0081] Figure 4 It is a schematic diagram of a data protection process proposed in an embodiment of the present application;
[0082] Figure 5 is a schematic diagram of a data protection device proposed in an embodiment of the present application;
[0083] Figure 6 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0084] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0085] refer to Figure 1 , Figure 1 1 is a flow chart of a data protection method proposed in one embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0086] S11: When the serial bus receives a communication request, verify the target address included in the communication request.
[0087] In this embodiment, a serial bus (I2C, Inter-Integrated Ci rcuit) is used to connect a microcontroller and its peripheral devices. It is a bus standard widely used in the field of microelectronic communication control. It is a special form of synchronous communication, with the advantages of few interface lines, simple control method, small device packaging, and high communication rate. I2C transmits information between devices connected to the bus through a serial data (SDA) line and a serial clock (SCL) line. Each device has a unique address identification and can be used as a transmitter or receiver (determined by the function of the device). The host is a device that initializes the data transmission of the bus and generates a clock signal that allows transmission. At this time, any addressed device is considered a slave. Under normal circumstances, the I2C link is a link of one master device and multiple slave devices, that is, the relevant communication messages will be broadcasted in the entire link, so the link has the risk of information leakage and information tampering. An attacker can use any link device with the function of a master device to scan local devices and monitor link communications, or even pretend to be a master device to modify the register information of other devices. A communication request is a data access request sent by a device on an external network or a local area network to a serial bus. It is used to obtain data from a device connected to the serial bus. The data access request contains the target address, required data, etc. The target address is the address of the device to be accessed and the address of a specific register.
[0088] In this embodiment, reference Figure 2 , Figure 2 is a serial bus framework diagram proposed in an embodiment of the present application, such as Figure 2 As shown, the serial bus includes an SDA (serial data) line and an SCL (serial clock) line, a master device, a security module, a slave device 1, and a slave device 2, wherein the master device is the main computing node of the serial bus, and slave devices 1 and 2 are devices that implement corresponding functions. The security module monitors the serial bus link, records various initial communication information through communication and entry, and returns virtual data for non-existent slave device addresses through configuration, while alerting the upper-level software.
[0089] refer to Figure 3 , Figure 3 is an internal structure diagram of a security module proposed in an embodiment of the present application, such as Figure 3As shown, the security module includes an internal register, a data processing module, and a data transmission module. The data processing module is responsible for sensing the data transmission status of the serial bus, receiving and identifying bus data packets, determining the relevant characteristics of the communication based on the information of the data packets, and storing the bus information and communication-related information in the internal register. It is also responsible for generating relevant information of the virtual slave device, including internal register information, register initial value and other information, and can perform random corrections based on daily communication data collected online to obtain virtual data, which can be sent to visitors who fail the verification.
[0090] The internal register is used to store existing address information and related requests for the address, including the slave device address, the register address inside the device, and the data tag. The address in the communication request can be compared with the slave device address to determine whether the address in the communication request is a valid address. By recording the existing register address, it can be identified whether the register address in the communication request is a real register address. The data tag can be used to determine whether the data is key protected data and record the access to the data.
[0091] The function of the data transmission module is to cooperate with the data processing module to restore virtual data to abnormal access requests and implement the honeypot strategy. This module can also cooperate with the data processing module to change the ongoing master-slave device communication, for example: pull down the high level in the data for one cycle, and change the data "1" to data "0" to achieve data modification.
[0092] In this embodiment, when the serial bus receives a communication request sent by an external device, the security module monitors the communication request, receives the communication request, parses it, obtains the device address and register address contained in the communication request, determines the obtained address as the target address, and then compares the target address with the address stored in the register in the security module to verify the target address.
[0093] In this embodiment, the verifying the target address included in the communication request includes:
[0094] S11 - 1 : Read the communication request and determine the target address included in the communication request.
[0095] In this embodiment, when the serial bus receives a communication request, the security module monitors the communication request, reads the communication request, parses the device address and register address to be accessed contained in the communication request, and uses the obtained address as the target address.
[0096] In this embodiment, each device in the serial bus has a device address and a register address. When a device in the serial bus needs to be accessed, the target address in the access request includes the device address of the device and the address of the register in the device, and these two addresses are used as the target address.
[0097] S11 - 2 : query and match the target address in the internal register to determine whether the target address matches the address stored in the internal register.
[0098] In this embodiment, after the target address included in the communication request is determined, it is determined whether the target address matches the address stored in the internal register.
[0099] In this embodiment, the internal register of the security module stores the device address of each device connected to the serial bus and the register address of the register in each device. After obtaining the target address contained in the communication request, it queries whether the address stored in the internal register is the same as the target address, and then determines whether the target address matches the address stored in the internal register.
[0100] S11 - 3 : When the target address matches the address stored in the internal register, determine that the target address passes the verification.
[0101] In this embodiment, when the target address matches the address stored in the internal register, that is, when the address identical to the target address can be found in the internal register, it is determined that the target address passes the verification.
[0102] In this embodiment, when the target address passes the verification, the communication is not interfered.
[0103] S11 - 4 : When the target address does not match the address stored in the internal register, determine that the target address fails verification.
[0104] In this embodiment, when the target address does not match the address stored in the internal register, that is, when the address identical to the target address cannot be found in the internal register, it is determined that the target address has not passed the verification.
[0105] S12: When the target address verification fails, generating a virtual device corresponding to the communication request.
[0106] In this embodiment, the virtual device is a virtual device generated by the security module according to the communication request, and is not a real physical device.
[0107] In this embodiment, when the target address verification fails, the communication request is read to obtain the device parameters of the target device that the communication request needs to access, and a corresponding virtual device is generated according to the device parameters.
[0108] In this embodiment, the generating of the virtual device corresponding to the communication request includes:
[0109] S12-1: Determine device parameters of the target device corresponding to the communication request.
[0110] In this embodiment, the target device is a device on the serial bus that the initiator of the communication request wants to access.
[0111] In this embodiment, after the communication request data packet is acquired, the data packet is parsed to obtain not only the target address corresponding to the communication request but also the device parameters of the target device corresponding to the communication request.
[0112] S12-2: According to the device parameters of the target device, simulate the corresponding virtual device in the serial bus.
[0113] In this embodiment, the device parameters include the name of the device, the type of the device, relevant performance parameters of the device, etc.
[0114] In this embodiment, after the device parameters of the target device corresponding to the communication request are determined, the corresponding virtual device is simulated in the serial bus.
[0115] For example, the communication request requests data in a disk, and the target device is a disk. The security module generates a virtual disk according to the communication request.
[0116] S13: Generate virtual data corresponding to the virtual device according to the daily communication data collected in advance.
[0117] In this embodiment, the daily communication data is the communication data transmitted between the master device and the slave device in the serial bus or the communication data transmitted between the master device and the slave device and an external device.
[0118] In this embodiment, the security module records the daily communication data when each device transmits communication data on a daily basis. After generating the virtual device, it randomly modifies certain bits in the daily communication data based on the pre-collected daily communication data, and then generates virtual data corresponding to the virtual device.
[0119] In this embodiment, generating virtual data corresponding to the virtual device according to the pre-collected daily communication data includes:
[0120] S13-1: According to the target data corresponding to the communication request, determine the to-be-processed data corresponding to the virtual device from the daily communication data.
[0121] In this embodiment, the data to be processed is data selected from daily communication data that matches the target data type and needs to be randomly corrected.
[0122] In this embodiment, the to-be-processed data corresponding to the virtual device is determined from the daily communication data according to the target data corresponding to the communication request, that is, the to-be-processed data of the same type as the target data is found in the daily communication data.
[0123] In this embodiment, after determining the virtual device, the daily communication data sent by the device of the same type as the virtual device is searched in the register to find the daily communication data of the same type as the target data, and then the data to be processed corresponding to the virtual device in the daily communication data is determined.
[0124] S13-2: Randomly modify the data to be processed to obtain the virtual data.
[0125] In this embodiment, after obtaining the data to be processed, the data processing module in the security module randomly modifies the data to be processed to obtain virtual data.
[0126] For example, any number of "1"s in the data to be processed is changed to "0" to obtain virtual data.
[0127] S14: Send the virtual data to the request initiator corresponding to the communication request.
[0128] In this embodiment, after obtaining the virtual data, the security module uses the data transmission module to send the obtained virtual data to the request initiator corresponding to the communication request. At this time, the data fed back by the serial bus to the external device is virtual data, not real data, which effectively prevents the occurrence of data leakage incidents.
[0129] In this embodiment, an independent security module is designed in the serial bus, and a security protection solution based on the honeypot strategy is provided. For abnormal communication requests, virtual data is returned to the request initiator, thereby ensuring data security.
[0130] In another embodiment of the present application, the method further includes:
[0131] S21: Determine a target device corresponding to the target address in the serial bus.
[0132] In this embodiment, when the security module monitors that the serial bus receives a communication request, it determines the target device corresponding to the target address in the communication request in the serial bus.
[0133] In this embodiment, when the target address is an address stored in an internal register, a target device corresponding to the target address is determined.
[0134] S22: Acquire target data stored in a register of the target device.
[0135] In this embodiment, after the target device corresponding to the target address is determined, the target data stored in the register of the target device is obtained.
[0136] In this embodiment, the register of the target device stores the data of the target device. At this time, the data stored in the register of the target device is obtained, which is the target data corresponding to the communication request.
[0137] For example, the target address corresponding to the communication request accesses the slave device 1, and at this time, the target data in the memory register of the slave device 1 is obtained.
[0138] S23: Read the data tag corresponding to the target data.
[0139] In this embodiment, the data label is pre-entered and is used to characterize the importance of the data. It can also be said to be a label that characterizes the sensitivity of the data. The more sensitive the data, the higher its importance.
[0140] In this embodiment, after the target data corresponding to the communication request is acquired, the data tag corresponding to the target data is read.
[0141] S24: When the data tag indicates that the target data is key protected data, determine the number of accesses corresponding to the target data within a target time period.
[0142] In this embodiment, the key protected data are data that are relatively sensitive, have strong privacy, and have high security requirements, such as user account information, operating data of some important equipment, etc.
[0143] In this embodiment, when the data tag indicates that the target data is key protected data, the number of times the target data is accessed within the target time period is determined.
[0144] For example, the target time period may be set according to actual conditions.
[0145] S25: Determine whether the number of accesses exceeds a preset access number threshold.
[0146] In this embodiment, the access count threshold is a preset maximum value of the logarithmic access count. When the number of accesses to key access data within a period of time exceeds the access count threshold, the request is determined to be an abnormal request.
[0147] In this embodiment, after the number of accesses corresponding to the key protected data within the target time period is determined, it is determined whether the number of accesses exceeds a preset access number threshold.
[0148] For example, the access count threshold may be set to 20 times, and the target time period may be set to 1 minute. When the key protected data is accessed more than 20 times within 1 minute, it is deemed to exceed the preset access count threshold.
[0149] S26: When the number of accesses corresponding to the target data exceeds the preset access number threshold, communication interference is performed on the register corresponding to the target data.
[0150] In this embodiment, communication interference is to use a certain method to interfere with data transmission between devices.
[0151] In this embodiment, when the number of accesses corresponding to the target data exceeds a preset access number threshold, it is considered that there is a risk of abnormal access, and at this time, the communication is interfered with through the data transmission module.
[0152] In this embodiment, the communication interference on the register corresponding to the target data includes:
[0153] S26-1: Send a stop signal to the register.
[0154] In this embodiment, the stop signal is used for communication between terminal devices.
[0155] In this embodiment, when the security module interferes with the communication of the register, it sends a stop signal to the device where the register is located, and the device transmits the stop signal to the corresponding register.
[0156] S26-2: When receiving the stop signal, the register stops data transmission.
[0157] In this embodiment, the register stops transmitting data when receiving the stop signal.
[0158] In this embodiment, the method further includes:
[0159] S26-3: Intercept the data sent by the register.
[0160] In this embodiment, when communication interference is performed, the security module can also intercept data sent by the register.
[0161] S26-4: Randomly modify the data to obtain randomly modified data.
[0162] In this embodiment, after intercepting the data sent by the register, the security module randomly modifies the data to obtain randomly modified data.
[0163] S26-5: Send the randomly modified data to the request initiator corresponding to the access request.
[0164] In this embodiment, the security module sends the randomly modified data to the request initiator corresponding to the access request. At this time, the initiator receives the modified data and cannot obtain the real data, thereby playing a certain interference role and protecting sensitive data.
[0165] In another embodiment of the present application, the same access request may contain multiple target addresses, some of which cannot be verified, while others can be verified. For the addresses that cannot be verified, corresponding virtual data is generated and returned to the request initiator. For the target addresses that can be verified, when the register is transmitting data, communication interference is directly performed to stop data transmission or modify the data before transmitting. Because the same access request already contains addresses that cannot be verified, this access request is an abnormal access request, even if it contains target addresses that can be verified, it still cannot pass verification.
[0166] In another embodiment of the present application, before verifying the target address included in the communication request, the method further includes:
[0167] S31: Read the data stored in each device connected to the serial bus.
[0168] In this embodiment, when the system is started, after the system link is initialized, the master and slave devices are powered on and prepared based on their respective configurations, and the security module loads the initial configuration, at which time the data stored in each device connected to the serial bus is read.
[0169] S32: Determine the key protected data in the data stored in each of the devices according to a preset data protection rule.
[0170] In this embodiment, the preset data protection rules are used to determine the sensitivity of the data, that is, the importance of the data. The preset data protection rules can be determined based on actual conditions. Generally, the higher the privacy of the information, the higher the sensitivity, the higher the importance of the data.
[0171] In this embodiment, according to the preset data protection rules, corresponding key protection data is determined in the data stored in each device.
[0172] For example, user account information is treated as key protected data.
[0173] S33: Add corresponding data tags to the key protected data.
[0174] In this embodiment, after the key protected data is determined, a corresponding data tag is added to the key protected data.
[0175] In another embodiment of the present application, after the security module sends virtual data to the request initiator or interferes with the data communication, the security module reports the relevant communication information to the upper-level application, such as the network address of the request initiator, the time when the request is initiated, the data content of the request, the device name of the accessed device and other information. Corresponding alarm information can also be generated. The alarm content is that a certain device is subjected to an abnormal access request and there is a risk of data leakage. After being transmitted to the upper-level application, the upper-level application displays the alarm information or communication information on the application homepage, and can remind the staff in the form of a pop-up window to facilitate the staff to perform corresponding security maintenance.
[0176] refer to Figure 4 , Figure 4 is a schematic diagram of a data protection process proposed in an embodiment of the present application, such as Figure 4 As shown, first the system is initialized, the information of the initial register is updated, and the device addresses and register addresses of all devices connected to the serial bus are loaded into the internal register of the security module. The security module waits for the serial bus data packet sent by the request initiator. When a communication request is monitored, it is determined whether the communication request in the data packet is an abnormal request. When the communication request is a normal communication request, the communication request is not interfered with. When the communication request is an abnormal request, the communication type of the communication request is identified, that is, the target data corresponding to the communication request is determined. If the communication request accesses key protected data, communication interference is performed. If the target request accesses an invalid device, the security module sends virtual data to the request initiator, and reports the abnormal request to the application end, thereby completing this communication and waiting for the next communication.
[0177] In the above embodiments of the present application, a security module is added to the serial bus. The security module can be connected to the serial bus as a chip or integrated into the main device chip. It provides a security protection solution based on the honeypot strategy, returns virtual data for abnormal requests, quickly identifies abnormal requests and generates alarm information for reporting, thereby improving the security of data transmission between all devices on the serial bus.
[0178] Based on the same inventive concept, an embodiment of the present application provides a data protection device. Figure 5 , Figure 5 FIG. 5 is a schematic diagram of a data protection device 500 proposed in an embodiment of the present application. Figure 5 As shown, the device comprises:
[0179] The address verification module 501 is used to verify the target address included in the communication request when the serial bus receives the communication request;
[0180] A virtual device generation module 502, configured to generate a virtual device corresponding to the communication request when the target address verification fails;
[0181] A virtual data generation module 503, used to generate virtual data corresponding to the virtual device according to the pre-collected daily communication data;
[0182] The virtual data sending module 504 is used to send the virtual data to the request initiator corresponding to the communication request.
[0183] Optionally, the device further comprises:
[0184] A target device determination module, used to determine a target device corresponding to the target address in the serial bus;
[0185] A target data determination module, used for acquiring the target data stored in the register of the target device;
[0186] A data tag reading module, used to read the data tag corresponding to the target data;
[0187] An access count determination module, used to determine the access count corresponding to the target data within a target time period when the data tag indicates that the target data is key protected data;
[0188] A number comparison module, used to determine whether the number of visits exceeds a preset number of visits threshold;
[0189] The communication interference module is used to perform communication interference on the register corresponding to the target data when the number of accesses corresponding to the target data exceeds the preset access number threshold.
[0190] Optionally, the device further comprises:
[0191] A data reading module, used to read the data stored in each device connected to the serial bus;
[0192] A key protected data determination module, used to determine the key protected data from the data stored in each of the devices according to a preset data protection rule;
[0193] The data label adding module is used to add corresponding data labels to the key protected data.
[0194] Optionally, the target address verification module includes:
[0195] A target address acquisition submodule, used to read the communication request and determine the target address included in the communication request;
[0196] An address matching submodule, used to query and match the target address in the internal register to determine whether the target address matches the address stored in the internal register;
[0197] a verification pass submodule, configured to determine that the target address passes verification if the target address matches the address stored in the internal register;
[0198] The verification failed submodule is used to determine that the target address has failed the verification if the target address does not match the address stored in the internal register.
[0199] Optionally, the virtual device generation module includes:
[0200] A device parameter determination submodule, used to determine the device parameters of the target device corresponding to the communication request;
[0201] The virtual device generation submodule is used to simulate the corresponding virtual device in the serial bus according to the device parameters of the target device.
[0202] Optionally, the virtual data generation module includes:
[0203] A to-be-processed data determination submodule, used to determine the to-be-processed data corresponding to the virtual device from the daily communication data according to the target data corresponding to the communication request;
[0204] The virtual data generation submodule is used to randomly modify the data to be processed to obtain the virtual data.
[0205] Optionally, the communication interference module includes:
[0206] A stop signal sending submodule, used for sending a stop signal to the register;
[0207] The data transmission submodule is used for the register to stop data transmission when receiving the stop signal.
[0208] Optionally, the device further comprises:
[0209] A data interception submodule, used for intercepting data sent by the register;
[0210] A data modification submodule, used for randomly modifying the data to obtain randomly modified data;
[0211] A data sending submodule is used to send the randomly modified data to the request initiator corresponding to the access request.
[0212] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the data protection method described in any of the above embodiments of the present application are implemented.
[0213] Based on the same inventive concept, another embodiment of the present application provides an electronic device, Figure 6 It is a schematic diagram of an electronic device 600 proposed in one embodiment of the present application, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor is executed, the steps in the data protection method described in any of the above embodiments of the present application are implemented.
[0214] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0215] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0216] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0217] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0218] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0219] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0220] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0221] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0222] The data protection method, device, equipment and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data protection method, characterized in that: The method comprises: In the case where the serial bus receives a communication request, verifying a target address included in the communication request; If the target address verification fails, generating a virtual device corresponding to the communication request; Generate virtual data corresponding to the virtual device according to the pre-collected daily communication data; The virtual data is sent to a request initiator corresponding to the communication request.
2. The data protection method according to claim 1, characterized in that: The method further comprises: Determine a target device corresponding to the target address in the serial bus; Acquire target data stored in a register of the target device; Reading a data tag corresponding to the target data; In a case where the data tag indicates that the target data is key protected data, determining the number of accesses corresponding to the target data within a target time period; Determining whether the number of visits exceeds a preset number of visits threshold; When the number of accesses corresponding to the target data exceeds the preset access number threshold, communication interference is performed on the register corresponding to the target data.
3. The data protection method according to claim 2, characterized in that: Before verifying the target address included in the communication request, the method further includes: Read the data stored in each device connected to the serial bus; According to a preset data protection rule, determining the key protected data among the data stored in each of the devices; Add corresponding data tags for the key protected data.
4. The data protection method according to claim 1, characterized in that: The verifying the target address included in the communication request includes: Reading the communication request to determine the target address included in the communication request; Performing a query and match on the target address in the internal register to determine whether the target address matches the address stored in the internal register; If the target address matches the address stored in the internal register, determining that the target address passes verification; In the event that the target address does not match the address stored in the internal register, it is determined that the target address has failed verification.
5. The data protection method according to claim 1, characterized in that: The generating of the virtual device corresponding to the communication request includes: Determining device parameters of a target device corresponding to the communication request; According to the device parameters of the target device, the corresponding virtual device is simulated in the serial bus.
6. The data protection method according to claim 1, characterized in that: The generating virtual data corresponding to the virtual device according to the pre-collected daily communication data includes: According to the target data corresponding to the communication request, determining the to-be-processed data corresponding to the virtual device from the daily communication data; The data to be processed is randomly modified to obtain the virtual data.
7. The data protection method according to claim 2, characterized in that: The performing communication interference on the register corresponding to the target data includes: sending a stop signal to the register; When receiving the stop signal, the register stops transmitting data.
8. The data protection method according to claim 7, characterized in that: The method further comprises: intercepting data sent by the register; Randomly modifying the data to obtain randomly modified data; The randomly modified data is sent to the request initiator corresponding to the access request.
9. A data protection device, characterized in that: The device comprises: An address verification module, used for verifying a target address included in a communication request when the serial bus receives the communication request; A virtual device generation module, used for generating a virtual device corresponding to the communication request when the target address verification fails; A virtual data generation module, used to generate virtual data corresponding to the virtual device according to pre-collected daily communication data; The virtual data sending module is used to send the virtual data to the request initiator corresponding to the communication request.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 8 are implemented.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Data communication method, device, equipment and medium
CN119988273A
A data communication method, apparatus, device, and medium
CN119988273B
