Cross-domain anonymous identity authentication system and method based on block chain
Through the combination of blockchain authentication smart contracts and perceptual smart contracts, the security and anonymity of cross-domain anonymous identity authentication are achieved, the problems of malicious attacks and information leakage are solved, and the security and privacy of cross-domain access are ensured. .
Patent Information
- Application Number
- CN202411092942.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-29
AI Technical Summary
In cross-domain identity authentication based on blockchain, there is a risk of malicious attackers attacking and tracking visitors, and visitors may have subsequent misconduct leading to the leakage of identity and information within the domain.
Adopt a cross-domain anonymous identity authentication system based on blockchain, and use the authentication smart contract to perform certificate signature and hash processing, combine the perceived smart contract to perform dynamic trust evaluation, monitor user behavior and environment in real time, and dynamically adjust authorization status , ensure the anonymity and security of visitors.
Effectively prevent malicious attacks and information leakage, ensure the anonymity and security of visitors, timely abort distrust behavior, and avoid single point of failure and key management complexity.
Smart Images

Figure CN119051922A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer network information security, and in particular, relates to a cross-domain anonymous identity authentication system and method based on blockchain. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In recent years, with the rapid development of Internet technology, people's demand for network resources and services has continued to increase. In many cases, cross-domain access to resources is required, which requires cross-domain identity authentication.
[0004] The current cross-domain identity authentication mainly includes authentication architectures based on symmetric key management and negotiation, traditional public key technology facilities, and identity cryptography design. These solutions all have single point failure problems, complex key management, and inability to effectively handle anonymity.
[0005] With the development of blockchain, a cross-domain authentication scheme based on blockchain has been proposed. Blockchain is a decentralized distributed ledger technology that can record and verify data transactions and changes, and has the characteristics of data immutability and transparency. Therefore, the cross-domain authentication scheme based on blockchain can effectively avoid the single point failure problem; however, the inventors found that in the cross-domain identity authentication based on blockchain, there may be malicious attackers who attack and track visitors, and even visitors who have passed the identity authentication may have improper behavior in the future, resulting in the leakage of visitor identity and domain information. Summary of the invention
[0006] The embodiments of the present invention provide a cross-domain anonymous identity authentication system and method based on blockchain to solve the problem that in cross-domain identity authentication based on blockchain, there may be malicious attackers attacking and tracking visitors, and even visitors who have passed the identity authentication may have improper behavior in the future, resulting in the leakage of visitor identity and domain information.
[0007] According to a first aspect of an embodiment of the present invention, a cross-domain anonymous identity authentication system based on blockchain is provided, comprising:
[0008] The user end is used to send a cross-domain access request and certificate signcryption to the local domain access agent; and when receiving the authorization access message, agree to the user authorization and initiate the cross-domain access;
[0009] The local domain access agent is used to send the cross-domain access request and certificate signcryption received from the user terminal in the local domain to the target domain access agent; and send the authorization access message from the target domain access agent to the user terminal and obtain user authorization;
[0010] The target domain access agent is used to send the received cross-domain access request and certificate signcryption to the blockchain; and, when the authentication result from the blockchain is received, when the authentication is passed, it sends an authorization access message to the domain access agent and obtains user authorization;
[0011] A blockchain is used to perform identity authentication based on the obtained cross-domain access request and certificate signcryption using an identity authentication smart contract and return the verification result; and in the cross-domain access stage, based on the dynamically perceived user-side data, a comprehensive trust evaluation of the user-side is performed using a perception smart contract, and the evaluation result is fed back to the target domain access agent; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; hash the obtained certificate to obtain the hash value corresponding to the certificate; traverse the certificate hash values stored in the blockchain, if the current certificate hash value exists, the identity authentication is passed, otherwise, the identity authentication fails.
[0012] Furthermore, the perception smart contract is used to dynamically perceive the user's network environment, viruses, system vulnerabilities, user's historical behavior and current behavior information, and calculate the user's comprehensive trust assessment score based on the information.
[0013] Furthermore, the calculation of the comprehensive trust evaluation score is specifically based on the following formula:
[0014] Comprehensive trust assessment score = user terminal environment security score + user access history behavior score + current access behavior legitimacy score.
[0015] Furthermore, the target domain access agent is also used to receive a comprehensive trust evaluation result of the blockchain on the user terminal, and dynamically adjust the cross-domain access authorization status of the user terminal based on the evaluation result.
[0016] Furthermore, the authorization status of the user terminal is dynamically adjusted, specifically: when the comprehensive trust evaluation score of the user terminal is not less than the preset threshold, the user terminal has cross-domain access authorization; when the comprehensive trust evaluation score of the user terminal is less than the preset threshold, the cross-domain access permission of the user terminal is stopped.
[0017] Furthermore, the system needs to be initialized in advance, and the initialization includes specifying the digital certificate upload and query strategy, the compilation and deployment of the identity authentication smart contract, and the minimum trust value required by the user for resource application operations.
[0018] Furthermore, the initialization also includes generating system public parameters and a system public-private key pair, and uploading the public parameters and the public-private key pair to the identity authentication smart contract.
[0019] Furthermore, the certificate signcryption is performed by signing the certificate using the user's own private key stored locally and the system public key.
[0020] Furthermore, the system requires user registration in advance, generates its own public and private keys through user registration, applies for a digital certificate from a certificate issuing authority, and uploads the hash value corresponding to the digital certificate to the blockchain for storage.
[0021] According to a second aspect of an embodiment of the present invention, a cross-domain anonymous identity authentication method based on blockchain is provided, which is based on the above-mentioned cross-domain anonymous identity authentication system based on blockchain, including:
[0022] Send a cross-domain access request and certificate signcryption to the local domain access proxy through the user end;
[0023] The local domain access proxy sends the received cross-domain access request and certificate signcryption sent by the user terminal in the local domain to the target domain access proxy;
[0024] The target domain access agent sends the received cross-domain access request and certificate signcryption to the blockchain;
[0025] The blockchain uses the identity authentication smart contract to perform identity authentication based on the obtained cross-domain access request and certificate signcryption, and returns the verification result; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; hash the obtained certificate to obtain the hash value corresponding to the certificate; traverse the certificate hash values stored in the blockchain, if the current certificate hash value exists, the identity authentication is passed, otherwise, the identity authentication fails;
[0026] The target access agent receives the identity authentication result from the blockchain. When the authentication is successful, it sends an authorization access message to the local access agent and obtains user authorization.
[0027] The domain access agent sends the authorization access message from the target domain access agent to the user end and obtains user authorization;
[0028] When the user receives the authorization access message, it agrees to the user authorization and initiates cross-domain access. In the cross-domain access stage, based on the dynamically perceived user data, the perception smart contract is used to conduct a comprehensive trust assessment of the user, and the assessment results are fed back to the target domain access agent.
[0029] One or more of the above technical solutions have the following beneficial effects:
[0030] (1) The present invention provides a cross-domain anonymous identity authentication system and method based on blockchain. The scheme is based on the decentralized concept of blockchain and adopts the method of user anonymous authentication to realize cross-domain identity authentication of users. It can effectively solve the problem of traditional blockchain-based identity authentication system that malicious attackers attack and track visitors, and even visitors who pass the identity authentication may have improper behavior in the future, which may lead to the leakage of visitor identity and domain information.
[0031] (2) The scheme described in the present invention can prevent malicious attackers from attacking and tracking visitors by using digital certificate signcryption to perform identity authentication, provide anonymous services to hide the true identity of cross-domain visitors, and ensure the anonymity of visitors during cross-domain authentication.
[0032] (3) The solution described in the present invention is based on a perception smart contract, which can continuously perceive the visitor's behavior and environment, conduct trust evaluation in real time, and promptly terminate the visitor's distrustful behavior.
[0033] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding 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 improper limitations on the present invention.
[0035] Figure 1 This is a schematic diagram of the interaction process between terminals in a cross-domain anonymous identity authentication system based on blockchain described in an embodiment of the present invention;
[0036] Figure 2 The present invention is a flowchart of a cross-domain anonymous identity authentication method based on blockchain described in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0038] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0039] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0040] like Figure 1As shown, an embodiment of the present invention provides a cross-domain anonymous identity authentication system based on blockchain, including:
[0041] The user end is used to send a cross-domain access request and certificate signcryption to the local domain access agent; and when receiving the authorization access message, agree to the user authorization and initiate the cross-domain access;
[0042] The local domain access agent is used to send the cross-domain access request and certificate signcryption received from the user terminal in the local domain to the target domain access agent; and send the authorization access message from the target domain access agent to the user terminal and obtain user authorization;
[0043] The target domain access agent is used to send the received cross-domain access request and certificate signcryption to the blockchain; and, when the authentication result from the blockchain is received, when the authentication is passed, it sends an authorization access message to the domain access agent and obtains user authorization;
[0044] A blockchain is used to perform identity authentication based on the obtained cross-domain access request and certificate signcryption using an identity authentication smart contract and return the verification result; and in the cross-domain access stage, based on the dynamically perceived user-side data, a comprehensive trust evaluation of the user-side is performed using a perception smart contract, and the evaluation result is fed back to the target domain access agent; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; hash the obtained certificate to obtain the hash value corresponding to the certificate; traverse the certificate hash values stored in the blockchain, if the current certificate hash value exists, the identity authentication is passed, otherwise, the identity authentication fails.
[0045] In the specific implementation, Figure 1 As shown, in the identity authentication phase, access agent A sends the access request and signcryption to access agent B in domain B, and access agent B uploads the signcryption value to the identity authentication smart contract for identity authentication:
[0046] AA A →AA B :{Request,SC(CA A ||Request)}.
[0047] Authentication is a two-step process:
[0048] (1) The identity verification smart contract decrypts the signed value:
[0049] De-signcrypt(params,SK,SC(Cert A ║Request)
[0050] (2) The identity authentication smart contract hashes the decrypted and decrypted certificate to obtain the hash value H(Cert), queries and compares it on the chain. If the corresponding hash value can be found on the chain, it returns 1 to the access proxy B indicating that the verification is passed; otherwise, it returns 0 indicating that the verification fails.
[0051] If the verification fails, the access proxy B rejects the user U A access request. If the verification is passed, the subsequent operations are continued.
[0052] In a specific implementation, as Figure 2 shown, in the cross-domain access stage:
[0053] If the verification is passed, the access proxy B sends a message of authorized access to the access proxy A. At the same time, the access proxy A sends a message of "authorized access and need to obtain the authorization of user U" A to the user U A .
[0054] User U A agrees to the user authorization and accesses the resources of the cross-domain access domain B;
[0055] The perception smart contract dynamically perceives the network environment, viruses, system vulnerabilities, historical behaviors and current behaviors of the user side and the network side.
[0056] In a specific implementation, the target domain access proxy is further configured to receive the comprehensive trust evaluation result of the user side from the blockchain, and dynamically adjust the cross-domain access authorization status of the user side based on the evaluation result; the dynamic adjustment of the authorization status of the user side is specifically: when the comprehensive trust evaluation score of the user side is not less than the preset threshold, the user side has cross-domain access authorization; when the comprehensive trust evaluation score of the user side is less than the preset threshold, the cross-domain access permission of the user side is stopped.
[0057] Specifically, in the trust evaluation dynamic control access stage:
[0058] The perception smart contract performs a comprehensive trust evaluation on the user U according to the dynamically perceived data, and BT represents behavioral trust. A
[0059] The perception smart contract feeds back the evaluation result to the access proxy B, and the access proxy dynamically adjusts the authorization status of the user U according to the evaluation result: if BT≥TT, the user U A can access the resources of domain B; if BT<TT, the access proxy B will stop the access authorization of the user U A . A
[0060] Specifically, the perception smart contract is used to dynamically perceive the user's network environment, viruses, system vulnerabilities, user's historical behavior and current behavior information, and calculate the user's comprehensive trust assessment score based on the information.
[0061] The calculation of the comprehensive trust evaluation score is specifically as follows:
[0062] Comprehensive trust assessment score BT = user terminal environment security score + user access history behavior score + current access behavior legitimacy score;
[0063] The user terminal environment security score is a percentage system. The solution described in this embodiment does not limit the specific calculation method, and the score of the security software can be directly used, such as the score of the terminal security by the 360 terminal security software;
[0064] The user access history behavior score is based on a percentage system, that is, the percentage of the user's historical access requests that were allowed is counted and multiplied by 100 to get the user access history behavior score;
[0065] The current access behavior legitimacy score adopts a percentage system, which evaluates the match between the user identity and the accessed resources. A perfect match is 100 points, and a complete mismatch is 0 points. The specific score can be set by setting rules: R&D personnel accessing financial data is 0 points, sales personnel accessing financial data is 50 points, and financial personnel accessing financial data is 100 points.
[0066] In a specific implementation, the system needs to be initialized in advance, and the initialization includes specifying the digital certificate upload and query strategy, the compilation and deployment of the identity authentication smart contract, and the minimum trust value required for the user to apply the resource operation; the initialization also includes generating system public parameters and system public-private key pairs, and uploading the public parameters and public-private key pairs to the identity authentication smart contract.
[0067] Specifically, the initialization includes: specifying certificate upload, query strategy, and user cross-domain authentication strategy, compiling and deploying identity authentication smart contracts, and setting the minimum trust value TT required for users to operate resource applications. Generate public parameters params and public-private key pairs (PK, SK), and then upload params and (PK, SK) on the identity authentication smart contract. The relevant algorithm is described as follows:
[0068] params←Setup(1 λ ), generate common parameters params = (g, q)
[0069] (PK,SK)←KeyGen2(p,q), generate a public-private key pair, where
[0070] In a specific implementation, the certificate is signed by using the private key locally stored on the user end and the system public key.
[0071] Specifically, Figure 1 As shown, in the access initiation phase, user U A Initiate a cross-domain access request to the target domain, use the locally stored private key sk to sign the message, and then send the access request and signcryption to the access agent A of the domain, as shown in the following figure:
[0072] Signcrypt(PK,sk,Cret A ||Request)→SC(Cret A ||Request),
[0073] U A →AA A :{Request,SC(Cert A ||Request)}.
[0074] In the specific implementation, the system requires user registration in advance, generates its own public and private keys through user registration, applies for a digital certificate from a certificate issuing agency, and uploads the hash value corresponding to the digital certificate to the blockchain for storage.
[0075] Specifically, the user generates its own public-private key pair (pk, sk) by registering, saves the private key locally, applies for a CA digital certificate Cert from the certificate issuing authority, performs a hash operation on Cert to obtain H(Cert) and uploads it to the blockchain for storage. The relevant algorithm is described as follows:
[0076] KeyGen1(p,g)→(pk,sk), where sk=w∈Z p , pk=h=g w .
[0077] In one or more embodiments, a cross-domain anonymous identity authentication method based on blockchain is provided, which is based on the above-mentioned cross-domain anonymous identity authentication system based on blockchain, including:
[0078] Send a cross-domain access request and certificate signcryption to the local domain access proxy through the user end;
[0079] The local domain access proxy sends the received cross-domain access request and certificate signcryption sent by the user terminal in the local domain to the target domain access proxy;
[0080] The target domain access agent sends the received cross-domain access request and certificate signcryption to the blockchain;
[0081] The blockchain uses the identity authentication smart contract to perform identity authentication based on the obtained cross-domain access request and certificate signcryption, and returns the verification result; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; hash the obtained certificate to obtain the hash value corresponding to the certificate; traverse the certificate hash values stored in the blockchain, if the current certificate hash value exists, the identity authentication is passed, otherwise, the identity authentication fails;
[0082] The target access agent receives the identity authentication result from the blockchain. When the authentication is successful, it sends an authorization access message to the local access agent and obtains user authorization.
[0083] The domain access agent sends the authorization access message from the target domain access agent to the user end and obtains user authorization;
[0084] When the user receives the authorization access message, it agrees to the user authorization and initiates cross-domain access. In the cross-domain access stage, based on the dynamically perceived user data, the perception smart contract is used to conduct a comprehensive trust assessment of the user, and the assessment results are fed back to the target domain access agent.
[0085] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in the present embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cross-domain anonymous identity authentication system based on blockchain, characterized in that: include: The client is used to send a cross-domain access request and certificate signcryption to the local domain access proxy; And, when receiving the authorization access message, agree to the user authorization and initiate cross-domain access; The local domain access agent is used to send the cross-domain access request and certificate signcryption received from the user terminal in the local domain to the target domain access agent; and send the authorization access message from the target domain access agent to the user terminal and obtain user authorization; The target domain access agent is used to send the received cross-domain access request and certificate signcryption to the blockchain; and, when the authentication result from the blockchain is received, when the authentication is passed, it sends an authorization access message to the domain access agent and obtains user authorization; A blockchain, which is used to perform identity authentication based on the obtained cross-domain access request and certificate signcryption using an identity authentication smart contract and return the verification result; and in the cross-domain access stage, based on the dynamically perceived user-side data, a comprehensive trust evaluation of the user-side is performed using a perception smart contract, and the evaluation result is fed back to the target domain access agent; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; The obtained certificate is hashed to obtain the hash value corresponding to the certificate; the certificate hash values stored in the blockchain are traversed. If the current certificate hash value exists, the identity authentication passes, otherwise, the identity authentication fails.
2. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 1, characterized in that: The perception smart contract is used to dynamically perceive the user's network environment, viruses, system vulnerabilities, user's historical behavior and current behavior information, and calculate the user's comprehensive trust evaluation score based on the information.
3. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 2, characterized in that: The calculation of the comprehensive trust evaluation score is specifically as follows: Comprehensive trust assessment score = user terminal environment security score + user access history behavior score + current access behavior legitimacy score.
4. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 1, characterized in that: The target domain access agent is also used to receive a comprehensive trust evaluation result of the blockchain on the user terminal, and dynamically adjust the cross-domain access authorization status of the user terminal based on the evaluation result.
5. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 4, characterized in that: The dynamic adjustment of the authorization status of the user terminal is specifically as follows: when the comprehensive trust evaluation score of the user terminal is not less than the preset threshold, the user terminal has cross-domain access authorization; when the comprehensive trust evaluation score of the user terminal is less than the preset threshold, the cross-domain access permission of the user terminal is stopped.
6. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 1, characterized in that: The system needs to be initialized in advance, which includes specifying the digital certificate upload and query strategy, the compilation and deployment of the identity authentication smart contract, and the minimum trust value required for the user to apply the resource operation.
7. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 6, characterized in that: The initialization also includes generating system public parameters and a system public-private key pair, and uploading the public parameters and the public-private key pair to the identity authentication smart contract.
8. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 1, characterized in that: The certificate is signed by using the private key locally stored on the client and the system public key.
9. A cross-domain anonymous identity authentication system based on blockchain as claimed in claim 1, characterized in that: The system requires user registration in advance, generates its own public and private keys through user registration, applies for a digital certificate from a certificate issuing authority, and uploads the hash value corresponding to the digital certificate to the blockchain for storage.
10. A cross-domain anonymous identity authentication method based on blockchain, characterized in that: It is based on a cross-domain anonymous identity authentication system based on blockchain as described in any one of claims 1 to 9, comprising: Send a cross-domain access request and certificate signcryption to the local domain access proxy through the user end; The local domain access proxy sends the received cross-domain access request and certificate signcryption sent by the user terminal in the local domain to the target domain access proxy; The target domain access agent sends the received cross-domain access request and certificate signcryption to the blockchain; The blockchain uses the identity authentication smart contract to perform identity authentication based on the obtained cross-domain access request and certificate signcryption, and returns the verification result; wherein the identity authentication smart contract is used to decrypt the certificate signcryption to obtain the certificate; hash the obtained certificate to obtain the hash value corresponding to the certificate; traverse the certificate hash values stored in the blockchain, if the current certificate hash value exists, the identity authentication is passed, otherwise, the identity authentication fails; The target access agent receives the identity authentication result from the blockchain. When the authentication is successful, it sends an authorization access message to the local access agent and obtains user authorization. The domain access agent sends the authorization access message from the target domain access agent to the user end and obtains user authorization; When the user receives the authorization access message, it agrees to the user authorization and initiates cross-domain access. In the cross-domain access stage, based on the dynamically perceived user data, the perception smart contract is used to conduct a comprehensive trust assessment of the user, and the assessment results are fed back to the target domain access agent.
Citation Information
Cited By
Cloud environment intelligent identity authentication cross-domain docking method and system
CN120729571A
Cloud environment intelligent identity authentication cross-domain interfacing method and system
CN120729571B
