Data security protection method, device, equipment and medium

By sending an exclusive application to the second device and encrypting the data, the problem of insufficient security of device cache data in the prior art is solved, and physical exclusive and encrypted storage of data in other devices is realized, which significantly improves the data Security.

CN112527205BActive Publication Date: 2024-12-06JIANGSU GUOKE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011492875.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-12-06
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

The prior art is limited to the security of the device itself or data transmission, and fails to effectively ensure the data security of other devices cached. Especially under the NVME protocol, the memory space provided by the device still has the risk of being stolen.

Method used

By sending an exclusive application to the second device, the exclusive permissions of the target physical space are obtained, and the data is encrypted and stored, ensuring the security of the data in other devices. The specific steps include sending an exclusive application to the second device, obtaining authorization or locking of the physical address bus, randomly generating an encryption key to encrypt the data, and storing the encrypted data to the target physical space.

Benefits of technology

It realizes physical exclusive and encrypted storage of data in other devices, avoids access to data by devices that provide physical space, and significantly improves data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112527205B_ABST
    Figure CN112527205B_ABST
Patent Text Reader

Abstract

The present application discloses a data security protection method, device, equipment and medium, including: sending an exclusive application for a target physical space to a second device so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device; encrypting the data to be stored to obtain target encrypted data; storing the target encrypted data in the target physical space. In this way, the problem that the device providing the physical space still has access rights to the target physical space is avoided, and the security of data stored in other devices can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a data security protection method, device, equipment and medium. Background Art

[0002] Currently, in the NVME (Non-Volatile Memory express) HMB (Host Memory Buffer) function, the host system provides a section of host memory for the NVME device to use. This section of space is used as the device's memory space, and the device usually places the device-side proprietary device management metadata (non-user data) in the host's memory, which provides an opportunity for external attacks or interception of the hard disk or device's internal data. The CMB (Controller Memory Buffer) function based on the NVME protocol provides a section of the internal memory space of the NVME device to the host for use as the host's memory. The host temporarily stores some data in the device memory. At this time, a method needs to be provided to prevent the device from obtaining the host's proprietary data.

[0003] At present, the existing technologies generally start from the perspective of data security, and are generally limited to the data security of the device itself or the data transmission security. They do not involve the security of using other devices to cache the device's own data. Even if some devices have exclusive space, they are only exclusive from the perspective of software system space allocation. The space provider actually still has read and write permissions for the space, which provides the space provider with backdoor permissions to detect users. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a data security protection method, device, equipment and medium, which can ensure the security of data stored in other devices. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a data security protection method, which is applied to a first device, including:

[0006] Sending an exclusive request for a target physical space to a second device so that a physical address bus of the second device allocates exclusive rights to the target physical space to the first device;

[0007] Encrypt the data to be stored to obtain target encrypted data;

[0008] The target encrypted data is stored in the target physical space.

[0009] Optionally, sending an exclusive request for the target physical space to the second device so that the second device allocates exclusive rights to the target physical space to the first device through its own physical address bus includes:

[0010] A lock request for the target physical space is sent to the second device so that the physical address bus of the second device locks the target physical space to allocate exclusive rights to the target physical space to the first device.

[0011] Optionally, sending an exclusive request for the target physical space to the second device so that the second device allocates exclusive rights to the target physical space to the first device through its own physical address bus includes:

[0012] An authorization request for the target physical space is sent to the second device so that the physical address bus of the second device authorizes the access rights of the target physical space to the first device, so as to allocate exclusive rights to the target physical space to the first device.

[0013] Optionally, encrypting the data to be stored to obtain target encrypted data includes:

[0014] Randomly generate encryption keys;

[0015] The data to be stored is encrypted using the encryption key to obtain target encrypted data.

[0016] Optionally, the encryption key is not saved when power is lost.

[0017] Optionally, encrypting the data to be stored to obtain target encrypted data includes:

[0018] According to the update frequency of the data to be stored, the data to be stored is encrypted using a symmetric encryption algorithm or an asymmetric encryption algorithm to obtain target encrypted data.

[0019] In a second aspect, the present application discloses a data security protection device, which is applied to a first device and includes:

[0020] A physical space exclusive application module, used for sending an exclusive application for a target physical space to a second device, so that a physical address bus of the second device allocates exclusive rights to the target physical space to the first device;

[0021] A data encryption module is used to encrypt the data to be stored to obtain target encrypted data;

[0022] A data storage module is used to store the target encrypted data in the target physical space.

[0023] Optionally, the data encryption module is specifically used to:

[0024] Randomly generate encryption keys;

[0025] The data to be stored is encrypted using the encryption key to obtain target encrypted data.

[0026] In a third aspect, the present application discloses an electronic device, including a processor and a memory; wherein:

[0027] The memory is used to store the computer program;

[0028] The processor is used to execute the computer program to implement the aforementioned data security protection method.

[0029] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned data security protection method when executed by a processor.

