Novel cross-domain authentication and authorization system and method for power system

By introducing the trust management module and token verification mechanism into the power system, the problems of low cross-domain authentication efficiency and insufficient security are solved, one-time terminal authentication and multi-domain secure access are achieved, and the cross-domain access efficiency and safety of the power system are improved. Security.

CN118677627APending Publication Date: 2024-09-20STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310264057.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The cross-domain authentication scheme in the existing power system is inefficient, consumes a lot of network resources, and fails to effectively consider the trust relationship between different levels of security domains unique to the power system, resulting in low cross-domain access security and efficiency.

Method used

A new power system cross-domain authentication and authorization system based on trust management is adopted to achieve one-time terminal authentication and multi-domain secure access through the authentication module, authorization module and trust management module. The authentication module verifies the token, the authorization module grants permissions based on attributes and trust, and the trust management module calculates the terminal trust value to dynamically update access control.

Benefits of technology

It achieves one-time terminal authentication and multi-domain secure access, improves the efficiency and security of cross-domain access, implements fine-grained dynamic access control, and reduces computing overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677627A
    Figure CN118677627A
Patent Text Reader

Abstract

The invention discloses a cross-domain authentication and authorization system and method for a novel power system, and the method comprises the steps: carrying out the identity authentication through a local domain authentication module when a terminal accesses a local domain, and issuing a token to the terminal through the local domain authentication module if the authentication succeeds; the terminal holds the token to initiate a cross-domain access application, and the external domain authentication module verifies whether the token held by the terminal is legal or not by calling the CA authority center module to query a domain certificate of a domain where the terminal is located and sends an authentication result to the authorization module; the trust management module calculates a trust value when the terminal requests to access each time; and the authorization module carries out authority granting according to the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module. According to the invention, one-time authentication and multi-domain security access of the terminal are realized; fine-grained terminal dynamic access control is realized; the dynamic change of the trust value is updated in real time, and the calculation overhead is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a new cross-domain authentication and authorization system and method for a new power system, belonging to the technical field of new power system security. Background Art

[0002] With the release of the Carbon Peak and Carbon Neutrality Action Plan by the State Grid Corporation of China, it is proposed to accelerate the construction of a clean, low-carbon, safe and efficient energy system and build a new power system with new energy as the main body. The construction of the new power system has triggered a profound change in the power system, and new demands have also been generated. New power business terminals widely use operator wireless APN private networks and wireless public networks for access, and there is a need for cross-regional, cross-system, and cross-level access. For example, distributed photovoltaics need to access different information systems in the production control area and the management information area at the same time. At the same time, new business terminals such as county photovoltaic terminals, full-caliber power generation data acquisition and control terminals, wind power new energy terminals, and virtual power plant terminals, when accessing the company's main station business system, cross-system, cross-regional, and cross-level access scenarios for distribution automation systems, IoT cloud platform systems, virtual power plant management and control systems, etc. that support new power systems are constantly emerging. However, each business system has different terminal security requirements, resulting in the current terminal being unable to achieve seamless access to multiple business systems after unified identity authentication. With the continuous emergence of comprehensive businesses that require cross-domain data sharing, such as distributed power sources, controllable loads, incremental distribution networks, and material services, centralized access authentication methods can no longer meet the trust requirements of cross-domain business systems involving multiple parties, such as the interaction between power Internet of Things sources, grids, loads, and storage, and precise supply of materials. Therefore, it is necessary to explore cross-domain authentication solutions.

[0003] Traditional cross-domain authentication solutions have the following shortcomings:

[0004] (1) In the existing power system, different trust domains are managed independently. Different terminal devices are authenticated and authorized separately when they access different trust domains. This method is relatively secure. However, with the expansion of various new energy terminal services, a large number of the same terminals need to access different security domains and different systems. Therefore, the traditional authentication scheme is inefficient and consumes a lot of network resources.

[0005] (2) Currently, there are few cross-domain authentication schemes proposed for power systems. The existing cross-domain authentication schemes fail to analyze the characteristics of the power system and fail to consider the trust relationship between different levels of security domains unique to the power system. Therefore, the security and efficiency of the existing cross-domain access schemes are low, and the access control of the terminal after cross-domain access is not fine-grained enough.

[0006] Therefore, this patent proposes a new cross-domain authentication and authorization system and method for power systems, which includes an authentication module, an authorization module and a trust management module. By continuously and dynamically evaluating the trust level between the terminal and the domain and between different domains, one-time terminal authentication and multi-domain secure access are achieved. Summary of the invention

[0007] The access of new power business terminals has brought new demands for cross-regional and cross-system secure access. However, different business systems have different terminal security requirements, which results in the inability of current terminals to achieve seamless access to multiple business systems after unified identity authentication. Therefore, after analyzing the specific application scenarios of the new power system, the present invention proposes a new power system cross-domain authentication and authorization system and method based on trust management, which solves the problem of terminal access between different domains after one authentication.

[0008] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows:

[0009] A new cross-domain authentication and authorization method for power system, comprising:

