Data security storage device and storage method implemented based on security chip

By building driver software and security chip encryption technology into data security storage devices, the problems of inconvenient use and data security risks of existing devices are solved, and convenient use and high-security data storage are achieved.

CN118747384APending Publication Date: 2024-10-08SHANDONG ZHONGFU INFORMATION IND
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410886977.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing data security storage devices require the installation of driver software, which is inconvenient to use, and the data stored in the security area is in clear text, which poses security risks.

Method used

A data security storage device based on a security chip is used, with built-in driver software in the ordinary partition. The file is encrypted through the security chip's built-in key, and the key is destroyed after the maximum number of retries is reached after a failed login to ensure data security.

Benefits of technology

It realizes plug-and-play of the device, improves the convenience of use, and greatly improves data security through encryption and key destruction mechanisms to prevent data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747384A_ABST
    Figure CN118747384A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of data security storage devices, and provides a data security storage device and storage method based on a security chip, and the technical scheme is that the data security storage device comprises the security chip and a storage module, and the security chip is internally provided with a secret key stored in flash; the storage module comprises a common partition existing in a CDROM form and a security partition protected by a unique password; the security chip MCU is used for displaying a corresponding partition type according to the state of a login software verification password; if the password is not verified, the common partition is displayed, an SCSI command is waited, when a password verification instruction is received, the verification password is compared with a secret key in the flash, and if the verification password is consistent with the secret key in the flash, a switching command is issued, and a safe partition is switched; and if the password passes the verification, displaying the security partition, and automatically converting the read-write address into an actual address of the security partition in the storage module, so that the client accesses the security partition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data security storage devices, and in particular relates to a data security storage device and a storage method based on a security chip. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] In order to prevent the leakage of stored data due to accidental loss of data storage devices, storage devices with encryption functions have emerged, such as USB flash drives.

[0004] The inventors have discovered that existing data security storage devices have the following defects:

[0005] 1. Driver software needs to be installed, which is inconvenient to use

[0006] The security zone of existing secure storage devices generally requires a special driver from the storage device main control chip manufacturer to access, so using the security zone generally requires installing the driver of the specified storage device manufacturer. However, there are many types of storage device main control chips. Even if the storage devices of the same brand are different in models and batches, the main control chips used may be different, and the driver cannot be universal. This is very inconvenient when transferring data between multiple platforms.

[0007] 2. The security zone is stored in plain text, which poses a security risk

[0008] Existing secure storage devices only switch partitions through login passwords, and only use the method of switching partitions to achieve the purpose of data protection, but the actual data stored in the device still exists in plain text, which poses a data security risk. Summary of the invention

[0009] In order to solve at least one technical problem existing in the above-mentioned background technology, the first invention of the present invention provides a data security storage device based on a security chip, whose common partition has built-in driver software, so the secure U disk does not need to install driver software additionally, and the secure U disk can be plug-and-play like a common U disk. The convenience of use is greatly improved; by using the internal random key of the security chip to encrypt the file, the file in the security zone exists in the form of ciphertext, and when the login software password verification fails and reaches the maximum number of retries, the internal key will be destroyed to ensure that the data cannot be recovered, which greatly improves the security of the data.

[0010] In order to achieve the above object, the present invention adopts the following technical solution:

[0011] A data security storage device based on a security chip includes a security chip and a storage module, wherein the security chip has a built-in key stored in a flash; the storage module includes a common partition in the form of a CDROM and a security partition protected by a unique password; the common partition has a built-in driver software written by a private SCSI instruction;

[0012] The security chip MCU is used to display the corresponding partition type according to the status of the password verification of the login software;

[0013] If the password is not verified, the normal partition is displayed and the SCSI command is waited for. When the password verification command is received, the verification password is compared with the key in the flash. If they are consistent, a switching command is issued to switch to the secure partition.

[0014] If the password is verified, the secure partition is displayed, and the read and write addresses are automatically converted into the actual addresses of the secure partition in the storage module, allowing the client to access the secure partition.

[0015] Furthermore, the random number generator inside the security chip generates a random number as a key for symmetric encryption and decryption of the national secret algorithm SM4 and is stored in the flash.