[0030] It can be seen that the present application first sends an exclusive application for the target physical space to the second device, so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device, and then encrypts the data to be stored to obtain the target encrypted data, and then stores the target encrypted data in the target physical space. That is, in the present application, the first device first applies for the exclusive right of the target physical space in the second device in the second device, realizes the physical exclusivity of the target physical space, and then stores the encrypted data to be stored in the target physical space. In this way, the problem that the device providing the physical space still has access rights to the target physical space is avoided, and the security of the data stored in other devices can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0032] Figure 1 A flow chart of a data security protection method disclosed in this application;

[0033] Figure 2 A schematic diagram of a specific data security protection method disclosed in this application;

[0034] Figure 3 A flow chart of a specific data security protection method disclosed in this application;

[0035] Figure 4 This is a schematic diagram of the structure of a data security protection device disclosed in this application;

[0036] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0037] 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 only 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.

[0038] At present, the existing technologies generally start from the perspective of data security, and are generally limited to the data security of the device itself or the data transmission security. They do not involve the security of using other devices to cache the device's own data. Even if some devices have exclusive space, they are only exclusive from the perspective of software system space allocation. The space provider actually still has read and write permissions for the space, which provides the space provider with backdoor permissions to detect users.

[0039] See also Figure 1 As shown, the embodiment of the present application discloses a data security protection method, which is applied to a first device and includes:

[0040] Step S11: Send an exclusive application for a target physical space to the second device so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device.

[0041] In a specific implementation, a lock request for the target physical space may be sent to the second device so that the physical address bus of the second device locks the target physical space to allocate exclusive rights to the target physical space to the first device.

[0042] In another specific implementation, an authorization request for the target physical space may be sent to the second device so that the physical address bus of the second device authorizes access rights to the target physical space to the first device, thereby allocating exclusive rights to the target physical space to the first device.

[0043] That is, in the embodiment of the present application, the first device can send a lock request or an authorization request to the second device, and the physical address bus of the second device allocates exclusive rights to the target physical space to the first device.

[0044] It should be pointed out that the physical address bus provides a locking mechanism or authorization mechanism, which allocates exclusive rights to the target physical space to the first device through the physical address bus. The CPU of the second device also has no access to the target physical space, which can prevent illegal users from stealing data and achieve physical exclusivity of the target physical space for the first device.

[0045] Step S12: Encrypt the data to be stored to obtain target encrypted data.

[0046] Step S13: Store the target encrypted data into the target physical space.

[0047] That is, this embodiment can encrypt the data that needs to be stored in the second device to further ensure the security of the data.

[0048] For example, see Figure 2 As shown, Figure 2 A schematic diagram of a specific data security protection method disclosed in an embodiment of the present application. In the HMB function, the host maps the memory space to the NVME device, and the host Memory IP hardware needs to provide an address bus locking or authorization mechanism. Once the memory space is provided to the NVME device as HMB, the NVME device locks or obtains authorization for the memory interval, and the host no longer has any authority over the memory interval until the device releases the space, or the device or host is reset. The space can be used by the host. CMB can also use a similar method to prevent the device from stealing host data. Furthermore, the original data that needs to be stored or updated in the host memory or device memory is encrypted, and then decrypted and used after retrieval.

[0049] It can be seen that the embodiment of the present application first sends an exclusive application for the target physical space to the second device, so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device, and then encrypts the data to be stored to obtain the target encrypted data, and then stores the target encrypted data in the target physical space. That is, in the present application, the first device first applies for the exclusive right of the target physical space in the second device in the second device, realizes the physical exclusivity of the target physical space, and then stores the encrypted data to be stored in the target physical space. In this way, the problem that the device providing the physical space still has access rights to the target physical space is avoided, and the security of the data stored in other devices can be guaranteed.

[0050] See also Figure 3 As shown, the embodiment of the present application provides a specific data security protection method, including:

[0051] Step S21: Send an exclusive application for a target physical space to the second device so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device.

[0052] Step S22: Randomly generate an encryption key.

[0053] In a specific implementation, the encryption key is not saved when power is off, and is not saved when the device is reset.

[0054] That is, the encryption key is generated by a random number inside the first device, is only used during operation, and is not saved when power is off or reset, making it difficult for attackers to obtain the key.

[0055] It should be noted that some devices have encryption functions and will store the corresponding encryption keys on non-volatile media. However, the present embodiment generates keys randomly internally, so that attackers cannot obtain the keys, thereby ensuring that the encrypted data at runtime cannot be cracked.

[0056] Step S23: Encrypt the data to be stored using the encryption key to obtain target encrypted data.

[0057] In a specific implementation manner, the data to be stored may be encrypted using a symmetric encryption algorithm or an asymmetric encryption algorithm according to the update frequency of the data to be stored to obtain target encrypted data.

[0058] For example, since metadata is frequently updated, a symmetric encryption algorithm is selected to save the metadata; for device data that is not frequently updated, an asymmetric encryption algorithm can be selected.

[0059] Step S24: Store the target encrypted data into the target physical space.

[0060] See also Figure 4 As shown, the embodiment of the present application discloses a data security protection device, which is applied to a first device and includes:

[0061] A physical space exclusive application module 11, used to send an exclusive application for a target physical space to a second device, so that a physical address bus of the second device allocates exclusive rights to the target physical space to the first device;

