Hardware fingerprint-based authorization management system
Through the authorization management system based on hardware fingerprints, the specific location data of the device hardware components and the preset algorithm are used to generate authorization information, which realizes the offline verification and security improvement of the device, and solves the security and use of authorization management solutions in the existing technology. Convenience issues.
Patent Information
- Application Number
- CN202210656093.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-06-10
AI Technical Summary
The security of existing device authorization management solutions is poor, and the online activation verification method cannot be used in offline scenarios, resulting in the inability to effectively control device permissions.
The authorization management system based on hardware fingerprints generates authorization information by obtaining specific location data of device hardware components and a preset authorization information generation algorithm, and verifies it locally on the device to achieve offline verification and improve security.
It realizes offline authorization verification of the device, improves system security and usage scenarios, avoids the storage of authorization information inside the device, enhances security, and transmits authorization information through email/paper records, improving transmission security.
Smart Images

Figure CN115470464B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of authority management, and in particular relates to an authorization management system based on hardware fingerprint. Background Art
[0002] In order to ensure the security of the device and prevent people from pirating legal software for illegal profit, the authorization management system was born. At present, there are two main device authorization management solutions. One is the built-in activation code verification algorithm. This verification algorithm stores the activation code information (authorization information) inside the device, and then uses the stored activation code information to verify the activation code information entered by the device user. After the verification is passed, the device system usage permission is authorized to the user. However, this algorithm is not secure enough and is easy to be cracked, resulting in the inability to better control the device permissions. In order to improve security, another online activation verification method is proposed. The authorization information is stored independently of the device, generally placed in a verification server at the remote end of the network, and then the verification server verifies the authorization information entered by the user through the network, preventing the authorization information from being easily maliciously cracked. However, this method is not convenient to use and the application scenarios are relatively limited. Once there is no network, that is, in an offline scenario, this verification method cannot be used. Summary of the invention
[0003] In view of this, the embodiment of the present invention provides an authorization management system based on hardware fingerprints to solve the problems of poor security and inconvenience in the existing device authorization management solutions. The present invention can generate device authorization information for users based on the specific location data of device components and the preset authorization information generation algorithm, so that users can use this authorization information to request device system usage rights, realize offline verification, and at the same time, the authorization information is not stored inside the device, which effectively improves the system security and expands the system usage scenarios.
[0004] The embodiment of the present invention provides an authorization management system based on hardware fingerprint, including:
[0005] The authorization information generation module is used to obtain the first specific location data of the hardware component of the target device corresponding to the authorization request, generate the authorization information of the target device according to the first specific location data of the hardware component of the target device and a preset authorization information generation algorithm, and send the authorization information to the user corresponding to the authorization request, so that the user requests the target device system usage permission according to the authorization information.
[0006] In an optional embodiment, the hardware fingerprint-based authorization management system further includes:
[0007] An authorization information verification module is set locally on the device, which is used to read the second specific location data of the hardware component of the target device according to a verification request including the authorization information to be verified and the target device identification, and verify the authorization information to be verified according to the second specific location data and a preset authorization information verification algorithm. After the verification is passed, the user corresponding to the verification request is authorized to use the target device system.
[0008] In an optional embodiment, the authorization information generating module is specifically configured to send the authorization information of the target device to the user corresponding to the authorization request via email / paper record.
[0009] In an optional embodiment, the target device hardware component includes one of a device memory, a storage, and a computing component.
[0010] In an optional embodiment, the authorization information generation module includes:
[0011] A first acquisition unit, configured to acquire first specific location data of a hardware component of a target device and a number of bits of the first specific location data according to the authorization request;
[0012] an authorization information generating unit, configured to calculate authorization information of the target device based on a first formula according to the address code of the first specific position of the hardware component of the target device, the first specific position data, and the number of bits of the first specific position data, and to send the generated authorization information to the user;
[0013] The authorization information verification module includes:
[0014] A receiving unit, used for receiving a verification request;
[0015] A second acquisition unit, used for acquiring second specific location data of a hardware component of a target device according to the authorization information to be verified and a second formula;
[0016] A verification unit, configured to calculate a control value of the system permission granted to the user based on a third formula according to the authorization information to be verified and the second specific location data of the hardware component of the target device; and when the control value is 0, granting the user permission to use the system of the target device;
[0017] Among them, the first formula is:
[0018]
[0019] In the first formula, D 16 (a) represents the value of the ath position in the hexadecimal form of the calculated authorization information of the target device, a=1,2,3,…,2*([len(Y 16 )] 16 +B)];W16 Indicates the address code of the first specific location of the hardware component of the target device, which is in hexadecimal form; B indicates the first address code of the hardware component of the target device. 16 The number of bits corresponding to the first specific position data, Y 16 The first address code W representing the hardware component of the target device 16 The first b bits of the corresponding first specific position data are in hexadecimal format, where b is a random number in [1, B]; len() indicates the total number of bits of the hexadecimal data in the brackets; % indicates remainder; << indicates left shift sign; Represents hexadecimal data {[len(Y 16 )] 16 < <B+W 16} The value of the bit; Indicates the Y 16 No. The value of the bit.
[0020] The second formula is:
[0021] A 16 =y 16 >>(len(y 16 )-L)
[0022] in,
[0023] In the second formula, d 16 Hexadecimal data representing the authorization information of the target device entered by the user; 16 (2×i) represents the value at the 2×ith position in the hexadecimal form of the authorization information of the target device input by the user; i represents an integer variable, << indicates a left shift sign; >> indicates a right shift sign; T 16 Indicates the first intermediate operation data in hexadecimal format; w 16 represents the address code of the second specific position determined according to the authorization information to be verified, in hexadecimal form; L represents the number of bits of the second specific position data determined according to the authorization information to be verified; A 16 The first L bits of the second specific location data of the target device hardware component, y 16 The address encoding w is a second specific location of the target device hardware component 16 corresponding second specific location data;
[0024] The third formula is:
[0025]
[0026] In the third formula, E represents the control value of the system authority granted to the user; P 16 Represents the second intermediate operand data in hexadecimal format.
[0027] In an optional embodiment, the value of B is a preset fixed value;
[0028] or,
[0029] The authorization information generated by the authorization information generation unit carries an extraction bit number tag, where the extraction bit number is equal to the bit number of the first specific position data; the authorization information to be verified in the verification request includes the extraction bit number tag.
[0030] In an optional embodiment, the authorization information verification module further includes:
[0031] A recording unit, configured to store the information of the user authorization verification passed in a local storage space after the verification unit authorizes the target device system to use the authority to the user corresponding to the verification request;
[0032] The login unit is used to retrieve whether there is information in the local storage space that the current logged-in user has passed the authorization verification. If yes, the current logged-in user is authorized to use the target device system; otherwise, the current logged-in user is prompted to enter the authorization information of the target device.
[0033] In an optional embodiment, the verification unit is further used to add 1 to the cumulative value of authorization information errors corresponding to the user when the control value of the system authority granted to the user is 1; wherein the initial value of the cumulative value of authorization information errors is 0.
[0034] The authorization information verification module further includes:
[0035] The error number control module is used to prompt an error message to any user when the cumulative value of authorization information errors corresponding to the user is greater than a preset error threshold, and control the receiving unit to no longer receive the verification request of the user.
[0036] The hardware fingerprint-based authorization management system provided by the present invention can generate device authorization information for the user according to the specific location data of device components and a preset authorization information generation algorithm, so that when the user starts the device, the user can use this authorization information to request device system usage rights, thereby realizing offline verification. At the same time, the authorization information is not stored inside the device, which effectively improves the system security and expands the system usage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of the structure of an authorization management system based on hardware fingerprint provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0040] It should be clear that the described embodiments are only some embodiments of the present invention, not all 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.
[0041] Figure 1 This is a schematic diagram of the hardware fingerprint-based authorization management system provided by an embodiment of the present invention. Figure 1 The system comprises:
[0042] The authorization information generation module 1 is used to obtain the first specific location data of the hardware component of the target device 3 corresponding to the authorization request, generate the authorization information of the target device according to the first specific location data of the hardware component of the target device and the preset authorization information generation algorithm, and send the authorization information to the user 2 corresponding to the authorization request, so that the user 2 requests the system usage permission of the target device 3 according to the authorization information.
[0043] Preferably, the hardware fingerprint-based authorization management system further includes:
[0044] The authorization information verification module 4 locally arranged in the device 3 is used to read the second specific location data of the hardware components of the target device 3 according to a verification request including the authorization information to be verified and the target device identification, and verify the authorization information to be verified according to the second specific location data and a preset authorization information verification algorithm, and after the verification is passed, authorize the user 2 corresponding to the verification request to have the right to use the system of the target device 3.
[0045] The beneficial effects of the above technical solution are as follows: the authorization management system based on hardware fingerprint provided by the present invention, first, when the device leaves the factory, the staff can generate the authorization information of the target device 3 and send it to the user 2 through the authorization information generation module 1 independent of the device 3 according to the specific location data of the hardware component of the target device 3 and the preset authorization information generation algorithm. Then, each time the user 2 starts the device, before the kernel is fully loaded, a special program is used to read the specific location data in the hardware component (such as memory) of the device 3, and then the authorization information verification module 4 set locally in the device 3 is used to verify the correctness of the authorization information input by the user 2 using the preset authorization information verification algorithm, and the device use right is authorized to the user 2 after the verification is correct. The present invention can verify the correctness of the authorization information input by the user according to the specific location data of the device 3 component and the preset authorization information verification algorithm, realizes offline verification, and does not store the authorization information inside the device, effectively improves the system security, and expands the system usage scenario.
[0046] As an optional embodiment, the authorization information generating module 1 is specifically configured to send the authorization information to the user 2 via email / paper record.
[0047] The beneficial effect of the above technical solution is that the authorization information is sent to the user 2 by means of email / paper records, which effectively improves the security of the authorization information transmission and avoids the risk of information leakage. In particular, the authorization information can be encrypted before transmission by email, which will further improve the security of the authorization information transmission.
[0048] As an optional embodiment, the target device hardware component includes one of a device memory, a storage, and a computing component.
[0049] The beneficial effects of the above technical solution are as follows: the hardware components of the device mainly include memory that can be used to store temporary data, storage components (such as hard disks) for long-term data storage, computing components (such as CPUs) for running calculations, etc. These components are the core components of the device. Once they are missing, the device will not be able to operate normally. The specific location data of these components is used as the core parameter for generating authorization information, so that the generated authorization information is unique and has a binding relationship with the device, thereby ensuring the security of the device system.
[0050] As an optional embodiment, the authorization information generation module 1 includes:
[0051] A first acquisition unit, configured to acquire first specific location data of a hardware component of a target device and a number of bits of the first specific location data according to the authorization request;
[0052] an authorization information generating unit, configured to calculate authorization information of the target device based on a first formula according to the address code of the first specific position of the hardware component of the target device, the first specific position data, and the number of bits of the first specific position data, and to send the generated authorization information to the user;
[0053] The authorization information verification module 4 includes:
[0054] A receiving unit, used for receiving a verification request;
[0055] A second acquisition unit, used for acquiring second specific location data of a hardware component of a target device according to the authorization information to be verified and a second formula;
[0056] A verification unit, configured to calculate a control value of the system permission granted to the user based on a third formula according to the authorization information to be verified and the second specific location data of the hardware component of the target device; and when the control value is 0, granting the user permission to use the system of the target device;
[0057] Among them, the first formula is:
[0058]
[0059] In the first formula, D 16 (a) represents the value of the ath position in the hexadecimal form of the calculated authorization information of the target device, a=1,2,3,…,2*([len(Y 16 )] 16 +B)];W 16 Indicates the address code of the first specific location of the hardware component of the target device, which is in hexadecimal form; B indicates the first address code of the hardware component of the target device. 16 The number of bits corresponding to the first specific position data, Y 16 The first address code W representing the hardware component of the target device 16 The first b bits of the corresponding first specific position data are in hexadecimal format, where b is a random number in [1, B]; len() indicates the total number of bits of the hexadecimal data in the brackets; % indicates remainder; << indicates left shift sign; Represents hexadecimal data {[len(Y 16 )] 16 < <B+W 16} The value of the bit; Indicates the Y 16 No. The value of the bit.
[0060] In this embodiment, the value of B is a preset fixed value related to the device hardware, such as a 32-bit computer, where B=4; or the authorization information generated by the authorization information generation unit carries a number of extraction bits tag, and the number of extraction bits is equal to the number of bits of the first specific position data; the authorization information to be verified in the verification request includes the number of extraction bits tag, which is convenient for the subsequent extraction of the second specific position data of the target device hardware component. In addition, taking the 51 single-chip microcomputer as an example, the internal address range of the specific storage address allocation program storage (ROM) of the 51 single-chip microcomputer is hexadecimal 0000-0FFFh, so for the 51 single-chip microcomputer, W 16 The value range of is 0000-0FFFh, then the address code of the specific location of the device ROM can be set to 0111h, and the corresponding storage data is hexadecimal ABCD, B=4, and then a positive integer b less than B can be randomly generated. The value is 3, then Y 16 =ABC, further, W 16 =0111h, B=4, Y 16 Substitute =ABC into the first formula to quickly calculate and obtain the authorization information of the device.
[0061] The second formula is:
[0062] A 16 =y 16 >>(len(y 16 )-L) (2)
[0063] in,
[0064] In the second formula, d 16 Hexadecimal data representing the authorization information of the target device entered by the user; 16 (2×i) represents the value at the 2×ith position in the hexadecimal form of the authorization information of the target device input by the user; i represents an integer variable, << indicates a left shift sign; >> indicates a right shift sign; T 16 Indicates the first intermediate operation data in hexadecimal format; w 16 represents the address code of the second specific position determined according to the authorization information to be verified, in hexadecimal form; L represents the number of bits of the second specific position data determined according to the authorization information to be verified; A 16 The first L bits of the second specific location data of the target device hardware component, y 16 The address encoding w is a second specific location of the target device hardware component 16 corresponding second specific location data;
[0065] The third formula is:
[0066]
[0067] In the third formula, E represents the control value of the system authority granted to the user; P 16 Indicates the second intermediate operation amount data in hexadecimal format. If E≠0, the control does not grant the user system authority; if E=0, the control grants the user system authority.
[0068] The beneficial effects of the above technical solution are as follows: the authorization information is generated by using the first formula (1) according to the specific location data of the device hardware component, the address code of the specific location and the number of bits of the device storage data, and then the authorization information is generated by using the first formula and notified to the authorized user as the authorization password to ensure the security of the authorization information. Compared with the traditional activation code verification algorithm, the advantage is that even if the authorization information verification algorithm is cracked, the algorithm for obtaining the specific location data is not easy to be cracked; then the second formula (2) is used to read the specific location data in the device hardware component (such as memory) according to the authorization information to be verified input by the user, so as to realize the verification according to the user input. The specific location data is obtained by using the information of the specific location. First, the algorithm can ensure the absolute encryption of the specific location data. Second, the specific location data generated after the user enters the wrong authorization information will be very different, ensuring the security and reliability of the system. Finally, the third formula (3) is used to perform data verification based on the authorization information entered by the user and the specific location data extracted by the second formula to determine whether the user has the right to use the system, so as to control the user's authority by comparing the specific location data. Therefore, even if the authorization information verification algorithm is cracked, the algorithm for obtaining the specific location data is not easily cracked. At the same time, the device can be authorized offline without connecting to the external network, which has the advantage of easy operation.
[0069] As an optional embodiment, the authorization information verification module 4 further includes:
[0070] A recording unit, configured to store the information of the user authorization verification passed in a local storage space after the verification unit authorizes the target device system to use the authority to the user corresponding to the verification request;
[0071] The login unit is used to retrieve whether there is information in the local storage space that the current logged-in user has passed the authorization verification. If yes, the current logged-in user is authorized to use the target device system; otherwise, the current logged-in user is prompted to enter the authorization information of the target device.
[0072] The beneficial effect of the above technical solution is that once the authorization information entered by the user is correct, there is no need to enter the authorization information again in the future, achieving the effect of one-time verification and lifelong validity, which will effectively reduce the workload of subsequent legitimate users to enter authorization information and effectively improve the user experience.
[0073] As an optional embodiment, the verification unit is further used to add 1 to the cumulative value of authorization information errors corresponding to the user when the control value of the system authority granted to the user is 1; wherein the initial value of the cumulative value of authorization information errors is 0.
[0074] The authorization information verification module 4 further includes:
[0075] The error number control module is used to prompt an error message to any user when the cumulative value of authorization information errors corresponding to the user is greater than a preset error threshold, and control the receiving unit to no longer receive the verification request of the user.
[0076] The beneficial effect of the above technical solution is: the incorrect authorization information entered by the user is cumulatively counted, and when this count value reaches a certain threshold, such as 10 times, the authorization information entered by the user will no longer be verified, thereby effectively avoiding malicious persons from brute force cracking the authorization information, thereby ensuring the security of the authorization information.
[0077] It can be seen from the content of the above embodiment that after the device leaves the factory, the authorization information is generated by data fusion based on the specific location data of the device hardware component, the address code of the specific location, and the number of bits of the device hardware component to store data. When the user needs to use the device hardware of the system, the user first needs to input the authorization information, read the specific location data in the hardware (such as memory) through the authorization information, and finally verify the specific location data. After the verification is completed, it can be determined whether to authorize the user to use the system. The present invention does not store the authorization information inside the device, which effectively improves the security of the system and makes the authorization information difficult to crack; it also realizes offline verification and expands the application scenarios of the system.
[0078] 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.
[0079] 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.
[0080] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0081] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these changes and variations. The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. The authorization management system based on hardware fingerprint is characterized by: include: An authorization information generation module is used to obtain first location data of a hardware component of a target device corresponding to an authorization request, generate authorization information of the target device according to the first location data of the hardware component of the target device and a preset authorization information generation algorithm, and send the authorization information to a user corresponding to the authorization request, so that the user requests system usage rights of the target device according to the authorization information; The system also includes: An authorization information verification module is provided locally on the device, and is used to read the second location data of the hardware component of the target device according to a verification request including the authorization information to be verified and the target device identifier, and verify the authorization information to be verified according to the second location data and a preset authorization information verification algorithm, and authorize the user corresponding to the verification request to use the target device system after the verification is passed; Wherein, the authorization information generation module includes: A first acquisition unit, configured to acquire first position data of a hardware component of a target device and a number of bits of the first position data according to the authorization request; an authorization information generating unit, configured to calculate authorization information of the target device based on a first formula according to the address code of the first position of the hardware component of the target device, the first position data, and the number of bits of the first position data, and to send the generated authorization information to the user; The authorization information verification module includes: A receiving unit, used for receiving a verification request; A second acquisition unit, used for acquiring second position data of a hardware component of the target device according to the authorization information to be verified and a second formula; a verification unit, configured to calculate a control value of the system permission granted to the user based on a third formula according to the authorization information to be verified and the second position data of the hardware component of the target device, and to grant the user permission to use the system of the target device when the control value is 0; Among them, the first formula is: In the first formula, D 16 (a) represents the value at the ath position in the hexadecimal form of the calculated authorization information of the target device, a=1, 2, 3, ..., 2*([len(Y 16 )] 16 +B); W 16 Indicates the address code of the first position of the hardware component of the target device, which is in hexadecimal form; B indicates the first address code of the hardware component of the target device. 16 The number of bits corresponding to the first position data, Y 16 The first address code W representing the hardware component of the target device 16 The first b bits of the corresponding first position data are in hexadecimal format, where b is a random number in [1, B]; len() indicates the total number of bits of the hexadecimal data in the brackets; % indicates remainder; << indicates left shift sign; Represents hexadecimal data {[len(Y 16 )] 16 < <B+W 16 } The value of the bit; Indicates the Y 16 No. The value of the bit; The second formula is: TO 16 =and 16 (len(and 16 )-L) in, In the second formula, d 16 Hexadecimal data representing the authorization information of the target device entered by the user; 16 (2×i) represents the value at the 2×ith position in the hexadecimal form of the authorization information of the target device input by the user; i represents an integer variable, << indicates a left shift sign; >> indicates a right shift sign; T 16 Indicates the first intermediate operation data in hexadecimal format; w 16 represents the address code of the second position determined according to the authorization information to be verified, in hexadecimal form; L represents the number of bits of the second position data determined according to the authorization information to be verified; A 16 The first L bits of the second position data of the target device hardware component, y 16 The address encoding w of the second location of the target device hardware component 16 corresponding second position data; The third formula is: In the third formula, E represents the control value of the system authority granted to the user; P 16 Represents the second intermediate operand data in hexadecimal format.
2. The hardware fingerprint-based authorization management system according to claim 1, characterized in that: The authorization information generation module is specifically used to send the authorization information of the target device to the user corresponding to the authorization request by means of email / paper record.
3. The hardware fingerprint-based authorization management system according to claim 1, characterized in that: The target device hardware component includes one of a device memory, a storage, and a computing component.
4. The hardware fingerprint-based authorization management system according to claim 1, characterized in that: The value of B is a preset fixed value; or, The authorization information generated by the authorization information generation unit carries an extraction bit number tag, and the extraction bit number is equal to the bit number of the first position data; The authorization information to be verified in the verification request includes an extraction bit number tag.
5. The hardware fingerprint-based authorization management system according to claim 1, characterized in that: The authorization information verification module further includes: A recording unit, configured to store the information of the user authorization verification passed in a local storage space after the verification unit authorizes the target device system to use the authority to the user corresponding to the verification request; The login unit is used to retrieve whether there is information in the local storage space that the current logged-in user has passed the authorization verification. If yes, the current logged-in user is authorized to use the target device system; otherwise, the current logged-in user is prompted to enter the authorization information of the target device.
6. The hardware fingerprint-based authorization management system according to claim 1, characterized in that: The verification unit is further configured to add 1 to the cumulative value of authorization information errors corresponding to the user recorded when the control value of the system authority granted to the user is 1; wherein the initial value of the cumulative value of authorization information errors is 0; The authorization information verification module further includes: The error number control module is used to prompt an error message to any user when the cumulative value of authorization information errors corresponding to the user is greater than a preset error threshold, and control the receiving unit to no longer receive the verification request of the user.
