NVME device security management method, device, equipment and readable storage medium

By controlling the status based on security management policies after the NVME device is powered on and initializing it after successful unlocking, the problem of low security after device initialization is solved and effective protection of device information is achieved.

CN112580115BActive Publication Date: 2024-10-11HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011547118.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-10-11
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

After the NVME device is initialized, there is a risk of low security and illegal users may attack or spy on the software and chip information in the device, leading to illegal attacks.

Method used

By controlling the device status based on the security management policy after the NVME device is powered on, the security module is disabled and locked, and the initialization operation is not performed until the authentication password is successfully unlocked, including initializing the hardware and software encryption environment, and switching security protection mechanisms in different states. , to prevent illegal access.

Benefits of technology

It effectively improves the security of NVME equipment, prevents illegal users from attacking or spying on equipment information, and enhances the equipment protection mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112580115B_ABST
    Figure CN112580115B_ABST
Patent Text Reader

Abstract

The present application discloses a security management method, device, equipment and readable storage medium for NVME devices. After the NVME device is powered on, the present application controls the state of the NVME device based on the security management policy to achieve the purpose of protecting the security of the device; at the same time, after the NVME device is successfully unlocked using the authentication password, the NVME device is controlled to perform initialization operations, thereby preventing illegal users from attacking or spying on the software and chip information in the device, thereby improving the security of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a security management method, apparatus, device and readable storage medium for NVME devices. Background Art

[0002] At present, authentication passwords are generally used to protect users from illegal access to NVME devices. Usually, before using the authentication password to unlock the NVME device, the hardware and software environment in the device has been initialized. For initialized devices, illegal users may attack or spy on the software and chip information in the device, resulting in low device security and the risk of illegal attacks. NVME devices, such as solid-state drives, use the NVME (Non-Volatile Memory Express) protocol to communicate with the host.

[0003] Therefore, how to improve the security of NVME devices is a problem that technicians in this field need to solve. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a security management method, device, equipment and readable storage medium for NVME devices to improve the security of NVME devices. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a method for secure management of an NVME device, comprising:

[0006] If the NVME device is powered on, the state of the NVME device is controlled based on the security management policy;

[0007] If the NVME device is successfully unlocked using the authentication password, the NVME device is controlled to perform an initialization operation.

[0008] Preferably, the controlling the NVME device to perform an initialization operation includes:

[0009] Initialize the hardware encryption environment and software encryption environment of the NVME device, and generate a data key using the authentication password.

[0010] Preferably, different states are provided in the security management policy, each state corresponds to a different security protection mechanism, and the state of the NVME device is switched based on a preset command format during device use.

[0011] Preferably, the controlling the state of the NVME device based on the security management policy includes:

[0012] If the NVME device is powered on, the NVME device is controlled to enter a first state, wherein the first state disables a security module in the NVME device and keeps the NVME device locked;

[0013] When the NVME device is in the first state, if the maximum number of unlocking times is reached and the unlocking fails, the NVME device is switched from the first state to a second state, wherein the second state enables a security module in the NVME device and keeps the NVME device locked;

[0014] If the initialization operation is completed, the NVME device is switched from the second state to a third state, the third state enables a security module in the NVME device and unlocks the NVME device;

[0015] When the NVME device is in the third state, if the authentication password is deleted, the NVME device is switched from the third state to a fourth state, wherein the fourth state disables the security module in the NVME device and does not lock the NVME device;

[0016] When the NVME device is in the fourth state, if a new password is set, the NVME device is switched from the fourth state to the first state;

[0017] If the NVME device is powered off, the NVME device is controlled to enter a fifth state, in which a security module in the NVME device is disabled and a lock feature is not applied.

[0018] Preferably, after switching the NVME device from the first state to the second state, the method further includes:

[0019] The timing starts from the local time of the NVME device. If the next unlockable time point is reached, a notification message is displayed indicating that an unlock attempt can be made.

[0020] Preferably, it also includes:

[0021] Synchronize the local time with the host time of the host to which the NVME device is connected according to the time synchronization strategy.

