Intelligent software leakage prevention system based on kernel encryption and role-based permission control
By adopting kernel encryption and role permission control in the intelligent software leak prevention system, combined with MD5 and AES/RSA algorithms, the problem of terminal equipment misuse and encryption transmission efficiency is solved, and the full life cycle monitoring and protection of data is realized, ensuring that Data security and transmission efficiency.
Patent Information
- Application Number
- CN202411020836.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing intelligent software leak prevention system is used on terminal devices, resulting in data leakage, encrypted transmission difficulty in taking into account transmission efficiency and security, and the lack of data life cycle monitoring and protection.
Using an intelligent software anti-leakage system based on kernel encryption and role permission control, the terminal device fingerprint information is extracted through the MD5 algorithm of random keys, combined with AES and RSA encryption algorithm for data encryption, and the file filtering driver technology is used to perform kernel state Data monitoring and protection.
Effectively prevent data leakage caused by terminal equipment misuse, improve the efficiency and security of data transmission, and strictly monitor and protect data throughout the life cycle.
Smart Images

Figure CN118551351B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data security, and in particular to an intelligent software leakage prevention system based on kernel encryption and role authority control. Background Art
[0002] In today's digital age, data security has become a major issue for enterprises. With the increasing prevalence and complexity of cyber attacks, traditional security measures are no longer sufficient to protect sensitive information from leakage. This has led to the need for more powerful and intelligent security solutions. Intelligent software leakage prevention systems are a direct response to this demand. However, existing intelligent software leakage prevention systems have problems such as data leakage caused by terminal device fraud, difficulty in balancing transmission efficiency and security when encrypting and transmitting data, and lack of monitoring and protection of data throughout the entire life cycle. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an intelligent software leakage prevention system based on kernel encryption and role authority control. In view of the problem of data leakage caused by the fraudulent use of terminal devices, the present invention designs an MD5 algorithm based on a random key to extract the fingerprint information of the terminal device, and performs MD5 hash transformation, mapping operation, summation, XOR calculation and secondary MD5 hash transformation on the information of the terminal's device characteristics in sequence; in view of the problem that it is difficult to take into account both transmission efficiency and security when encrypting and transmitting data, the present invention designs an AES and RSA combined encryption algorithm to encrypt the data sent by the server to the terminal, uses the fingerprint information of the terminal device as the AES key, and uses the RSA asymmetric encryption algorithm to transmit the fingerprint information. The server encrypts the protected data through the AES algorithm, and implements the finite field through a subfield based on a normal basis. The inverse operation algorithm optimizes the inverse operation of the S-box construction step, improving the efficiency of data transmission while ensuring data security; to address the problem of lack of data monitoring and protection throughout the entire life cycle, this solution not only encrypts data transmission, but also uses kernel encryption technology and role authority control mechanism to strictly monitor and protect local data, so as to achieve transparent encryption and decryption of data in the kernel state.
[0004] The technical solution adopted by the present invention is as follows: The present invention provides an intelligent software leakage prevention system based on kernel encryption and role authority control, which specifically includes: an identity authentication module, an environmental monitoring module, a fingerprint extraction module, a process authorization module, an authorization verification module, a data decryption module and a data encryption transmission module deployed on the terminal; the output end of the identity authentication module is connected to the input end of the environmental monitoring module, the output end of the environmental monitoring module is respectively connected to the input ends of the authorization verification module, the fingerprint extraction module, the data decryption module and the process authorization module, the output end of the fingerprint extraction module is connected to the input end of the data encryption transmission module, the output end of the data encryption transmission module is connected to the input end of the data decryption module, and the output end of the data decryption module is connected to the input end of the fingerprint extraction module.
[0005] The identity verification module verifies the user's identity through the USBKey and creates an encrypted disk;
[0006] The process authorization module grants the specified process permissions;
[0007] The authorization verification module verifies user rights and process rights;
[0008] The environment monitoring module monitors the processes and users of the terminal through file filtering driver technology;
[0009] The fingerprint extraction module extracts the fingerprint information of the terminal through the MD5 algorithm based on the random key;
[0010] The data decryption module uses the fingerprint information to decrypt the data in the kernel state;
[0011] The data encryption transmission module uses fingerprint information to encrypt data through an AES and RSA combined encryption algorithm.
[0012] When granting new user permissions, the system administrator issues a USBKey to the user and sets a unique PIN code. A user profile is established on the server side to record the authorized user information, including the user ID, the user's permission group, the user's permission level, and the USBKey key. The new user's information is added to the user profile, and an encrypted data profile is established to record the protected data information, including the file name, access permission group, and access permission level.
[0013] After the user starts the system at the terminal, the user is first authenticated by the identity authentication module: the USBKey inserted by the user and the PIN code entered by the user are identified, and then an identity authentication request is sent to the server. The server generates a random number as a challenge value and sends it back to the terminal. The terminal passes the challenge value to the USBKey through the USB interface. The USBKey uses the built-in cryptographic algorithm and the key stored in the USBKey to process the challenge value, and generates a response value and sends it back to the server. The server uses the USBKey key to process the same challenge value and compares the result with the received response value. If the match is consistent, the identity authentication is passed, the user permission is granted and the encrypted disk is created. At the same time, the encrypted disk is bound through the file filtering driver technology. If the match fails, the terminal is notified to re-authenticate.
[0014] The process authorization module grants permissions to the specified process. The specific process of establishing the authorized process is as follows: the system establishes a process configuration file during initialization and dynamically records all authorized process information. The system obtains all currently running process information, including process ID, process name, process icon, process folder and sub-process list. When the user selects a specified process to grant permissions, the system adds the process to the authorized process list and writes the process information into the configuration file.
[0015] The specific process of the authorization verification module verifying user permissions and process permissions is as follows: the system reads the process configuration file of the terminal and determines whether the process accessing the protected data is in the process configuration file. If not, it means that the process is not authorized, and the verification failure information is returned. If it is in the process configuration file, the user identity information is obtained, the user ID is encrypted and sent to the server. The server queries the user configuration file to check whether the user ID is in the user configuration file. If the result is yes, the server returns the verification pass information to the terminal, otherwise the verification fails.
[0016] After the user passes the identity authentication of the identity authentication module, the environment monitoring module is started to monitor the terminal process in real time, including preventing unauthorized processes and users from accessing protected data and preventing unauthorized processes from obtaining permissions.
[0017] The specific process of preventing unauthorized processes and users from accessing protected data is as follows: when a user attempts to access protected data, that is, data located on an encrypted disk or an image of data on any encrypted disk, the system intercepts two IRPs, IRP_MJ_READ and IRP_MJ_WRITE, through file filtering driver technology, and calls the authorization verification module in the IRP to verify the user authority and process authority. After the verification is passed, the user ID and the accessed file name are sent to the server side, and the server side queries the user configuration file and the encrypted data configuration file to check whether the user's authority group and user authority level are respectively greater than or equal to the access authority group and access authority level corresponding to the protected data. If the result is yes, the server side returns the verification pass information to the terminal, allowing the user to access the protected data, otherwise the user is not allowed to access.
[0018] The specific process of preventing unauthorized processes from obtaining permissions is as follows: when a process attempts to modify a process configuration file, the system captures this request through IRP_MJ_WRITE, determines whether the process is in the process configuration file, and if so, allows the process to modify the process configuration file; otherwise, does not allow the process to modify the process configuration file, and pops up a warning to the user.
[0019] The fingerprint extraction module extracts the fingerprint information of the terminal through the MD5 algorithm based on the random key, which specifically includes the following steps:
[0020] D1: Obtain the device feature information of the terminal and perform a hash transformation, and perform a modulo operation on the ASCII code corresponding values of all non-integer symbols in the transformation result and 10 to obtain a hash value;
[0021] D2: Mapping operation is performed on the hash value of each device feature: the effective number of digits and the weight value of each device feature are set, and the hash value of each device feature is multiplied by the corresponding weight value to obtain the product result. The product result is intercepted according to the effective number of digits and the first half is retained to obtain the mapping result of each device feature;
[0022] D3: Add the mapping results of each device feature to obtain an addition result;
[0023] D4: Generate a random key and extract fingerprint information through the MD5 algorithm: Randomly generate a key with the same number of bits as the effective number of bits, perform bit-by-bit XOR calculation on the key and the sum result to obtain the XOR result, then perform bit-by-bit AND calculation on the key and the sum result to obtain the AND result, concatenate the XOR result and the AND result together, and transform them through the MD5 algorithm to obtain the final fingerprint information.
[0024] When a user receives protected data sent by the server, the system first verifies the user's rights and process rights through the authorization verification module. After the verification is passed, the protected data is encrypted using the AES and RSA combined encryption algorithm through the data encryption transmission module. The encryption process specifically includes the following steps:
[0025] S1: The terminal encrypts the fingerprint information through the RSA algorithm: The RSA public key and RSA private key of the terminal and the RSA public key and RSA private key of the server are generated through the RSA asymmetric encryption algorithm, and the fingerprint extraction module is called to obtain the fingerprint information of the terminal. The terminal encrypts the fingerprint information using the RSA public key of the server and sends it to the server;
[0026] S2: The server decrypts the fingerprint information using the RSA algorithm: The server uses the server's RSA private key to decrypt the encrypted fingerprint information;
[0027] S3: The server converts the protected data into a bit stream, divides the bit stream into blocks of equal size with a fixed length, and fills the blocks that are less than the fixed length with zeros at the end;
[0028] S4: Encrypt the bit stream through the improved AES algorithm: Use the fingerprint information as the AES key, and use the improved AES algorithm to encrypt each bit stream by byte permutation, row shift, column mixing and adding round keys in sequence to obtain the encrypted data. Then use the terminal's RSA public key to encrypt the fingerprint information and send it to the terminal together with the encrypted data. The improved AES algorithm specifically implements a finite field through a subfield of a normal basis The algorithm for the inverse operation of , optimizes the inverse operation of the S-box construction step in byte permutation, and implements a finite field based on a subfield of a normal basis The specific steps of the inverse operation algorithm are as follows:
[0029] S41: Finite Fields Multiplication is performed modulo an irreducible polynomial, which is defined as , the roots of the irreducible polynomial are , the normal basis is and , then the finite field The elements of can be expressed as , then the finite field The inverse of an element of is:
[0030] ( Y 1 X m + Y 2 X ) - 1 = [ Y 1 Y 2 A 2 + ( Y 2 2 + Y 1 2 ) B ] - 1 ( Y 2 X m + Y 1 X ) ;
[0031] in, For power, , , , All are coefficients and all are finite fields elements.
[0032] Finite Fields Elements and elements The product formula is:
[0033]
[0034] in, , All are coefficients and all are finite fields elements.
[0035] In finite fields When performing the inverse operation, the finite field is transformed into The elements of are converted to a finite field In the finite field Inverse the elements of and then transform to a finite field through the isomorphic inverse matrix In the finite field The inverse operation result of .
[0036] S42: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0037] S43: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0038] S44: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0039] S5: Save the encrypted data to the encrypted disk in the kernel state: When the terminal receives the encrypted data, it intercepts the IRP of IRP_MJ_DEVICE_CONTROL through the file filtering driver technology to obtain the fingerprint information, and decrypts the fingerprint information through the RSA private key of the terminal in the IRP routine, and then calls the fingerprint extraction module to generate the verification fingerprint. If the verification fingerprint is consistent with the fingerprint information, this routine is completed and the encrypted data is saved in the encrypted disk.
[0040] The specific process of data decryption performed by the data decryption module in the kernel state is as follows: when the terminal user accesses the data of the encrypted disk, the system intercepts the IRP of IRP_MJ_READ through the file filtering driver technology, and obtains the data buffer through Iopb in the callback routine of the IRP, and then applies for a new buffer whose length is greater than the length of the data buffer through the ExAllocatePoolWithTag function, and calls the fingerprint extraction module to generate the fingerprint information of the terminal device, and uses the fingerprint information as the AES key in the new buffer and decrypts the encrypted data through the AES algorithm to obtain the original protected data, and then calls the RtlCopyMemory function to copy the data of the new buffer to the data buffer, and releases the resources of the new buffer.
[0041] The beneficial results achieved by the present invention using the above scheme are as follows:
[0042] (1) The present invention proposes an intelligent software leakage prevention system based on kernel encryption and role-based permission control. By implementing a strict role-based permission control mechanism, it ensures that only authorized users can access protected data. In addition, it uses kernel encryption technology based on file filter drivers to effectively prevent unauthorized processes from accessing or modifying protected data, ensuring the safe storage and use of data on terminal devices. In addition, the system extracts the unique fingerprint information of the terminal device through the MD5 algorithm based on a random key, and encrypts the transmitted data in combination with the AES and RSA encryption algorithms, effectively preventing data leakage.
[0043] (2) To address the problem of data leakage caused by impersonation of terminal devices, the present invention designs an MD5 algorithm based on a random key to extract the fingerprint information of the terminal device. By sequentially performing MD5 hash transformation, mapping operation, summation, XOR calculation and secondary MD5 hash transformation on the device feature information of the terminal, the security and uniqueness of the fingerprint information of the terminal device is ensured, and data leakage caused by impersonation of the terminal device is effectively prevented.
[0044] (3) In order to solve the problem that it is difficult to balance transmission efficiency and security when encrypting and transmitting data, the present invention designs an AES and RSA combined encryption algorithm to encrypt the data sent from the server to the terminal. The fingerprint information of the terminal device is used as the AES key, and the fingerprint information is transmitted using the RSA asymmetric encryption algorithm. The server encrypts the protected data using the AES algorithm, and implements the finite field encryption through a subfield based on a normal basis. The inverse operation algorithm optimizes the inverse operation of the S-box construction step, improving the efficiency of data transmission while ensuring data security.
[0045] (4) In response to the problem of lack of monitoring and protection of data throughout the entire life cycle, the present invention strictly monitors and protects local data while encrypting transmission data, uses kernel encryption technology and role permission control mechanism, and verifies role permissions and process permissions in the IRP routine through kernel technology driven by file filtering, effectively intercepting and preventing unauthorized access and modification attempts. The system requests a new buffer and uses the AES algorithm to decrypt the protected data, replacing the original data buffer with the decrypted data to achieve transparent data encryption and decryption in the kernel state, thereby preventing data leakage locally. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a module diagram of the intelligent software leakage prevention system based on kernel encryption and role authority control proposed by the present invention;
[0047] Figure 2 This is a flow chart of extracting the fingerprint information of the terminal based on the MD5 algorithm based on the random key proposed by the present invention;
[0048] Figure 3 The present invention provides a flowchart for encrypting data using the AES and RSA combined encryption algorithm.
[0049] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] Example 1, see Figure 1 , Figure 1This is a module diagram of the intelligent software leakage prevention system based on kernel encryption and role authority control proposed by the present invention. In this embodiment, an intelligent software leakage prevention system based on kernel encryption and role authority control is provided, which specifically includes: an identity authentication module deployed on the terminal, an environment monitoring module, a fingerprint extraction module, a process authorization module, an authorization verification module, a data decryption module and a data encryption transmission module deployed on the server side;
[0052] The identity authentication module verifies the user's identity through the USBKey and creates an encrypted disk;
[0053] The process authorization module grants permissions to the specified process;
[0054] The authorization verification module verifies user permissions and process permissions;
[0055] The environment monitoring module monitors the processes and users of the terminal through file filtering driver technology;
[0056] The fingerprint extraction module extracts the fingerprint information of the terminal through the MD5 algorithm based on the random key;
[0057] The data decryption module uses fingerprint information to decrypt data in the kernel state;
[0058] The data encryption transmission module uses fingerprint information to encrypt data through the AES and RSA combined encryption algorithm.
[0059] Embodiment 2: Based on the above embodiment, this embodiment realizes the verification of user identity. The specific contents are as follows:
[0060] When granting new user permissions, the system administrator issues a USBKey to the user and sets a unique PIN code. A user profile is established on the server side to record the authorized user information, including the user ID, the user's permission group, the user's permission level and the USBKey key. The administrator adds the new user's information to the user profile; at the same time, an encrypted data profile is established on the server side to record protected data information, including the file name, access permission group and access permission level.
[0061] After the user starts the system at the terminal, an authentication window pops up, prompting the user to insert the USBKey and enter the PIN code. The system first authenticates the user through the authentication module, identifies the USBKey inserted by the user and the PIN code entered by the user, and then sends an authentication request to the server. The server generates a random number as a challenge value and sends it back to the terminal. The terminal passes the challenge value to the USBKey through the USB interface. The USBKey uses the built-in cryptographic algorithm and the key stored in the USBKey to process the challenge value, and generates a response value and sends it back to the server. The server uses the USBKey key to process the same challenge value and compares the result with the received response value. If they match, the authentication is passed, the system grants the user permission and creates an encrypted disk, and obtains the volume device object through the file filter driver technology, and then calls the IoAttachDeviceToDeviceStack function to bind the filter driver to the encrypted disk.
[0062] Embodiment 3: Based on the above embodiment, this embodiment implements granting permissions to a specified process. The specific contents are as follows:
[0063] The process authorization module grants permissions to the specified process. The specific process of establishing the authorized process is as follows: the system creates a process configuration file during initialization and saves it in the encrypted disk, and adds the relevant information of the process that the system has started to the process configuration file, thereby allowing the system to operate on the encrypted data. The system obtains information about all currently running processes, including the process ID, process name, process icon, the folder where the process is located, and the list of sub-processes. When the user chooses to grant permissions to a specified process, the system adds the process to the authorized process list and writes the process information to the configuration file. When writing the configuration file, the environmental monitoring module captures the write request and calls the authorization verification module to verify the user permissions and process permissions to ensure the security of the process configuration file.
[0064] Embodiment 4: Based on the above embodiment, this embodiment implements verification of user rights and process rights. The specific contents are as follows:
[0065] The specific process of the authorization verification module verifying user permissions and process permissions is as follows: the system reads the process configuration file of the terminal, searches the process ID of the protected data in the process configuration file, and if there is a return result, it means that the process is an authorized process. The system further obtains the user identity information, encrypts the user ID and sends it to the server. The server queries the user configuration file and searches the user ID in the user configuration file. If there is a return result, the server returns the verification pass information to the terminal, allowing the user to operate the protected data through the process.
[0066] Embodiment 5: Based on the above embodiment, this embodiment realizes real-time monitoring of the terminal environment. The specific contents are as follows:
[0067] After the user passes the identity authentication of the identity authentication module, the environment monitoring module is started to monitor the terminal process in real time, including preventing unauthorized processes and users from accessing protected data and preventing unauthorized processes from obtaining permissions.
[0068] The specific process of preventing unauthorized processes and users from accessing protected data is as follows: When a user attempts to access protected data, that is, data located on an encrypted disk or an image of data on any encrypted disk, the system intercepts two IRPs, IRP_MJ_READ and IRP_MJ_WRITE, through file filtering driver technology, and calls the authorization verification module in the IRP to verify the user rights and process rights. After the verification, the user ID and the accessed file name are sent to the server. The server queries the user configuration file and the encrypted data configuration file, and compares the user's permission group and user permission level with the access permission group and access permission level corresponding to the protected data. The user's permission group has permissions above the access permission group, and the user permission level is greater than the access permission level. The server returns a successful verification result to the terminal, and the terminal allows the user to access the protected data after receiving the result.
[0069] The specific process of preventing unauthorized processes from obtaining permissions is as follows: When a process attempts to modify the process configuration file, the system captures this request through IRP_MJ_WRITE. If the system finds that the process exists in the process configuration file in the IRP callback function, the process is allowed to modify the process configuration file.
[0070] Example 6, see Figure 2 , Figure 2 This is a flow chart of extracting the fingerprint information of the terminal based on the MD5 algorithm with a random key proposed in the present invention. This embodiment realizes the extraction of the fingerprint of the terminal device on the basis of the above-mentioned embodiment. The specific contents are as follows:
[0071] The fingerprint extraction module extracts the fingerprint information of the terminal device through the MD5 algorithm based on the random key, which specifically includes the following steps:
[0072] D1: Obtain the device feature information of the terminal and perform hash transformation: The device features include MAC address, IP address, CPU serial number, BIOS serial number and host name. Each device feature is transformed using the MD5 algorithm, and the ASCII code corresponding values of all non-integer symbols in the transformation result are modulo 10 to obtain the hash value;
[0073] D2: Mapping operation is performed on the hash value of each device feature: the effective number of bits and the weight value of each device feature are set, and the hash value of each device feature is multiplied by the corresponding weight value to obtain the product result, and the product result is intercepted according to the effective number of bits and the first half is retained to obtain the mapping result of each device feature. In this embodiment, the effective number of bits is 64 bits, and the weight value of each device feature is 2;
[0074] D3: Add the mapping results of each device feature to obtain an addition result;
[0075] D4: Generate a random key and extract fingerprint information through the MD5 algorithm: Randomly generate a key with the same number of bits as the effective number of bits, perform bit-by-bit XOR calculation on the key and the sum result to obtain the XOR result, then perform bit-by-bit AND calculation on the key and the sum result to obtain the AND result, concatenate the XOR result and the AND result together, and transform them through the MD5 algorithm to obtain the final fingerprint information. The final fingerprint information length is 128 bits.
[0076] Example 7, see Figure 3 , Figure 3 This is a flow chart of data encryption using the AES and RSA combined encryption algorithm proposed by the present invention. Based on the above embodiment, this embodiment realizes encryption of transmission data. The specific contents are as follows:
[0077] The user applies to the server to receive protected data through the system. The system first verifies the user rights and process rights through the authorization verification module. After the verification is passed, a socket connection is established with the terminal, and the software data and related file data are sent to the terminal. In this process, the software data and related file data are regarded as protected data, and the protected data is encrypted by the data encryption transmission module using the AES and RSA combined encryption algorithm. The encryption process specifically includes the following steps:
[0078] S1: The terminal encrypts the fingerprint information through the RSA algorithm: The RSA public key and RSA private key of the terminal and the RSA public key and RSA private key of the server are generated through the RSA asymmetric encryption algorithm, and the fingerprint extraction module is called to obtain the fingerprint information of the terminal. The terminal encrypts the fingerprint information using the RSA public key of the server and sends it to the server;
[0079] S2: The server decrypts the fingerprint information using the RSA algorithm: The server uses the server's RSA private key to decrypt the encrypted fingerprint information;
[0080] S3: The server converts the protected data into a bit stream, divides the bit stream into blocks of equal size with a length of 128 bits, and fills the blocks that are less than the fixed length with zeros at the end;
[0081] S4: Encrypt the bit stream through the improved AES algorithm: Use the fingerprint information as the AES key, and use the improved AES algorithm to encrypt each bit stream by byte permutation, row shift, column mixing and adding round keys in sequence to obtain the encrypted data. Then use the terminal's RSA public key to encrypt the fingerprint information and send it to the terminal together with the encrypted data. The improved AES algorithm specifically implements a finite field through a subfield of a normal basis The algorithm for the inverse operation of , optimizes the inverse operation of the S-box construction step in byte permutation, and implements a finite field based on a subfield of a normal basis The specific steps of the inverse operation algorithm are as follows:
[0082] S41: Finite Fields Multiplication is performed modulo an irreducible polynomial, which is defined as , the roots of the irreducible polynomial are , the normal basis is and , then the finite field The elements of can be expressed as , then the finite field The inverse of an element of is:
[0083] ( Y 1 X m + Y 2 X ) - 1 = [ Y 1 Y 2 A 2 + ( Y 2 2 + Y 1 2 ) B ] - 1 ( Y 2 X m + Y 1 X ) ;
[0084] in, For power, , , , All are coefficients and all are finite fields elements.
[0085] Finite Fields Elements and elements The product formula is:
[0086]
[0087] in, , All are coefficients and all are finite fields elements.
[0088] In finite fields When performing the inverse operation, the finite field is transformed into The elements of are converted to a finite field In the finite field Inverse the elements of In the finite field The inverse operation result of .
[0089] S42: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0090] S43: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0091] S44: Finite fields The inverse operation is converted to a finite field : Using the calculation principle of S41, using irreducible polynomials , the normal basis is and ;
[0092] S5: Save the encrypted data to the encrypted disk in the kernel state: When the terminal receives the encrypted data, it intercepts the IRP of IRP_MJ_DEVICE_CONTROL through the file filtering driver technology to obtain the fingerprint information, and decrypts the fingerprint information through the RSA private key of the terminal in the IRP routine, and then calls the fingerprint extraction module to generate the verification fingerprint, and checks the consistency of the verification fingerprint with the fingerprint information. If the verification result is yes, this routine is completed and the encrypted data is saved in the encrypted disk.
[0093] Embodiment 8: Based on the above embodiment, this embodiment realizes decryption of encrypted data at the terminal. The specific contents are as follows:
[0094] The specific process of data decryption module in kernel state is as follows: when the terminal user accesses the data of the encrypted disk, the system intercepts the IRP of IRP_MJ_READ through the file filtering driver technology, and obtains the data buffer through Iopb in the callback routine of IRP, and then applies for a new buffer whose length is greater than the length of the data buffer through the ExAllocatePoolWithTag function, and calls the fingerprint extraction module to generate the fingerprint information of the terminal device, and uses the fingerprint information as the AES key in the new buffer and decrypts the encrypted data through the AES algorithm to obtain the original protected data, and then calls the RtlCopyMemory function to copy the data of the new buffer to the data buffer and release the resources of the new buffer.
Claims
1. Intelligent software leakage prevention system based on kernel encryption and role authority control, Features: It includes an identity authentication module, an environment monitoring module, a fingerprint extraction module, a process authorization module, an authorization verification module, a data decryption module deployed on the terminal, and a data encryption transmission module deployed on the server side; The identity verification module verifies the user's identity through the USBKey and creates an encrypted disk; The process authorization module grants the specified process permissions; The authorization verification module verifies user rights and process rights; The environment monitoring module monitors the processes and users of the terminal through file filtering driver technology; The fingerprint extraction module extracts the fingerprint information of the terminal through the MD5 algorithm based on the random key; The data decryption module uses the fingerprint information to decrypt the data in the kernel state; The data encryption transmission module uses the fingerprint information to encrypt data through the AES and RSA combined encryption algorithm; The process of extracting the fingerprint information of the terminal by the fingerprint extraction module through the MD5 algorithm based on the random key specifically includes the following steps: D1: Obtain the device feature information of the terminal and perform a hash transformation, and perform a modulo operation on the ASCII code corresponding values of all non-integer symbols in the transformation result and 10 to obtain a hash value; D2: Mapping operation is performed on the hash value of each device feature: the effective number of digits and the weight value of each device feature are set, and the hash value of each device feature is multiplied by the corresponding weight value to obtain the product result. The product result is intercepted according to the effective number of digits and the first half is retained to obtain the mapping result of each device feature; D3: Add the mapping results of each device feature to obtain the total result; D4: Generate a random key and extract fingerprint information through the MD5 algorithm: Randomly generate a key with the same number of bits as the effective number of bits, perform bit-by-bit XOR calculation on the key and the sum result to obtain the XOR result, then perform bit-by-bit AND calculation on the key and the sum result to obtain the AND result, concatenate the XOR result and the AND result together, and transform them through the MD5 algorithm to obtain the final fingerprint information; When a user receives protected data sent by the server, the system first verifies the user's rights and process rights through the authorization verification module. After the verification is passed, the protected data is encrypted using the AES and RSA combined encryption algorithm through the data encryption transmission module. The encryption process specifically includes the following steps: S1: The terminal encrypts the fingerprint information through the RSA algorithm: The RSA public key and RSA private key of the terminal and the RSA public key and RSA private key of the server are generated through the RSA asymmetric encryption algorithm, and the fingerprint extraction module is called to obtain the fingerprint information of the terminal. The terminal encrypts the fingerprint information using the RSA public key of the server and sends it to the server; S2: The server decrypts the fingerprint information using the RSA algorithm: The server uses the server's RSA private key to decrypt the encrypted fingerprint information; S3: The server converts the protected data into a bit stream, divides the bit stream into blocks of equal size with a fixed length, and fills the blocks that are less than the fixed length with zeros at the end; S4: Encrypt the bit stream by using the improved AES algorithm: Use the fingerprint information as the AES key, and use the improved AES algorithm to encrypt each bit stream by byte permutation, row shift, column mixing and adding round keys in sequence to obtain the encrypted data. Then, use the terminal's RSA public key to encrypt the fingerprint information and send it to the terminal together with the encrypted data. The improved AES algorithm is specifically to implement the finite field GF(2 8 ) to optimize the inverse operation of the S-box construction step in byte permutation; S5: Save the encrypted data to the encrypted disk in the kernel state: When receiving the encrypted data, the terminal intercepts the IRP of IRP_MJ_DEVICE_CONTROL through the file filtering driver technology to obtain the fingerprint information, and decrypts the fingerprint information through the RSA private key of the terminal in the callback routine of the IRP, and then calls the fingerprint extraction module to generate the verification fingerprint. If the verification fingerprint is consistent with the fingerprint information, this routine is completed and the encrypted data is saved in the encrypted disk; The specific process of data decryption performed by the data decryption module in the kernel state is as follows: when the terminal user accesses the data of the encrypted disk, the system intercepts the IRP of IRP_MJ_READ through the file filtering driver technology, obtains the data buffer in the IRP callback routine, and then applies for a new buffer whose length is greater than the length of the data buffer, and calls the fingerprint extraction module to generate the fingerprint information of the terminal device, uses the fingerprint information as the AES key in the new buffer and decrypts the encrypted data through the AES algorithm to obtain the original protected data, and then copies the data of the new buffer to the data buffer, and releases the resources of the new buffer.
