A power grid device authentication method, system, device and medium
By generating a power grid topology environment identifier and calculating the authentication tier value in conjunction with resource status and business risks, the authentication method is dynamically adjusted, which solves the problem of credentials being reused when they are out of context in power grid equipment access authentication, thereby improving power grid security and authentication efficiency.
Patent Information
- Application Number
- CN202611469837.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
In existing power grid equipment access authentication schemes, equipment authentication credentials cannot be effectively bound to their actual access environment, leading to the risk of credentials being reused without being connected to the access environment, thus affecting power grid security.
By acquiring power grid topology information, a power grid topology environment identifier is generated. Combined with the resource status parameters of the equipment and the business risk level, the authentication tier value is calculated, the target authentication method is determined, and the dynamic binding of credentials to the access environment is realized. Lightweight or full authentication is used to ensure security.
It improves the security of power grid equipment access authentication, prevents credentials from being reused in different topology environments, reduces authentication overhead, and reduces the risk of authentication failure due to insufficient equipment resources.
Smart Images

Figure CN123184944A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power grid equipment security technology, and in particular to a power grid equipment authentication method, system, device and medium. Background Technology
[0002] Authentication of grid equipment is a fundamental step in ensuring the safe and stable operation of a power system. With the large-scale development of the power Internet of Things, distribution automation, and distributed energy access, the access targets of grid equipment have gradually expanded from traditional fixed terminals to a large number of distributed edge devices deployed in feeders, transformer substations, and protected sections. The communication links of these devices are characterized by dispersed access points and dynamically changing network topologies. Their access authentication not only needs to verify the legitimacy of the device's identity but also needs to ensure that the authentication result matches the device's current grid topology location and operating status. Otherwise, even devices that have passed authentication may retain an invalid authentication status after the topology environment changes, posing a threat to the safe operation of the power grid.
[0003] Existing power grid equipment access authentication schemes typically employ authentication mechanisms based on digital certificates or pre-shared keys. Identity credentials are issued and distributed during device registration, and subsequent access verification confirms device identity by checking the legitimacy and validity of these credentials. This method faces inherent difficulties in implementation: the identity credential itself only proves the legitimacy of the device's identity; its validity is not correlated with the actual access environment. When a device migrates from one feeder or transformer area to another, the original credential can still be used for authentication. Edge authentication nodes lack the basis to determine whether the credential should be bound to the current access environment, resulting in authentication results that fail to reflect the legitimacy of the device's current location. This creates the risk of credentials being reused outside the access environment. Therefore, how to solve the problem of power grid equipment authentication credentials being reused outside the access environment and improve the security of power grid equipment access authentication is a pressing technical issue that needs to be addressed. Summary of the Invention
[0004] This application provides a method, system, device, and medium for power grid equipment authentication, thereby improving the security of power grid equipment access authentication.
[0005] This application provides a power grid equipment authentication method, which is applied to an edge authentication node, including: Obtain power grid topology information; generate a power grid topology environment identifier based on the power grid topology information; The power grid topology environment identifier is sent to the power grid equipment to receive the access authentication request returned by the power grid equipment. The access authentication request is generated based on the power grid topology environment identifier and includes a device masking index, resource status parameters, power grid scenario label, and credential status marker. Based on the resource status parameters, determine the resource consumption level; based on the power grid scenario label, determine the business risk level; based on the device masking index, query the historical topology version number of the power grid device; based on the current topology version number in the power grid topology information and the historical topology version number, determine the topology change level. Calculate the authentication tier value based on the resource consumption level, the business risk level, and the topology change level; Based on the credential status marker and the authentication tier value, a target authentication method is determined from the preset authentication methods, and the power grid equipment is authenticated and interacted with according to the target authentication method.
[0006] This application acquires power grid topology information and generates a power grid topology environment identifier. This identifier is then sent to power grid equipment to trigger an access authentication request, ensuring that all subsequent authentication interactions are based on this environment identifier, thus establishing a foundation for binding authentication credentials to the access environment. Upon receiving an access request containing a device masking index and a credential status flag, the application determines the resource consumption level based on resource status parameters, the business risk level based on power grid scenario tags, and the topology change level by comparing the historical topology version number obtained from the device masking index with the current version number. Finally, it calculates an authentication score based on a comprehensive analysis of resource load, business risk, and topology change, enabling dynamic adjustments to authentication decisions based on the actual device status and power grid environment. Based on the credential status flag and the authentication score, the application determines the target authentication method from preset authentication methods and executes the authentication interaction. This approach ensures security by triggering full authentication in scenarios with missing credentials or high risk, while employing lightweight authentication to reduce overhead in scenarios with valid credentials and low risk. Compared with conventional authentication mechanisms based on fixed identity credentials, this application integrates the power grid topology environment identifier throughout the entire process of credential derivation and verification, binding the authentication credential to the actual access environment of the device. Even if the credential is intercepted, it cannot be reused outside the current topology environment, thereby improving the security of power grid device access authentication.
[0007] Further, generating a power grid topology environment identifier based on the power grid topology information includes: Obtain several topology parameters from the power grid topology information; The topology parameters are concatenated in a preset order to obtain a concatenated information string; The concatenated information string is encrypted to obtain the power grid topology environment identifier.
[0008] By acquiring multi-dimensional topology parameters such as feeders, transformer substations, protected sections, topology versions, and time windows from the power grid topology information, and concatenating them in a preset order, a hash operation is performed to generate a power grid topology environment identifier. This transforms the originally scattered spatiotemporal state information of the power grid into a unified and irreversible code, enabling the same device to obtain different environment identifiers under different feeders, transformer substations, or topology versions. This provides an immutable anchor point for the precise binding of subsequent authentication credentials with the current access environment. This identifier, as the core carrier of environment binding, runs through the entire process of credential derivation and verification, ensuring that all subsequent authentication interactions are constrained within a specific spatiotemporal range of the power grid topology.
[0009] Furthermore, the resource status parameters include post-quantum signature time, key encapsulation time, number of authentication message fragments, and peak memory usage. Determining the resource consumption level based on the resource status parameters includes: The post-quantum signature time is compared with a preset signature time threshold to obtain a signature time comparison result; the key encapsulation time is compared with a preset encapsulation time threshold to obtain an encapsulation time comparison result; based on the signature time comparison result and the encapsulation time comparison result, the post-quantum computation time level is determined. The number of authentication message fragments is compared with a preset fragment number threshold to determine the communication data volume level. The peak memory usage is compared with a preset memory usage threshold to determine the memory usage level; The resource consumption level is determined based on the post-quantum computing time consumption level, the communication data volume level, and the memory usage level.
[0010] By extracting measurements from resource status parameters across four dimensions—post-quantum signature time, key encapsulation time, number of authentication message fragments, and peak memory usage—and comparing each with its respective preset threshold, the comparison results of signature time and encapsulation time are mapped to a post-quantum computing time level, the number of fragments to a communication data volume level, and the peak memory usage to a memory usage level. This standardizes the dispersed resource load information on the device side into three unified level values as resource consumption levels. This allows edge authentication nodes to accurately grasp the device's computing power, communication bandwidth, and storage resource status, thus avoiding assigning excessive post-quantum cryptographic tasks to low-computing-power devices during subsequent authentication tiering, reducing the risk of authentication failures or timeouts due to insufficient resources. Simultaneously, by setting independent threshold systems to quantify the load across the three dimensions of post-quantum computing, communication, and memory, resource assessment can distinguish different bottleneck types, providing fine-grained input for calculating authentication tier values.
[0011] Further, the steps include determining the business risk level based on the power grid scenario label; querying the historical topology version number of the power grid equipment based on the equipment masking index; and determining the topology change level based on the current topology version number in the power grid topology information and the historical topology version number, including: Identify the service type corresponding to the power grid scenario label; Based on the preset correspondence between business types and business risk levels, query the business risk level that matches the business type; Based on the device masking index, query the locally stored credential status table and read the historical topology version number of the power grid device from the credential status table; The current topology version number is compared with the historical topology version number to obtain the comparison result; Based on the comparison results, the level of topological change is determined.
[0012] By identifying the business type corresponding to the power grid scenario label and querying the preset mapping relationship between business type and risk level, the business risk level is determined. This allows low-risk businesses such as metering and data acquisition and status monitoring to receive a lower risk level, while high-risk businesses such as protection control and dispatch control receive a higher risk level. This enables subsequent authentication grading to adaptively adjust the authentication strength based on the business's security sensitivity—using lightweight authentication to reduce overhead in low-risk business scenarios and triggering full authentication to ensure security in high-risk business scenarios. Simultaneously, the historical topology version number of the device is read by querying the locally stored credential status table through the device masking index, and the current topology version number is compared with the historical topology version number. Based on the comparison result, the topology change level is determined, enabling edge authentication nodes to perceive the magnitude of topology changes experienced by the device—no topology change when the version number is the same, a local change when the version number changes but the feeder is the same, and a global change when both the version number and the feeder change. Different change magnitudes correspond to different level values, allowing subsequent authentication grading to dynamically adjust the authentication strength according to the degree of topology change, preventing the device from continuing to use the original credentials after feeder switching or transformer area migration.
[0013] Further, the calculation of the authentication tier value based on the resource consumption level, the business risk level, and the topology change level includes: Obtain the first weight corresponding to the post-quantum computing time consumption level, the second weight corresponding to the memory usage level, the third weight corresponding to the communication data volume level, the fourth weight corresponding to the business risk level, and the fifth weight corresponding to the topology change level; The first weighted value is obtained by multiplying the post-quantum computing time level by the first weight. Calculate the product of the memory usage level and the second weight to obtain the second weighted value; Calculate the product of the communication data volume level and the third weight to obtain the third weighted value; Calculate the product of the business risk level and the fourth weight to obtain the fourth weighted value; Calculate the product of the topology change level and the fifth weight to obtain the fifth weighted value; The authentication score is obtained by adding the first weighted value, the second weighted value, the third weighted value, the fourth weighted value, and the fifth weighted value.
[0014] By acquiring the preset weights corresponding to the post-quantum computing time consumption level, memory usage level, communication data volume level, business risk level, and topology change level, five weighted values are calculated by multiplying each of the five level values by their respective weights. These five weighted values are then summed to form the authentication grading value, incorporating three different types of considerations—resource load, business risk, and topology change—into the same quantitative framework. The resource consumption level reflects the device's computing, storage, and communication load capacity; the business risk level reflects the security sensitivity of the current business scenario; and the topology change level reflects the magnitude of changes in the power grid environment in which the device is located. Preset weights allow for differentiated impacts of different dimensions on authentication decisions—for devices with limited computing power, the resource consumption weight can be increased to prioritize lightweight authentication; for high-risk businesses such as protection and control, the business risk weight can be increased to prioritize triggering full authentication. This ensures that the authentication grading value comprehensively reflects the combined impact of device status, business needs, and environmental changes, providing an objective and quantitative basis for subsequent authentication method selection.
[0015] Furthermore, the authentication method includes a first authentication method and a second authentication method. The step of determining the target authentication method from the preset authentication methods based on the credential status marker and the authentication grading value includes: When the credential status flag indicates that no valid credential exists, the first authentication method is determined as the target authentication method; When the credential status flag indicates that a valid credential exists, the authentication grading value is compared with a preset threshold. When the authentication grade value is greater than or equal to the preset threshold, the first authentication method is determined as the target authentication method; When the authentication score is less than the preset threshold, the second authentication method is determined as the target authentication method.
[0016] The first level of judgment is made by reading the credential status flag. When the flag indicates that there is no valid credential, the first authentication method is directly selected to perform full authentication, so as to rebuild the security foundation when the device is first connected or the credential expires. When the flag indicates that there is a valid credential, the authentication score value is further compared with a preset threshold. If the score value is greater than or equal to the threshold, the first authentication method is selected to perform full authentication; if it is less than the threshold, the second authentication method is selected to perform lightweight re-authentication. This makes the selection of authentication method form a two-level judgment structure of "whether the credential is valid → whether the risk exceeds the limit". This avoids unnecessary full authentication triggered by the misjudgment of valid credentials due to communication jitter, and ensures that full authentication is reliably triggered to protect security when the credential is missing, expired, or the score value exceeds the limit.
[0017] Furthermore, the edge authentication node stores the post-quantum public key of the power grid device and the post-quantum private key of the edge authentication node. The authentication interaction with the power grid device according to the target authentication method includes: When the target authentication method is the first authentication method, the post-quantum signature value and key-encapsulated ciphertext sent by the power grid equipment are received; The signature verification result is obtained by verifying the post-quantum signature value using the post-quantum public key. The shared secret is obtained by decapsulating the key-encapsulated ciphertext using the post-quantum private key. When the signature verification result is successful, an authentication credential bound to the current access environment is generated based on the shared secret and the power grid topology environment identifier, and the authentication credential is sent to the power grid equipment; When the target authentication method is the second authentication method, the credential verification value sent by the power grid equipment is received; the validity of the credential verification value is verified according to the power grid topology environment identifier to obtain the credential verification result; When the verification result of the credential is successful, the credential serial number is updated to obtain the updated credential information, and the updated credential information is sent to the power grid equipment.
[0018] In the first authentication method, the device receives a post-quantum signature value and key-encapsulated ciphertext from the power grid equipment. The signature is verified using the locally stored post-quantum public key to confirm the device's legitimacy. The ciphertext is decapsulated using the post-quantum private key of the edge authentication node to obtain a shared secret consistent with the device's. After successful signature verification, an authentication credential is derived from the shared secret and the power grid topology environment identifier and sent to the device. This credential is bound to environmental information such as the feeder, transformer area, protected section, and topology version currently connected to the device. Even if the credential is intercepted, it cannot pass verification in different topology environments, thus resisting interception and replay attacks in quantum computing environments. The second authentication method verifies the credential sent by the device. The credential value is verified using the grid topology environment identifier. After successful verification, only the credential sequence number is updated and the updated credential information is sent to the device. This allows devices with normal credential status to complete lightweight re-authentication in low-risk scenarios without having to perform the complete post-quantum signature, key encapsulation, and decapsulation process. This significantly reduces the computation time and communication data volume of a single authentication, and reduces the concurrent processing pressure on edge authentication nodes. At the same time, updating the credential sequence number maintains the unidirectional advancement of the credential chain, preventing the same credential verification value from being submitted repeatedly, thus avoiding the risk of replay authentication. Both authentication methods share the same set of grid topology environment identifiers as binding anchors, ensuring that both the credential derived from complete authentication and the credential verified by lightweight authentication are constrained by the current access environment.
[0019] Another embodiment of this application provides a power grid equipment authentication system for performing the power grid equipment authentication method as described in this application.
[0020] Another embodiment of this application also provides a terminal device, including: one or more processors; a memory coupled to the processors for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the power grid equipment authentication method as described in this application.
[0021] Another embodiment of this application provides a computer-readable storage medium, including: a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the power grid equipment authentication method as described in this application. Attached Figure Description
[0022] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1This is a flowchart illustrating one embodiment of the power grid equipment certification method provided in this application; Figure 2 This is a schematic diagram of the process for determining the resource consumption level according to one embodiment of the present application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0027] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0028] With the expansion of the power Internet of Things, distribution automation, and distributed renewable energy access, a large number of power grid devices are deployed at the edge locations such as feeders, transformer substations, and protected sections. Their communication links are characterized by dispersed access points and dynamically changing network topologies. Existing authentication schemes mainly rely on digital certificates or pre-shared keys to verify the legitimacy of device identities. However, these credentials only prove the device's identity; their validity is not correlated with the actual access environment. When a device accesses the network under different feeder, transformer substation, or topology conditions, the original credentials can still be used to complete authentication, posing a risk of credentials being reused across topologies outside the access environment. To address this, this application proposes a power grid device authentication method to improve the security of power grid device access authentication.
[0029] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the power grid equipment authentication method provided in this application. To improve the security of power grid equipment access authentication, this application provides a power grid equipment authentication method. This method is applied to a power grid communication environment including power grid equipment, edge authentication nodes, authentication management nodes, and power grid topology data sources. The method includes steps S1 to S6, each step as follows: Step S1: Obtain power grid topology information; generate power grid topology environment identifier based on power grid topology information.
[0030] The power grid topology information is a set of information used to provide edge authentication nodes with feeder identifiers, transformer area identifiers, protected area identifiers, edge authentication node identifiers, topology version numbers, and time window numbers, enabling the authentication process of power grid equipment to be bound to the current power grid topology state. The feeder identifier uniquely identifies the distribution feeder line in the power grid; the transformer area identifier identifies the power supply area of the distribution transformer; the protected area identifier identifies the relay protection section in the power grid; the edge authentication node identifier uniquely identifies the edge node performing the authentication; the topology version number is the version sequence number of power grid topology structure changes, incrementing after each topology adjustment; and the time window number is the window sequence number after dividing continuous time into equal-length windows. The power grid topology environment identifier is a fixed-length hash value generated by concatenating the above multiple topology parameters in a preset order and performing a hash operation, used to characterize the spatiotemporal state of the power grid topology currently connected to the device.
[0031] Step S2: Send the power grid topology environment identifier to the power grid equipment to receive the access authentication request returned by the power grid equipment.
[0032] In this context, "power grid equipment" refers to power terminal equipment deployed in feeders, distribution transformer areas, or protected sections, such as intelligent integrated distribution transformer terminals, distribution automation terminals, fault indicators, distributed photovoltaic grid-connected acquisition terminals, charging facility control terminals, edge protection control terminals, or user-side adjustable resource access terminals. An access authentication request is a request message generated by power grid equipment after receiving the power grid topology environment identifier, based on this identifier, the equipment identity identifier, and a random number generated by the equipment, along with resource status parameters, power grid scenario tags, and credential status markers.
[0033] Step S3: Determine the resource consumption level based on the resource status parameters.
[0034] The resource status parameters include post-quantum signature time, key encapsulation time, number of authentication message fragments, and peak memory usage. Post-quantum signature time refers to the time consumed by the power grid equipment to execute the post-quantum signature algorithm; key encapsulation time refers to the time consumed by the power grid equipment to execute the post-quantum key encapsulation algorithm; the number of authentication message fragments refers to the total number of fragments when the complete message is split into fragments for transmission during the authentication process; and peak memory usage refers to the maximum memory usage of the device during the authentication process. The resource consumption level is a level value obtained by mapping the measured values of the above four parameters to their respective preset thresholds. It includes at least the post-quantum computation time level, memory usage level, and communication data volume level, used to quantify the computational pressure, storage pressure, and communication overhead of the device during the authentication process.
[0035] Step S4: Determine the business risk level based on the power grid scenario label; query the historical topology version number of the power grid equipment based on the equipment masking index; determine the topology change level based on the current topology version number and the historical topology version number in the power grid topology information.
[0036] The power grid scenario label identifies the corresponding business type for this authentication, such as metering and data acquisition, status monitoring, protection and control, or dispatch control. The business risk level is determined by querying a preset mapping relationship between business types and risk levels based on the business type corresponding to the power grid scenario label, quantifying the security sensitivity of different business scenarios. The device masking index is a masking identifier generated by the power grid device using a hash operation based on the power grid topology environment identifier, device identity identifier, and device random number, used to replace the device identity identifier in communication link transmission. The historical topology version number refers to the topology version number used during the device's last authentication, stored in the local credential status table. The topology change level is a level value determined by comparing the current topology version number with the historical topology version number, combined with whether the feeder identifier is consistent, quantifying the magnitude of changes in the power grid topology environment in which the device is located.
[0037] Step S5: Calculate the authentication tier value based on resource consumption level, business risk level, and topology change level.
[0038] The certification grading value is a comprehensive value obtained by multiplying the resource consumption level, business risk level, and topology change level by their respective preset weights and then summing them. It is used to comprehensively quantify the current computing load status of the equipment, the security risks of the business scenario, and the magnitude of power grid topology changes.
[0039] Step S6: Based on the credential status mark and authentication grade value, determine the target authentication method from the preset authentication methods, and perform authentication interaction on the power grid equipment according to the target authentication method.
[0040] The credential status flag indicates whether a valid credential exists locally on the power grid device. The preset authentication methods include a first authentication method and a second authentication method. The first authentication method is post-quantum anchored authentication, where the power grid device generates a post-quantum signature value and a key-encapsulated ciphertext. The edge authentication node verifies the signature and decapsulates the ciphertext to derive an authentication credential bound to the current access environment. The second authentication method is topology-bound credential re-authentication, where the power grid device generates a credential verification value based on the current credential. The edge authentication node verifies the validity of this verification value based on the power grid topology environment identifier and then updates the credential status. The target authentication method is determined based on the comparison between the credential status flag and the authentication tier value with a preset threshold. The first authentication method is used when the credential does not exist or the authentication tier value reaches the threshold; otherwise, the second authentication method is used.
[0041] In some embodiments, before obtaining the power grid topology information in step S1, a step of generating a power grid equipment registration and authentication profile is included.
[0042] Specifically, the power grid equipment first generates a post-quantum public key and a post-quantum private key. These keys can be generated using post-quantum signature algorithms that meet quantum security requirements, such as lattice-based signature algorithms or hash-based signature algorithms. The power grid equipment submits its device identity, physical fingerprint, post-quantum public key, computing power budget information, and a set of power grid scenario tags to the authentication management node. The physical fingerprint is generated from at least one of the following: device startup metric information, hardware sequence information, and communication timing characteristics, and is used to assist in identifying the physical consistency of the power grid equipment. The computing power budget information describes the available computing power, available memory, tolerable communication data volume, and remaining power level of the power grid equipment during the authentication process.
[0043] The authentication management node generates an authentication profile based on the above information. The authentication profile includes an identity digest, a device physical fingerprint digest, a post-quantum public key digest, a device computing power budget table generated from the device's computing power budget information, a set of power grid scenario tags, and a topology attribution table. The topology attribution table includes feeder identifiers, transformer area identifiers, and protected section identifiers that the power grid device is allowed to access, used to limit the acceptable power grid topology attribution range for the power grid device. The identity digest is generated by hashing the device's identity identifier, the device physical fingerprint digest is generated by hashing the device's physical fingerprint, and the post-quantum public key digest is generated by hashing the post-quantum public key. The device computing power budget table includes the maximum allowed time for post-quantum signature, the maximum allowed time for key encapsulation, the maximum allowed memory usage for the authentication process, the maximum allowed number of authentication message fragments, and the minimum remaining power level.
[0044] The authentication management node synchronizes the generated authentication profile summary to the edge authentication node, enabling the edge authentication node to verify the signature of the power grid device based on the post-quantum public key in the authentication profile during subsequent authentication processes, and to perform resource tiering assessment based on the device's computing power budget information.
[0045] In some embodiments, step S1 obtains power grid topology information and generates a power grid topology environment identifier based on the power grid topology information, including steps S101 to S103, each of which is as follows: Step S101: Obtain several topology parameters from the power grid topology information.
[0046] Specifically, the edge authentication node obtains the current grid topology information from the grid topology data source. The grid topology data source refers to the topology service interface provided by the distribution automation master station or a locally maintained topology information database. The topology parameters include at least the following six items: feeder identifier, transformer area identifier, protected section identifier, edge authentication node identifier, topology version number, and time window number. Among these, the feeder identifier uniquely identifies the distribution feeder line in the current grid; the transformer area identifier identifies the power supply area of the distribution transformer; the protected section identifier identifies the relay protection section in the grid; the edge authentication node identifier uniquely identifies the edge node performing the current authentication task; the topology version number is an incrementing version sequence number when the grid topology structure changes; and the time window number is the sequence number after dividing the continuous time axis into equal-length windows, used to distinguish authentication behaviors within different time periods. These six parameters together constitute a complete spatiotemporal description of the grid topology at the current connection time of the device.
[0047] Step S102: Concatenate the topology parameters in a preset order to obtain a concatenated information string.
[0048] Specifically, the feeder identifier, transformer area identifier, protected section identifier, edge authentication node identifier, topology version number, and time window number obtained in step S101 are concatenated into strings according to a fixed order predefined by the system. The predefined order is determined by a prior agreement between the edge authentication node and the power grid equipment, and is confirmed through configuration synchronization or protocol agreement before the authentication process begins. This ensures label consistency under the same topology state and prevents ambiguity during communication. This concatenated information string contains all spatiotemporal state information of the current power grid environment in which the equipment is located. The concatenated information string is different for different equipment, different feeders, different topology versions, or different time windows.
[0049] Step S103: Perform encryption operation on the spliced information string to obtain the power grid topology environment identifier.
[0050] Specifically, the concatenated information string generated in step S102 is hashed using a preset hash algorithm (such as SM3, SHA-256, etc.) to generate a fixed-length hash value as the power grid topology environment identifier. The hash operation maps concatenated information strings of arbitrary length to fixed-length hash values, compressing the information length and ensuring one-wayness; the same concatenated information string always yields the same hash value, while different concatenated information strings yield different hash values. This power grid topology environment identifier serves as the unified code used for binding the power grid topology environment in subsequent authentication interactions. Its fixed length and irreversibility prevent the direct leakage of original topology parameters in the communication link. Simultaneously, this identifier, as the core carrier of environment binding, serves as a key input in subsequent steps such as generating device masking indexes and deriving authentication credentials from edge authentication nodes, establishing a one-to-one correspondence between authentication credentials and the actual power grid topology environment accessed by the device.
[0051] In some embodiments, after generating the power grid topology environment identifier in step S1, a topology attribution verification step is also included.
[0052] Specifically, the edge authentication node reads the topology attribution table from the authentication profile. This table records the feeder identifiers, transformer area identifiers, and protected section identifiers that are allowed for grid equipment to access. The edge authentication node then compares the current feeder identifier, current transformer area identifier, and current protected section identifier in the current grid topology information with the allowed feeder identifiers, transformer area identifiers, and protected section identifiers recorded in the topology attribution table.
[0053] When the current feeder identifier, current transformer area identifier, and current protected section identifier all fall within the allowed access range defined by the topology attribution table, the edge authentication node continues to execute the subsequent authentication process. When the current feeder identifier, current transformer area identifier, or current protected section identifier does not fall within the allowed access range defined by the topology attribution table, the edge authentication node does not enter the topology binding credential re-authentication process, and triggers post-quantum anchoring authentication or directly rejects the current authentication request based on the power grid scenario label and authentication tier value.
[0054] For protection control or scheduling control services, when the current feeder identifier, current transformer identifier, or current protected section identifier does not belong to the allowed access range defined by the topology attribution table, the edge authentication node directly rejects the authentication request and generates a current authentication record summary corresponding to the authentication failure.
[0055] In some embodiments, step S2 sends the power grid topology environment identifier to the power grid device to receive the access authentication request returned by the power grid device.
[0056] Specifically, the edge authentication node uses the power grid topology environment identifier generated in step S1 as the core payload and encapsulates it into a challenge message according to a preset communication protocol format. The challenge message is a message used to trigger the power grid equipment to initiate the authentication process and carries environment binding information. It includes at least a power grid topology environment identifier field and may also include auxiliary fields such as a message type identifier, timestamp, random number challenge value, or edge authentication node identifier to prevent replay attacks and ensure message timeliness. The purpose of this challenge message is to securely transmit the power grid topology environment identifier to the power grid equipment, enabling the equipment to generate response information bound to the current topology environment based on this identifier in subsequent authentication requests, thereby preventing replay attacks and ensuring message timeliness.
[0057] The edge authentication node sends the generated challenge message to the target grid equipment via the communication link between the grid equipment and the edge authentication node (e.g., a dedicated power network, a public wireless network, or a fiber optic communication network). Grid equipment refers to power terminal equipment deployed in feeders, distribution transformer areas, or protected sections, such as smart distribution transformer terminals, distribution automation terminals, fault indicators, or distributed photovoltaic grid-connected data acquisition terminals. After sending the challenge message, the edge authentication node starts a preset response waiting timer to limit the maximum allowed time interval for the grid equipment to return the access authentication request, ensuring the timeliness and security of the authentication process. If no response is received after the timer expires, the edge authentication node determines that the authentication request has timed out and terminates the subsequent authentication process.
[0058] Edge authentication nodes listen for and receive access authentication request messages returned by power grid devices in response to challenge messages. This access authentication request is a request message encapsulated by the power grid device after receiving the challenge message. It is generated by hashing the power grid topology environment identifier, the device's own identity identifier, and a locally generated random number within the challenge message to create a device masking index. This masking index is then combined with a device identity digest, resource status parameters, a power grid scenario tag, and a credential status marker. The device identity digest is a fixed-length hash value generated from the power grid device's identity identifier, used to uniquely identify the power grid device and remaining unchanged across different authentication sessions. The device masking index is a fixed-length hash value generated by the power grid device using the power grid topology environment identifier, the device identity digest, and the device random number. This hash value replaces the device's real identity identifier during transmission in the communication link, preventing the device's identity from being tracked and leaked. Resource status parameters are a set of information reflecting the power grid device's current computing power, communication load, and storage status, including post-quantum signature time, key encapsulation time, number of authentication message fragments, and peak memory usage. These parameters are used by the edge authentication node to subsequently assess the device's resource consumption level. The label information corresponding to the business type in this certification, such as metering and data acquisition, condition monitoring, protection and control, or dispatch control, is used by the edge certification node to subsequently determine the business risk level. The credential status flag is a marker indicating whether a valid credential exists locally on the power grid equipment, used by the edge certification node to subsequently determine the target authentication method.
[0059] In one optional embodiment, after receiving the challenge message, the power grid equipment generates a device masking index based on the device identity identifier, topology time slice tag, and device random number. To avoid directly exposing the device identity identifier in public wireless networks, private power grids, or edge access networks, this embodiment does not directly transmit the device identity identifier; instead, it uses an identity digest, topology time slice tag, and device random number to generate the device masking index. The device masking index X is generated according to the following expression: in, For device masking index, For hash functions, An identity digest that identifies the device. For topology time slice labels, For device random numbers, This indicates a concatenation operation. Since both the topology time slice label and the device random number are involved in the generation of the device masking index, even if the same power grid device is connected in different time windows or under different topology states, the generated device masking index will be different. This can reduce the risk of device identification being tracked and associated.
[0060] In one specific implementation, the resource measurement digest is generated by concatenating and hashing the post-quantum computing time level, memory usage level, communication data volume level, and remaining power level. The post-quantum computing time level is jointly determined by the time of the most recent post-quantum signature and the most recent key encapsulation time; the memory usage level is determined by the peak memory usage during the authentication process; the communication data volume level is determined by the number of authentication message fragments; and the remaining power level is determined by the current remaining power ratio of the grid equipment. The resource measurement digest is generated according to the following expression: in, For resource measurement summary, For hash functions, This is at the time-consuming level of post-quantum computing. Memory usage level For communication data volume levels, The remaining battery level. This indicates a concatenation operation. The post-quantum computing time consumption level, memory usage level, communication data volume level, and remaining power level can all be mapped to levels 1 to 5. For example, if both the post-quantum signature time and key encapsulation time are below a preset low time consumption threshold, the post-quantum computing time consumption level is set to 1; if either the post-quantum signature time or key encapsulation time exceeds a preset high time consumption threshold, the post-quantum computing time consumption level is set to 5. The higher the peak memory usage during the authentication process, the higher the memory usage level; the more fragments the authentication message has, the higher the communication data volume level; the lower the remaining power percentage, the higher the remaining power level. This allows the resource measurement digest to simultaneously reflect the device's computing pressure, storage pressure, communication pressure, and power supply status.
[0061] In some embodiments, please refer to Figure 2 , Figure 2 This is a schematic flowchart illustrating the resource consumption level determination process according to an embodiment of this application. Step S3 determines the resource consumption level based on resource status parameters, including steps S301 to S305, each step of which is detailed below: Step S301: Compare the post-quantum signature time with the preset signature time threshold to obtain the signature time comparison result; compare the key encapsulation time with the preset encapsulation time threshold to obtain the encapsulation time comparison result.
[0062] Specifically, the edge authentication node parses resource status parameters from the received access authentication request. These parameters include the post-quantum signature time and key encapsulation time reported by the power grid device. Post-quantum signature time refers to the time consumed by the power grid device when executing a post-quantum signature algorithm (e.g., lattice-based signature algorithm, hash-based signature algorithm, etc.), reflecting the device's signature computation load during the authentication process. Key encapsulation time refers to the time consumed by the power grid device when executing a post-quantum key encapsulation algorithm, reflecting the device's encapsulation computation load during the authentication process. The edge authentication node compares the post-quantum signature time with a preset set of signature time thresholds, which includes at least one low threshold and one high threshold. If the signature time is lower than the low threshold, the comparison result is "low"; if the signature time is between the low and high thresholds, the comparison result is "medium"; if the signature time is higher than the high threshold, the comparison result is "high". Similarly, the edge authentication node compares the key encapsulation time with a preset set of encapsulation time thresholds to obtain the encapsulation time comparison result. The specific values of the above thresholds can be pre-configured by the authentication management node according to the system security policy and then distributed to the edge authentication node.
[0063] Step S302: Determine the post-quantum computing time level based on the signature time comparison results and the encapsulation time comparison results.
[0064] Specifically, the edge authentication node integrates the signature time comparison result and the encapsulation time comparison result obtained in step S301, and determines the post-quantum computing time level according to a preset comprehensive judgment rule. This level is used to quantify the overall computational pressure of the power grid equipment when performing post-quantum cryptography operations; the higher the level value, the heavier the computational load of the equipment. The comprehensive judgment rules are specifically refined into five levels of mapping: when both the signature time comparison result and the encapsulation time comparison result are "low", the post-quantum computing time level is set to level 1 (extremely light computational load); when one of the signature time comparison result and the encapsulation time comparison result is "low" and the other is "medium", the post-quantum computing time level is set to level 2 (relatively light computational load); when both the signature time comparison result and the encapsulation time comparison result are "medium", the post-quantum computing time level is set to level 3 (moderate computational load); when one of the signature time comparison result and the encapsulation time comparison result is "medium" and the other is "high", the post-quantum computing time level is set to level 4 (relatively heavy computational load); when both the signature time comparison result and the encapsulation time comparison result are "high", the post-quantum computing time level is set to level 5 (extremely heavy computational load). The post-quantum computing time consumption level ranges from 1 to 5, with higher values indicating a heavier overall computational load on the power grid equipment when performing post-quantum cryptographic operations. This comprehensive assessment reflects the computational overhead of both signature and encapsulation operations, avoiding the limitations of a single-dimensional evaluation.
[0065] Step S303: Compare the number of authentication message fragments with the preset fragment number threshold to determine the communication data volume level.
[0066] Specifically, the edge authentication node extracts the number of authentication message fragments from resource status parameters. This number refers to the total number of fragments that the power grid equipment splits into during the authentication process, reflecting the amount of communication data and network transmission overhead. The edge authentication node compares the number of fragments with a preset set of fragment number thresholds, which includes at least one low threshold and one high threshold. When the number of fragments is below the low threshold, it indicates that the communication data volume of the authentication message is small, and the communication data volume level is set to the first level (e.g., level 1). When the number of fragments is between the low and high thresholds, it indicates that the communication data volume is medium, and it is set to the second level (e.g., level 2). When the number of fragments is above the high threshold, it indicates that the communication data volume is large, and it is set to the third level (e.g., level 3). The higher the communication data volume level, the greater the amount of data that the device needs to transmit during the authentication process, and the higher the bandwidth usage.
[0067] Step S304: Compare the peak memory usage with the preset memory usage threshold to determine the memory usage level.
[0068] Specifically, the edge authentication node extracts peak memory usage from resource status parameters. This peak memory usage refers to the maximum memory consumption of the power grid equipment during the authentication process, reflecting the storage pressure on the equipment. The edge authentication node compares the peak memory usage with a preset set of memory usage thresholds, which includes at least one low threshold and one high threshold. When the peak memory usage is lower than the low threshold, it indicates low memory usage, and the memory usage level is set to the first level (e.g., level 1). When the peak memory usage is between the low and high thresholds, it indicates medium memory usage, and is set to the second level (e.g., level 2). When the peak memory usage is higher than the high threshold, it indicates high memory usage, and is set to the third level (e.g., level 3). The higher the memory usage level, the more storage resources the equipment needs to occupy during the authentication process, and the higher the requirement for the equipment's memory capacity.
[0069] Step S305: Determine the resource consumption level by considering the post-quantum computing time consumption level, communication data volume level, and memory usage level.
[0070] Specifically, the edge authentication node outputs the post-quantum computing time consumption level determined in step S302, the communication data volume level determined in step S303, and the memory usage level determined in step S304 as a combined resource consumption level. The resource consumption level is a combination of the above three independent dimension level values, not a single numerical value. This combined information is used in the subsequent step S4 to calculate the authentication grading value, where the post-quantum computing time consumption level corresponds to the first weight (…). ), memory usage level corresponds to the second weight ( ), and the third weight corresponding to the communication data volume level ( The three levels of value are calculated independently in the weighted summation formula of the certification tier values to comprehensively reflect the resource consumption of the device in the three dimensions of computing, storage and communication.
[0071] In some embodiments, step S4 determines the business risk level based on the power grid scenario label; queries the historical topology version number of the power grid equipment based on the equipment masking index; and determines the topology change level based on the current topology version number and the historical topology version number in the power grid topology information. This includes steps S401 to S405, each of which is as follows: Step S401: Identify the business type corresponding to the power grid scenario label.
[0072] Specifically, the edge authentication node parses the power grid scenario tag from the access authentication request. This tag is an identification information set and reported by the power grid equipment according to the current business scenario, used to indicate the business type corresponding to this authentication. The power grid scenario tag is one tag in a set of power grid scenario tags, which is configured by the authentication management node and synchronized to the edge authentication node and the power grid equipment during the device registration phase. The edge authentication node determines the corresponding business type by identifying the value of the power grid scenario tag. The business types include at least metering and data acquisition services, status monitoring services, protection and control services, and dispatch control services. Among them, metering data acquisition refers to the business of power grid equipment periodically collecting and uploading power metering data (such as voltage, current, power factor, etc.), which has lower requirements for real-time certification but is sensitive to equipment resource consumption; condition monitoring refers to the business of power grid equipment continuously monitoring and reporting equipment operating status (such as temperature, vibration, partial discharge, etc.), which has certain requirements for certification continuity and stability; protection and control refers to the business of power grid equipment executing the actions of safety automatic devices such as relay protection and fault isolation, which has extremely high requirements for certification security and response speed; dispatch control refers to the business of power grid equipment receiving and executing remote control and remote adjustment commands issued by the dispatch center, which also has extremely high requirements for certification security.
[0073] Step S402: Based on the preset correspondence between business types and business risk levels, query the business risk level that matches the business type.
[0074] Specifically, the edge authentication node uses the service type identified in step S401 as the query keyword to perform a matching query in a preset service type and service risk level mapping table. This mapping table is pre-configured by the authentication management node according to the power grid security policy and synchronized to the local storage of the edge authentication node. In the mapping table, each service type corresponds to a risk level value, which is used to quantify the security sensitivity under that service scenario. Specifically, when the power grid scenario label corresponds to metering and data collection services, the service risk level corresponding to that service type is set to the first risk level value (e.g., level 1, indicating low risk); when the power grid scenario label corresponds to status monitoring services, it is set to the second risk level value (e.g., level 2, indicating medium risk); when the power grid scenario label corresponds to protection control services or dispatch control services, it is set to the third risk level value (e.g., level 3, indicating high risk). By querying the mapping table, the edge authentication node converts the qualitative description of the service scenario into a quantitative risk level value, providing input for the subsequent calculation of the authentication grading value.
[0075] Step S403: Based on the device masking index, query the locally stored credential status table and read the historical topology version number of the power grid device from the credential status table.
[0076] Specifically, the edge authentication node queries the locally stored credential status table based on the device masking index. The credential status table is a status record table maintained by the edge authentication node for each device with established credentials, used to store the device's credential status information. The index key of this table is the device masking index, and the record content includes at least the current credential digest, the previous credential digest, the credential sequence number, the historical topology version number, the out-of-synchronization recovery flag, and the previous credential usage flag. The historical topology version number refers to the topology version number used by the edge authentication node during the last authentication of this device, and is recorded in the credential status table. When the edge authentication node queries the credential status table using the device masking index, if a corresponding entry exists, it reads the historical topology version number from that entry; if a corresponding entry does not exist (e.g., during the device's first authentication or when the credential status table has been cleaned), it determines that the historical topology version number does not exist, and the subsequent topology change level is taken from the preset anchor level value.
[0077] In one optional embodiment, the edge authentication node uses the device masking index as a secondary query key to retrieve the device identity digest corresponding to the current authentication session from the locally stored credential status table, and then uses the device identity digest as the primary key to read the historical topology version number and historical trace identifier. Specifically, due to the device masking index... It contains device identity digest Upon receiving a tiered access request, the edge authentication node can first parse the device masking index from the request. and with Search the temporary session cache for the keyword to see if a corresponding device identity digest exists. If the cache is hit, then use that... Query the credential status table; if the cache is not hit, the edge authentication node will... Device identity summary for each entry in the credential status table Combined with the current topology time slice tags and device random numbers Recalculate ,like With the request If they match, then the device identity digest corresponding to that entry is confirmed as the device identity digest for this authentication, and thus... Read the corresponding historical topology version number and historical trace identifier. If no entry is found after traversing the credential status table, it is determined that it is the first authentication or the device is not registered. The historical topology version number and historical trace identifier do not exist, and the subsequent topology change level takes the preset anchor level value.
[0078] Step S404: Compare the current topology version number with the historical topology version number to obtain the comparison result.
[0079] Specifically, the edge authentication node compares the current topology version number obtained in step S1 (i.e., the topology version number obtained from the power grid topology data source during this authentication) with the historical topology version number read in step S403. The purpose of the comparison operation is to determine whether the power grid topology in which the device is located has changed between two consecutive authentications. There are three possible comparison results: the current topology version number is the same as the historical topology version number (indicating that the topology has not changed); the current topology version number is different from the historical topology version number (indicating that the topology has changed). If the historical topology version number does not exist (in the first authentication scenario), it is directly determined that the topology has changed, and there is no need to perform a version number comparison.
[0080] Step S405: Determine the topology change level based on the comparison results.
[0081] Specifically, the edge authentication node determines the topology change level according to the comparison result obtained in step S404, combined with the feeder identifier in the current topology information, and according to the preset level determination rules. The topology change level is used to quantify the magnitude of the change in the power grid topology where the equipment is located; the higher the level value, the more drastic the topology change. The preset level determination rules are as follows: if the current topology version number is the same as the historical topology version number, it means that the power grid topology has not changed, and the topology change level is set to the first level value (e.g., level 1, indicating no topology change); if the current topology version number is different from the historical topology version number, and the current feeder identifier is the same as the feeder identifier corresponding to the historical topology version number, it means that the topology has changed, but the equipment is still within the same feeder range (e.g., local line adjustment within the transformer area), and the topology change level is set to the second level value (e.g., level 2, indicating a local topology change); if the current topology version number is different from the historical topology version number, and the current feeder identifier is different from the feeder identifier corresponding to the historical topology version number, it means that the equipment has switched to a different feeder (e.g., cross-feeder migration or transformer area switching), and the topology change level is set to the third level value (e.g., level 3, indicating a global topology change). If the historical topology version number does not exist (in the initial authentication scenario), the topology change level is directly set to the preset anchor level value, ensuring that the initial authentication prioritizes the execution of the complete authentication process. This approach allows the authentication strength to be dynamically adjusted based on the magnitude of grid topology changes, rather than simply authenticating based on device identity or a fixed time period.
[0082] In some embodiments, step S5 calculates the authentication tier value based on resource consumption level, business risk level, and topology change level, including steps S501 to S503, each of which is as follows: Step S501: Obtain the preset weights corresponding to each level.
[0083] Specifically, the edge authentication node reads the preset weight values corresponding to each of the five levels from the configuration information stored locally. These five weights are: the first weight corresponding to the post-quantum computing time consumption level (C) (… ), the second weight corresponding to the memory usage level (M) The third weight corresponding to the communication data volume level (D) ), and the fourth weight corresponding to the business risk level (R) ) and the fifth weight corresponding to the topological change level (U) The specific values for each weight are pre-configured by the authentication management node based on the power grid security policy, typical equipment load characteristics, and service priorities, and then synchronized to the edge authentication node via a secure channel. In actual deployment, for example, [the following can be used:] Set to 0.20. Set to 0.15. Set to 0.15. Set to 0.25. The weights are set to 0.25, with the sum of the five weights being 1. The relative magnitude of each weight reflects the importance of the corresponding dimension in the certification grading decision—the higher the weight, the greater the impact of changes in the dimension's grade value on the final certification grading value. For example, in power grid areas where protection and control services account for a high proportion, the fourth weight corresponding to the service risk level can be appropriately increased, making it easier for high-risk services to trigger full certification; in distribution areas where equipment resources are generally scarce, the weights of the first three items corresponding to the resource consumption level can be appropriately increased, making it easier for resource-constrained scenarios to trigger lightweight certification.
[0084] Step S502: Calculate the product of the post-quantum computing time consumption level and the first weight to obtain the first weighted value; calculate the product of the memory usage level and the second weight to obtain the second weighted value; calculate the product of the communication data volume level and the third weight to obtain the third weighted value; calculate the product of the business risk level and the fourth weight to obtain the fourth weighted value; calculate the product of the topology change level and the fifth weight to obtain the fifth weighted value.
[0085] Specifically, the edge authentication node will combine the post-quantum computation time level (C) determined in step S3 with the first weight obtained in step S501. Multiply by , and get the first weighted value (C×) ); The memory usage level (M) determined in step S3 is compared with the second weight ( Multiply by M to obtain the second weighted value (M×) ); and the communication data volume level (D) determined in step S3 is compared with the third weight ( Multiplying these together yields the third weighted value (D×). ); The business risk level (R) determined in step S4 is compared with the fourth weight ( Multiplying these together yields the fourth weighted value (R×). ); The topology change level (U) determined in step S4 is compared with the fifth weight ( Multiply by , and you get the fifth weighted value (U×) The five weighted values mentioned above represent the independent contributions of the device to the certification classification in five dimensions: computing load, storage pressure, communication overhead, business risk, and topology changes.
[0086] Step S503: Add the first weighted value, the second weighted value, the third weighted value, the fourth weighted value and the fifth weighted value to obtain the authentication score.
[0087] Specifically, the edge authentication node sums the five weighted values calculated in step S502 to obtain the final authentication tier value (V). The formula for calculating the authentication tier value V is: Where V represents the authentication tier, C represents the post-quantum computing time level, M represents the memory usage level, D represents the communication data volume level, R represents the business risk level, and U represents the topology change level. to Each of these represents a preset weight. The authentication tier value is a comprehensive quantitative indicator, reflecting the overall level of the device's current resource load status, business scenario security risks, and the degree of power grid topology change. This tier value will serve as the core criterion for determining the target authentication method in subsequent step S6—a higher tier value indicates that the device currently requires full authentication (post-quantum anchoring authentication) to ensure security; a lower tier value indicates that the device is currently more suitable for lightweight authentication (topology binding credential re-authentication) to reduce overhead. Through this weighted summation calculation, the edge authentication node maps the tier values of the five heterogeneous dimensions to the same numerical scale, providing a quantifiable operational basis for multi-dimensional comprehensive decision-making.
[0088] In one optional embodiment, the post-quantum computing time consumption level C ranges from 1 to 5, while the memory usage level M, communication data volume level D, business risk level R, and topology change level U range from 1 to 3. Setting a wider value range for the post-quantum computing time consumption level reflects the consideration that post-quantum cryptography is often the primary computing bottleneck for edge grid equipment. The contribution of this dimension to the authentication grading value is adjusted by combining the value range with weights. The first to fifth weights are configurable system parameters that can be flexibly adjusted according to the on-site grid operation strategy. For example, in power supply areas with a high proportion of protection and control services, the fourth weight corresponding to the business risk level can be increased; for distribution areas with a large number of low-computing-power terminals, the weights of resource-related dimensions can be increased. The preset threshold for anchored authentication is also a configurable parameter, set according to the weight and level value range.
[0089] In some embodiments, step S6 determines the target authentication method from preset authentication methods based on the credential status flag and authentication grade value, including steps S601 to S602, each of which is as follows: Step S601: When the credential status flag indicates that there is no valid credential, the first authentication method is determined as the target authentication method.
[0090] Specifically, the edge authentication node reads the credential status flag from the access authentication request. This flag, set and reported by the power grid equipment, indicates whether a valid credential exists locally on the device. The credential status flag can have at least two values: "valid credential exists" and "valid credential does not exist." The edge authentication node performs a first-level judgment on the credential status flag: when the credential status flag indicates that a valid credential does not exist (including situations such as the device's first access, expired credential, revoked credential, or credential never being established), the edge authentication node directly determines the first authentication method (i.e., post-quantum anchored authentication) as the target authentication method, without subsequent comparison of tiered values. This processing logic is based on the principle of security priority—lightweight re-authentication cannot be performed without any valid credentials; a complete authentication must be used to rebuild the security foundation.
[0091] Step S602: When the credential status flag indicates that a valid credential exists, the authentication grade value is compared with the preset threshold, and the target authentication method is determined based on the comparison result.
[0092] Specifically, when the credential status flag in step S601 indicates the existence of a valid credential, the edge authentication node enters the second-level judgment: comparing the authentication grade value calculated in step S5 with a preset threshold (i.e., the anchored authentication threshold). The anchored authentication threshold is a judgment threshold pre-configured in the edge authentication node, used to distinguish the critical point where full authentication or lightweight re-authentication should be performed. If the authentication grade value is greater than or equal to the preset threshold, it indicates that the current overall state of the device (heavy resource load, high business risk, and / or large topology changes) requires a higher level of authentication protection, and the edge authentication node determines the first authentication method (post-quantum anchored authentication) as the target authentication method. If the authentication grade value is less than the preset threshold, it indicates that the current overall state of the device is within a controllable security range, and the edge authentication node determines the second authentication method (topology-bound credential re-authentication) as the target authentication method. Through the above two-level judgment (credential existence → whether the grade value exceeds the limit), the edge authentication node maximizes the usage ratio of lightweight authentication while ensuring the bottom line of security, achieving a dynamic balance between security and efficiency.
[0093] In some embodiments, the specific determination logic for the target authentication method based on the credential status flag and authentication tier value is as follows: The edge authentication node first reads the credential status flag. When the credential status flag indicates that there is no valid credential (including situations such as the device being connected for the first time, the credential having expired, the credential having been revoked, or the credential never being created), the edge authentication node directly determines the first authentication method as the target authentication method without performing subsequent comparison of tier values. Based on the principle of security priority—in the absence of any valid credential, a complete authentication must be performed to rebuild the security foundation.
[0094] When the credential status flag indicates that a valid credential exists, the edge authentication node compares the authentication score with a preset threshold (i.e., the anchored authentication threshold). If the authentication score is greater than or equal to the preset threshold, the edge authentication node determines the first authentication method as the target authentication method; if the authentication score is less than the preset threshold, the edge authentication node determines the second authentication method as the target authentication method.
[0095] Through the above two-level judgment (whether the credential exists → whether the tier value exceeds the limit), the edge authentication node maximizes the use of lightweight authentication while ensuring the bottom line of security, and achieves a dynamic balance between security and efficiency.
[0096] In some embodiments, step S6 performs authentication interaction with the power grid equipment according to the target authentication method, including steps S611 to S612, each of which is as follows: Step S611: When the target authentication method is the first authentication method, receive the post-quantum signature value and key-encapsulated ciphertext sent by the power grid equipment; verify the post-quantum signature value according to the post-quantum public key to obtain the signature verification result; decapsulate the key-encapsulated ciphertext according to the post-quantum private key to obtain the shared secret. When the signature verification result is successful, an authentication credential bound to the current access environment is generated based on the shared secret and the power grid topology environment identifier, and the authentication credential is sent to the power grid equipment.
[0097] Specifically, when step S601 or step S602 determines that the target authentication method is the first authentication method, the edge authentication node executes the post-quantum anchoring authentication interaction process, which includes the following sub-steps: First, the edge authentication node receives the post-quantum signature value and key-encapsulated ciphertext sent by the power grid device. The post-quantum signature value is a digital signature generated by the power grid device using its locally stored post-quantum private key to perform post-quantum signature algorithm operations on the authentication context, used to prove the authenticity of the device's identity and the integrity of the authentication context. The key-encapsulated ciphertext is ciphertext generated by the power grid device using the pre-published post-quantum public key of the edge authentication node to perform key-encapsulation algorithm operations on a randomly generated shared secret, used to ensure the confidentiality of the shared secret during transmission.
[0098] Secondly, the edge authentication node performs a signature verification operation on the received post-quantum signature value based on the post-quantum public key of the power grid device stored locally, and obtains the signature verification result (pass or fail). The purpose of signature verification is to confirm that the signature value was indeed generated by a legitimate device holding the corresponding private key, and that the authentication context covered by the signature has not been tampered with during transmission.
[0099] Simultaneously or sequentially, the edge authentication nodes, using their locally stored post-quantum private keys, decapsulate the received key-encapsulated ciphertext to reconstruct the shared secret generated by the power grid equipment. Because the key encapsulation algorithm employs an asymmetric encryption mechanism, only the edge authentication node holding the correct private key can successfully decapsulate and obtain the shared secret; no third party can extract the secret from the ciphertext.
[0100] When the signature verification result is successful, the edge authentication node generates an authentication credential bound to the current access environment through a key derivation function, based on the shared secret obtained from decapsulation and the power grid topology environment identifier generated in step S1. The specific inputs to the derivation process include the shared secret, the power grid topology environment identifier, the power grid scenario label, and the authentication tier value. Different derived materials for different purposes correspond to different derived labels to distinguish different key materials such as the ticket chain root, session authentication key, and short-term authentication credential. Because the power grid topology environment identifier participates in the derivation operation, the generated authentication credential establishes a strong binding relationship with environmental information such as the feeder, transformer area, protected section, and topology version currently accessed by the device.
[0101] Finally, the edge authentication node sends the derived authentication credentials to the power grid equipment for use in subsequent lightweight re-authentication. Simultaneously, the edge authentication node establishes a credential status table locally, recording information such as the current credential digest, the previous credential digest, the credential sequence number, the topology time slice tag, the power grid scenario tag, the authentication tier value, the historical topology version number, the out-of-synchronization recovery flag, and the previous credential usage flag, for use in subsequent credential verification and status updates.
[0102] In some embodiments, when the target authentication method is the first authentication method (post-quantum anchored authentication), the method further includes the step of selecting an authentication parameter set based on the authentication tier value.
[0103] Specifically, edge authentication nodes pre-store a first tier threshold and a second tier threshold, with the second tier threshold being greater than the first tier threshold. The authentication parameter set used for post-quantum anchoring authentication is determined by the authentication tier value. When the authentication tier value is less than the first tier threshold, the edge authentication node selects the first authentication parameter set. The first authentication parameter set is used for post-quantum anchoring authentication of low-risk, topologically stable, or low-computing-power grid devices, and includes a smaller number of authentication message fragments, a smaller number of basic key derivation iterations, and a shorter signature verification cache period.
[0104] When the authentication threshold is greater than or equal to the first threshold and less than the second threshold, the edge authentication node selects the second authentication parameter set. The second authentication parameter set is used for post-quantum anchored authentication in medium-risk or topology-local change scenarios, and includes a medium number of authentication message fragments, a medium number of key derivation iterations, and a medium signature verification cache period.
[0105] When the authentication threshold is greater than or equal to the second threshold, the edge authentication node selects the third authentication parameter set. The third authentication parameter set is used for post-quantum anchoring authentication in scenarios such as protection control services, scheduling control services, or feeder-level topology changes. It includes post-quantum signature parameters with higher security strength, key encapsulation parameters with higher security strength, a higher number of key derivation iterations, and stricter authentication message fragmentation verification rules.
[0106] By selecting the above parameter set, post-quantum anchoring certification can be parameterized to adapt to power grid business risks, topology changes and equipment resource status, avoiding resource waste or security deficiencies caused by fixed certification strength.
[0107] Step S612: When the target authentication method is the second authentication method, receive the credential verification value sent by the power grid equipment; verify the validity of the credential verification value according to the power grid topology environment identifier to obtain the credential verification result; when the credential verification result is passed, update the credential serial number to obtain the updated credential information, and send the updated credential information to the power grid equipment.
[0108] Specifically, when step S602 determines that the target authentication method is the second authentication method, the edge authentication node executes the topology binding credential re-authentication interaction process, which includes the following steps: The edge authentication node receives the credential verification value sent by the power grid equipment. This credential verification value is verification information generated by the power grid equipment through hash operation based on the currently valid credential, power grid topology environment identifier, power grid scenario label, re-authentication random number, and credential sequence number. The credential verification value is generated according to the following expression: in, This is the verification value for the voucher. For hash functions, This is a currently valid credential. For identifying the power grid topology environment, For power grid scenario tags, For voucher serial number, For re-authentication random numbers, For device masking index, This indicates a concatenation operation. Since the device masking index participates in the generation of the credential verification value, the verification value is related not only to the current credential, the power grid topology environment identifier, the power grid scenario label, and the credential sequence number, but also to the device masking index used in this authentication. This reduces the risk of the credential verification value being reused across devices. Because the power grid topology environment identifier is included in the input for generating the credential verification value, this verification value is inherently bound to the device's current access environment.
[0109] The voucher summary corresponding to the voucher verification value is generated according to the following expression: in, This is the voucher summary corresponding to the voucher verification value. For hash functions, This is the credential verification value. The edge authentication node verifies the credential verification value and its corresponding credential digest based on the credential status table, and updates the credential sequence number and the next credential upon successful verification. When the credential digest corresponding to the credential verification value matches the current credential digest, the edge authentication node determines that the power grid equipment holds a currently valid credential; when the credential digest corresponding to the credential verification value matches the previous credential digest and the previous credential's usage flag is in an unused state, the edge authentication node enters a one-time out-of-synchronization recovery process.
[0110] Before validating the credential verification value, the edge authentication node first parses the power grid scenario tag declared by the device from the credential verification value and compares it with the power grid scenario tag bound to the device credential during its derivation, stored locally. If the two do not match, the credential verification value is directly determined to be invalid, and the re-authentication process is terminated. This pre-comparison ensures that the credential is only usable in the business scenario corresponding to its derivation, preventing the credential from being reused across business scenarios.
[0111] The edge authentication node verifies the validity of the received credential verification value based on the power grid topology environment identifier. Specifically, the edge authentication node uses the device masking index as the key to read the current credential digest from its local credential status table and recalculates the expected verification value using the same algorithm as the device (i.e., hashing based on the current credential, power grid topology environment identifier, power grid scenario label, re-authentication random number, and credential sequence number). This expected verification value is then compared with the credential verification value submitted by the device. If they match, the credential verification result is successful; otherwise, the verification result is unsuccessful. Since the power grid topology environment identifier participates in both the generation on the device side and the verification calculation on the edge authentication node side, if the actual power grid topology environment accessed by the device is inconsistent with the environment bound when the credential is derived, even if the device holds a valid credential, it will fail verification. This ensures that the credential cannot be reused in different feeders, different transformer areas, or different topology versions.
[0112] When the credential verification result is successful, the edge authentication node updates the credential status: it increments the current credential sequence number (e.g., by a preset step size of 1), and generates the next credential through a hash operation based on the current credential, the power grid topology environment identifier, the power grid scenario label, the updated credential sequence number, and the re-authentication random number. Next credential Generate according to the following expression: ,in, For the next certificate, This is the current voucher. For hash functions, For identifying the power grid topology environment, For power grid scenario tags, For voucher serial number, For re-authentication random numbers, This indicates a concatenation operation. Since the power grid topology environment identifier and power grid scenario label participate in the generation of the next credential, when the power grid topology environment or business scenario changes, the original credential cannot be directly reused in the new environment or scenario. The updated credential summary is written to the credential status table, and the original current credential summary is moved to the previous credential summary.
[0113] The edge authentication node sends the updated credential information (including at least the updated credential number and the next credential) to the grid equipment for use in subsequent re-authentication.
[0114] In some embodiments, the interaction process of the second authentication method (topology binding credential re-authentication) also includes a step of recovery from loss of synchronization.
[0115] Specifically, the edge authentication node records the current credential digest, the previous credential digest, the credential sequence number, the historical topology version number, the out-of-synchronization recovery flag, and the previous credential usage flag in the locally stored credential status table. Among them, the previous credential digest retains the credential information used when the authentication was successful last time, which is used to deal with the asynchronous credential status of power grid equipment caused by wireless link jitter, edge node congestion, or loss of acknowledgment messages.
[0116] When the credential digest corresponding to the credential verification value received by the edge authentication node matches the previous credential digest recorded in the credential status table, and the previous credential usage flag is in an unused state, the edge authentication node performs a step-out recovery, that is, accepts the current credential verification value and updates the previous credential usage flag to a used state.
[0117] If a subsequent credential digest corresponding to the credential verification value matches the previous credential digest, the edge authentication node will reject the corresponding credential re-authentication request because the previous credential's usage flag is already in the used state. This one-time out-of-sync recovery mechanism ensures the continuity of authentication in weak communication environments while preventing the replay authentication risk caused by the reuse of the previous credential.
[0118] In some embodiments, after the authentication interaction is completed, the method further includes generating and uploading a summary of the current authentication record.
[0119] Specifically, the edge authentication node generates the current authentication record digest through a hash operation based on the device masking index, power grid topology environment identifier, power grid scene label, authentication tier value, authentication result flag, and the digest of the previous authentication record. The input to the hash operation is a string of information obtained by concatenating the above six pieces of information in a preset order. During the initial authentication, the digest of the previous authentication record is a preset initial digest (e.g., an all-zero hash value).
[0120] The formula for calculating the current authentication record digest is: Where A is the current authentication record digest, H is the hash function, X is the device masking index, L is the power grid topology environment identifier, G is the power grid scenario label, V is the authentication grade value, and B is the authentication result flag. This is the summary of the previous authentication record; ∥ indicates a concatenation operation.
[0121] Because the previous authentication record digest participates in the generation of the current authentication record digest, multiple authentication record digests can form a chain-like relationship. When the power grid topology environment identifier, power grid scenario label, authentication grade value, or authentication result flag in the authentication record is tampered with, subsequent authentication record digests will not be consistent with the chain-like records stored in the authentication management node, thereby improving the integrity and traceability of authentication records.
[0122] The edge authentication node uploads the generated current authentication record summary to the authentication management node for subsequent auditing and traceability.
[0123] In some embodiments, the authentication interaction process also includes steps for handling various exceptions.
[0124] Specifically, when the verification of the post-quantum signature value fails in the first authentication method, the edge authentication node rejects the authentication request and generates the current authentication record summary corresponding to the authentication failure based on the device masking index, power grid topology environment identifier, power grid scene label, authentication grade value, authentication failure flag and the previous authentication record summary.
[0125] When the key encapsulation ciphertext decapsulation fails in the first authentication method, the edge authentication node terminates the current post-quantum anchoring authentication and sets the authentication result flag to the decapsulation failure flag.
[0126] When the power grid scene tag does not belong to the power grid scene tag set, the edge authentication node rejects the authentication request and generates a current authentication record summary corresponding to the authentication failure.
[0127] When the topology ownership verification fails, the edge authentication node refuses to re-authenticate the topology binding credential; for metering collection or status monitoring services, the edge authentication node triggers quantum anchoring authentication based on the authentication tier value; for protection control or scheduling control services, the edge authentication node directly rejects the current authentication request and generates a current authentication record summary corresponding to the authentication failure.
[0128] When the credential digest corresponding to the credential verification value in the second authentication method does not match either the current credential digest or the previous credential digest, the edge authentication node rejects the corresponding credential re-authentication request and sets the authentication result flag to the credential verification failure flag.
[0129] Through the above-mentioned abnormal authentication handling, the authentication process can cover a variety of abnormal situations such as signature failure, decapsulation failure, illegal scene label, topology mismatch, and credential verification failure, thereby improving the integrity of the authentication process.
[0130] In some embodiments, the credential status update process after successful verification in the second authentication method (topology binding credential re-authentication) specifically includes: After verifying the validity of the credential check value, the edge authentication node updates the credential status table: moves the current credential summary to the previous credential summary, writes the summary of the next credential to the current credential summary position, sets the usage flag of the previous credential to unused status, and increments the current credential sequence number by a preset step (e.g., by 1).
[0131] The next credential is generated as follows: based on the current credential, the power grid topology environment identifier, the power grid scenario tag, the updated credential serial number, and the re-authentication random number, it is generated through a hash operation. The calculation formula is as follows: in, For the next certificate, This is the current voucher. For hash functions, For identifying the power grid topology environment, For power grid scenario tags, For voucher serial number, For re-authentication random numbers, This indicates a concatenation operation.
[0132] Since the power grid topology environment identifier and power grid scenario label are involved in the generation of the next credential, when the power grid topology environment or business scenario changes, the original credential cannot be directly reused in the new environment or scenario.
[0133] The edge authentication node sends the updated credential information (including at least the updated credential number and the next credential) to the grid equipment for use in subsequent re-authentication.
[0134] In an optional embodiment, to verify the technical effectiveness of this embodiment, a test system containing 200 intelligent converged terminals for distribution areas, 50 status monitoring terminals, and 20 protection and control terminals was constructed in a simulated test environment. The test network includes one authentication management node, four edge authentication nodes, and one power grid topology data source. The comparative scheme adopts a lightweight authentication approach for local communication of power terminals, that is, it focuses on edge-side identity authentication and key configuration, without introducing topology time slice tags, authentication tier values, topology binding ticket chains, and one-time out-of-synchronization recovery mechanisms. This embodiment adopts the above-mentioned quantum-resistant lightweight authentication method for power grid equipment. During the test, five scenarios were simulated: normal topology, distribution area topology version change, feeder switching, protection and control service triggering, and short-term packet loss of wireless links. The authentication process was repeated 1000 times for each scenario, and the average authentication latency, average communication data volume per authentication, number of authentications that the edge authentication node can process per second, number of cross-topology ticket misacceptances, and out-of-synchronization recovery success rate were recorded under the conditions of set test samples, set network latency range, set packet loss rate range, and set tampering model. The test results are shown in Table 1 below.
[0135] Table 1 Comparison of Certification Scheme Performance The test data above shows that, under stable grid topology and low business risk conditions, this embodiment reduces the number of full-fledged quantum authentications by re-authenticating topology-bound tickets, thereby reducing average authentication latency and communication data volume, and improving the concurrent processing capability of edge authentication nodes. When the grid topology changes or the business scenario switches to protection and control services, this embodiment triggers post-quantum anchoring authentication through authentication tier values, rebinding the authentication status to the current topology time slice tag, grid scenario tag, and authentication tier value. Compared with the comparative scheme that only performs ordinary identity authentication and key configuration, this embodiment can effectively avoid the erroneous reuse of short-term authentication tickets under different feeders, different transformer areas, different protection sections, different edge authentication nodes, or different topology versions.
[0136] The beneficial effects of this embodiment include at least the following aspects. First, by incorporating feeder identifiers, transformer area identifiers, protected section identifiers, edge authentication node identifiers, topology version numbers, and time window numbers into the authentication process through topology time slice tags, the authentication results of power grid equipment are bound to the current spatiotemporal state of the power grid topology, improving the scenario adaptability of the authentication status. Second, by integrating the authentication grading values with the quantum computing time consumption level, memory usage level, communication data volume level, power grid scenario risk level, and topology change level, edge authentication nodes can dynamically select post-quantum anchored authentication or topology-bound ticket re-authentication based on equipment resource status, business risks, and the degree of topology change. Third, by incorporating topology time slice tags and power grid scenario tags into the generation process of short-term authentication ticket chains, short-term authentication tickets cannot be reused without considering the current topology environment and business scenario. Fourth, by using the previous short-term authentication ticket summary and the previous short-term authentication ticket usage flag to achieve one-time out-of-step recovery, authentication continuity is improved in weak power grid communication environments, while avoiding the reuse of previous short-term authentication tickets. Fifth, by forming a chain association between the current authentication record summary and the previous authentication record summary, the integrity verification capability and subsequent audit traceability capability of the authentication process are improved. Sixth, by selecting the corresponding authentication parameter sets (first, second, and third) and authentication tier values, post-quantum anchored authentication can be parameterized to adapt to power grid business risks, topology changes, and equipment resource status. This avoids excessive consumption of equipment computing power in low-risk scenarios and insufficient authentication strength in high-risk scenarios. Seventh, by verifying the current feeder identifier, current transformer identifier, and current protected area identifier through a topology attribution table, the authentication process of power grid equipment is bound not only to the equipment identity but also to the permitted range of power grid topology access, thereby further reducing the security risks associated with cross-regional, cross-transformer, or cross-protected area access. Eighth, through an abnormal authentication handling mechanism, authentication result flags and current authentication record digests are generated for cases such as failed post-quantum signature value verification, failed key encapsulation and decapsulation, invalid power grid scenario labels, topology attribution mismatch, and failed ticket verification. This provides the authentication process with more complete failure handling and audit traceability capabilities.
[0137] In summary, this embodiment, through the coordinated operation of power grid topology time slice tags, authentication tier values, post-quantum anchored authentication, topology binding ticket chain, one-time out-of-step recovery, authentication parameter set tier selection, topology attribution verification, anomaly authentication processing, and authentication record summary chain, enables power grid equipment to maintain high authentication strength under quantum security requirements, while also achieving lightweight re-authentication in low-risk, topology-stable, and resource-constrained scenarios. Therefore, it is suitable for various secure access scenarios for power grid equipment, including power IoT, distribution automation, transformer edge access, protection and control terminal access, and distributed renewable energy access.
[0138] In some embodiments, this application provides a power grid equipment authentication system for performing the power grid equipment authentication method as described in this application.
[0139] It is understood that the above system embodiments correspond to the method embodiments of this application, and can implement the power grid equipment authentication method provided by any of the above method embodiments of this application.
[0140] Based on the above embodiments of the power grid equipment authentication method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the power grid equipment authentication method of any embodiment of the present application.
[0141] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0142] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0143] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0144] Based on the above-described method embodiments, another embodiment of this application provides a computer-readable storage medium, including: a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a power grid device authentication method as described in any of the above-described method embodiments of this application.
[0145] The modules / units integrated into the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0146] The above are preferred embodiments of this application. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.
Claims
1. A method for certifying power grid equipment, characterized in that, The method is applied to edge authentication nodes, including: Obtain power grid topology information; generate a power grid topology environment identifier based on the power grid topology information; The power grid topology environment identifier is sent to the power grid equipment to receive the access authentication request returned by the power grid equipment. The access authentication request is generated based on the power grid topology environment identifier and includes a device masking index, resource status parameters, power grid scenario label, and credential status marker. Based on the resource status parameters, determine the resource consumption level; based on the power grid scenario label, determine the business risk level; based on the device masking index, query the historical topology version number of the power grid device; based on the current topology version number in the power grid topology information and the historical topology version number, determine the topology change level. Calculate the authentication tier value based on the resource consumption level, the business risk level, and the topology change level; Based on the credential status marker and the authentication tier value, a target authentication method is determined from the preset authentication methods, and the power grid equipment is authenticated and interacted with according to the target authentication method.
2. The power grid equipment certification method according to claim 1, characterized in that, The step of generating a power grid topology environment identifier based on the power grid topology information includes: Obtain several topology parameters from the power grid topology information; The topology parameters are concatenated in a preset order to obtain a concatenated information string; The concatenated information string is encrypted to obtain the power grid topology environment identifier.
3. The power grid equipment certification method according to claim 1, characterized in that, The resource status parameters include post-quantum signature time, key encapsulation time, number of authentication message fragments, and peak memory usage. Determining the resource consumption level based on these resource status parameters includes: The post-quantum signature time is compared with a preset signature time threshold to obtain a signature time comparison result; the key encapsulation time is compared with a preset encapsulation time threshold to obtain an encapsulation time comparison result; based on the signature time comparison result and the encapsulation time comparison result, the post-quantum computation time level is determined. The number of authentication message fragments is compared with a preset fragment number threshold to determine the communication data volume level. The peak memory usage is compared with a preset memory usage threshold to determine the memory usage level; The resource consumption level is determined based on the post-quantum computing time consumption level, the communication data volume level, and the memory usage level.
4. The power grid equipment certification method according to claim 1, characterized in that, The steps include: determining the business risk level based on the power grid scenario label; querying the historical topology version number of the power grid equipment based on the equipment masking index; and determining the topology change level based on the current topology version number and the historical topology version number in the power grid topology information, including: Identify the service type corresponding to the power grid scenario label; Based on the preset correspondence between business types and business risk levels, query the business risk level that matches the business type; Based on the device masking index, query the locally stored credential status table and read the historical topology version number of the power grid device from the credential status table; The current topology version number is compared with the historical topology version number to obtain the comparison result; Based on the comparison results, the level of topological change is determined.
5. The power grid equipment certification method according to claim 3, characterized in that, The calculation of the authentication tier value based on the resource consumption level, the business risk level, and the topology change level includes: Obtain the first weight corresponding to the post-quantum computing time consumption level, the second weight corresponding to the memory usage level, the third weight corresponding to the communication data volume level, the fourth weight corresponding to the business risk level, and the fifth weight corresponding to the topology change level; The first weighted value is obtained by multiplying the post-quantum computing time consumption level by the first weight. Calculate the product of the memory usage level and the second weight to obtain the second weighted value; Calculate the product of the communication data volume level and the third weight to obtain the third weighted value; Calculate the product of the business risk level and the fourth weight to obtain the fourth weighted value; Calculate the product of the topology change level and the fifth weight to obtain the fifth weighted value; The authentication score is obtained by adding the first weighted value, the second weighted value, the third weighted value, the fourth weighted value, and the fifth weighted value.
6. The power grid equipment certification method according to claim 1, characterized in that, The authentication methods include a first authentication method and a second authentication method. The step of determining the target authentication method from the preset authentication methods based on the credential status marker and the authentication grade value includes: When the credential status flag indicates that no valid credential exists, the first authentication method is determined as the target authentication method; When the credential status flag indicates that a valid credential exists, the authentication grading value is compared with a preset threshold. When the authentication grade value is greater than or equal to the preset threshold, the first authentication method is determined as the target authentication method; When the authentication score is less than the preset threshold, the second authentication method is determined as the target authentication method.
7. The power grid equipment certification method according to claim 6, characterized in that, The edge authentication node stores the post-quantum public key of the power grid device and the post-quantum private key of the edge authentication node. The authentication interaction with the power grid device according to the target authentication method includes: When the target authentication method is the first authentication method, the post-quantum signature value and key-encapsulated ciphertext sent by the power grid equipment are received; The signature verification result is obtained by verifying the post-quantum signature value using the post-quantum public key. The shared secret is obtained by decapsulating the key-encapsulated ciphertext using the post-quantum private key. When the signature verification result is successful, an authentication credential bound to the current access environment is generated based on the shared secret and the power grid topology environment identifier, and the authentication credential is sent to the power grid equipment; When the target authentication method is the second authentication method, the credential verification value sent by the power grid equipment is received; the validity of the credential verification value is verified according to the power grid topology environment identifier to obtain the credential verification result; When the verification result of the credential is successful, the credential serial number is updated to obtain the updated credential information, and the updated credential information is sent to the power grid equipment.
8. A power grid equipment authentication system, characterized in that, The power grid equipment authentication system is used to perform the power grid equipment authentication method as described in any one of claims 1 to 7.
9. A terminal device, characterized in that, include: One or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the power grid equipment authentication method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, include: A stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the power grid equipment authentication method as described in any one of claims 1 to 7.