[0022] Preferably, it also includes:

[0023] The setting time of the new password is obtained and stored, and the validity period of the new password is calculated using the setting time, so as to prompt a notification message to modify the password before the new password expires.

[0024] In a second aspect, the present application provides a security management device for an NVME device, including:

[0025] A state control module, used for controlling the state of the NVME device based on a security management policy if the NVME device is powered on;

[0026] The initialization module is used to control the NVME device to perform an initialization operation if the NVME device is successfully unlocked using the authentication password.

[0027] In a third aspect, the present application provides a security management device for an NVME device, including:

[0028] Memory for storing computer programs;

[0029] The processor is used to execute the computer program to implement the security management method of the NVME device disclosed above.

[0030] In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned disclosed method for secure management of NVME devices.

[0031] It can be seen from the above scheme that the present application provides a security management method for NVME devices, including: if the NVME device is powered on, controlling the state of the NVME device based on a security management policy; if the NVME device is successfully unlocked using an authentication password, controlling the NVME device to perform an initialization operation.

[0032] It can be seen that after the NVME device is powered on, the present application controls the state of the NVME device based on the security management policy to achieve the purpose of protecting the security of the device; at the same time, after the NVME device is successfully unlocked using the authentication password, the NVME device is controlled to perform an initialization operation, thereby preventing illegal users from possibly attacking or spying on the software and chip information in the device, thereby improving the security of the device.

[0033] Correspondingly, the security management device, equipment and readable storage medium of an NVME device provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] 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.

[0035] Figure 1 A flow chart of a security management method for NVME equipment disclosed in this application;

[0036] Figure 2 A schematic diagram of a preset command format disclosed in this application;

[0037] Figure 3 A schematic diagram of the switching process of different states disclosed in this application;

[0038] Figure 4 A schematic diagram of a security management device for NVME equipment disclosed in this application;

[0039] Figure 5 A schematic diagram of a security management device for an NVME device disclosed in this application. DETAILED DESCRIPTION

[0040] 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.

[0041] At present, before using the authentication password to unlock the NVME device, the software and hardware environment in the device has been initialized. For the initialized device, illegal users may attack or spy on the software and chip information in the device, resulting in low device security and the risk of illegal attacks. To this end, the present application provides a security management solution for NVME devices, which can prevent illegal users from attacking or spying on the software and chip information in the device, thereby improving device security.

[0042] See also Figure 1 As shown, the embodiment of the present application discloses a security management method for NVME devices, including:

[0043] S101. If the NVME device is powered on, the state of the NVME device is controlled based on a security management policy.

[0044] In a specific implementation, different states are provided in the security management policy, each state corresponds to a different security protection mechanism, and the state of the NVME device is switched based on a preset command format during device use.

[0045] The preset command format can be found in Figure 2 As shown. Figure 2 In the DW10-DW15 fields, you can define them independently, and other fields can be defined independently according to actual conditions.

[0046] In a specific embodiment, the state of the NVME device is controlled based on the security management policy, including: if the NVME device is powered on, the NVME device is controlled to enter a first state, the first state disables the security module in the NVME device, and keeps the NVME device locked; when the NVME device is in the first state, if the maximum number of unlocking times is reached and the unlocking fails, the NVME device is switched from the first state to the second state, the second state enables the security module in the NVME device, and keeps the NVME device locked; if the initialization operation is completed, the NVME device is switched from the second state to the third state, the third state enables the security module in the NVME device, and unlocks the NVME device; when the NVME device is in the third state, if the authentication password is deleted, the NVME device is switched from the third state to the fourth state, the fourth state disables the security module in the NVME device, and the NVME device is not locked; when the NVME device is in the fourth state, if a new password is set, the NVME device is switched from the fourth state to the first state; if the NVME device is powered off, the NVME device is controlled to enter a fifth state, the fifth state disables the security module in the NVME device, and the lock feature is not applicable.

[0047] The specific security protection mechanisms corresponding to the above five states can be found in Table 1.