[0062] A data encryption module 12 is used to encrypt the data to be stored to obtain target encrypted data;

[0063] The data storage module 13 is used to store the target encrypted data in the target physical space.

[0064] It can be seen that the embodiment of the present application first sends an exclusive application for the target physical space to the second device, so that the physical address bus of the second device allocates exclusive rights to the target physical space to the first device, and then encrypts the data to be stored to obtain the target encrypted data, and then stores the target encrypted data in the target physical space. That is, in the present application, the first device first applies for the exclusive right of the target physical space in the second device in the second device, realizes the physical exclusivity of the target physical space, and then stores the encrypted data to be stored in the target physical space. In this way, the problem that the device providing the physical space still has access rights to the target physical space is avoided, and the security of the data stored in other devices can be guaranteed.

[0065] In a specific implementation, the physical space exclusive application module 11 is specifically used to send a lock application for the target physical space to the second device so that the physical address bus of the second device locks the target physical space to allocate exclusive rights to the target physical space to the first device.

[0066] In another specific embodiment, the physical space exclusive application module 11 is specifically used to send an authorization application for the target physical space to the second device, so that the physical address bus of the second device authorizes the access rights of the target physical space to the first device, thereby allocating exclusive rights to the target physical space to the first device.

[0067] The data encryption module 12 is specifically used for:

[0068] An encryption key is randomly generated; and the data to be stored is encrypted using the encryption key to obtain target encrypted data.

[0069] Furthermore, the encryption key is not saved when power is off.

[0070] Furthermore, the data encryption module 12 is specifically used to encrypt the data to be stored using a symmetric encryption algorithm or an asymmetric encryption algorithm according to the update frequency of the data to be stored, so as to obtain target encrypted data.

[0071] See also Figure 5 As shown, an embodiment of the present application discloses an electronic device, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; and the processor 21 is used to execute the computer program to implement the data security protection method disclosed in the aforementioned embodiment.

[0072] For the specific process of the above-mentioned data security protection method, please refer to the corresponding content disclosed in the aforementioned embodiment, which will not be repeated here.

[0073] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the data security protection method disclosed in the aforementioned embodiment.

[0074] For the specific process of the above-mentioned data security protection method, please refer to the corresponding content disclosed in the aforementioned embodiment, which will not be repeated here.

[0075] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0076] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0077] The above is a detailed introduction to a data security protection method, device, equipment and medium provided by the present application. 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 security protection method, characterized in that: Applied to a first device, comprising: Sending an exclusive request for a target physical space to a second device so that a physical address bus of the second device allocates exclusive rights to the target physical space to the first device; the second device is a device that provides physical space; wherein, when the first device is an NVME device, the second device is a host memory and the target physical space is a host memory cache; when the first device is a host memory, the second device is an NVME device and the target physical space is a controller memory buffer; Encrypt the data to be stored to obtain target encrypted data; storing the target encrypted data into the target physical space; The step of encrypting the data to be stored to obtain target encrypted data includes: Randomly generate an encryption key; the encryption key is used during operation and is not saved after power failure or reset; The data to be stored is encrypted using the encryption key to obtain target encrypted data.

2. The data security protection method according to claim 1, characterized in that: The sending of an exclusive application for the target physical space to the second device so that the second device allocates the exclusive right to the target physical space to the first device through its own physical address bus includes: A lock request for the target physical space is sent to the second device so that the physical address bus of the second device locks the target physical space to allocate exclusive rights to the target physical space to the first device.

3. The data security protection method according to claim 1, characterized in that: The sending of an exclusive application for the target physical space to the second device so that the second device allocates the exclusive right to the target physical space to the first device through its own physical address bus includes: An authorization request for the target physical space is sent to the second device so that the physical address bus of the second device authorizes the access rights of the target physical space to the first device, so as to allocate exclusive rights to the target physical space to the first device.

4. The data security protection method according to any one of claims 1 to 3, characterized in that: The step of encrypting the data to be stored to obtain target encrypted data includes: According to the update frequency of the data to be stored, the data to be stored is encrypted using a symmetric encryption algorithm or an asymmetric encryption algorithm to obtain target encrypted data.

5. A data security protection device, characterized in that: Applied to a first device, comprising: A physical space exclusive application module, used for sending an exclusive application for a target physical space to a second device, so that a physical address bus of the second device allocates exclusive rights to the target physical space to the first device; the second device is a device that provides physical space; wherein, when the first device is an NVME device, the second device is a host memory and the target physical space is a host memory cache; when the first device is a host memory, the second device is an NVME device and the target physical space is a controller memory buffer; A data encryption module is used to encrypt the data to be stored to obtain target encrypted data; A data storage module, used for storing the target encrypted data into the target physical space; Wherein, the data encryption module is specifically used for: Randomly generate encryption keys; The data to be stored is encrypted using the encryption key to obtain target encrypted data.

6. An electronic device, characterized in that: comprising a processor and a memory; wherein, The memory is used to store the computer program; The processor is used to execute the computer program to implement the data security protection method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program, when executed by a processor, implements the data security protection method as described in any one of claims 1 to 4.