[0010] When a terminal accesses this domain, it is authenticated by the authentication module of this domain. If the authentication is successful, the authentication module of this domain issues a token to the terminal.

[0011] The terminal initiates a cross-domain access application with a token. The external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module.

[0012] The trust management module calculates the trust value of the terminal each time it requests access;

[0013] The authorization module grants authority based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module.

[0014] The above authentication module cooperates with the CA authority center module to implement the authentication of terminals inside and outside the domain by issuing and verifying tokens and certificates. The authorization module cooperates with the trust management module to implement terminal authority granting and access control based on trust and attributes.

[0015] The above-mentioned local domain authentication module and external domain authentication module both include an intra-domain authentication server, a cross-domain authentication server, a token center and an intra-domain CA center;

[0016] When the terminal accesses the domain, the authentication module performs identity authentication. If the authentication is successful, the authentication module issues a token to the terminal, including:

[0017] The terminal initiates a local domain access request to the local domain authentication module;

[0018] After receiving the local domain access request, the local domain authentication module determines whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain.

[0019] If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; wherein the token content is encrypted using the domain CA public key of the domain to which the terminal applies for access;

[0020] The terminal initiates a cross-domain access application with a token, and the external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module. The steps include:

[0021] After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information in the token center of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to query the domain where the terminal is located to the CA authority center module;

[0022] The CA authority center module sends the queried domain certificate to the cross-domain authentication server of the external domain authentication module;

[0023] The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token;

[0024] After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful;

[0025] The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module;

[0026] The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

[0027] After the terminal passes the authentication module, it needs to be granted permissions through the authorization module to achieve secure access to resources.

[0028] The authorization module mainly adopts an access control model based on attributes and trust. First, the trust management module is called to calculate the trust value of the external terminal that initiates the access application, and then the access control policy is generated according to the subject, object and environment attributes to ensure that the secure and trusted terminal can achieve cross-domain resource access.

[0029] The above authorization module includes PEP, PIP, PDP and PAP, among which PEP is a policy execution node, PIP is a policy information node, PDP is a policy decision node, and PAP is a policy management node;

[0030] The step of granting authority by the authorization module according to the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module includes:

[0031] The PEP receives the cross-domain access request from the terminal, and forwards the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP;

[0032] After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP;

[0033] The PDP calls the trust management module to calculate the trust value of the terminal's request as the basis for authorization;

[0034] The PDP sends a request to the PIP to obtain the terminal's related attributes based on the terminal's identity information. The related attributes include environment attributes and resource attributes.

[0035] PIP returns relevant attributes based on the request information;

[0036] The PDP sends a policy request to the PAP based on the relevant attribute information and the trust value of the terminal's current request;

[0037] PAP returns the policy to PDP;

[0038] PDP determines whether the terminal has the authority to access resources based on the policy and makes a decision;

[0039] PDP returns the decision result to PEP;

[0040] PEP executes the response terminal's request to access resources based on the decision result;

[0041] Terminal access resources.

[0042] The above CA authority center module: is responsible for issuing, querying, storing, modifying and revoking certificates for security domains. Trust management module: is responsible for trust evaluation of terminals and calculation and management of trust levels between domains, as one of the sources of terminal access control authorization decisions, and comprehensively calculates the trust value of terminals when terminals apply for cross-domain access; it mainly evaluates the trust value of domains to terminals, and calculates the trust value of domains to domains based on historical access behavior information. This module will integrate all aspects of data as input for trust evaluation and dynamically update all trust values.

[0043] This application introduces trust value on the basis of attribute-based access control, and the trust value of the terminal during this request becomes one of the bases for authorization decision.

[0044] The trust value of the terminal's current request is composed of direct trust and recommended trust. Assuming that an external terminal requests to access resources in this domain, direct trust is the combination of the trust value of this domain to the terminal's domain and the trust value of the terminal's domain to the terminal. Recommended trust is related to the trust value of the terminal in other security domains associated with this domain.

[0045] The trust value indicates the degree of trust between entities, which is represented by T and takes the value of T∈{0,100}. Its value is affected by access behavior, context environment, time factors, etc. Assuming that terminal S in security domain A wants to access resources in security domain B, the trust calculation method for the specific terminal access request is as follows:

[0046] If the trust value is a direct trust value, when the terminal accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located:

[0047]

[0048] Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) i represents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1;

[0049] If the trust value is a recommended trust value, when the terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of other security domains associated with this domain to the terminal:

[0050]

[0051] Among them, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) represents the trust value of security domain B to the associated security domains D1, D2, etc., Indicates the scores of terminal S given by other security domains D1, D2, etc. that are associated with security domain B;

[0052] The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal:

[0053]

[0054] Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) i is the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B evaluates the terminal based on the behavior status during this visit and other information to obtain the trust value T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.

[0055] A new cross-domain authentication and authorization system for power systems, including a domain authentication module, an external domain authentication module, an authorization module, a trust management module and a CA authority center module;

[0056] This domain authentication module is used to perform identity authentication when the terminal accesses the security domain. If the authentication is successful, a token is issued to the terminal;