[0048] Table 1

[0049]

[0050] Among them, the enabling feature [disabled] means that the security module (related modules of the hardware encryption environment and the software encryption environment) is not activated and is in an unusable state. External attacks have no chance to detect relevant information of the device.

[0051] Enable feature [Enable] means: the security module is activated. However, the device is not necessarily initialized, and the lock feature needs to be unlocked to initialize.

[0052] The lock feature [locked] means that the device is locked and requires an authentication password to unlock the device. At this time, many commands related to device security cannot be used.

[0053] The lock feature [Unlock] means: the authentication with the authentication password is passed, the security module function is available, and the device can be initialized to start the device normally.

[0054] If the device is in the first state, it means that the user has enabled the security protection mechanism, but has not yet performed password authentication. In order to improve security, the security module has not been initialized, leaving no opportunity for external attacks or detection of the security module.

[0055] In a specific implementation, after the NVME device is switched from the first state to the second state, it also includes: starting timing with the local time of the NVME device, if the next unlocking time point is reached (such as unlocking can be attempted again after 3 minutes), a notification message is prompted that unlocking can be attempted.

[0056] In a specific implementation, the local time is synchronized with the host time of the host to which the NVME device is connected according to the time synchronization strategy, thereby effectively preventing users from illegally tampering with the local time of the NVME device, preventing illegal users from stealing NVME device information by using the deviation between the host and the NVME device time, and facilitating the analysis or positioning of the behavioral consistency between the NVME device and the host. The time synchronization strategy is such as: the host sends its own time to the NVME device regularly so that the NVME device completes time synchronization. Alternatively, the host obtains the local time of the NVME device, and if it is found that the local time of the NVME device is inconsistent with the host time, the host time is sent to the NVME device so that the NVME device completes time synchronization.

[0057] It should be noted that the authentication password has an expiration date, so in a specific implementation, the setting time of the new password is obtained and stored, and the expiration date of the new password is calculated using the setting time, so that a notification message prompting to modify the password is displayed before the new password expires.

[0058] S102: If the NVME device is successfully unlocked using the authentication password, the NVME device is controlled to perform an initialization operation.

[0059] In a specific implementation, controlling the NVME device to perform an initialization operation includes: initializing the hardware encryption environment and the software encryption environment of the NVME device, and generating a data key using an authentication password. The data key is used to encrypt data stored in the NVME device. If the authentication password is modified, the data key will also be modified accordingly.

[0060] It can be seen that after the NVME device is powered on, the embodiment of the present application controls the state of the NVME device based on the security management policy to achieve the purpose of protecting the security of the device; at the same time, after the NVME device is successfully unlocked using the authentication password, the NVME device is controlled to perform an initialization operation, thereby preventing illegal users from possibly attacking or spying on the software and chip information in the device, thereby improving the security of the device.

[0061] See also Figure 3 As shown, the embodiment of the present application discloses a switching process of different states in a security management policy.

[0062] The specific conditions of each status are as follows:

[0063] First state: after the device is powered on or reset, the user of the device has set an authentication password. At this time, the enabling feature is disabled, the device is locked, and the number of authentication password retries is set to the maximum value.

[0064] Second state: For a device in the first state, if the user enters the authentication password to try to unlock the device, and the number of retries is reduced to 0, the device enters the second state. At this time, security-related commands will be aborted by the device or system, that is, the security-related command set is not supported, and other commands unrelated to device security are available. In addition, any key information of security-related hardware and software of the device or system is not initialized to prevent external detection or attack.

[0065] The third state: For a device in the first state, if the user enters the authentication password and successfully unlocks the device, the device enters the third state, at which time the device can be initialized and security-related command sets are available.

[0066] Fourth state: The device or system has just been powered on or reset, and the user has not set any keys, passwords, etc., that is, the device has just left the factory and is in the initial state. At this time, the enabling features are disabled, the device is not locked, and any key information of the security-related hardware and software of the device or system has not been initialized.

[0067] Fifth state: The device or system enters this state after power-off. At this time, the enabled features are disabled and other features are not applicable.