[0016] Furthermore, when comparing the verification password with the key in the flash, the verification password is hashed and compared with the hash value of the key stored in the device flash.

[0017] Furthermore, if the verification password is inconsistent with the key in the flash, the security chip MCU is used to return an error, determine and record the number of failures and continue to wait for commands; when receiving an instruction to change the password or change the number of retries, first determine whether the password has been successfully verified. If the password has not been successfully verified, return an error and continue to wait for commands; if it has been successfully verified, write the new password and the new number of retries into the internal flash of the chip, the modification is completed, and return to continue waiting for commands.

[0018] Furthermore, after the secure area is mounted, the secure chip MCU is used to receive file transfer instructions, encrypt the key previously generated in the flash through the encryption and decryption interface integrated in the secure chip, and then decrypt the data by the key through the decryption algorithm integrated in the secure chip when reading.

[0019] Furthermore, when switching the security partition, the security chip MCU is used to determine whether the number of password errors exceeds a set threshold. If so, a new random number is regenerated to overwrite the key previously stored in the flash.

[0020] The second aspect of the present invention provides a storage method for a data security storage device implemented by a security chip based on the first aspect, wherein the common partition has built-in driver software, so the secure USB flash drive does not need to install additional driver software, and the secure USB flash drive can be plug-and-play like a common USB flash drive. The convenience of use is greatly improved; by using the internal random key of the security chip, the file is encrypted, and the file in the secure area exists in the form of ciphertext. When the login software password verification fails and the maximum number of retries is reached, the internal key will be destroyed to ensure that the data cannot be recovered, which greatly improves the security of the data.

[0021] In order to achieve the above object, the present invention adopts the following technical solution:

[0022] A data security storage method based on a security chip comprises the following steps:

[0023] According to the status of the password verification of the login software, the corresponding partition type is displayed;

[0024] If the password is not verified, the normal partition is displayed and the SCSI command is waited for. When the password verification command is received, the verification password is compared with the key in the flash. If they are consistent, a switching command is issued to switch to the secure partition.

[0025] If the password is verified, the secure partition is displayed, and the read and write addresses are automatically converted into the actual addresses of the secure partition in the storage module, allowing the client to access the secure partition.

[0026] Furthermore, if the verification password is inconsistent with the key in the flash, an error is returned, the number of failures is determined and recorded, and the command continues to be waited for; when a command to change the password or the number of retries is received, first determine whether the password has been successfully verified. If the password has not been successfully verified, an error is returned and the command continues to be waited for; if the password has been successfully verified, the new password and the new number of retries are written into the internal flash of the chip, the modification is completed, and it returns to continue waiting for commands.

[0027] Furthermore, after the secure zone is mounted, a file transfer instruction is received, and the key previously generated in the flash is encrypted through the encryption and decryption interface integrated in the security chip. When the data is read, the key is decrypted by the decryption algorithm integrated in the security chip.

[0028] Furthermore, when switching the security partition, it is determined whether the number of password errors exceeds a set threshold. If so, a new random number is regenerated to overwrite the key previously stored in the flash.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] 1. The common partition of the present invention is displayed in the form of a CDROM. When the device is connected to a PC, the built-in software can be opened by double-clicking to complete the login to the safe zone, which greatly improves the convenience of use. In addition, the CDROM mode can effectively prevent the common zone data from being maliciously rewritten or deleted.

[0031] 2. The common partition of the present invention has the properties of a CDROM read-only storage medium and a built-in driver. Compared with a common secure USB flash drive, the common area of ​​this solution will not be rewritten or deleted, and the driver used to log in to the secure area does not need to be installed, which greatly improves the convenience of use.

[0032] 3. The data stored in the security zone of the present invention is encrypted by the security chip using the integrated hardware SM4 algorithm and is protected by a unique key. Even if the storage chip is removed, the stored ciphertext data cannot be cracked by probe attacks, power attacks, etc.

[0033] 4. The present invention is based on the security chip solution to achieve the security storage device, which can encrypt the file stream through the security chip's own national secret algorithm during the file transfer process, ensuring that the internal data of the sector is ciphertext data and protected by a unique key. When the key is destroyed, the internal data of the device cannot be forcibly restored, which greatly improves the security of data storage. And the encryption algorithm integrated in the security chip can greatly increase the speed of data encryption and decryption, thereby increasing the data transmission rate.