[0057] The external domain authentication module is used to call the CA authority center module to query the certificate of the domain where the terminal is located to verify whether the token held by the terminal is legal and send the authentication result to the authorization module when the terminal initiates a cross-domain access application with a token;

[0058] The authorization module is used to grant permissions based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module;

[0059] The trust management module is used to calculate the trust value of the terminal each time it requests access;

[0060] The CA authority module is responsible for managing the certificates of each security domain.

[0061] The above-mentioned local domain authentication module and external domain authentication module both include an intra-domain authentication server, a cross-domain authentication server, a token center and an intra-domain CA center;

[0062] The CA center in the domain is responsible for issuing, storing and managing terminal certificates in the domain;

[0063] The domain authentication server is responsible for the identity authentication of the terminal and completes the access authentication of the terminal by querying the terminal certificate of the CA center in the domain;

[0064] The cross-domain authentication server is used to receive the terminal's cross-domain application, query the CA authority center module for the domain certificate, and then apply for a verification token from the token center with the domain certificate;

[0065] The token center is used to verify the token content and return the verification result to the cross-domain authentication server. The two work together to complete the terminal authentication and send the authentication result to the authorization module.

[0066] The above-mentioned cross-domain authentication server is responsible for receiving the token of the terminal, extracting the issuer information from the token to determine which domain the terminal comes from, and sending a request to the CA authority center module to query the certificate of the domain where the terminal is located, and then sending the certificate and token to the token center for verification, and finally processing the terminal request according to the verification result; the token center mainly has two functions: generating tokens and verifying tokens. If the terminal passes the intra-domain authentication, the token center will issue it an authentication token signed by the private key of the CA of the domain. If the terminal applies to use the token to access an external domain, the cross-domain authentication of the external domain will receive the terminal token and verify the source of the token and the legitimacy of the token content.

[0067] The workflow of the above domain authentication module is as follows:

[0068] The local domain authentication module is used to receive the local domain access request initiated by the terminal;

[0069] After receiving the local domain access request, the local domain authentication module is used to determine whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain.

[0070] If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; wherein the token content is encrypted using the domain CA public key of the domain to which the terminal applies for access;

[0071] The workflow of the external domain authentication module is as follows:

[0072] After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information from the token of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to the CA authority center module to query the domain where the terminal is located;

[0073] The CA authority center module sends the queried domain certificate to the cross-domain authentication server of the external domain authentication module;

[0074] The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token;

[0075] After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful;

[0076] The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module;

[0077] The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

[0078] After the terminal passes the authentication module, it needs to be granted permissions through the authorization module to achieve secure access to resources.

[0079] The above authorization module mainly adopts an access control model based on attributes and trust. First, it calls the trust management module to calculate the trust value of the external terminal that initiates the access application, and then generates an access control policy based on the subject, object and environment attributes to ensure that secure and trusted terminals can access cross-domain resources.

[0080] The above authorization module includes PEP, PIP, PDP and PAP. EP, PIP, PDP and PAP implement authorization decision in combination with the trust management module, wherein PEP is a policy execution node, PIP is a policy information node, PDP is a policy decision node, and PAP is a policy management node;

[0081] PEP is used to intercept access requests to system resources and forward the access requests to the authentication module. After authentication, the request information carried in the access request is forwarded to the PDP.

[0082] The PEP is also responsible for enforcing access decisions received from the PDP and fulfilling the obligations of the PDP contained in the access decisions;

[0083] PDP is used to evaluate access requests and make access decisions based on the attributes describing the access request elements and the access control policy;

[0084] The PIP is used to provide the attributes required for access requests, collect attributes related to the subject, object, and environment of the access request, and provide the attributes to the PDP when making access decisions;

[0085] PAP is used to support policy management functions, including adding, deleting, and modifying access policies, and also stores access policies defined by policy administrators.

[0086] The authorization process of the above authorization module is as follows:

[0087] The PEP is used to receive the cross-domain access request of the terminal, and forward the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP;

[0088] After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP;

[0089] PDP is used to call the trust management module to calculate the trust value of the terminal's current request as the basis for authorization;

[0090] The PDP is used to send a request to the PIP to obtain the terminal's related attributes according to the terminal's identity information. The related attributes include environment attributes and resource attributes.

[0091] PIP is used to return relevant attributes based on the request information;

[0092] PDP is used to send a policy request to PAP based on relevant attribute information and the trust value of the terminal's current request;

[0093] PAP is used to return policies to PDP;

[0094] PDP is used to determine whether the terminal has the authority to access resources and make decisions based on the policy;

[0095] PDP is used to return decision results to PEP;

[0096] PEP is used to execute and respond to the terminal's request to access resources based on the decision result;

[0097] Terminals are used to access resources.