[0068] The switching of the above states is based on Figure 2 The preset command format shown is transmitted in the device. For example, a command for setting an authentication password is customized based on the preset command format. The command is used to encapsulate the authentication password set by the user after the user sets the authentication password, so as to transmit or store it in the device.

[0069] A command for changing the password is customized based on a preset command format. The command is used to encapsulate the authentication password modified by the user after the user modifies the authentication password, so as to transmit or store it in the device.

[0070] A command with an authentication password is customized based on a preset command format. The command is used to encapsulate the authentication password input by the user after the user enters the authentication password, so as to authenticate the authentication password input by the user.

[0071] A security erase command is customized based on a preset command format, and is used to run data generated by a security management policy.

[0072] It should be noted that the following commands can be used to perform related operations on the device. For details, see Table 2 and Table 3.

[0073] Table 2

[0074]

[0075]

[0076] Table 3

[0077]

[0078] It can be seen that this embodiment realizes the jump of different states through the customized commands. Without the password authentication, the device cannot initialize any security-related hardware and software key information (such as register initialization, protection key, medium key generation or loading, etc.) to prevent external detection or attack.

[0079] The following is an introduction to a security management device for an NVME device provided in an embodiment of the present application. The security management device for an NVME device described below and the security management method for an NVME device described above can refer to each other.

[0080] See also Figure 4 As shown, the embodiment of the present application discloses a security management device for NVME equipment, including:

[0081] A state control module 401 is used to control the state of the NVME device based on a security management policy if the NVME device is powered on;

[0082] The initialization module 402 is used to control the NVME device to perform an initialization operation if the NVME device is successfully unlocked using the authentication password.

[0083] In a specific implementation, the initialization module is specifically used to:

[0084] Initialize the hardware encryption environment and software encryption environment of the NVME device, and use the authentication password to generate a data key.

[0085] In a specific implementation, different states are provided in the security management policy, each state corresponds to a different security protection mechanism, and the state of the NVME device is switched based on a preset command format during device use.

[0086] In a specific implementation, the state control module is specifically used to:

[0087] If the NVME device is powered on, the NVME device is controlled to enter a first state, in which the security module in the NVME device is disabled and the NVME device is kept locked;

[0088] When the NVME device is in the first state, if the maximum number of unlocking times is reached and the unlocking fails, the NVME device is switched from the first state to the second state, and the second state enables the security module in the NVME device and keeps the NVME device locked;

[0089] If the initialization operation is completed, the NVME device is switched from the second state to the third state, the third state enables the security module in the NVME device, and unlocks the NVME device;

[0090] When the NVME device is in the third state, if the authentication password is deleted, the NVME device is switched from the third state to a fourth state, and the fourth state disables the security module in the NVME device and does not lock the NVME device;

[0091] When the NVME device is in the fourth state, if a new password is set, the NVME device is switched from the fourth state to the first state;

[0092] If the NVME device is powered off, the NVME device is controlled to enter a fifth state, in which the security module in the NVME device is disabled and the lock feature is not applicable.

[0093] In a specific embodiment, it also includes:

[0094] The unlock prompt module is used to start timing with the local time of the NVME device. If the next unlockable time is reached, a notification message will be prompted to try to unlock.

[0095] In a specific embodiment, it also includes:

[0096] The time synchronization module is used to synchronize the local time with the host time of the host to which the NVME device is connected according to the time synchronization policy.

[0097] In a specific embodiment, it also includes:

[0098] The modification prompt module is used to obtain and store the setting time of the new password, and use the setting time to calculate the validity period of the new password, so as to prompt a notification message to modify the password before the new password expires.

[0099] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0100] It can be seen that this embodiment provides a security management device for NVME equipment, which can prevent illegal users from attacking or spying on the software and chip information in the equipment, thereby improving the security of the equipment.

[0101] The following is an introduction to a security management device for an NVME device provided in an embodiment of the present application. The security management device for an NVME device described below and the security management method and apparatus for an NVME device described above can be referenced to each other.