[0034] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0036] Figure 1 It is a schematic diagram of a traditional data storage device;

[0037] Figure 2 It is a schematic diagram of a data security storage device based on a security chip provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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 device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0040] Explanation of terms

[0041] The security chip is a trusted platform module, a device that can independently generate keys, encrypt and decrypt. It has an independent processor and storage unit inside, which can store keys and feature data, and provide encryption and security authentication services for user terminals. When encryption is performed with a security chip, the key is stored in the hardware, and the stolen data cannot be decrypted, thereby protecting business privacy and data security.

[0042] SCSI: SCSI (small computer system interface) is the abbreviation of small computer system, which has a complete set of protocols to specify its commands and responses to command data.

[0043] Existing data security storage devices such as Figure 1 As shown in the figure, this type of storage device generally divides the physical storage space into two areas. One area is a common area, and the operation is the same as that of a general storage device. The other area is a secure area, and the data in this area is protected by a password. The secure area can only access data after the user runs a specific software and enters the correct password to verify it. The encryption area cannot be accessed before the correct password is entered. In this way, if the storage device is lost, people who do not know the password of the encryption area cannot view the content stored in the encryption area.

[0044] In view of the defects mentioned in the background technology that the driver software needs to be installed and is inconvenient to use, the present invention has built-in driver software inside the ordinary partition. For example, if the storage device is a USB flash drive, the secure USB flash drive does not need to install driver software additionally, and the secure USB flash drive can be plug-and-play like an ordinary USB flash drive. The convenience of use is greatly improved. In addition, after the secure USB flash drive of the present invention is inserted into the computer, only an optical drive can be seen, and the driver software of the secure USB flash drive is built into the optical drive. Since CDROM is not rewritable, the design built into CDROM can effectively ensure that the driver software will not be changed or deleted by viruses or malicious programs.

[0045] In view of the technical defect of plain text storage in the security zone mentioned in the background technology, which has security risks, the present invention encrypts the files by using the internal random key of the security chip. The files in the security zone exist in ciphertext form. When the login software password verification fails and the maximum number of retries is reached, the internal key will be destroyed to ensure that the data cannot be recovered, thereby greatly improving the security of the data.

[0046] Embodiment 1

[0047] like Figure 2 The present embodiment provides a data security storage device based on a security chip, a security chip and a storage module. The security chip has a built-in key stored in flash; the storage module includes a common partition in the form of a CDROM and a security partition protected by a unique password; the common partition has a built-in driver software written by a private SCSI instruction;

[0048] Before leaving the factory, the device will use a tool to write the built-in driver software to the partition where the CDROM is located through private SCSI instructions. Compared with ordinary USB flash drives, ordinary USB flash drives are rewritable and erasable storage devices, and users can write, modify and delete data at any time. CD-ROM (Compact Disc Read-Only Memory) is a read-only storage medium. Once the data is written, it cannot be changed or deleted. In this embodiment, this feature of CDROM is used to store driver software. In the form of embedded software, data can be conveniently and safely transferred between different platforms and different devices. There is no need to install additional driver software, and the built-in software is effectively protected from being rewritten or deleted.

[0049] In the following embodiment, the storage device is a USB flash drive as an example to illustrate the specific structure and working principle of the storage device. In other embodiments, the storage system may also be a disk, a mobile hard disk, etc.

[0050] When the device is used for the first time, the random number generator inside the security chip will generate a random number as the key for symmetric encryption and decryption of the national secret algorithm SM4 and store it in the flash. After the above is completed, the USB flash drive is inserted into the user terminal, and the USB flash drive is enumerated normally. When the PC obtains the USB flash drive device information, the security chip MCU is used to return whether to display the normal partition or the secure partition according to the status of whether the password has been verified.