[0098] The above CA authority center module: is responsible for issuing, querying, storing, modifying and revoking certificates for security domains. Trust management module: is responsible for trust evaluation of terminals and calculation and management of trust levels between domains, as one of the sources of terminal access control authorization decisions, and comprehensively calculates the trust value of terminals when terminals apply for cross-domain access; it mainly evaluates the trust value of domains to terminals, and calculates the trust value of domains to domains based on historical access behavior information. This module will integrate all aspects of data as input for trust evaluation and dynamically update all trust values.

[0099] This application introduces trust value based on attribute-based access control, and the trust value of the terminal in this request becomes one of the authorization decision bases. The trust value of the terminal's current request consists of direct trust and recommended trust. Assuming that an external terminal requests to access resources in this domain, the direct trust is the trust value of this domain to the domain where the terminal is located and the trust value of the domain where the terminal is located to the terminal. The recommended trust is related to the trust value of the terminal in other security domains associated with this domain;

[0100] The trust value indicates the degree of trust between entities, which is represented by T and takes the value of T∈{0,100}. Its value is affected by access behavior, context environment, time factors, etc. Assuming that terminal S in security domain A wants to access resources in security domain B, the trust calculation method for the specific terminal access request is as follows:

[0101] If the trust value is a direct trust value: When a terminal in an external domain accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located:

[0102]

[0103] Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) i represents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1;

[0104] If the trust value is a recommended trust value, when the terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of other security domains associated with this domain to the terminal:

[0105]

[0106] Among them, T2(S) iis the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) represents the trust value of security domain B to the associated security domains D1, D2, etc., Indicates the scores of terminal S given by other security domains D1, D2, etc. that are associated with security domain B;

[0107] The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal:

[0108]

[0109] Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) i is the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B will evaluate the terminal based on the behavior status during this visit and other information to obtain the trust value, that is, T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.

[0110] The technologies not mentioned in the present invention are all referred to the prior art.

[0111] Compared with the prior art, the present invention has the following beneficial effects:

[0112] 1. The present invention implements cross-domain authentication of terminals based on tokens by issuing tokens to terminals that have passed authentication and having an external domain authentication server verify the tokens, thereby achieving one-time authentication of terminals and secure access to multiple domains.

[0113] 2. The present invention is based on attribute and trust terminal authorization, realizes dynamic permission granting by real-time evaluation of terminal trust, dynamic update of inter-domain trust and construction of attribute policy mapping, and realizes fine-grained terminal dynamic access control.

[0114] 3. The present invention provides a method for calculating the trust value of a terminal during cross-domain authorization. The trust value of the terminal is calculated by evaluating the trust level between adjacent domains and the trust value of the adjacent domain to the terminal. By adding a time decay function, the trust value changes dynamically and is updated in real time, and the calculation overhead is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0115] Figure 1 This is a cross-domain authentication and authorization model diagram of the present invention;

[0116] Figure 2 This is a diagram of the cross-domain authentication process of the present invention;

[0117] Figure 3 This is a diagram of the cross-domain authorization process of the present invention. DETAILED DESCRIPTION

[0118] In order to better understand the present invention, the content of the present invention is further explained below in conjunction with the embodiments, but the content of the present invention is not limited to the following embodiments.

[0119] Example 1

[0120] like Figure 1 As shown, a new cross-domain authentication and authorization system for power systems includes a local domain authentication module, an external domain authentication module, an authorization module, a trust management module and a CA authority center module; the authentication module and the authorization module are included in each security domain, while the CA authority center module and the trust management module are independent of all domains;

[0121] This domain authentication module is used to perform identity authentication when the terminal accesses the security domain. If the authentication is successful, a token is issued to the terminal. The external domain authentication module is used to call the CA authority center module to query the domain certificate of the domain where the terminal is located to verify whether the token held by the terminal is legal when the terminal initiates a cross-domain access application with the token, and send the authentication result to the authorization module; the authorization module is used to grant permissions based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module; the trust management module is used to calculate the trust value of the terminal each time it requests access; the CA authority module is responsible for managing the certificates of each security domain.

[0122] The authentication module implements the security and credibility of cross-domain login terminals by issuing and verifying tokens; the authorization module adopts an access control method based on attributes and trust values, and implements terminal fine-grained authorization through policy evaluation; the trust management module is responsible for the dynamic trust evaluation of the terminal, mainly obtaining the trust value of the terminal by comprehensively calculating the trust value from domain to terminal and from domain to domain during terminal authorization; the CA authority module is mainly responsible for managing certificates of various security domains (responsible for issuing, querying, storing, modifying and revoking domain certificates);

[0123] The above authentication module cooperates with the CA authority center module to implement the authentication of terminals inside and outside the domain by issuing and verifying tokens and certificates. The authorization module cooperates with the trust management module to implement terminal authority granting and access control based on trust and attributes.

[0124] The above-mentioned local domain authentication module and external domain authentication module both include an intra-domain authentication server, a cross-domain authentication server, a token center and an intra-domain CA center;

[0125] The CA center in the domain is responsible for issuing, storing and managing terminal certificates in the domain;

[0126] The domain authentication server is responsible for the identity authentication of the terminal and completes the access authentication of the terminal by querying the terminal certificate of the CA center in the domain;

