Novel machine code generation and authorization method, system and equipment based on linux host
By extracting and encrypting feature values on Linux hosts to generate unique machine codes, combined with the authorization management system, the problem of unstable machine code acquisition in virtual machines and edge devices is solved, and the reliability and security of authorization management are improved.
Patent Information
- Application Number
- CN202411154800.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-03
AI Technical Summary
Traditional machine code acquisition methods cannot provide unique identifiers stably in complex environments such as virtual machines and edge devices, resulting in increased complexity of software authorization management and the risk of authorization failure.
By accessing the specific interface of the Linux host or calling system commands, system information is obtained, feature values are extracted, and a unique machine code based on feature values is generated using encryption algorithms, and a verification and management is carried out in combination with the authorization management system.
It realizes the stable generation and management of machine codes in environments such as virtual machines and edge devices, improves the accuracy of device identification and the reliability of software authorization, and enhances the security and stability of the system.
Smart Images

Figure CN119066715A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of device authorization management, and in particular to a novel machine code generation and authorization method, system and device based on a Linux host. Background Art
[0002] In the current computer environment, machine code, as a unique device identifier, is of great significance for various application scenarios such as software authorization management and device identification. However, existing machine code acquisition methods have certain limitations in certain specific situations. In particular, in complex operating environments such as virtual machines and edge devices, traditional machine code acquisition technologies often cannot stably provide unique and unchanging identifiers.
[0003] Traditionally, machine code acquisition mainly relies on the hardware information of the device, such as the motherboard number. This method can usually obtain an effective and unique identification on a physical machine. However, in special environments such as virtual machines or edge devices, due to hardware abstraction or dynamic allocation of hardware resources, machine code acquisition based on hardware information becomes difficult and unstable.
[0004] Therefore, in scenarios such as virtual machines and edge devices, the traditional machine code acquisition method that relies on hardware information often cannot stably obtain valid machine codes, which directly leads to increased complexity in software authorization management in these environments, and may even cause authorization failure or management difficulties. These problems need to be solved urgently to improve the accuracy of device identification and the reliability of software authorization. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a novel machine code generation and authorization method, system and device based on a Linux host, which solves the technical problems that the traditional machine code acquisition technology that relies on hardware information has limitations, is difficult to stably provide a unique identifier, and increases the complexity and risk of software authorization management.
[0007] (II) Technical solution
[0008] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0009] In a first aspect, an embodiment of the present invention provides a novel machine code generation and authorization method based on a Linux host, comprising:
[0010] Obtain system information by accessing a specific interface of the Linux host or calling a system command, and extract one or more characteristic values representing system characteristics from the system information;
[0011] One or more encryption algorithms are used to take the extracted feature values as input and combine with dynamic data to generate a unique machine code based on the feature values;
[0012] The generated unique machine code is combined with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
[0013] Optionally, obtaining system information by accessing a specific interface of a Linux host or calling a system command, and extracting one or more characteristic values representing system characteristics from the system information includes:
[0014] Access the specific interface of the Linux host remotely or locally, or call system commands on the Linux host to obtain system information;
[0015] Collect system information of Linux hosts after successfully accessing a specific interface or executing a system command;
[0016] Using one or more preset feature value extraction algorithms, the system information collected from the Linux host is analyzed and processed to extract one or more feature values representing system characteristics;
[0017] Verification of the eigenvalues generated by multiple different Linux hosts includes verifying the uniqueness of the eigenvalues by internal logic judgment or comparing historical data in the database, automatically testing and verifying the discrimination of the eigenvalues by comparing the eigenvalues of multiple different Linux hosts, and verifying the stability of the eigenvalues by extracting the eigenvalues generated by the same Linux host multiple times;
[0018] Based on the verification results, the eigenvalue extraction algorithm and process are optimized automatically or according to the received adjustment instructions, including adjusting the algorithm parameters and increasing or decreasing the source of the eigenvalue.
[0019] Optionally, the feature value extraction algorithm includes: at least one of a hash function and a checksum algorithm;
[0020] The system information includes: at least one of an operating system version, a kernel version, a list of installed software packages, and version information of installed software packages;
[0021] The characteristic value may be in the form of: a hash value of a key configuration file, a hash value of a kernel file, a hash value of a list of software packages to be installed, and a hash value of version information of installed software packages.
[0022] Optionally, one or more encryption algorithms are used to take the extracted feature value as input and combine it with dynamic data to generate a unique machine code based on the feature value, including:
[0023] Trigger the selection of one or more encryption algorithms and keys periodically or based on specific events, and configure the parameters of the selected encryption algorithm including key length, encryption mode, and padding method;
[0024] Introduce dynamic data including the current timestamp, the random number generated by the random number generator, and the MAC address, and combine them with the feature value by string concatenation or hash mixing to form a string to be encrypted;
[0025] Perform at least one round of encryption on the string to be encrypted using the configured encryption algorithm and the preset key;
[0026] The encrypted ciphertext is processed through encoding conversion, and the encoded ciphertext is output as a unique machine code.
[0027] Optionally, after the encrypted ciphertext is processed by encoding conversion and the encoded ciphertext is output as a unique machine code, the method further includes:
[0028] Constructing a verification matching function, the verification matching function is configured to receive the unique machine code and the feature value as input;
[0029] By verifying the matching function, the unique machine code is decrypted using the same encryption algorithm and key as used to encrypt the machine code to obtain the decrypted data;
[0030] Perform preprocessing operations on the decrypted data and feature values, including removing irrelevant characters, converting to lowercase, and standardizing data;
[0031] Create a two-dimensional dynamic programming table for storing the minimum edit distance from the position of the decrypted data after the preprocessing operation to the position of the feature value;
[0032] For each position, calculate the cost of replacement, insertion and deletion operations, and select the minimum cost as the minimum edit distance of the current position to fill the two-dimensional dynamic programming table;
[0033] After filling the entire dynamic programming table, the last cell value of the two-dimensional dynamic programming table is used as the minimum edit distance between the decrypted data and the feature value after the preprocessing operation;
[0034] By verifying the matching function, the calculated minimum edit distance is fuzzily matched with the set threshold;
[0035] If the minimum edit distance is less than or equal to the threshold, the verification passes;
[0036] If the minimum edit distance is greater than the threshold, the verification fails, the invalid machine code record is automatically cleared, and a new unique machine code is recalculated and generated based on the feature value and dynamic data.
[0037] Optionally, the generated unique machine code is combined with an authorization management system established on the center side so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host, including:
[0038] In the authorization management system established at the center, create a database for storing and managing machine codes;
[0039] The unique machine code of each Linux host is transmitted to the preset authorization management system, so that the database of the authorization management system receives and stores each unique machine code, and establishes an association relationship between the machine code and the corresponding Linux host;
[0040] When a Linux host requests access or performs a specific operation, the unique machine code of the Linux host is extracted from the request, and the authorization information corresponding to the machine code is queried in the authorization management system to determine whether the Linux host has the right to access or use the requested resources.
[0041] If the authorization information is valid, access is allowed;
[0042] If the authorization information is invalid, access is denied and corresponding log information is recorded;
[0043] The authorization management system uses machine code to track and manage the authorization status of each Linux host, and updates the authorization status information of each host in the database regularly or when a specific event is triggered.
[0044] Optionally, it also includes:
[0045] A distributed machine code verification network is built on the central side. The machine code verification network includes multiple verification nodes. Each verification node is an independent server or computing instance, which is used to independently verify the machine code and synchronize with the authorization management system regularly.
[0046] A load balancer is configured in the machine code verification network to receive requests from the Linux host and dynamically distribute the requests to different verification nodes according to the real-time load of each verification node;
[0047] When a Linux host initiates a verification request, it is forwarded to the selected verification node through the load balancer for independent verification, so that the verification node feeds back the verification result to the load balancer and synchronizes it to the authorization management system;
[0048] The verification result is returned to the corresponding Linux host through the load balancer.
[0049] In a second aspect, an embodiment of the present invention provides a novel machine code generation and authorization system based on a Linux host, comprising:
[0050] A feature value acquisition module is used to obtain system information by accessing a specific interface of the Linux host or calling a system command, and to extract one or more feature values representing system characteristics from the system information;
[0051] A machine code generation module, for using one or more encryption algorithms, taking the extracted feature values as input, and combining the dynamic data to generate a unique machine code based on the feature values;
[0052] The authorization module is used to combine the generated unique machine code with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
[0053] In a third aspect, an embodiment of the present invention provides a novel machine code generation and authorization device based on a Linux host, comprising:
[0054] A computer, comprising at least one database and a memory in communication with the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the novel machine code generation and authorization method based on a Linux host as described above;
[0055] And, an authorization management system established on the center side interacts with the computer and is used to combine with the generated unique machine code to use the unique machine code to verify, track and manage the authorization status of each Linux host.
[0056] Optionally, it also includes: a distributed machine code verification network constructed on the center side, the machine code verification network including multiple verification nodes and a load balancer;
[0057] Each verification node is an independent server or computing instance that is used to independently verify machine code and synchronize with the authorization management system regularly;
[0058] The load balancer is used to receive requests from the Linux host and dynamically allocate requests to different verification nodes based on the real-time load conditions of each verification node.
[0059] (III) Beneficial effects
[0060] The beneficial effects of the present invention are:
[0061] First, by accessing the specific interface of the Linux host or calling system commands, this method can accurately obtain system information and extract key feature values from it. This can not only accurately reflect the characteristics of the system, but also improve the flexibility and adaptability of machine code generation.
[0062] Secondly, encryption algorithms are used in combination with dynamic data to generate unique machine codes based on these characteristic values. This method not only provides a stable and reliable basis for generating machine codes, but also makes the entire process no longer dependent on hardware information, thereby greatly enhancing its flexibility and adaptability. It can easily cope with different types of hosts such as physical machines, virtual machines, and edge devices.
[0063] Furthermore, combining the generated unique machine code with the authorization management system on the central side not only enables the system to use this unique identifier to verify and manage the authorization status of each Linux host, but also effectively ensures the legal use of the device. Through this method, the security and immutability of the authorization information are significantly improved, effectively preventing the authorization information from being maliciously tampered with or misused, thereby comprehensively improving the security and stability of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic flow chart of a novel method for generating and authorizing machine code based on a Linux host provided by an embodiment of the present invention;
[0065] Figure 2 A specific flow chart of step S1 of a novel method for generating and authorizing machine code based on a Linux host provided by an embodiment of the present invention;
[0066] Figure 3 A specific flow chart of step S2 of a novel method for generating and authorizing machine code based on a Linux host provided by an embodiment of the present invention;
[0067] Figure 4 A specific flow chart after step S24 of a novel Linux-based machine code generation and authorization method provided by an embodiment of the present invention;
[0068] Figure 5 A specific flow chart of step S3 of a novel method for generating and authorizing machine code based on a Linux host provided by an embodiment of the present invention;
[0069] Figure 6 The present invention provides a novel Linux host-based machine code generation and authorization method according to an embodiment of the present invention, which is a specific flow chart after step S3. DETAILED DESCRIPTION
[0070] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0071] like Figure 1 As shown, an embodiment of the present invention proposes a novel machine code generation and authorization method based on a Linux host, comprising: first, obtaining system information by accessing a specific interface of the Linux host or calling a system command, and extracting one or more characteristic values representing system characteristics from the system information; second, using one or more encryption algorithms, taking the extracted characteristic values as input, and combining dynamic data to generate a unique machine code based on the characteristic values; finally, combining the generated unique machine code with an authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
[0072] First, by accessing the specific interface of the Linux host or calling system commands, this method can accurately obtain system information and extract key feature values from it. This can not only accurately reflect the characteristics of the system, but also improve the flexibility and adaptability of machine code generation.
[0073] Secondly, encryption algorithms are used in combination with dynamic data to generate unique machine codes based on these characteristic values. This method not only provides a stable and reliable basis for generating machine codes, but also makes the entire process no longer dependent on hardware information, thereby greatly enhancing its flexibility and adaptability. It can easily cope with different types of hosts such as physical machines, virtual machines, and edge devices.
[0074] Furthermore, combining the generated unique machine code with the authorization management system on the central side not only enables the system to use this unique identifier to verify and manage the authorization status of each Linux host, but also effectively ensures the legal use of the device. Through this method, the security and immutability of the authorization information are significantly improved, effectively preventing the authorization information from being maliciously tampered with or misused, thereby comprehensively improving the security and stability of the entire system.
[0075] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0076] Specifically, the embodiment of the present invention provides a novel machine code generation and authorization method based on a Linux host, comprising:
[0077] S1. Obtain system information by accessing a specific interface of a Linux host or calling a system command, and extract one or more characteristic values representing system characteristics from the system information.
[0078] Furthermore, if Figure 2 As shown, step S1 includes:
[0079] S11. Access a specific interface of the Linux host remotely or locally, or call a system command on the Linux host to obtain system information.
[0080] Use SSH, Telnet or other remote access protocols to connect to the Linux host, or operate directly on the local host.
[0081] S12. After successfully accessing a specific interface or executing a system command, collect system information of the Linux host.
[0082] Execute a series of predefined system commands, such as uname -a, lsb_release -a, dmidecode, lscpu, etc., to obtain system information, or read system information by accessing Linux file system interfaces such as / sys and / proc. The system information includes at least one of: operating system version, kernel version, installed software package list, and installed software package version information.
[0083] S13. Using one or more preset feature value extraction algorithms, analyze and process the system information collected from the Linux host, and extract one or more feature values that characterize system characteristics.
[0084] Apply one or more algorithms, such as hash functions (such as SHA-256), checksum algorithms, etc., to process the collected system information to generate unique feature values. The feature values include: hash values of key configuration files, hash values of kernel files, hash values of lists of installed software packages, and hash values of version information of installed software packages.
[0085] S14. Verification of the characteristic values generated by multiple different Linux hosts includes verifying the uniqueness of the characteristic values by internal logical judgment or comparing the historical data in the database, automatically testing and verifying the discrimination of the characteristic values by comparing the characteristic values of multiple different Linux hosts, and verifying the stability of the characteristic values by extracting the characteristic values generated by the same Linux host multiple times.
[0086] The generated eigenvalues are verified by comparing the eigenvalues of different Linux hosts to test and confirm their uniqueness and discrimination. If duplicate eigenvalues are found or the discrimination is insufficient, the extraction process is adjusted until the uniqueness and discrimination requirements are met.
[0087] S15. According to the verification result, automatically or according to the received adjustment instruction, the eigenvalue extraction algorithm and process are optimized including adjusting the algorithm parameters and increasing or decreasing the source of the eigenvalue.
[0088] Analyze and evaluate the efficiency and accuracy issues that may exist in the feature value extraction process; based on the evaluation results, optimize the feature value extraction algorithm and / or adjust the strategy for collecting system information to improve the efficiency and accuracy of machine code generation.
[0089] S2. Use one or more encryption algorithms, take the extracted feature value as input, and combine it with dynamic data to generate a unique machine code based on the feature value.
[0090] Furthermore, if Figure 3 As shown, step S2 includes:
[0091] S21. Trigger the selection of one or more encryption algorithms and keys periodically or according to specific events, and configure the parameters of the selected encryption algorithm including key length, encryption mode and padding method.
[0092] Select one or more encryption algorithms from recognized encryption algorithm libraries, such as OpenSSL, such as AES-256, RSA-2048, or higher-level encryption algorithms. According to the selected encryption algorithm, configure the corresponding key length, encryption mode (such as CBC, ECB, etc.), padding method (such as PKCS7) and other parameters to ensure encryption strength. At the same time, implement a strict key management policy, including regular key replacement, using hardware security modules (HSM) to store keys, and ensure the security of keys during transmission and storage.
[0093] S22. Introduce dynamic data including the current timestamp, the random number generated by the random number generator, and the MAC address, and combine them with the characteristic value by string concatenation or hash mixing to form a string to be encrypted.
[0094] Dynamic data is combined with the feature value to be encrypted. The combination can be simple string concatenation or more complex methods such as hash mixing. If the feature value contains special characters such as unnecessary spaces and line breaks, it will be cleaned and formatted. For non-numeric feature values, such as software package lists, they will be converted into fixed-length hash values through hash functions (such as SHA-256).
[0095] S23: Use the configured encryption algorithm and the preset key to perform at least one round of encryption on the character string to be encrypted.
[0096] In this process, a combination of one or more encryption algorithms can be used, and each round of encryption can use a different key or algorithm. The purpose of this is to enhance data security.
[0097] S24, the encrypted ciphertext is processed by encoding conversion, and the encoded ciphertext is output as a unique machine code.
[0098] The encrypted ciphertext is converted through Base64 or other appropriate encoding methods (such as Hex encoding) to ensure that the ciphertext can be safely transmitted and stored in various text environments. In addition, the encoded machine code should be readable, verifiable, and error-prone to facilitate the subsequent software authorization verification process.
[0099] In a specific embodiment, first, AES-256 is selected from the OpenSSL library as the main encryption algorithm. Set the key length of AES-256 to 256 bits, the encryption mode to CBC, and the padding method to PKCS7. Get the MAC address of the current device (for example: 00:1A:2B:3C:4D:5E). Get the current timestamp (for example: 20230917123456) and a random number (for example: 7890). Then, remove the colon in the MAC address and convert it to 001A2B3C4D5E. Concatenate the timestamp, random number and cleaned MAC address into a string to be encrypted, such as 202309171234567890001A2B3C4D5E. Afterwards, encrypt the above string to be encrypted at least once using the configured AES-256 algorithm and key. Finally, convert the encrypted binary ciphertext into a Base64-encoded string for secure transmission and storage in a text environment.
[0100] The above process ensures the security of data and enhances the complexity and unpredictability of encryption through dynamic data and multiple encryption algorithms, making the generated machine code unique and difficult to forge or tamper with.
[0101] Furthermore, after step S24, Figure 4 As shown, it also includes:
[0102] S241. Construct a verification matching function, where the verification matching function is configured to receive a unique machine code and a feature value as input.
[0103] S242. By verifying the matching function, the unique machine code is decrypted using the same encryption algorithm and key as used to encrypt the machine code to obtain decrypted data.
[0104] S243, performing preprocessing operations on the decrypted data and feature values, including removing irrelevant characters, converting to lowercase, and standardizing the data.
[0105] Specifically, removing irrelevant characters means removing non-key characters such as spaces and punctuation marks from the string. Converting to lowercase means converting all strings to lowercase to eliminate the impact of case differences on matching results. Standardizing data means formatting data in specific fields, such as date and time, to ensure consistency in data format.
[0106] S244, creating a two-dimensional dynamic programming table for storing the minimum edit distance from the position of the decrypted data after the preprocessing operation to the position of the eigenvalue. The edit distance is an indicator of the difference between the decrypted data and the eigenvalue, indicating the minimum number of operations required to convert the decrypted data into the eigenvalue through insertion, deletion and substitution operations.
[0107] S245. For each position, calculate the cost of replacement, insertion and deletion operations, and select the minimum cost as the minimum edit distance of the current position to fill the two-dimensional dynamic programming table.
[0108] S246: After the entire dynamic programming table is filled, the last cell value (preferably, the lower right corner value) of the two-dimensional dynamic programming table is used as the minimum edit distance between the decrypted data after the preprocessing operation and the feature value.
[0109] In a specific embodiment, first, a two-dimensional dynamic programming table (dp_table) is created to store the minimum edit distance from a certain position of the decrypted data (decrypted_data) to a certain position of the feature value (feature_value). The size of this table is (len(decrypted_data)+1) rows and (len(feature_value)+1) columns, plus 1 to consider the case of an empty string. Next, traverse each character of decrypted_data and feature_value, calculate the cost of replacement, insertion and deletion operations, and select the minimum cost to fill dp_table. After filling the entire dp_table, the last cell value of dp_table (usually the lower right corner value) is the minimum edit distance between decrypted_data and feature_value.
[0110] S247: By verifying the matching function, fuzzy matching is performed between the calculated minimum edit distance and the set threshold.
[0111] S248. If the minimum edit distance is less than or equal to the threshold, the verification is passed; if the minimum edit distance is greater than the threshold, the verification fails, the invalid machine code record is automatically cleared, and a new unique machine code is recalculated and generated based on the feature value and dynamic data.
[0112] In this step, the present invention introduces an innovative fuzzy matching algorithm, which can match the decrypted data and the received feature value within a certain error range, thereby coping with incomplete matching caused by slight data changes or transmission errors, and improving the flexibility and accuracy of verification.
[0113] S3. Combine the generated unique machine code with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
[0114] Furthermore, if Figure 5 As shown, step S3 includes:
[0115] S31. In the authorization management system established at the center, create a database for storing and managing machine codes.
[0116] S32, transmitting the unique machine code of each Linux host to a preset authorization management system, so that the database of the authorization management system receives and stores each unique machine code, and establishes an association relationship between the machine code and the corresponding Linux host.
[0117] S33. When the Linux host requests to access or perform a specific operation, the unique machine code of the Linux host is extracted from the request, and the authorization information corresponding to the machine code is queried in the authorization management system to determine whether the Linux host has the right to access or use the requested resources.
[0118] S34a. If the authorization information is valid, access is allowed.
[0119] S34b. If the authorization information is invalid, access is denied and corresponding log information is recorded.
[0120] S35. Use machine code to track and manage the authorization status of each Linux host through the authorization management system, and update the authorization status information of each host in the database regularly or when a specific event is triggered.
[0121] In order to improve the efficiency of machine code verification and the reliability of the system, the computer designed and built a distributed machine code verification network on the central side. The advantage of this network architecture is that it can distribute the verification tasks to multiple nodes, thereby reducing the load of a single server, improving the overall processing speed, and enhancing the fault tolerance of the system. Specifically, Figure 6As shown, the method also includes:
[0122] S36. Construct a distributed machine code verification network on the central side. The machine code verification network includes multiple verification nodes. Each verification node is an independent server or computing instance with complete machine code verification functions. It is used to independently verify the machine code and is regularly synchronized with the authorization management system.
[0123] S37. A load balancer is configured in the machine code verification network to receive requests from the Linux host and dynamically distribute the requests to different verification nodes according to the real-time load of each verification node. This ensures that the load of each node is relatively balanced and avoids single-point overload.
[0124] S38. When the Linux host initiates a verification request, it is forwarded to the selected verification node through the load balancer for independent verification, so that the verification node feeds back the verification result to the load balancer and synchronizes it to the authorization management system.
[0125] S39. Return the verification result to the corresponding Linux host through the load balancer.
[0126] In a specific embodiment, the above verification process includes: when the Linux host client initiates a machine code verification request, the request is first sent to the load balancer. The load balancer selects a suitable node based on the current load of each verification node and forwards the verification request to it. After receiving the request, the verification node independently verifies the validity of the machine code. This includes steps such as checking the format of the machine code, the correctness of the encryption algorithm, and comparing it with the authorization information stored in the database. After the verification is completed, the verification node returns the verification result to the load balancer, and the load balancer then forwards the result to the Linux host client.
[0127] At the same time, the embodiment of the present invention also provides a node failure processing step: in a distributed machine code verification network, even if some verification nodes fail or cannot work properly, other nodes can still continue to process verification requests. The load balancer monitors the status of each node in real time. When a node failure is found, it will automatically remove it from the distribution list to ensure that the request will not be sent to the failed node. In addition, data redundancy and backup steps are provided: in order to improve the reliability of data, key data in the verification network (such as the authorization information database) will be redundantly stored and regularly backed up. In this way, even if some data is lost or damaged, it can be quickly restored to ensure the continuity of the verification service.
[0128] In addition, the embodiment of the present invention provides a novel machine code generation and authorization system based on a Linux host, comprising:
[0129] The characteristic value acquisition module is used to obtain system information by accessing a specific interface of the Linux host or calling a system command, and extract one or more characteristic values representing system characteristics from the system information.
[0130] The machine code generation module is used to use one or more encryption algorithms, take the extracted feature values as input, and combine with dynamic data to generate a unique machine code based on the feature values.
[0131] The authorization module is used to combine the generated unique machine code with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
[0132] Furthermore, an embodiment of the present invention provides a novel machine code generation and authorization device based on a Linux host, comprising: a computer, comprising at least one database and a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the novel machine code generation and authorization method based on the Linux host described above; and an authorization management system established on the center side, the authorization management system interacts with the computer, and is used to combine with the generated unique machine code, and use the unique machine code to verify, track and manage the authorization status of each Linux host.
[0133] The device is mainly composed of two parts: one part is a computer, which is equipped with at least one powerful database and a memory closely connected to the database. The special feature of this memory is that it stores a series of instructions that can be executed by the database. When these instructions are executed by the database, they can drive the database to implement the novel machine code generation and authorization method based on the Linux host.
[0134] Another key part is the authorization management system on the center side. This system interacts with computers and uses the unique machine code generated by the computer to perform multiple tasks. First, it uses this unique machine code to perform strict verification to ensure that each Linux host has a unique identity. Secondly, the system also uses this machine code to track the status of each Linux host, whether it is a location change or performance status, it can be monitored in real time. Finally, this authorization management system is also responsible for managing the authorization status of each Linux host, effectively preventing the risk of unauthorized access and data leakage.
[0135] In general, this new device achieves comprehensive, detailed and efficient management of Linux hosts through a highly integrated computer system and a central-side authorization management system, greatly improving the security and ease of use of the system.
[0136] Furthermore, the device also includes: a distributed machine code verification network constructed on the center side, the machine code verification network includes multiple verification nodes and a load balancer. Each verification node is an independent server or computing instance, which is used to independently verify the machine code and synchronize with the authorization management system regularly. The load balancer is used to receive requests from the Linux host and dynamically allocate requests to different verification nodes according to the real-time load of each verification node.
[0137] This distributed machine code verification network consists of multiple verification nodes and a load balancer, forming a powerful verification system. Each verification node is an independent server or computing instance that can independently perform machine code verification. This distributed architecture not only improves the parallel processing capability of verification, but also enhances the stability and fault tolerance of the system.
[0138] To maintain data consistency, each verification node will regularly synchronize with the authorization management system to ensure that the information used in the verification process is up-to-date and accurate.
[0139] In addition, the introduction of the load balancer enables the system to process requests from Linux hosts more efficiently. When a Linux host initiates a verification request, the load balancer will dynamically distribute the request to the verification node with a lighter load based on the real-time load of each verification node. This dynamic load balancing mechanism ensures that each verification node can be used evenly, thereby avoiding the situation where some nodes are overloaded while other nodes are idle, greatly improving the overall performance and response speed of the system.
[0140] In summary, the embodiments of the present invention provide a novel machine code generation and authorization method, system and device based on Linux host. The core of this solution is to generate stable and reliable machine code by extracting and encrypting the characteristic values of the Linux system, and then combine it with the authorization management system to achieve accurate verification and comprehensive management of the device authorization status.
[0141] Specifically, the advantages of the present invention are embodied in the following aspects:
[0142] (1) Innovatively, the unique machine code is generated by extracting the characteristic values in the Linux system and applying the encryption algorithm. This method gets rid of the dependence on hardware information, thus significantly improving the stability and reliability of obtaining the machine code.
[0143] (2) By closely integrating the generated machine code with the authorization management system, real-time verification and effective management of the device authorization status are achieved, ensuring the legal use of the device and safeguarding the company's intellectual property rights.
[0144] (3) In order to ensure the security of the machine code, a public key encryption algorithm is used to encrypt it. This measure not only ensures that the machine code cannot be tampered with, but also effectively prevents the authorization information from being maliciously used, thereby greatly improving the security protection capability and stability of the entire system.
[0145] (4) The present invention is no longer limited to specific hardware information, but through the flexible extraction and encryption of Linux system feature values, the generation of machine code is more universal and adaptable. This means that whether it is a physical machine, a virtual machine or an edge device, the present invention can provide effective machine code generation and authorization services for it, thereby meeting the diverse application needs as well as the cross-platform and compatibility requirements.
[0146] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.
[0147] It will be appreciated by those skilled in the art 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 a complete hardware embodiment, a complete software embodiment, or an embodiment 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, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0148] 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 box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.
[0149] It should be noted that in the scheme of the present invention, any figure mark between brackets should not be understood as limiting the scheme of the present invention. The word "comprising" does not exclude the existence of components or steps not listed in the scheme of the present invention. The word "one" or "an" preceding a component does not exclude the existence of multiple such components. The present invention can be implemented with the aid of hardware including several different components and with the aid of appropriately programmed computers. In the scheme of the present invention that lists several devices, several of these devices can be embodied by the same hardware. The use of the words first, second, third, etc. is only for convenience of expression and does not indicate any order. These words can be understood as part of the name of the component.
[0150] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0151] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the present invention should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0152] Obviously, those skilled in the art can make various modifications and variations 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 belong to the scope of the present invention and its equivalent technology, the present invention should also include these modifications and variations.
Claims
1. A new machine code generation and authorization method based on Linux host, It is characterized in that include: Obtain system information by accessing a specific interface of the Linux host or calling a system command, and extract one or more characteristic values representing system characteristics from the system information; One or more encryption algorithms are used to take the extracted feature values as input and combine with dynamic data to generate a unique machine code based on the feature values; The generated unique machine code is combined with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
2. The novel Linux-based machine code generation and authorization method as claimed in claim 1, It is characterized in that By accessing the specific interface of the Linux host or calling system commands, the system information is obtained, and one or more characteristic values representing the system characteristics are extracted from the system information, including: Access the specific interface of the Linux host remotely or locally, or call system commands on the Linux host to obtain system information; Collect system information of Linux hosts after successfully accessing a specific interface or executing a system command; Using one or more preset feature value extraction algorithms, the system information collected from the Linux host is analyzed and processed to extract one or more feature values representing system characteristics; Verification of the eigenvalues generated by multiple different Linux hosts includes verifying the uniqueness of the eigenvalues by internal logic judgment or comparing historical data in the database, automatically testing and verifying the discrimination of the eigenvalues by comparing the eigenvalues of multiple different Linux hosts, and verifying the stability of the eigenvalues by extracting the eigenvalues generated by the same Linux host multiple times; Based on the verification results, the eigenvalue extraction algorithm and process are optimized automatically or according to the received adjustment instructions, including adjusting the algorithm parameters and increasing or decreasing the source of the eigenvalue.
3. The novel Linux-based machine code generation and authorization method as claimed in claim 2, It is characterized in that The feature value extraction algorithm includes: at least one of a hash function and a checksum algorithm; The system information includes: at least one of an operating system version, a kernel version, a list of installed software packages, and version information of installed software packages; The characteristic value may be in the form of: a hash value of a key configuration file, a hash value of a kernel file, a hash value of a list of software packages to be installed, and a hash value of version information of installed software packages.
4. The novel Linux-based machine code generation and authorization method as claimed in claim 1, It is characterized in that Using one or more encryption algorithms, taking the extracted feature value as input, and combining it with dynamic data to generate a unique machine code based on the feature value includes: Trigger the selection of one or more encryption algorithms and keys periodically or based on specific events, and configure the parameters of the selected encryption algorithm including key length, encryption mode, and padding method; Introduce dynamic data including the current timestamp, the random number generated by the random number generator, and the MAC address, and combine them with the feature value by string concatenation or hash mixing to form a string to be encrypted; Perform at least one round of encryption on the string to be encrypted using the configured encryption algorithm and the preset key; The encrypted ciphertext is processed through encoding conversion, and the encoded ciphertext is output as a unique machine code.
5. The novel Linux-based machine code generation and authorization method as claimed in claim 4, It is characterized in that After the encrypted ciphertext is processed through encoding conversion and the encoded ciphertext is output as a unique machine code, it also includes: Constructing a verification matching function, the verification matching function is configured to receive the unique machine code and the feature value as input; By verifying the matching function, the unique machine code is decrypted using the same encryption algorithm and key as used to encrypt the machine code to obtain the decrypted data; Perform preprocessing operations on the decrypted data and feature values, including removing irrelevant characters, converting to lowercase, and standardizing data; Create a two-dimensional dynamic programming table for storing the minimum edit distance from the position of the decrypted data after the preprocessing operation to the position of the feature value; For each position, calculate the cost of replacement, insertion and deletion operations, and select the minimum cost as the minimum edit distance of the current position to fill the two-dimensional dynamic programming table; After filling the entire dynamic programming table, the last cell value of the two-dimensional dynamic programming table is used as the minimum edit distance between the decrypted data and the feature value after the preprocessing operation; By verifying the matching function, the calculated minimum edit distance is fuzzily matched with the set threshold; If the minimum edit distance is less than or equal to the threshold, the verification passes; If the minimum edit distance is greater than the threshold, the verification fails, the invalid machine code record is automatically cleared, and a new unique machine code is recalculated and generated based on the feature value and dynamic data.
6. The novel Linux-based machine code generation and authorization method as claimed in claim 3, It is characterized in that The generated unique machine code is combined with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host, including: In the authorization management system established at the center, create a database for storing and managing machine codes; The unique machine code of each Linux host is transmitted to the preset authorization management system, so that the database of the authorization management system receives and stores each unique machine code, and establishes an association relationship between the machine code and the corresponding Linux host; When a Linux host requests access or performs a specific operation, the unique machine code of the Linux host is extracted from the request, and the authorization information corresponding to the machine code is queried in the authorization management system to determine whether the Linux host has the right to access or use the requested resources. If the authorization information is valid, access is allowed; If the authorization information is invalid, access is denied and corresponding log information is recorded; The authorization management system uses machine code to track and manage the authorization status of each Linux host, and updates the authorization status information of each host in the database regularly or when a specific event is triggered.
7. The novel machine code generation and authorization method based on a Linux host as described in any one of claims 1 to 6, It is characterized in that Also includes: A distributed machine code verification network is built on the central side. The machine code verification network includes multiple verification nodes. Each verification node is an independent server or computing instance, which is used to independently verify the machine code and synchronize with the authorization management system regularly. A load balancer is configured in the machine code verification network to receive requests from the Linux host and dynamically distribute the requests to different verification nodes according to the real-time load of each verification node; When a Linux host initiates a verification request, it is forwarded to the selected verification node through the load balancer for independent verification, so that the verification node feeds back the verification result to the load balancer and synchronizes it to the authorization management system; The verification result is returned to the corresponding Linux host through the load balancer.
8. A new machine code generation and authorization system based on Linux host, It is characterized in that include: A feature value acquisition module is used to obtain system information by accessing a specific interface of the Linux host or calling a system command, and to extract one or more feature values representing system characteristics from the system information; A machine code generation module, for using one or more encryption algorithms, taking the extracted feature values as input, and combining the dynamic data to generate a unique machine code based on the feature values; The authorization module is used to combine the generated unique machine code with the authorization management system established on the center side, so that the authorization management system uses the unique machine code to verify, track and manage the authorization status of each Linux host.
9. A new type of machine code generation and authorization device based on Linux host, It is characterized in that include: A computer, comprising at least one database and a memory in communication with the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the novel machine code generation and authorization method based on a Linux host as described in any one of claims 1 to 7; And, an authorization management system established on the center side interacts with the computer and is used to combine with the generated unique machine code to use the unique machine code to verify, track and manage the authorization status of each Linux host.
10. The novel machine code generation and authorization device based on Linux host as claimed in claim 9, It is characterized in that Also includes: A distributed machine code verification network built on the central side, which includes multiple verification nodes and a load balancer; Each verification node is an independent server or computing instance that is used to independently verify machine code and synchronize with the authorization management system regularly; The load balancer is used to receive requests from the Linux host and dynamically allocate requests to different verification nodes based on the real-time load conditions of each verification node.
Citation Information
Cited By
License authorization management method for software platform
CN119808046A