[0051] If the password is not verified, the normal partition will be displayed, and the device reports to the PC that it is of CDROM type. Therefore, the user terminal now thinks that this is a CDROM device. The size of the normal partition only needs to be sufficient to store the embedded driver, and the remaining capacity can be used as much as possible for secure partition storage. After the device is mounted, it waits for the PC-side SCSI command. When the password verification instruction is received, the password is hashed and compared with the password hash value in the device flash. Only when they are consistent can the switching command be issued, the USB is reset, and re-enumeration is performed, that is, the user terminal is disconnected again and switched to the secure partition. If they are inconsistent, an error is returned, the number of failures is determined and recorded, and the command continues to wait for commands; when a command to modify the password or modify the number of retries is received, first determine whether the password has been successfully verified. If the password has not been successfully verified, an error is returned and the command continues to wait; if the password has been successfully verified, the new password and the new number of retries are written to the internal flash of the chip, the modification is completed, and the command returns to continue waiting for commands;

[0052] If the password is verified, the security partition is displayed. The device reports to the PC that it is a normal USB flash drive. The capacity of the security partition is the size of the security storage area. When the user terminal reads and writes address 0, the MCU automatically converts it to the actual address of the security storage area in the storage chip, thereby achieving access to the security partition. After the security area is mounted, the device receives a general file transfer instruction from the PC to the device, and encrypts the key previously generated in the flash through the encryption and decryption interface integrated in the security chip. When the data is read, the key is decrypted by the decryption algorithm integrated in the security chip.

[0053] When switching security zones, if the number of incorrect password attempts exceeds the threshold, the device will regenerate a new random number to overwrite the key previously stored in the flash. Since the data stored in the security zone is ciphertext, the original key cannot be restored or retrieved if it is lost.

[0054] Through the above solution, the secure storage device based on the security chip solution can encrypt the file stream through the national secret algorithm of the security chip during the file transfer process, ensuring that the data inside the sector is ciphertext data and protected by a unique key. When the key is destroyed, the data inside the device cannot be forcibly restored, which greatly improves the security of data storage. And the encryption algorithm integrated in the security chip can greatly increase the speed of data encryption and decryption, thereby increasing the data transmission rate.

[0055] It should be noted that, in this embodiment, the user terminal may be a computer, etc., and this embodiment does not make any specific limitation.

[0056] Embodiment 2

[0057] This embodiment provides a storage method of a data security storage device implemented based on a security chip according to any one of the first embodiments, comprising the following steps:

[0058] According to the status of the password verification of the login software, the corresponding partition type is displayed;

[0059] If the password is not verified, the normal partition is displayed and the SCSI command is waited for. When the password verification command is received, the verification password is compared with the key in the flash. If they are consistent, a switching command is issued to switch to the secure partition.

[0060] If the password is verified, the secure partition is displayed, and the read and write addresses are automatically converted into the actual addresses of the secure partition in the storage module, allowing the client to access the secure partition.

[0061] Through the above scheme, the common partition of the present invention is the property of CDROM read-only storage medium, with built-in driver. Compared with the common secure USB flash drive, the common area of ​​this scheme will not be rewritten or deleted, and the driver used to log in to the secure area does not need to be installed, which greatly improves the convenience of use. The data stored in the secure area is encrypted by the security chip using the integrated hardware SM4 algorithm and stored in ciphertext, which is protected by a unique key. Even if the storage chip is removed, the stored ciphertext data cannot be cracked by means of probe attack, power attack, etc.

[0062] As an embodiment, if the verification password is inconsistent with the key in the flash, an error is returned, the number of failures is determined and recorded, and the command continues to be waited for; when an instruction to change the password or change the number of retries is received, first determine whether the password has been successfully verified. If the password has not been successfully verified, an error is returned and the command continues to be waited for; if the password has been successfully verified, the new password and the new number of retries are written into the internal flash of the chip, the modification is completed, and it returns to continue waiting for the command.

[0063] As an embodiment, after the secure zone is mounted, a file transfer instruction is received, and the key previously generated in the flash is encrypted through the encryption and decryption interface integrated in the security chip. When the data is read, the key is decrypted by the decryption algorithm integrated in the security chip.

[0064] As an embodiment, when switching the security partition, it is determined whether the number of password errors exceeds a set threshold. If so, a new random number is regenerated to overwrite the key previously stored in the flash.

[0065] Through the above solution, the files are encrypted by using the random key inside the security chip, and the files in the secure area exist in ciphertext form. When the login software password verification fails and the maximum number of retries is reached, the internal key will be destroyed to ensure that the data cannot be recovered, greatly improving the security of the data.