[0127] The cross-domain authentication server is used to receive the cross-domain application of the terminal, query the CA authority center module for the domain certificate of the domain where the terminal is located, and then apply for a verification token from the token center with the domain certificate;

[0128] The token center is used to verify the token content and return the verification result to the cross-domain authentication server. The two work together to complete the terminal authentication and send the authentication result to the authorization module.

[0129] like Figure 2 As shown, the workflow of this domain authentication module is as follows:

[0130] The local domain authentication module is used to receive the local domain access request initiated by the terminal;

[0131] After receiving the local domain access request, the local domain authentication module is used to determine whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain.

[0132] If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; the token content is encrypted using the domain CA public key of the domain that the terminal applies to access, and the token content includes a token ID number that uniquely represents a token; the token issuance time and validity period are used to verify whether the token has expired; the information on the security domain allowed to be accessed is used to identify the security domain name information that the terminal is allowed to access; the token signature information is the data encrypted by the issuer using his own domain CA private key to summarize the entire token content, identifying the authenticity of the token source; then the terminal initiates a cross-domain access request to the external domain authentication server with the authentication token;

[0133] The workflow of the external domain authentication module is as follows:

[0134] After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information from the token of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to the CA authority center module to query the domain where the terminal is located;

[0135] The CA authority center module sends the queried domain certificate to the cross-domain authentication server of the external domain authentication module;

[0136] The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token;

[0137] After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful;

[0138] The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module;

[0139] The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

[0140] After the terminal passes the authentication module, it needs to be granted permissions through the authorization module to achieve secure access to resources.

[0141] The authorization module mainly adopts an access control model based on attributes and trust. First, it calls the trust management module to calculate the trust value of the external terminal that initiates the access request, and then generates an access control policy based on the subject, object and environment attributes to ensure that secure and trusted terminals can access cross-domain resources.

[0142] The authorization module mainly includes PEP, PIP, PDP and PAP. PEP, PIP, PDP and PAP are combined with the trust management module to realize authorization decision. Among them, PEP is the policy execution node, PIP is the policy information node, PDP is the policy decision node, and PAP is the policy management node;

[0143] PEP is used to intercept access requests to system resources and forward the access requests to the authentication module. After authentication, the request information carried in the access request is forwarded to the PDP.

[0144] The PEP is also responsible for enforcing access decisions received from the PDP and fulfilling the obligations of the PDP contained in the access decisions;

[0145] PDP is used to evaluate access requests and make access decisions based on the attributes describing the access request elements and the access control policy;

[0146] The PIP is used to provide the attributes required for access requests, collect attributes related to the subject, object, and environment of the access request, and provide the attributes to the PDP when making access decisions;

[0147] PAP is used to support policy management functions, including adding, deleting, and modifying access policies, and also stores access policies defined by policy administrators.

[0148] like Figure 3 As shown in the figure, the main authorization process of the authorization module is described as follows (here it is assumed that the terminal has been successfully authenticated in the external domain):

[0149] The PEP is used to receive the cross-domain access request of the terminal, and forward the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP;

[0150] After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP;

[0151] PDP is used to call the trust management module to calculate the trust value of the terminal's current request as the basis for authorization;

[0152] The PDP is used to send a request to the PIP to obtain the terminal's related attributes according to the terminal's identity information. The related attributes include environment attributes and resource attributes.

[0153] PIP is used to return relevant attributes based on the request information;

[0154] PDP is used to send a policy request to PAP based on relevant attribute information and the trust value of the terminal's current request;

[0155] PAP is used to return policies to PDP;

[0156] PDP is used to determine whether the terminal has the authority to access resources and make decisions based on the policy;

[0157] PDP is used to return decision results to PEP;

[0158] PEP is used to execute and respond to the terminal's request to access resources based on the decision result;

[0159] Terminals are used to access resources.

[0160] The above introduces trust value based on attribute-based access control, and the trust value of the terminal in this request becomes one of the authorization decision bases. The trust value of the terminal's current request consists of two parts: direct trust and recommended trust. Assuming that an external terminal requests to access resources in this domain, the direct trust is the trust value of this domain to the domain where the terminal is located and the trust value of the domain where the terminal is located to the terminal. The recommended trust is related to the trust value of the terminal in other security domains associated with this domain;

[0161] The trust value indicates the degree of trust between entities, which is represented by T and takes the value of T∈{0,100}. Its value is affected by access behavior, context environment, time factors, etc. Assuming that terminal S in security domain A wants to access resources in security domain B, the trust calculation method for the specific terminal access request is as follows:

[0162] If the trust value is a direct trust value: When a terminal accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located:

[0163]

[0164] Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) i represents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1;

[0165] If the trust value is the recommended trust value: When an external terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of terminal S by other security domains associated with this domain:

[0166]

[0167] Among them, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) represents the trust value of security domain B to the associated security domains D1, D2, etc., Indicates the scores of terminal S given by other security domains D1, D2, etc. that are associated with security domain B;

[0168] The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal:

[0169]

