Massive data privacy protection system and method
Through the PKI+CPK fusion system and mandatory access control, the bottleneck of privacy computing performance is solved, efficient privacy protection and security applications of massive data are realized, and multi-level fine-grained access control is provided.
Patent Information
- Application Number
- CN202410856073.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing privacy computing technology has computing performance bottlenecks in massive data processing, which is difficult to meet performance and efficiency requirements. In particular, the performance of multi-party security computing is low, the risk of privacy leakage in federated learning, and the trusted execution environment is limited by hardware.
Using a cryptographic infrastructure system that integrates PKI+CPK, combined with a mandatory access control system, the encryption, decryption, identity authentication and authentication of data is realized through confidentiality protection module and secret computing module, forming a ciphertext access policy library, and compulsory access control and restricted access.
It realizes local efficient authentication and authorization of massive data, solves the bottleneck of privacy computing performance, and provides multi-level fine-grained access control, which is suitable for efficient privacy computing and security applications of massive data.
Smart Images

Figure CN118427882B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a massive data privacy protection system and method. Background Art
[0002] With the advent of the era of data factorization, the circulation and sharing of data have become the prominent features of data factorization. However, such circulation and sharing often carry the risk of privacy leakage and may even cause immeasurable losses to enterprises or individuals. For this reason, privacy computing came into being.
[0003] There are three main paths for privacy technology at present: the cryptographic path represented by secure multi-party computing, the hardware path represented by trusted execution environment, and the artificial intelligence path represented by federated learning. Secure multi-party computing (MPC) is a privacy-preserving distributed computing technology in the field of cryptography. Secure multi-party computing enables multiple parties to participate in collaborative computing without knowing each other's content, and ultimately produce valuable analysis content. Federated learning (FL) is also known as federated machine learning and joint learning. Compared with traditional machine learning that uses a centralized approach, federated learning achieves multi-party joint learning and training through the circulation and processing of intermediate encrypted data without the local original data being stored. Trusted Execution Environment (TEE) refers to an isolated secure execution environment in which programs and data can be protected at a higher level than the operating system level. Its implementation principle is to build a secure area in the central processing unit through software and hardware methods, and the computing process executes code.
[0004] Since multi-party secure computing uses many cryptographic methods, some complex tasks are difficult to complete in a short time and have low performance. The training model of federated learning needs to be shared, which makes it possible for attackers to infer private data based on model information, posing a risk of privacy leakage. Since TEE relies on hardware such as CPU, it must ensure that chip manufacturers are trustworthy. At the same time, TEE has large restrictions on server models, and its functionality and performance are subject to hardware limitations. Therefore, for large-scale data security application scenarios, the current privacy computing technology has a computing performance bottleneck problem and is difficult to meet performance and efficiency requirements. Summary of the invention
[0005] The technical problem to be solved by the present invention is: to provide a massive data privacy protection system and method in view of the above-mentioned defects of the prior art.
[0006] To achieve the above-mentioned purpose, the present invention provides a massive data privacy protection system, the system comprising a confidentiality protection module, a security service module, a secret computing and controlled data application module;
[0007] The confidentiality protection module implements a cryptographic infrastructure system integrating PKI+CPK, provides data encryption and decryption, identity identification and authentication functions, and processes the user's block data to form a ciphertext access policy library related to data operation attributes;
[0008] The security service module implements mandatory access control on data operations based on the mandatory access control system and the ciphertext access policy library;
[0009] The secret computing and controlled data application module implements restricted access and ciphertext computing of data under the constraints of the mandatory control policy of the security service module.
[0010] Preferably, the confidentiality protection module includes a PKI system integrated with a CPK system, wherein CPK provides identification authentication of data access attributes and PKI provides identity authentication of data users.
[0011] Preferably, the ciphertext access policy library includes access control policies related to data operation attributes, and authorizes data usage rights according to actual needs. The data operation attributes include operation duration, scope, IP range, content range, and role range.
[0012] Preferably, the mandatory access control system is a security operating system modified on the basis of a general operating system, including a file static measurement module, a process behavior dynamic measurement module, and a mandatory access control module;
[0013] The control strategy of the mandatory access control system is as follows:
[0014] The file static measurement module pre-establishes a security file baseline in the system. When a new file is mapped into the memory, the new file is compared with the baseline to confirm the integrity of the new file.
[0015] The process behavior dynamic measurement module obtains the trusted baseline value of the application and performs efficient dynamic measurement of the process when the process is loaded and running;
[0016] The mandatory access control module adopts a lightweight access control framework, provides hook functions at key points involving access control marking and decision-making, and performs data access security detection by calling the hook functions.
[0017] Preferably, the mandatory access control system is a mandatory access control system modified by SELinux, including three security modes: basic level, enhanced level, and mandatory level;
[0018] The control strategies for data access operations in different security modes are as follows:
[0019] In basic security mode, when mandatory access policy rules or security context comparison fails, only logs are recorded and warning messages are issued, and access is allowed;
[0020] In enhanced security mode, if the mandatory access policy rule fails, access is denied, and if the security context comparison fails, only logs are recorded and warning messages are issued;
[0021] In mandatory security mode, access is denied when mandatory access policy rules or security context comparison fails.
[0022] Preferably, the confidentiality protection module adopts a matrix-based derived key.
[0023] Preferably, the data encryption and decryption uses the SM4 symmetric encryption algorithm.
[0024] The present invention also provides a method for protecting privacy of massive data, which uses the massive data privacy protection system as described above to protect privacy data, and the method comprises the following steps:
[0025] Step S1, dividing the massive user data into blocks;
[0026] Step S2, processing the divided user data based on the confidentiality protection module integrated with PKI and CPK to form a ciphertext access control policy library;
[0027] Step S3, using a mandatory access control system to perform mandatory access control on access operations of user data blocks according to a ciphertext access control policy library;
[0028] Step S4: If the mandatory access control policy is met, the confidential computing and controlled data application modules are used to perform restricted access to private data and ciphertext calculations.
[0029] Preferably, in step S2, according to access control requirements, attribute extension related to data privacy protection operations is performed on the basis of the PKI standard digital certificate.
[0030] Preferably, before step S3, the method further includes:
[0031] The ciphertext access control policy library generated in step S2 is converted into mandatory access policy rules applicable to the mandatory access control system.
[0032] The present invention has the following beneficial effects: data encryption and decryption, identity identification and authentication are performed based on the PKI+CPK system, and the characteristics of CPK identification authentication, such as light weight, fast authentication, strong processing power, small computing resources, and large scale, are utilized to realize local and efficient authentication of massive data. The mandatory access control system is combined with the ciphertext access policy library related to data operation attributes provided by PKI+CPK to realize on-demand access control of data such as reading, writing, and execution in a variety of security modes with limited time domains, limited regions, and limited roles. This solution combines mandatory access control with the efficient identification and authentication of PKI+CPK, and is suitable for large-scale authentication, authorization, and mandatory access control of massive data. It can be applied to scenarios such as high-efficiency privacy computing and security applications of massive data, and solves the computing performance bottleneck problem currently faced by privacy protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0034] Figure 1 A schematic diagram of the structure of a massive data privacy protection system provided by an embodiment of the present invention.
[0035] Figure 2 A schematic diagram of the confidentiality protection module structure provided in an embodiment of the present invention.
[0036] Figure 3 A schematic diagram of the structure of a secure operating system provided by an embodiment of the present invention.
[0037] Figure 4 A schematic diagram of a mandatory access control process for a secure operating system provided by an embodiment of the present invention.
[0038] Figure 5 A schematic diagram of a processing flow of a mandatory access control system for transforming SELinux provided in an embodiment of the present invention.
[0039] Figure 6 A schematic diagram of the steps of a method for protecting privacy of massive data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Aiming at the security protection needs of encryption and decryption of massive data blocks, the present invention adopts the PKI+CPK (Public Key Infrastructure + Combined Public Key) fusion method to perform data security protection, meet the available and invisible security application of massive data blocks, and solve the computing performance bottleneck problem faced by current privacy protection.
[0042] The general idea of the present invention is: mainly based on the PKI public key infrastructure, integrating the characteristics of CPK identification authentication such as light weight, fast authentication, strong processing ability, small computing resources, and large scale, and using the PKI+CPK fusion method to identify and authenticate data security; and then by the mandatory access control mechanism, with the support of the policy library related to the data attribute identification, the controlled and secure application of data is realized. Mainly based on the PKI system, the digital certificate is extended to include attribute identification information related to data operations such as reading, writing, and executing data, such as identifications such as usage time, domain, IP range, role range, and content range, to form CPK certificate information, which is quickly identified and authenticated locally by CPK. Combined with the identity authentication information provided by PKI and the behavioral access control strategy of attribute identification, on-demand access control of data such as reading, writing, and executing within a limited time domain, limited region, and limited role is realized. This method is suitable for large-scale authentication, authorization, and mandatory access control of massive data, and meets the needs of efficient privacy protection and secure application of massive data.
[0043] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings of the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0044] like Figure 1 As shown, an embodiment of the present invention provides a massive data privacy protection system, which includes a confidentiality protection module, a security service module, and a secret computing and controlled data application module.
[0045] The confidentiality protection module implements a cryptographic infrastructure system that integrates PKI+CPK, realizes functions such as CA, RA, KMC, LDAP, OSCP, provides data encryption and decryption, identity identification and authentication functions, and processes user block data to form a ciphertext access policy library.
[0046] The confidentiality protection module includes a PKI system integrated with a CPK system, wherein CPK provides identification authentication of data access attributes, and PKI provides identity authentication of data users.
[0047] like Figure 2As shown, the confidentiality protection module includes PKI and CPK. The main function of the PKI is to bind the identity of the certificate holder and the relevant key pair by issuing digital certificates for the public key and related user identity information. PKI provides users with convenient ways to apply for certificates, cancel certificates, obtain certificates, and query certificate status, and uses digital certificates and related certificate publishing, blacklist publishing, timestamp services and other services to achieve identity authentication, integrity, non-repudiation and confidentiality of each entity in the communication. The center of the PKI system is the CA server, which must be secure and trustworthy. The main carrier of the PKI system is the certificate file in X.509 format.
[0048] The CPK system mainly consists of two parts, the CPK core system and the CPK agent.
[0049] The CPK core system implements the CPK algorithm as an independent logical component and provides authentication and encryption functions through hardware or software interfaces. The CPK core system includes an identification private key management module, a public key factor matrix module, an access control module, an elliptic curve algorithm module, a true random number generation module, a data encoding and decoding module, and a communication protocol module; among which:
[0050] The identification private key management module is used to store, manage and protect private keys, as well as identification data such as users, devices, content, and business behaviors. All operations on private keys are completed by this module, which calls the elliptic curve key module to execute digital signatures and key exchange protocols;
[0051] The public key factor matrix module maps the identifier to the index of the public key factor matrix through a mapping algorithm and calculates the corresponding public key.
[0052] The access control module protects the system through passwords and cryptography functions, ensuring that only users with passwords can access the system.
[0053] The data encoding and decoding module encodes and decodes data in CPK format.
[0054] CPK agents are usually embedded in the application system environment to provide CPK authentication and encryption services. The service interface can be in various forms, such as API, middleware, system service or network service. CPK agent itself does not implement the basic functions of CPK, but calls its functions through the characteristic communication protocol with the CPK core system and provides these services to the application system.
[0055] In the embodiment of the present invention, the PKI system calls the interface of the CPK core system through the CPK agent to use the functions of the CPK core system. The essence of CPK is to perform local rapid identification and authentication. The solution of the embodiment of the present invention integrates the PKI system and the CPK system, avoiding the performance bottleneck caused by the need for third-party identification and authentication of PKI.
[0056] In the embodiment of the present invention, the data encryption and decryption uses the SM4 symmetric encryption algorithm. The SM4 symmetric encryption algorithm is an encryption algorithm that meets the requirements of national secrets. In actual implementation, other symmetric encryption algorithms that meet the requirements of national secrets can also be used.
[0057] In the embodiment of the present invention, the confidentiality protection module adopts a matrix-based derived key. The matrix-based derived key does not require additional storage of intermediate keys, but only needs to store and manage the root key and the derived matrix, so as to realize the on-demand derivation of data keys and greatly reduce the storage burden.
[0058] The matrix-based key derivation process is as follows:
[0059] Password configuration: mainly includes configuring the user key UK with the root key of PKI, the number of rows M and the number of columns N of the key derivation matrix. The total number of user data blocks should not be greater than the product of the rows and columns of the key derivation matrix, so as to ensure that different data blocks have different keys.
[0060] Key derivation matrix generation:
[0061]
[0062] In the matrix, the key value of the node in the xth row and yth column is calculated according to the following SM3 hash calculation formula:
[0063]
[0064] Among them, UK is the PKI master key of the derivation process, and x||y represents the series operation of the coordinates of a certain position of the matrix. The above formula can be used to derive all the keys required for the matrix K, that is, the CPK key of the data block. The number of keys is the product of M and N, and the key values are different.
[0065] The ciphertext access policy library includes access control policies related to data operation attributes, and authorization of usage rights is performed according to usage needs. The data operation attributes include operation duration, scope, IP range, content range, and role range. The operation duration refers to the length of time a user can handle decrypted information under restricted circumstances, such as limiting the user to only 1 hour of reading time after opening a decrypted document. After 1 hour, the decrypted document will become invalid and need to be reapplied. The scope belongs to the hierarchical level, the IP range belongs to the spatial location level, the content range includes content key values, local content, global content, etc., and the role range is set according to data access needs, such as setting it to executives, middle-level, ordinary, and visitors, and then granting different data operation permissions according to the role.
[0066] The security service module implements mandatory access control on data operations based on the mandatory access control system and the ciphertext access policy library;
[0067] like Figure 3-Figure 4 As shown, in some embodiments of the present invention, the mandatory access control system is a secure operating system modified on the basis of a general operating system, and the secure operating system includes a file static measurement module, a process behavior dynamic measurement module, and a mandatory access control module.
[0068] The secure operating system combines trusted computing technology and operating system security technology to customize the trust enhancement of the general operating system, and embeds a security module that supports the PKI / CPK system, trusted computing, and mandatory access control. Figure 3 In the figure, the modules with a white background are modules improved based on the general operating system in the embodiment of the present invention, including trusted chips, trusted chip drivers, dynamic measurement of processes, static measurement of files, mandatory access control, trusted baseline libraries, trusted security agents, secure network protocol stacks, secure file systems, and secure SHELLs. The secure operating system is based on trusted chips, and measures the integrity of platform software and hardware through the establishment and transmission of a trust chain; it provides multi-dimensional operating system security technologies such as static measurement, dynamic measurement, security auditing, and mandatory access control to prevent software and hardware from being tampered with, information from being stolen, and the system from being attacked; it provides all-round security protection for business application platforms, and ensures that key applications provide secure, reliable, and stable services to the outside world. Compared with general operating systems, the innovative security decision-making subsystem of the secure operating system described in the embodiment of the present invention mainly includes a file static measurement module, a process behavior dynamic measurement module, and a mandatory access control module.
[0069] like Figure 4 As shown, in some embodiments of the present invention, the secure operating system is different from the traditional method of directly performing RWX permission determination based on the user as the main body, and instead takes the process as the main body, and enters the RWX permission determination stage after comparison and judgment in three dimensions: file static measurement, process dynamic measurement, and mandatory access control policy execution. In the mandatory access control policy execution stage, the ciphertext access policy library formed by the confidentiality protection module is used to control access rights.
[0070] The control strategy of the secure operating system is as follows:
[0071] The file static measurement module pre-establishes a secure file baseline (process whitelist) in the system. When a new file is mapped into the memory, the absolute path of the file is found through a unified interception point to find the file and calculate the checksum. The baseline is then searched for comparison to determine whether the integrity of the new file is compromised.
[0072] Under the premise that the process running environment is trustworthy, the process behavior dynamic measurement module does not modify the application itself, and realizes the protection and dynamic verification of different running links of the application. It can obtain the trusted baseline value of the application and perform efficient dynamic measurement of the process when the process is loaded and running.
[0073] The mandatory access control module adopts a lightweight access control framework and provides a series of hook functions at key points involving access control marking and decision-making. By calling these hook functions, data access security detection is performed to control the access control logic of kernel objects.
[0074] The secure operating system implements on-demand access to data such as reading, writing, and executing within a limited time, limited region, and limited role based on the data operation-related attributes such as operation duration, domain, IP range, content range, and role range contained in the CPK system digital certificate.
[0075] like Figure 5 As shown, in some other embodiments of the present invention, the mandatory access control system is a mandatory access control system modified by SELinux, including three security modes: basic level, enhanced level and mandatory level.
[0076] The mandatory access control system transformed from SELinux adopts a security access control strategy based on the domain-type model, and adopts mandatory access control based on the principle of least privilege for user permissions and process permissions, so that even if the process permissions or user permissions are taken away after an attack, it will not cause a significant impact on the entire system, thereby ensuring the high security of the system. At the same time, based on the basic access control function of traditional users directly judging object resources based on RWX (read / write / execute) permissions, this mode converts the access subject from the user to the process, adds functions such as security mode selection, rule comparison within the policy, and security context comparison between the subject and the object, and establishes an enhanced mandatory access control strategy.
[0077] like Figure 5 As shown, the mandatory access control system transformed from SELinux is different from the traditional one that directly performs RWX permission judgment based on users. Instead, it takes processes as the main body and enters the RWX permission judgment stage after comparison and judgment in three dimensions: security mode, security rule analysis, and security context comparison. In the security rule analysis stage, the ciphertext access policy library formed by the confidentiality protection module is used to control access rights.
[0078] The mandatory access control system transformed from SELinux replaces the original SELinux shutdown mode (Disabled, SELinux is not actually running), permissive mode (Permissive, there will only be warning messages and will not actually restrict the read and write of domain / type) and enforcing mode (Enforcing, actually restricting the read and write of domain / type) with three modes: basic level, enhanced level and enforcing level. In terms of specific details, the original SELinux shutdown mode (Disabled) is abandoned, and the basic level is similar to the original SELinux permissive mode (Permissive), and the enforcing level is similar to the original enforcing mode (Enforcing). An enhanced level between the two is added to make the granularity of the access control policy more reasonable.
[0079] The control strategies for data access operations in different security modes of the mandatory access control system based on SELinux transformation are as follows:
[0080] In basic security mode, when the mandatory access policy rules or security context comparison fails, only logs are recorded and warnings are issued, allowing access. If the system is in basic security mode, if the subject process fails the policy rules or security context comparison, the read and write operations will be recorded and warnings will be issued. This information can be used as a basis for future inspections, but there will only be warnings and no actual restrictions on domain / type reading and writing. Then the subject process will directly enter the RXW (read / write / execute) permission judgment step for the object resource.
[0081] In enhanced security mode, when the mandatory access policy rules do not pass, access is denied. When the security context comparison fails, only logs are recorded and warnings are issued. If the system is in enhanced security mode, the policy rule comparison process for the subject process will be strictly enforced. If the policy rule is not met, the process access request will be blocked and recorded in the denied read log file. As for the security context comparison process, it is the same as the basic level, only records and warnings are made, and no actual restrictions are imposed. After the subject process passes the comparison of the policy library, it enters the RXW (read / write / execute) permission judgment for the object resource.
[0082] In mandatory security mode, access is denied when mandatory access policy rules or security context comparison fails. If the system is in mandatory security mode, the corresponding security policy rules will be used to identify the access request first. If the rules in the policy are released, the next step is to further identify whether the security context of the subject and the target are consistent. Only when the security context also meets the conditions can the subject process further identify the RXW (read / write / execute) permissions of the object resource, and perform corresponding operations according to the permissions. Otherwise, the access request of the subject process will be denied and recorded in the denied read log file.
[0083] Compared with SELinux before the transformation, the mandatory access control system transformed from SELinux increases the access control level and realizes more fine-grained permission control.
[0084] The secret computing and controlled data application module implements restricted access and ciphertext computing of data under the constraints of the mandatory control policy of the security service module. The secret computing and controlled data application module mainly implements restricted security applications on data blocks based on the generated mandatory access control policy execution results, including application operations such as reading, writing, and executing in limited time domains, limited regions, and limited roles.
[0085] like Figure 6 As shown, an embodiment of the present invention also provides a method for protecting privacy of massive data, which uses the massive data privacy protection system as described above to protect privacy data. Before applying the privacy protection method of the embodiment of the present invention, the data provider and the data user need to perform user registration, key distribution and management through PKI+CPK.
[0086] The method comprises the following steps:
[0087] Step S1, block the massive user data. In practical applications, data block can be done at the front end or at the back end, and the size of the block is determined according to the specific application requirements.
[0088] Step S2, processing the divided user data based on the confidentiality protection module integrated with PKI and CPK to form a ciphertext access control policy library;
[0089] Step S2 specifically includes:
[0090] Step S21, multi-identity certificate generation:
[0091] (1) Parameter setting. Examples of specific settings for data operation attribute extended data identification parameters are as follows:
[0092] A1: data block number
[0093] A2: Operation time
[0094] A3: Scope (application level)
[0095] A4: IP range (spatial location)
[0096] A5: Content scope (content key value, local content, global content)
[0097] A6: Role range (executive, mid-level, general, visitor)
[0098] (2) Using the root key, user key, and data identification information, the PKI key management center KMC generates keys uniformly. The specific key pair calculation is as follows:
[0099] Private key SK:
[0100] Public key PK:
[0101] Among them, ri is the element of the private key matrix in the elliptic curve cryptography; Xi is the element of the public key matrix in the elliptic curve cryptography.
[0102] (3) Based on the access control requirements, data operation-related attributes are extended on the basis of the PKI standard digital certificate. The data operation-related attributes include operation duration, scope, IP range, content range, and role range.
[0103] In the embodiment of the present invention, a digital certificate with an extended identifier is generated in the form of an X.509 certificate according to data operation attributes and corresponding access authority rules. The data operation attribute related information in the digital certificate constitutes a ciphertext access control policy library.
[0104] Step S22, public key publication: the public key can be directly distributed to users in a public manner.
[0105] Step S23, key distribution: key distribution is performed by the PKI system.
[0106] The ciphertext access control policy library generated in step S2 is converted into mandatory access policy rules applicable to the mandatory access control system. In some embodiments of the present invention, when the mandatory access control policy is generated, the encryption and decryption services provided by PKI / CPK are called to authenticate and verify the subject's access to the object request, confirm the RXW (read / write / execute) permissions of the corresponding object resources, and the allowed operation duration, scope, IP range, content range, and role scope range, and jointly generate the access control policy.
[0107] Step S3, using a mandatory access control system, and performing mandatory access control on access operations of user data blocks according to a ciphertext access control policy library.
[0108] In some embodiments of the present invention, mandatory access control processing is performed according to the following process based on the secure operating system:
[0109] (1) The secure operating system performs static file measurement based on the encryption and decryption services provided by PKI / CPK.
[0110] (2) Perform dynamic measurement of the process.
[0111] (3) Generate, distribute and enforce mandatory access control policies.
[0112] When the mandatory access control policy is distributed, the security decision subsystem distributes the generated access control policy to the relevant subject and object; by executing the corresponding access control policy, the RXW (read / write / execute) permissions and operation scope of the object resource requested by the subject are compared and determined. According to the comparison and determination results of the RXW (read / write / execute) permissions and operation scope, if allowed, the object access is executed; if rejected, the blocking log is recorded.
[0113] Among them, the access control policy is distributed to the relevant subjects and objects at the same time to achieve two-way verification, that is, the subject (user / process) must verify whether it can access the resource (file / data), and the object must also verify whether the resource can be accessed by the corresponding subject. Security is enhanced through two-way verification to avoid illegal authorization caused by tampering of one party.
[0114] In other embodiments of the present invention, different data access request handling strategies are executed according to the security mode of the mandatory access control system modified from SELinux, and permission comparison and judgment are performed in multiple dimensions of security mode hierarchy, access control strategy, and security context to implement fine-grained privacy data access control, so as to achieve the purpose of privacy data protection.
[0115] Step S4: If the mandatory access control policy is met, the confidential computing and controlled data application modules are used to perform restricted access to private data and ciphertext calculations.
[0116] In summary, in an embodiment of the present invention, the main workflow of the massive data privacy protection method is as follows: the user's block data is transformed into ciphertext through a confidentiality protection process, and then through the mandatory access control step of a secure operating system supported by a ciphertext access policy library, it is further determined whether the user identity is consistent with the data usage-related attributes. If they are consistent, the access is determined to be legal, and the data is allowed to be securely accessed in a restricted plaintext manner; if they are inconsistent, the access is determined to be illegal, and access is not allowed and a blocking log is recorded. Among them, the confidentiality protection component mainly includes a PKI system that integrates a CPK system, where CPK provides identification authentication of data access attributes, and PKI provides authentication such as identification of data usage user identities. The ciphertext access policy library includes access control policies related to data usage attributes, and authorization of usage rights is performed according to usage needs.
[0117] The core of privacy computing is to strictly control the operation permissions of private data. Compared with the privacy computing method mentioned in the background technology, the solution of the present invention takes a different approach. It uses the PKI+CPK fusion method to perform local identification and authentication of data security, expands data operation attributes in the PKI certificate, and uses a mandatory access control system to perform fine-grained mandatory access control on private data access operations based on the data operation attributes expanded in the PKI certificate. This solution is self-contained, lightweight, efficient, and requires little computing resources. It solves the performance bottleneck problem when existing privacy computing technology is applied to massive data processing.
[0118] The present invention has the following beneficial effects: based on the characteristics of CPK identification authentication, such as light weight, fast authentication, strong processing power, small computing resources, and large scale, a PKI+CPK fusion method is used to identify and authenticate data security; the digital certificate of PKI is expanded and modified to add attribute identification information related to data reading, writing, and execution operations, such as CPK certificate information formed by identifications such as usage duration, location, role, and content scope, and CPK performs local rapid identification and authentication. The mandatory access control system is combined with the behavioral access control strategy of attribute identification to realize multi-level fine-grained mandatory access control and on-demand access control of data such as reading, writing, and execution limited to time domain, region, and role. This solution combines mandatory access control with PKI+CPK identification and authentication, and is suitable for large-scale authentication, authorization, and mandatory access control of massive data. It can be applied to scenarios such as high-efficiency privacy computing and security applications of massive data.
[0119] The above are only specific implementations of the present invention, which cannot be used to limit the scope of the present invention. Equivalent changes made by ordinary technicians in this technical field based on this creation, as well as changes known to technicians in this field, should still fall within the scope of the present invention.
Claims
1. A massive data privacy protection system, characterized in that: The system includes a confidentiality protection module, a security service module, and a secret computing and controlled data application module; The confidentiality protection module includes a PKI system that integrates the CPK system, providing data encryption and decryption, identity identification and authentication functions, wherein CPK provides identification authentication of data access attributes, and PKI provides identity authentication of data users; the confidentiality protection module processes the user's block data to form a ciphertext access policy library related to data operation attributes, and the ciphertext access policy library authorizes data use rights according to actual needs, and the data operation attributes include operation duration, scope, IP range, content range, and role range; The security service module implements mandatory access control on data operations based on the mandatory access control system and the ciphertext access policy library; The secret computing and controlled data application module implements restricted access and ciphertext computing of data under the constraints of the mandatory access control policy of the security service module; The mandatory access control system is implemented in any of the following ways: (1) The mandatory access control system is a security operating system modified on the basis of a general operating system, including a file static measurement module, a process behavior dynamic measurement module, and a mandatory access control module; The control strategy of the secure operating system is as follows: The file static measurement module pre-establishes a security file baseline in the system. When a new file is mapped into the memory, the new file is compared with the baseline to confirm the integrity of the new file. The process behavior dynamic measurement module obtains the trusted baseline value of the application and performs efficient dynamic measurement of the process when the process is loaded and running; The mandatory access control module adopts a lightweight access control framework, provides hook functions at key points involving access control marking and decision-making, and performs data access security detection by calling the hook functions; (2) The mandatory access control system is a mandatory access control system modified by SELinux, including three security modes: basic level, enhanced level and mandatory level; The control strategies for data access operations in different security modes are as follows: In basic security mode, when mandatory access policy rules or security context comparison fails, only logs are recorded and warning messages are issued, and access is allowed; In enhanced security mode, if the mandatory access policy rule fails, access is denied, and if the security context comparison fails, only logs are recorded and warning messages are issued; In mandatory security mode, access is denied when mandatory access policy rules or security context comparison fails.
2. The massive data privacy protection system according to claim 1, characterized in that: The confidentiality protection module adopts a matrix-based derived key.
3. The massive data privacy protection system according to claim 1, characterized in that: The data encryption and decryption uses the SM4 symmetric encryption algorithm.
4. A method for protecting privacy of massive data, using the massive data privacy protection system as described in any one of claims 1 to 3 to protect privacy data, characterized in that: The method comprises the following steps: Step S1, dividing the massive user data into blocks; Step S2, processing the divided user data based on the confidentiality protection module integrated with PKI and CPK to form a ciphertext access control policy library; Step S3, using a mandatory access control system to perform mandatory access control on access operations of user data blocks according to a ciphertext access control policy library; Step S4: If the mandatory access control policy is met, the confidential computing and controlled data application modules are used to perform restricted access to private data and ciphertext calculations.
5. The method for protecting privacy of massive data according to claim 4, characterized in that: In the step S2, according to the access control requirements, attribute extension related to the data privacy protection operation is performed on the basis of the PKI standard digital certificate.
6. The method for protecting privacy of massive data according to claim 4, characterized in that: Before step S3, the method further includes: The ciphertext access control policy library generated in step S2 is converted into mandatory access policy rules applicable to the mandatory access control system.
Citation Information
Cited By
Mass data access control method for adaptive data access rate control
CN119520329A