[0066] Embodiment 3

[0067] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of a data security storage method based on a security chip as described in Embodiment 2 are implemented.

[0068] Embodiment 4

[0069] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in a data security storage method based on a security chip as described in Embodiment 2 are implemented.

[0070] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0071] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.

[0072] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data security storage device based on a security chip, characterized in that: It includes a security chip and a storage module, wherein the security chip has a built-in key stored in flash; the storage module includes a common partition in the form of a CDROM and a security partition protected by a unique password; the common partition has a built-in driver software written by a private SCSI instruction; The security chip MCU is used to display the corresponding partition type according to the status of the password verification of the login software; If the password is not verified, the normal partition is displayed and the SCSI command is waited for. When the password verification command is received, the verification password is compared with the key in the flash. If they are consistent, a switching command is issued to switch to the secure partition. If the password is verified, the secure partition is displayed, and the read and write addresses are automatically converted into the actual addresses of the secure partition in the storage module, allowing the client to access the secure partition.

2. A data security storage device based on a security chip as claimed in claim 1, characterized in that: The random number generator inside the security chip generates a random number as the key for symmetric encryption and decryption of the national secret algorithm SM4 and is stored in the flash.

3. A data security storage device based on a security chip as claimed in claim 1, characterized in that: When comparing the verification password with the key in the flash, the verification password is hashed and compared with the hash value of the key stored in the device flash.

4. A data security storage device based on a security chip as claimed in claim 1, characterized in that: If the verification password is inconsistent with the key in the flash, the security chip MCU is used to return an error, determine and record the number of failures and continue to wait for commands; when receiving an instruction to change the password or change the number of retries, first determine whether the password has been successfully verified. If the password has not been successfully verified, return an error and continue to wait for commands; if the password has been successfully verified, write the new password and the new number of retries into the internal flash of the chip, the modification is completed, and return to continue waiting for commands.

5. A data security storage device based on a security chip as claimed in claim 1, characterized in that: After the secure zone is mounted, the secure chip MCU is used to receive the file transfer instruction, encrypt the key previously generated in the flash through the encryption and decryption interface integrated in the secure chip, and then decrypt the data by the key through the decryption algorithm integrated in the secure chip when reading.

6. A data security storage device based on a security chip as claimed in claim 1, characterized in that: When switching security partitions, the security chip MCU is used to determine whether the number of password errors exceeds a set threshold. If so, a new random number is regenerated to overwrite the key previously stored in the flash.

7. A storage method for a data security storage device based on a security chip according to any one of claims 1 to 6, characterized in that: The steps include: According to the status of the password verification of the login software, the corresponding partition type is displayed; If the password is not verified, the normal partition is displayed and the SCSI command is waited for. When the password verification command is received, the verification password is compared with the key in the flash. If they are consistent, a switching command is issued to switch to the secure partition. If the password is verified, the secure partition is displayed, and the read and write addresses are automatically converted into the actual addresses of the secure partition in the storage module, allowing the client to access the secure partition.

8. A data security storage method based on a security chip as claimed in claim 7, characterized in that: If the verification password is inconsistent with the key in the flash, an error is returned, the number of failures is determined and recorded, and the command continues to be waited for; When receiving a command to change the password or the number of retries, it first determines whether the password has been successfully verified. If the password has not been successfully verified, it returns an error and continues to wait for commands. If the password has been successfully verified, the new password and the new number of retries are written to the internal flash of the chip, the modification is completed, and it returns to continue waiting for commands.

9. A data security storage method based on a security chip as claimed in claim 8, characterized in that: After the secure zone is mounted, it receives the file transfer instruction and encrypts the key previously generated in the flash through the encryption and decryption interface integrated in the security chip. When the data is read, the key is decrypted by the decryption algorithm integrated in the security chip.

10. A data security storage method based on a security chip as claimed in claim 8, characterized in that: When switching security partitions, determine whether the number of password errors exceeds the set threshold. If so, regenerate a new random number to overwrite the key previously stored in the flash.

Citation Information

Cited By

  • Safety USB flash disk with independent safety chip, operation method, equipment and medium

    CN121167795A

  • Storage device and data management method thereof

    WO2026148958A1