[0170] Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) iis the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B will evaluate the terminal based on the behavior status during this visit and other information to obtain the trust value, that is, T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.

[0171] The above process completes the terminal's cross-domain authentication and authorization work, enabling the terminal to securely access resources across domains.

[0172] The above-mentioned token-based terminal cross-domain authentication implements cross-domain authentication by issuing tokens to authenticated terminals and verifying tokens on external domain authentication servers, thereby achieving one-time authentication for terminals and secure access to multiple domains. Dynamic permission granting is achieved by real-time evaluation of terminal trust, dynamic update of inter-domain trust, and construction of attribute policy mapping, thereby achieving fine-grained dynamic terminal access control. The terminal trust value is calculated by evaluating the trust level between adjacent domains and the trust value of the adjacent domain to the terminal. By adding a time decay function, the trust value changes dynamically and is updated in real time, and the computational overhead is reduced.

[0173] Example 2

[0174] A new cross-domain authentication and authorization method for power system, comprising:

[0175] When a terminal accesses this domain, it is authenticated by the authentication module of this domain. If the authentication is successful, the authentication module of this domain issues a token to the terminal.

[0176] The terminal initiates a cross-domain access application with a token. The external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module.

[0177] The trust management module calculates the trust value of the terminal each time it requests access;

[0178] The authorization module grants authority based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module.

[0179] The above-mentioned local domain authentication module and external domain authentication module both include an intra-domain authentication server, a cross-domain authentication server, a token center and an intra-domain CA center;

[0180] When the terminal accesses the domain, the authentication module performs identity authentication. If the authentication is successful, the authentication module issues a token to the terminal, including:

[0181] The terminal initiates a local domain access request to the local domain authentication module;

[0182] After receiving the local domain access request, the local domain authentication module determines whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain.

[0183] If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; wherein the token content is encrypted using the domain CA public key of the domain to which the terminal applies for access;

[0184] The terminal initiates a cross-domain access application with a token, and the external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module. The steps include:

[0185] After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information in the token center of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to query the domain where the terminal is located to the CA authority center module;

[0186] The CA authority center module sends the queried domain certificate to the cross-domain authentication server of the external domain authentication module;

[0187] The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token;

[0188] After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful;

[0189] The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module;

[0190] The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

[0191] The above authorization module includes PEP, PIP, PDP and PAP, among which PEP is a policy execution node, PIP is a policy information node, PDP is a policy decision node, and PAP is a policy management node;

[0192] The step of granting authority by the authorization module according to the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module includes:

[0193] The PEP receives the cross-domain access request from the terminal, and forwards the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP;

[0194] After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP;

[0195] The PDP calls the trust management module to calculate the trust value of the terminal's request as the basis for authorization;

[0196] The PDP sends a request to the PIP to obtain the terminal's related attributes based on the terminal's identity information. The related attributes include environment attributes and resource attributes.

[0197] PIP returns relevant attributes based on the request information;

[0198] The PDP sends a policy request to the PAP based on the relevant attribute information and the trust value of the terminal's current request;

[0199] PAP returns the policy to PDP;

[0200] PDP determines whether the terminal has the authority to access resources based on the policy and makes a decision;

[0201] PDP returns the decision result to PEP;

[0202] PEP executes the response terminal's request to access resources based on the decision result;

[0203] Terminal access resources.

[0204] The trust value in the above trust management module includes direct trust value and recommended trust value. The trust value indicates the degree of trust between entities. The trust value calculation method for each access request by the terminal is as follows:

[0205] If the trust value is a direct trust value, when the terminal accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located:

[0206]

[0207] Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) irepresents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1;

[0208] If the trust value is a recommended trust value, when the terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of other security domains associated with this domain to the terminal:

[0209]

[0210] Among them, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) indicates that security domain B has associated security domains D1, D2, and D j The trust value, Indicates other security domains D1, D2, and D2 that are associated with security domain B. j Rating of terminal S;

[0211] The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal:

[0212]

[0213] Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) i is the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B evaluates the terminal based on the information during this visit and obtains the trust value T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.

[0214] The above-mentioned token-based terminal cross-domain authentication implements cross-domain authentication by issuing tokens to authenticated terminals and verifying tokens on external domain authentication servers, thereby achieving one-time authentication for terminals and secure access to multiple domains. The attribute and trust-based terminal authorization implements dynamic permission granting by real-time evaluation of terminal trust, dynamic update of inter-domain trust, and construction of attribute policy mapping, thereby achieving fine-grained dynamic terminal access control. A method for calculating the trust value during terminal cross-domain authorization is given. The terminal trust value is calculated by evaluating the trust levels between adjacent domains and the trust values ​​of adjacent domains to the terminal. The trust value is dynamically updated in real time by adding a time decay function, and the computational overhead is reduced.

[0215] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0216] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0217] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0219] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0220] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A new cross-domain authentication and authorization method for a power system, characterized by: include: When a terminal accesses this domain, it is authenticated by the authentication module of this domain. If the authentication is successful, the authentication module of this domain issues a token to the terminal. The terminal initiates a cross-domain access application with a token. The external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module. The trust management module calculates the trust value of the terminal each time it requests access; The authorization module grants authority based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module.