[0102] See also Figure 5 As shown, the embodiment of the present application discloses a security management device for NVME devices, including:

[0103] Memory 501, used for storing computer programs;

[0104] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.

[0105] A readable storage medium provided in an embodiment of the present application is introduced below. The readable storage medium described below and the security management method, apparatus and device of an NVME device described above can be referenced to each other.

[0106] A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the security management method of the NVME device disclosed in the aforementioned embodiment. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiment, and will not be repeated here.

[0107] The "first", "second", "third", "fourth", etc. (if any) referred to in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods or devices.

[0108] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0109] 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.

[0110] 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 readable storage medium known in the art.

[0111] Specific examples are used herein 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 those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A security management method for NVME equipment, characterized in that: include: If the NVME device is powered on, the state of the NVME device is controlled based on the security management policy; Wherein, if the NVME device is powered on, the NVME device is controlled to enter a first state, the first state disables the security module in the NVME device, and keeps the NVME device locked; when the NVME device is in the first state, if the maximum number of unlocking times is reached and the unlocking fails, the NVME device is switched from the first state to the second state, the second state enables the security module in the NVME device, and keeps the NVME device locked; If the initialization operation is completed, the NVME device is switched from the second state to a third state, the third state enables a security module in the NVME device and unlocks the NVME device; When the NVME device is in the first state, the user enters the authentication password to successfully unlock the device, and then the NVME device enters the third state from the first state, and controls the NVME device to perform an initialization operation.

2. The security management method of NVME equipment according to claim 1, characterized in that: The controlling the NVME device to perform an initialization operation includes: Initialize the hardware encryption environment and software encryption environment of the NVME device, and generate a data key using the authentication password.

3. The security management method of NVME equipment according to claim 1, characterized in that: Different states are provided in the security management strategy, each state corresponds to a different security protection mechanism, and the state of the NVME device is switched based on a preset command format during device use.

4. The security management method of NVME equipment according to claim 3, characterized in that: When the NVME device is in the third state, if the authentication password is deleted, the NVME device is switched from the third state to a fourth state, wherein the fourth state disables the security module in the NVME device and does not lock the NVME device; When the NVME device is in the fourth state, if a new password is set, the NVME device is switched from the fourth state to the first state; If the NVME device is powered off, the NVME device is controlled to enter a fifth state, in which a security module in the NVME device is disabled and a lock feature is not applied.

5. The security management method of NVME equipment according to claim 4, characterized in that: After switching the NVME device from the first state to the second state, the method further includes: The timing starts from the local time of the NVME device. If the next unlockable time point is reached, a notification message is displayed indicating that an unlock attempt can be made.

6. The method for secure management of NVME equipment according to claim 5, characterized in that: Also includes: Synchronize the local time with the host time of the host to which the NVME device is connected according to the time synchronization strategy.

7. The security management method of NVME equipment according to claim 6, characterized in that: Also includes: The setting time of the new password is obtained and stored, and the validity period of the new password is calculated using the setting time, so as to prompt a notification message to modify the password before the new password expires.

8. A security management device for NVME equipment, characterized in that: include: A state control module, for controlling the state of the NVME device based on a security management policy if the NVME device is powered on; wherein, if the NVME device is powered on, the NVME device is controlled to enter a first state, the first state disables the security module in the NVME device, and keeps the NVME device locked; when the NVME device is in the first state, if the maximum number of unlocking times is reached and the unlocking fails, the NVME device is switched from the first state to a second state, the second state enables the security module in the NVME device, and keeps the NVME device locked; if the initialization operation is completed, the NVME device is switched from the second state to a third state, the third state enables the security module in the NVME device, and unlocks the NVME device; The initialization module is used for when the NVME device is in the first state, and the user enters the authentication password to successfully unlock the device, then the NVME device enters the third state from the first state, and controls the NVME device to perform an initialization operation.

9. A security management device for NVME equipment, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the security management method for the NVME device according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the security management method of the NVME device according to any one of claims 1 to 7 is implemented.