PKI system, PKI control method and data security system
Patent Information
- Application Number
- CN202011108193.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-10-16
Smart Images

Figure CN112199723B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of software security technology and relates to a key management system, in particular to a PKI system, a PKI control method and a data security system. Background Art
[0002] Public Key Infrastructure (PKI) is a collection of hardware, software, personnel, policies and procedures to achieve the generation, management, storage, distribution and revocation of keys and certificates based on the public key cryptography system. The PKI system is a combination of computer hardware and software, authoritative institutions and application systems. It provides basic security services for the implementation of e-commerce, e-government, office automation, etc., so that users who do not know each other or are far away can communicate securely through the trust chain.
[0003] The key management system is responsible for maintaining key management (rsa, aes, md5, etc.); the basic framework provides services for pulling key information and is transparent to the user. Sensitive information stored in the physical database is encrypted and stored without awareness, and is decrypted without awareness when used within the system. Sensitive data is encrypted and decrypted using the extended technology of the mybats plug-in.
[0004] Today, the era of big data has arrived, and it has also brought about thorny problems in the protection of privacy and sensitive information. How to protect sensitive and private information from being leaked while achieving efficient data sharing, analysis and mining is becoming increasingly important. The "Cybersecurity Law" stipulates that personal information shall not be provided to others without the consent of the person being collected, except that it cannot be identified after processing and cannot be restored; the "Security Protection Law" and the compliance requirements of the reinsurance industry regulatory unit (Banking Regulatory Requirements) are met. For a very small number of complex SQL statements that cannot accurately identify the corresponding privacy fields, corresponding processing is done.
[0005] In view of this, there is an urgent need to design a new key management system to overcome at least some of the above-mentioned defects of the existing key management systems. Summary of the invention
[0006] The present invention provides a PKI system, a PKI control method and a data security system, which can effectively protect user information; and can automatically perform encrypted storage on private data such as identity cards, names and other information to prevent privacy leakage.
[0007] In order to solve the above technical problems, according to one aspect of the present invention, the following technical solution is adopted:
[0008] A PKI system, comprising:
[0009] The desensitization generation service module is used to provide an interface for obtaining desensitization rules and obtain desensitization rule information based on the desensitization ID;
[0010] The desensitization database service module is used to provide an interface for saving, modifying and querying desensitization rules through a visual web page;
[0011] The desensitizing service management module allows operators to enter new desensitizing rule information and modify existing desensitizing information at the front desk; uniformly configure subsystem SSL signature authentication, use the RSA algorithm to generate public and private keys, and each subsystem needs to use the public key for authentication when starting to pull key information.
[0012] According to another aspect of the present invention, the following technical solution is adopted: a PKI system, the PKI system comprising:
[0013] The desensitization generation service module is used to provide an interface for obtaining desensitization rules and obtain desensitization rule information based on the desensitization ID;
[0014] Desensitization database service module, which is used to provide an interface for saving, modifying and querying desensitization rules;
[0015] The desensitization service management module is used to allow operators to enter new desensitization rule information and modify existing desensitization information at the front desk.
[0016] As an embodiment of the present invention, the desensitizing database service module is used to provide an interface for saving, modifying and querying desensitizing rules through a visual web page.
[0017] As an implementation mode of the present invention, the subsystem SSL signature authentication is uniformly configured, and the public key and private key are generated using the RSA algorithm. When each subsystem starts to pull key information, it needs to use the public key for authentication.
[0018] According to another aspect of the present invention, the following technical solution is adopted: a PKI control method, the PKI control method comprising:
[0019] Desensitization generation service steps; provide a desensitization rule acquisition interface to obtain desensitization rule information based on the desensitization ID;
[0020] Desensitization database service steps: provide an interface for saving, modifying and querying desensitization rules through a visual web page;
[0021] Desensitizing service management steps; allow operators to enter new desensitizing rule information and modify existing desensitizing information at the front desk; uniformly configure subsystem SSL signature authentication, use RSA algorithm to generate public and private keys, and each subsystem needs to use public key for authentication when starting to pull key information.
[0022] According to another aspect of the present invention, the following technical solution is adopted: a PKI control method, the PKI control method comprising:
[0023] Desensitization generation service steps; provide a desensitization rule acquisition interface to obtain desensitization rule information based on the desensitization ID;
[0024] Desensitization database service steps; provide interfaces for saving, modifying and querying desensitization rules;
[0025] Desensitization service management steps: allow operators to enter new desensitization rule information and modify existing desensitization information at the front desk.
[0026] As an implementation mode of the present invention, in the desensitizing database service step, an interface for saving, modifying and querying desensitizing rules is provided through a visual web page.
[0027] As an implementation mode of the present invention, in the desensitizing service management step, the subsystem SSL signature authentication is uniformly configured, and the public key and private key are generated using the RSA algorithm. When each subsystem starts to pull key information, the public key needs to be used for authentication.
[0028] According to another aspect of the present invention, the following technical solution is adopted: a data security system, the data security system includes a PKI system and a cif system, the PKI system is connected to the cif system;
[0029] The PKI system includes:
[0030] The desensitization generation service module is used to provide an interface for obtaining desensitization rules and obtain desensitization rule information based on the desensitization ID;
[0031] The desensitization database service module is used to provide an interface for saving, modifying and querying desensitization rules through a visual web page;
[0032] The desensitization service management module allows operators to enter new desensitization rule information and modify existing desensitization information at the front desk; uniformly configure subsystem SSL signature authentication, use the RSA algorithm to generate public and private keys, and each subsystem needs to use the public key for authentication when starting to pull key information;
[0033] The CIF system obtains the key ID from the PKI system, obtains the asymmetric private key and the symmetric key according to the key ID and the customer number, and after parameter verification, uses the AES algorithm to encrypt the sensitive field as a ciphertext and uses the HMAC to encrypt the sensitive field as an index. Each sensitive field needs to add an index field accordingly; a set digit version number is appended after the ciphertext, indicating that a certain version number of key is used for encryption, and after the key is replaced later, it can be identified which key is used for decryption; then a query or insertion is executed, and if it is a query request, the returned ciphertext result is directly returned to the front layer without processing;
[0034] After receiving the returned ciphertext, the front-end layer parses the version number of the set number of digits, obtains the asymmetric private key and the symmetric key from the PKI system based on the key ID, customer number, and version number, uses the symmetric key to decrypt the encrypted field, and returns the plaintext to the APP.
[0035] As an implementation mode of the present invention, during the internal system RPC call process, mask configuration is required for sensitive fields from the front layer to the CIF system;
[0036] When big data uses cannal or sqoop to synchronize data, the encrypted fields are decrypted and then synchronized to keep previous queries unaffected; queries use mysql proxy to dynamically process decryption and desensitization operations on the mysql protocol.
[0037] The beneficial effects of the present invention are: the PKI system, PKI control method and data security system proposed by the present invention can effectively protect user information. The present invention can automatically perform encrypted storage on private data such as identity cards, names and other information to prevent privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Schematic diagram of the composition of a PKI system in one embodiment of the present invention.
[0039] Figure 2 Flow chart of a PKI control method in one embodiment of the present invention. DETAILED DESCRIPTION
[0040] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0041] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.
[0042] The description in this section is only for several typical embodiments, and the present invention is not limited to the scope of the embodiments. The same or similar prior art means and some technical features in the embodiments are mutually replaced within the scope of the present invention.
[0043] The present invention discloses a PKI system. Figure 1 This is a schematic diagram of the composition of a PKI system in an embodiment of the present invention; please refer to Figure 1 The PKI system includes: a desensitizing generation service module 1, a desensitizing database service module 2 and a desensitizing service management module 3.
[0044] The desensitization generation service module 1 is used to provide an interface for obtaining desensitization rules and obtain desensitization rule information according to the desensitization ID.
[0045] The desensitization database service module 2 is used to provide an interface for saving, modifying and querying desensitization rules. In one embodiment of the present invention, the desensitization database service module 2 is used to provide an interface for saving, modifying and querying desensitization rules through a visual web page.
[0046] The desensitization service management module 3 is used to allow operators to enter new desensitization rule information and modify existing desensitization information at the foreground. In one embodiment of the present invention, the desensitization service management module 3 is also used to uniformly configure the subsystem SSL signature authentication, using the RSA algorithm to generate public and private keys, and each subsystem needs to use the public key for authentication when starting to pull key information.
[0047] The present invention can analyze various SQL statements, automatically identify privacy fields, and use corresponding desensitization rules to perform desensitization operations to protect user privacy data. The desensitization rules pull relevant desensitization rules after authentication by calling the RPC-API interface provided by the key service.
[0048] The present invention also discloses a PKI control method, the PKI control method comprising:
[0049] [Step S1] Desensitization generation service step; provide an interface for obtaining desensitization rules, and obtain desensitization rule information based on the desensitization ID.
[0050] [Step S2] Desensitization database service step: providing an interface for saving, modifying and querying desensitization rules. In one embodiment, the interface for saving, modifying and querying desensitization rules is provided through a visualized web page.
[0051] [Step S3] Desensitization service management step: Allow the operator to enter new desensitization rule information and modify existing desensitization information at the front desk. In one embodiment, the desensitization service management step further includes: uniformly configuring subsystem SSL signature authentication, using RSA algorithm to generate public key and private key, and each subsystem needs to use public key for authentication when starting to pull key information.
[0052] The present invention further discloses a data security system, which includes a PKI system and a cif system, wherein the PKI system is connected to the cif system. The composition of the PKI system can refer to the description of the above embodiments.
[0053] The CIF system obtains the key ID from the PKI system, obtains the asymmetric private key and the symmetric key according to the key ID and the customer number, and after completing the parameter verification, uses the AES algorithm to encrypt the sensitive field as a ciphertext and uses the HMAC to encrypt the sensitive field as an index. Each sensitive field needs to add an index field accordingly; a set number of digits is appended to the ciphertext to indicate that a key of a certain version number is used for encryption, and after the key is replaced later, it can identify which key is used for decryption; then a query or insertion is performed. If it is a query request, the returned ciphertext result is returned directly to the front layer without processing. After receiving the returned ciphertext, the front layer parses the set number of digits, obtains the asymmetric private key and the symmetric key from the PKI system according to the key ID, the customer number and the version number, decrypts the encrypted field using the symmetric key, and returns the plaintext to the APP end.
[0054] In one embodiment of the present invention, mask configuration is required for sensitive fields from the front layer to the cif system during the internal system rpc call process. When big data uses cannal or sqoop to synchronize data, the encrypted fields are decrypted and synchronized to keep the previous queries unaffected; queries (such as queries using Syslog analyzer) use mysql proxy (or open source Atlas) to dynamically process decryption and desensitization operations on the mysql protocol.
[0055] In summary, the PKI system, PKI control method and data security system proposed in the present invention can effectively protect user information. The present invention can automatically perform encrypted storage on private data such as identity card, name and other information to prevent privacy leakage.
[0056] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0057] The description and application of the present invention here are illustrative, and it is not intended to limit the scope of the present invention to the above-mentioned embodiments. The effects or advantages involved in the embodiments may not be embodied in the embodiments due to interference from various factors, and the description of the effects or advantages is not used to limit the embodiments. The deformation and change of the embodiments disclosed here are possible, and the replacement of the embodiments and the various equivalent parts are well known to those of ordinary skill in the art. It should be clear to those skilled in the art that the present invention can be implemented in other forms, structures, arrangements, proportions, and with other components, materials and parts without departing from the spirit or essential features of the present invention. Other deformations and changes can be made to the embodiments disclosed here without departing from the scope and spirit of the present invention.
Claims
1. A data security system, characterized in that: The data security system includes a PKI system and a cif system, and the PKI system is connected to the cif system; The PKI system includes: The desensitization generation service module is used to provide an interface for obtaining desensitization rules and obtain desensitization rule information based on the desensitization ID; The desensitization database service module is used to provide an interface for saving, modifying and querying desensitization rules through a visual web page; The desensitization service management module allows operators to enter new desensitization rule information and modify existing desensitization information at the front desk; uniformly configure subsystem SSL signature authentication, use the RSA algorithm to generate public and private keys, and each subsystem needs to use the public key for authentication when starting to pull key information; The CIF system obtains the key ID from the PKI system, obtains the asymmetric private key and the symmetric key according to the key ID and the customer number, and after completing the parameter verification, uses the AES algorithm to encrypt the sensitive field as a ciphertext and uses the HMAC to encrypt the sensitive field as an index. Each sensitive field needs to add an index field accordingly; a set digit version number is appended after the ciphertext, indicating that a certain version number of key is used for encryption, and after the key is replaced later, it can be identified which key is used for decryption; then a query or insertion is executed, and if it is a query request, the returned ciphertext result is directly returned to the front layer without processing; After receiving the returned ciphertext, the front-end layer parses the version number of the set number of digits, obtains the asymmetric private key and the symmetric key from the PKI system based on the key ID, customer number, and version number, uses the symmetric key to decrypt the encrypted field, and returns the plaintext to the APP.
2. The data security system according to claim 1, characterized in that: During the internal system RPC call process, sensitive fields from the front layer to the CIF system need to be masked. When big data uses cannal or sqoop to synchronize data, the encrypted fields are decrypted and then synchronized to keep previous queries unaffected; queries use mysql proxy to dynamically process decryption and desensitization operations on the mysql protocol.