2. The method according to claim 1, characterized in that: Both the local domain authentication module and the external domain authentication module include an intra-domain authentication server, a cross-domain authentication server, a token center, and an intra-domain CA center; When the terminal accesses the domain, the authentication module performs identity authentication. If the authentication is successful, the authentication module issues a token to the terminal, including: The terminal initiates a local domain access request to the local domain authentication module; After receiving the local domain access request, the local domain authentication module determines whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain. If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; wherein the token content is encrypted using the domain CA public key of the domain to which the terminal applies for access; The terminal initiates a cross-domain access application with a token, and the external domain authentication module verifies whether the token held by the terminal is legal by calling the CA authority center module to query the domain certificate of the domain where the terminal is located and sends the authentication result to the authorization module. The steps include: After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information in the token center of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to query the domain where the terminal is located to the CA authority center module; The CA authority center module sends the queried domain certificate to the cross-domain authentication server of the external domain authentication module; The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token; After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful; The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module; The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

3. The method according to claim 2, characterized in that: The authorization module includes PEP, PIP, PDP and PAP, among which PEP is the policy execution node, PIP is the policy information node, PDP is the policy decision node, and PAP is the policy management node; The step of granting authority by the authorization module according to the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module includes: The PEP receives the cross-domain access request from the terminal, and forwards the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP; After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP; The PDP calls the trust management module to calculate the trust value of the terminal's request as the basis for authorization; The PDP sends a request to the PIP to obtain the terminal's related attributes based on the terminal's identity information. The related attributes include environment attributes and resource attributes. PIP returns relevant attribute information based on the request information; The PDP sends a policy request to the PAP based on the relevant attribute information and the trust value of the terminal's current request; PAP returns the policy to PDP; PDP determines whether the terminal has the authority to access resources based on the policy and makes a decision; PDP returns the decision result to PEP; PEP executes the response terminal's request to access resources based on the decision result; Terminal access resources.

4. The method according to claim 3, characterized in that: The trust value in the trust management module includes direct trust value and recommended trust value. The trust value indicates the degree of trust between entities. The trust value calculation method for each access request by the terminal is as follows: If the trust value is a direct trust value, when the terminal accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located: Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) i represents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1; If the trust value is a recommended trust value, when the terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of other security domains associated with this domain to the terminal: Among them, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) indicates that security domain B has associated security domains D1, D2, ..., D j The trust value, Indicates other security domains D1, D2, and D2 that are associated with security domain B. j Rating of terminal S; The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal: Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) i is the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B evaluates the terminal based on the information during this visit and obtains the trust value T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.

5. A new cross-domain authentication and authorization system for power systems, characterized by: Contains local domain authentication module, external domain authentication module, authorization module, trust management module and CA authority center module; This domain authentication module is used to perform identity authentication when the terminal accesses the security domain. If the authentication is successful, a token is issued to the terminal; The external domain authentication module is used to call the CA authority center module to query the domain certificate of the domain where the terminal is located to verify whether the token held by the terminal is legal and send the authentication result to the authorization module when the terminal initiates a cross-domain access application with a token; The authorization module is used to grant permissions based on the authentication result of the external domain authentication module and the trust value of the terminal calculated by the query trust management module; The trust management module is used to calculate the trust value of the terminal each time it requests access; The CA authority module is responsible for the issuance and management of certificates for each security domain.

6. The system according to claim 5, characterized in that: Both the local domain authentication module and the external domain authentication module include an intra-domain authentication server, a cross-domain authentication server, a token center, and an intra-domain CA center; The CA center in the domain is responsible for issuing, storing and managing terminal certificates in the domain; The domain authentication server is responsible for the identity authentication of the terminal and completes the access authentication of the terminal by querying the terminal certificate of the CA center in the domain; The cross-domain authentication server is used to receive the cross-domain application of the terminal, query the CA authority center module for the domain certificate of the domain where the terminal is located, and then apply for a verification token from the token center with the domain certificate; The token center is used to verify the token content and return the verification result to the cross-domain authentication server. The two work together to complete the terminal authentication and send the authentication result to the authorization module.

7. The system according to claim 6, characterized in that: The workflow of this domain authentication module is as follows: The local domain authentication module is used to receive the local domain access request initiated by the terminal; After receiving the local domain access request, the local domain authentication module is used to determine whether the terminal is a local domain terminal. If so, the in-domain authentication server of the local domain authentication module is responsible for authenticating the terminal. The in-domain authentication server of the local domain authentication module initiates a request to verify the terminal certificate to the in-domain CA center of the local domain authentication module based on the terminal information in the local domain access request. The in-domain CA center of the local domain authentication module verifies whether the terminal certificate is issued by the in-domain CA center of the local domain authentication module and whether the terminal certificate is within the validity period, so as to determine whether the terminal certificate is legal. If it is legal, the terminal passes the identity authentication in the local domain. If the terminal successfully accesses the domain and applies for cross-domain access, the token center of the domain authentication module generates a token for the terminal; wherein the token content is encrypted using the domain CA public key of the domain to which the terminal applies for access; The workflow of the external domain authentication module is as follows: After receiving the token held by the terminal, the cross-domain authentication server of the external domain authentication module extracts the issuer information from the token of the local domain authentication module, identifies the domain where the terminal is located, and initiates a domain certificate request to the CA authority center module to query the domain where the terminal is located; The CA authority center module sends the domain certificate of the terminal domain to the cross-domain authentication server of the external domain authentication module; The cross-domain authentication server of the external domain authentication module sends the token of the terminal and the domain certificate of the domain where the terminal is located to the token center of the external domain authentication module, requesting verification of the token; After receiving the terminal's token and the domain certificate of the terminal's domain, the token center of the external domain authentication module uses the public key of the terminal's domain to decrypt the signature information on the token, verify whether the source of the token is authentic, and verify the validity of the token. If the verification token is valid and the source is authentic, the terminal authentication is successful; The token center of the external domain authentication module sends the result of the token verification to the cross-domain authentication server of the external domain authentication module; The cross-domain authentication server of the external domain authentication module returns the authentication result to the terminal according to the verification result.

8. The system according to claim 7, characterized in that: The authorization module includes PEP, PIP, PDP and PAP. EP, PIP, PDP and PAP are combined with the trust management module to implement authorization decisions. Among them, PEP is a policy execution node, PIP is a policy information node, PDP is a policy decision node, and PAP is a policy management node. PEP is used to intercept access requests to system resources and forward the access requests to the authentication module. After authentication, the request information carried in the access request is forwarded to the PDP. The PEP is also responsible for enforcing access decisions received from the PDP and fulfilling the obligations of the PDP contained in the access decisions; PDP is used to evaluate access requests and make access decisions based on the attributes describing the access request elements and the access control policy; The PIP is used to provide the attributes required for access requests, collect attributes related to the subject, object, and environment of the access request, and provide the attributes to the PDP when making access decisions; PAP is used to support policy management functions, including adding, deleting, and modifying access policies, and also stores access policies defined by policy administrators.

9. The system according to claim 8, characterized in that: The authorization process of the authorization module is as follows: The PEP is used to receive the cross-domain access request of the terminal, and forward the cross-domain access request to the cross-domain authentication server in the external domain authentication module for authentication. After the authentication is completed, the authentication result is returned to the PEP; After receiving the authentication success message, the PEP extracts the terminal identity information from the cross-domain access request and forwards it to the PDP; PDP is used to call the trust management module to calculate the trust value of the terminal's current request as the basis for authorization; The PDP is used to send a request to the PIP to obtain the terminal's related attributes according to the terminal's identity information. The related attributes include environment attributes and resource attributes. PIP is used to return relevant attribute information according to the request information; PDP is used to send a policy request to PAP based on relevant attribute information and the trust value of the terminal's current request; PAP is used to return policies to PDP; PDP is used to determine whether the terminal has the authority to access resources and make decisions based on the policy; PDP is used to return decision results to PEP; PEP is used to execute and respond to the terminal's request to access resources based on the decision result; Terminals are used to access resources.

10. The system according to claim 9, characterized in that: The trust values ​​generated by the trust management module include direct trust and recommended trust. The trust value indicates the degree of trust between entities. The trust value calculation method for each access request by the terminal is as follows: If the trust value is a direct trust value: When a terminal accesses this domain, the direct trust value is composed of the trust value of this domain to the domain where the terminal is located and the score of the terminal by the domain where the terminal is located: Among them, T BA (S) i represents the direct trust value of terminal S in security domain A during the i-th visit to security domain B; T A (S) i represents the score of security domain A to terminal S during the i-th visit; T(B→A) represents the trust value of security domain B to security domain A; F(t n -t n-1 ) is the time decay function, which represents the decay rate between any two visits of the terminal in the time tn and tn-1; If the trust value is a recommended trust value: When a terminal accesses this domain, the recommended trust value is composed of the trust value of this domain to other domains and the score of other security domains associated with this domain to the terminal: Among them, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T(B→D j ) indicates that security domain B has associated security domains D1, D2, ..., D j The trust value, T BDj (S) i Indicates other security domains D1, D2, and D2 that are associated with security domain B. j Rating of terminal S; The total trust value of the terminal is obtained based on the direct trust value and recommended trust value of the terminal: Among them, T(S) i is the total trust value of the i-th cross-domain access request of terminal S, T2(S) i is the recommended trust value when terminal S visits security domain B for the i-th time, T B (S) i is the trust value of security domain B to terminal S during the i-th visit, ω1ω2ω3 represents different weight values; during the first visit, the total trust value of the terminal is composed of the direct trust value and the recommended trust value. After the visit is successful, security domain B evaluates the terminal based on the information during this visit and obtains the trust value T B (S) i ; When the terminal visits security domain B again, the total trust value of the terminal is composed of the direct trust value, the recommended trust value and the trust value of domain B to the terminal.