Power system security risk propagation path analysis method based on semantic analysis

By preprocessing and encoding multi-source security data of the power system and constructing a semantic association graph in conjunction with power business rules, the problem of insufficient coverage of power system software security analysis is solved, and the identification of risk propagation paths across components and businesses is realized, thereby improving the coverage of security analysis.

CN123140628APending Publication Date: 2026-11-20GUANGDONG ELECTRIC POWER COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611229476.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the coverage of power system software security analysis is insufficient, multi-source security data lacks unified semantic association, making it difficult to identify the risk propagation path of cross-component and cross-business correlations, and lacking a deep semantic understanding of power business logic.

Method used

By preprocessing multi-source security data of the power system, structured features are obtained and encoded into the same semantic space. A semantic association graph is constructed by integrating business rules in the power business rule base, correcting node risk scores and edge weights, and searching for risk propagation paths to conduct risk assessment.

Benefits of technology

It enables unified modeling and correlation analysis of multi-source security data under the same framework, covering the correlation risk propagation path across components and businesses, and improving the coverage of power system security analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140628A_ABST
    Figure CN123140628A_ABST
Patent Text Reader

Abstract

The application relates to a power system safety risk propagation path analysis method based on semantic analysis. The method comprises the following steps: performing data preprocessing on multi-source safety data of a power system to obtain structured features; performing coding processing on the structured features, projecting the coded structured features into the same semantic space, and obtaining semantic vectors of the structured features in the semantic space; obtaining business rules in a power business rule library, fusing the business rules into the semantic vectors, obtaining semantic objects, and constructing a semantic correlation graph according to the semantic objects; correcting node risk scores and edge weights in the semantic correlation graph according to the business rules, searching for a risk propagation path along the correlation edges in the corrected semantic correlation graph, and performing risk assessment processing on risk nodes in the risk propagation path to obtain a risk analysis result for the power system. The method can improve the safety analysis coverage of the power system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system technology, and in particular to a method for analyzing the propagation path of power system security risks based on semantic analysis. Background Technology

[0002] With the intelligent development of power systems, the scale and complexity of power system software in core businesses such as power monitoring and dispatch automation are constantly increasing, and its software vulnerability has become an important source of risk affecting the safety of power infrastructure.

[0003] In traditional technologies, security data such as source code, runtime logs, and vulnerability reports are usually processed independently, and local security analysis is performed through static rule matching or single log anomaly detection.

[0004] However, the above methods suffer from insufficient security analysis coverage. Summary of the Invention

[0005] Therefore, it is necessary to provide a semantic analysis-based method for analyzing the propagation path of power system security risks, which can improve the coverage of power system security analysis, in response to the above-mentioned technical problems.

[0006] Firstly, this application provides a method for analyzing the propagation path of power system security risks based on semantic analysis, including:

[0007] Data preprocessing is performed on multi-source security data of the power system to obtain structured features;

[0008] The structured features are encoded and then projected into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0009] Obtain business rules from the power business rule base, integrate the business rules into semantic vectors to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0010] Based on business rules, the node risk scores and edge weights in the semantic association graph are corrected. Risk propagation paths are then searched along the association edges in the corrected semantic association graph, and risk assessment processing is performed on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

[0011] Secondly, this application also provides a semantic analysis-based power system security risk propagation path analysis device, comprising:

[0012] The preprocessing module is used to preprocess multi-source security data of the power system to obtain structured features;

[0013] The encoding module is used to encode the structured features and project the encoded structured features into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0014] The fusion module is used to obtain business rules from the power business rule base, fuse the business rules into semantic vectors to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0015] The correction module is used to correct the node risk scores and edge weights in the semantic association graph according to business rules, search for risk propagation paths along the association edges in the corrected semantic association graph, and perform risk assessment processing on the risk nodes in the risk propagation path to obtain the risk analysis results for the power system shown.

[0016] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0017] Data preprocessing is performed on multi-source security data of the power system to obtain structured features;

[0018] The structured features are encoded and then projected into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0019] Obtain business rules from the power business rule base, integrate the business rules into semantic vectors to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0020] Based on business rules, the node risk scores and edge weights in the semantic association graph are corrected. Risk propagation paths are then searched along the association edges in the corrected semantic association graph, and risk assessment processing is performed on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

[0021] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0022] Data preprocessing is performed on multi-source security data of the power system to obtain structured features;

[0023] The structured features are encoded and then projected into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0024] Obtain business rules from the power business rule base, integrate the business rules into semantic vectors to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0025] Based on business rules, the node risk scores and edge weights in the semantic association graph are corrected. Risk propagation paths are then searched along the association edges in the corrected semantic association graph, and risk assessment processing is performed on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

[0026] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0027] Data preprocessing is performed on multi-source security data of the power system to obtain structured features;

[0028] The structured features are encoded and then projected into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0029] Obtain business rules from the power business rule base, integrate the business rules into semantic vectors to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0030] Based on business rules, the node risk scores and edge weights in the semantic association graph are corrected. Risk propagation paths are then searched along the association edges in the corrected semantic association graph, and risk assessment processing is performed on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

[0031] The aforementioned semantic analysis-based power system security risk propagation path analysis method preprocesses multi-source security data of the power system to obtain structured features. These structured features are then encoded and projected onto the same semantic space to obtain semantic vectors. This allows multi-source security data, originally from diverse sources and in different formats, to be represented and compared within a unified semantic space, providing a foundation for subsequent cross-modal correlation analysis. Furthermore, by acquiring business rules from the power business rule base, these rules are integrated into the semantic vectors to obtain semantic objects. A semantic correlation graph is then constructed based on these semantic objects. This enables security data from different modalities to not only establish semantic connections but also enhance semantic expression by incorporating power business rules, thus achieving unified modeling and correlation analysis of multi-source security data within the same framework. On this basis, the risk scores of nodes and edge weights in the semantic correlation graph are corrected according to business rules. Risk propagation paths are then searched along the correlation edges in the corrected semantic correlation graph, and risk nodes are assessed. This ensures that security analysis covers not only single-point vulnerabilities or single-type anomalies but also cross-component and cross-business correlation risk propagation paths, thereby improving the coverage of power system security analysis. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 A schematic diagram illustrating traditional technologies and their limitations;

[0034] Figure 2 This is an internal structural diagram of a computer device in one embodiment;

[0035] Figure 3 This is a flowchart illustrating a semantic analysis-based power system security risk propagation path analysis method in one embodiment.

[0036] Figure 4 This is a flowchart illustrating the structured feature determination steps in one embodiment;

[0037] Figure 5 This is a flowchart illustrating the semantic vector determination steps in one embodiment;

[0038] Figure 6 This is a flowchart illustrating the steps for determining the risk analysis results in one embodiment;

[0039] Figure 7 This is a flowchart illustrating a semantic analysis-based power system security risk propagation path analysis method in another embodiment.

[0040] Figure 8 System architecture diagram provided for embodiments of this application;

[0041] Figure 9 The overall flowchart provided for the embodiments of this application;

[0042] Figure 10 This is a structural block diagram of a power system security risk propagation path analysis device based on semantic analysis in one embodiment. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0044] With the continuous development of power monitoring systems, dispatch automation systems, protection and control systems, and new power Internet of Things platforms, the scale and complexity of power system software are constantly increasing, and software vulnerability has become an important source of risk affecting the safe and stable operation of power infrastructure.

[0045] Current mainstream technical solutions for power system software security risk analysis mainly include rule-based vulnerability detection, static code analysis-based security detection, abnormal behavior analysis based on runtime logs, and risk correlation analysis based on threat intelligence and vulnerability reports. For example... Figure 1 As shown, the above solutions conduct security analysis from different dimensions, such as vulnerability feature matching, source code auditing, log anomaly identification, and Common Vulnerabilities and Exposures (CVE) integration, and each forms a relatively independent technical route.

[0046] Rule-based vulnerability detection schemes, centered on vulnerability feature matching and association with known vulnerability databases, compare system components against predefined vulnerability rules, offering high efficiency in identifying known vulnerabilities but struggling to detect unknown vulnerabilities and complex attack behaviors. Static code analysis-based schemes discover potential flaws through syntax parsing and control flow analysis of program source code or binary files, but rely on a complete source code environment, limiting their adaptability to numerous closed-source components and legacy programs in power systems. Log-based abnormal behavior analysis schemes collect dispatch system logs and protection device operation records, using statistical or machine learning methods to identify abnormal operations; however, log information is semantically discrete, making it difficult to directly pinpoint deep vulnerability sources. Threat intelligence-based risk association schemes integrate CVE announcements and attack event intelligence for asset risk mapping, but lack deep integration with actual software logic and operational behavior, making it difficult to achieve accurate vulnerability semantic perception.

[0047] However, as Figure 1As shown, the existing technologies described above perform security analysis from single dimensions such as rules, code, logs, and intelligence, each with significant limitations: There is a lack of unified semantic association between multi-source security data; source code, binary programs, runtime logs, vulnerability reports, and maintenance records are analyzed independently, resulting in fragmented security information; there is a lack of deep semantic understanding of power business logic such as dispatch control, protection measurement and control, and status monitoring, leading to the inaccurate identification of numerous security risks; cross-modal correlation analysis capabilities are weak, making it difficult to unify the association of code logic, binary execution behavior, log anomalies, and vulnerability intelligence, and failing to effectively identify chain-like vulnerabilities formed by multiple weak risk points; dynamic perception and continuous evolution capabilities are insufficient, as static rules and fixed models cannot adapt to software upgrades, new vulnerability exposures, and environmental changes in a timely manner; unified analysis adaptability in heterogeneous environments is poor, making it difficult to meet the unified analysis needs of different operating systems, instruction architectures, proprietary protocols, and legacy components. These limitations collectively make it difficult for existing solutions to form an effective understanding of the overall vulnerability of power system software. Based on this, this application proposes a semantic analysis-based power system security risk propagation path analysis method to address the aforementioned problems.

[0048] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 2 As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores relevant data from the semantic analysis-based power system security risk propagation path analysis process. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a semantic analysis-based power system security risk propagation path analysis method.

[0049] Those skilled in the art will understand that Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0050] In one exemplary embodiment, such as Figure 3 As shown, a semantic analysis-based method for analyzing the propagation path of security risks in power systems is presented, and this method is applied to... Figure 1 Taking the server in the example, the explanation includes the following steps 201 to 204. Wherein:

[0051] Step 201: Perform data preprocessing on the multi-source security data of the power system to obtain structured features.

[0052] Multi-source security data refers to security-related data generated during the operation and maintenance of power system software from different sources and in different formats, including source code files, binary program files, operation logs, maintenance operation records, and vulnerability notification texts. Data preprocessing involves parsing, cleaning, format conversion, and feature extraction of the raw multi-source security data. Structured features are a set of computable features extracted from the raw multi-source security data, possessing a unified data format and semantic labels.

[0053] In one embodiment of this application, the server acquires multi-source security data of the power system, parses and processes each modal data, extracts semantic features of each modality, and then encapsulates the extracted semantic features of each modality in a unified format to obtain structured features.

[0054] In another embodiment, the server receives raw security data from different data sources in the power system, performs targeted parsing on each type of data according to its data format, extracts key semantic information from the parsing results, converts all the extracted semantic information into a unified feature data structure, and combines them to form structured features.

[0055] Step 202: Encode the structured features and project the encoded structured features into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0056] The encoding process involves inputting structured features into a semantic encoder for the corresponding modality, and then using a neural network model to convert the discrete structured features into continuous vectors. The semantic space is a unified vector space formed by mapping semantic vectors from different modalities to the same dimensional space using projection matrices. Semantic vectors are the numerical representation of structured features in the semantic space.

[0057] In one embodiment of this application, the server inputs the structured features into the semantic encoder for encoding to obtain a semantic vector, and then projects the semantic vector onto the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0058] In another embodiment, the server inputs the structured features of each modality into their respective encoding networks for encoding processing to obtain the original semantic vectors of each modality. Then, the original semantic vectors of each modality are mapped to a common semantic space of the same dimension, and the mapping results are standardized to obtain the semantic vectors of each modality in the common semantic space.

[0059] Step 203: Obtain business rules from the power business rule base, integrate the business rules into the semantic vector to obtain semantic objects, and construct a semantic association graph based on the semantic objects.

[0060] The power business rules base is a knowledge set storing power system business operation specifications, security constraints, and process dependencies. Semantic objects are unified data structures incorporating business rule tags, containing semantic vectors and their corresponding power business semantic information. The semantic association graph is a graph structure with semantic objects as nodes and the relationships between semantic objects as edges.

[0061] In one embodiment of this application, the server obtains business rules from the power business rule base, appends the business semantic information in the business rules to the semantic vector, and generates a semantic object with a power business semantic tag. The server uses each semantic object as a node, determines an association metric based on the vector distance between nodes in the semantic space and the business dependencies between the power businesses corresponding to each node, and establishes association edges between nodes when the association metric meets preset conditions. The server then traverses all nodes to construct a semantic association graph.

[0062] In another embodiment, the server extracts equipment type constraints, operation permission levels, and operation sequence constraints of the power system from the business rule base, and integrates the extracted constraint information into semantic vectors to generate semantic objects. The server uses each semantic object as a node, filters candidate associated node pairs based on the vector distance between semantic vectors, determines the final association metric based on the dependency relationship between the power services corresponding to the candidate node pairs, and establishes association edges between nodes based on the association metric to construct a semantic association graph.

[0063] Step 204: Correct the node risk scores and edge weights in the semantic association graph according to the business rules, search for risk propagation paths along the association edges in the corrected semantic association graph, and perform risk assessment processing on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

[0064] In this system, the risk score quantifies the severity of the risk to the security object represented by the node. The edge weight quantifies the probability and closeness of risk propagation between two nodes. The risk propagation path is a continuous path in the semantic association graph that starts from a risk node, follows the association edges, passes through several intermediate nodes, and reaches another node. Risk assessment is the process of comprehensively evaluating and ranking the risk levels of the risk nodes in the path.

[0065] In one embodiment of this application, the server corrects the risk scores of nodes in the semantic association graph according to business rules, adjusts the weights of the associated edges according to the business dependencies between nodes, searches for risk propagation paths along the associated edges in the corrected semantic association graph, clusters and evaluates the risk nodes in the searched risk propagation paths, and outputs risk analysis results including risk level, risk propagation path and key risk nodes.

[0066] In another embodiment, the server performs a weighted correction of the risk scores of each node in the semantic association graph based on the constraints in the power business rule base, recalculates the weights of each associated edge based on the corrected node risk scores, searches all risk propagation paths in the corrected semantic association graph, calculates the comprehensive risk assessment value of each path, and outputs the risk analysis results after sorting.

[0067] The aforementioned semantic analysis-based power system security risk propagation path analysis method preprocesses multi-source security data of the power system to obtain structured features. These structured features are then encoded and projected onto the same semantic space to obtain semantic vectors. This allows multi-source security data, originally from diverse sources and in different formats, to be represented and compared within a unified semantic space, providing a foundation for subsequent cross-modal correlation analysis. Furthermore, by acquiring business rules from the power business rule base, these rules are integrated into the semantic vectors to obtain semantic objects. A semantic correlation graph is then constructed based on these semantic objects. This enables security data from different modalities to not only establish semantic connections but also enhance semantic expression by incorporating power business rules, thus achieving unified modeling and correlation analysis of multi-source security data within the same framework. On this basis, the node risk scores and edge weights in the semantic correlation graph are corrected according to business rules. Risk propagation paths are then searched along the correlation edges in the corrected semantic correlation graph, and risk nodes are assessed. This ensures that security analysis covers not only single-point vulnerabilities or single-type anomalies but also cross-component and cross-business correlation risk propagation paths, thereby improving the coverage of power system security analysis.

[0068] In an exemplary embodiment, the above-mentioned "constructing a semantic association graph based on semantic objects" includes:

[0069] Using each semantic object as a construction node, the association metric is determined based on the vector distance between each construction node in the semantic space and the business dependencies between the corresponding power businesses. The business dependencies include one or more of the following: the dependencies between upstream and downstream operations in the same power business process, the associations between different operations on the same equipment asset, and the temporal dependencies between multiple operations in the same scheduling instruction sequence. When the association metric meets the preset conditions, association edges are established between each pair of construction nodes. After traversing all construction nodes, a semantic association graph is obtained.

[0070] The power business rules base is a knowledge set storing power system business operation specifications, security constraints, and process dependencies. Semantic objects are unified data structures incorporating business rule tags, containing semantic vectors and their corresponding power business semantic information. Construction nodes are the basic building blocks of the semantic association graph, with each node corresponding to a semantic object. Vector distance is a measure of the similarity between two semantic vectors in the semantic space; the closer the vector distance, the more semantically related the two semantic objects. Business dependencies between power services represent logical connections, temporal constraints, or causal relationships between different power business operations. Association metrics are quantitative indicators that comprehensively measure whether an association should be established between two construction nodes. The semantic association graph is a graph structure with semantic objects as nodes and the association relationships between semantic objects as edges.

[0071] In one embodiment of this application, the server obtains business rules from the power business rule base, which contain business object information and operation type information of the power system. The server appends the business object tags and operation type tags from the business rules to the semantic vector, generating a semantic object with power business semantic tags. Using each semantic object as a construction node, the server first calculates the cosine distance between the semantic vectors of every two construction nodes in the semantic space to obtain semantic similarity. Simultaneously, the server queries the power business rule base to determine whether there is an upstream / downstream operation dependency relationship or an operation association relationship on the same equipment asset between the power businesses corresponding to these two construction nodes. If such a business dependency relationship exists, the business dependency strength is set to high; otherwise, the business dependency strength is set to low. The server weighted sums the semantic similarity and business dependency strength to obtain the association metric between the two construction nodes. The server compares the association metric with a preset threshold; if the association metric is greater than the preset threshold, an undirected association edge is established between the two construction nodes. The server traverses all construction node pairs, performing the above judgment and edge establishment operations for each pair of construction nodes until all node pairs are processed, resulting in a semantic association graph.

[0072] In another embodiment, the server extracts business rules from the power business rule base. These rules include equipment type information, operation permission level information, and operation sequence constraint information. The server integrates this information into various semantic vectors to generate semantic objects. Using each semantic object as a construction node, the server calculates the vector distance between any two nodes based on the Euclidean distance between semantic vectors, and selects node pairs with vector distances less than a first threshold as candidate associated node pairs. For each candidate associated node pair, the server queries whether the power business corresponding to the two nodes belongs to different operation steps within the same scheduling instruction sequence, or whether it involves associated operations of the same equipment asset. If any of the above business dependencies are satisfied, the server increases the association metric value of the candidate node pair by a preset increment; otherwise, the server decreases the association metric value by a preset decrement. The server compares the adjusted association metric value with a second threshold. If the association metric value is greater than the second threshold, an association edge is established between the corresponding nodes. After traversing all candidate node pairs, the server obtains a semantic association graph.

[0073] In one exemplary embodiment, such as Figure 4 As shown, the aforementioned "data preprocessing of multi-source security data of the power system to obtain structured features" includes:

[0074] Step 301: Semantic parsing is performed on different modalities of multi-source security data to obtain the semantic features of each modality.

[0075] Multi-source security data refers to security-related data generated during the operation and maintenance of power system software from different sources and in different formats. Modality refers to the form or encoding method of data; different modalities of data have different data structures, syntax rules, and semantic expressions. Semantic parsing processing is the process of performing syntactic analysis, structural decomposition, and information extraction on the raw data, used to convert the raw data into feature representations with clear semantic meaning. Semantic features are structured representations extracted from the raw data that reflect the core semantic information of the data.

[0076] In one embodiment of this application, after the server obtains multi-source security data of the power system, it identifies the modality type of each data item, calls the corresponding parsing logic according to the modality type, performs syntax analysis and information extraction on the original data, and extracts key information that can reflect the security-related semantics of the data from the parsing results to form the semantic features of the modality data.

[0077] In another embodiment, the server receives raw security data from different data sources in the power system, divides it into different types according to the data format, calls the corresponding parser for semantic parsing for each type, and extracts semantic information related to the security behavior, operation object or risk attribute involved in the data from the parsing results as the semantic features of the modal data.

[0078] Step 302: Encapsulate each semantic feature to obtain structured features.

[0079] The encapsulation process involves converting semantic features from different modalities into a unified data format and field structure. Structured features are a set of computable features with a unified data format and semantic labels, obtained after encapsulation. Semantic features from different modalities have the same field definitions and data types after encapsulation.

[0080] In one embodiment of this application, after the server obtains the modal semantic features obtained in step 301, it fills the corresponding field positions of each modal semantic feature according to the preset unified data template, and performs completion or marking processing on missing fields, converting each modal semantic feature into unified format data with the same field structure, and combining them to form structured features.

[0081] In another embodiment, the server obtains semantic features of multiple modalities from step 301, acquires a preset field mapping table, maps the information items in the semantic features of each modality to the corresponding fields in a unified data structure according to the field mapping table, performs field alignment and type conversion on all records, so that the semantic features of different modalities are consistent in field names, data types and value formats, forming structured features.

[0082] In an exemplary embodiment, the above-mentioned "performing semantic parsing processing on different modalities of multi-source security data to obtain semantic features of each modality" includes at least one of the following:

[0083] The source code in multi-source security data is parsed to obtain its semantic features; the binary program in multi-source security data is parsed to obtain its semantic features; the operation logs and maintenance records in multi-source security data are parsed to obtain their semantic features; and the vulnerability reports in multi-source security data are parsed to obtain their semantic features.

[0084] Multi-source security data refers to security-related data generated from different sources and in different formats during the operation and maintenance of power system software. Source code refers to human-readable source files written in high-level programming languages ​​for power system software. Binary programs are machine-executable files generated after compiling power system software. Operation logs are system behavior events automatically recorded during the operation of power system software. Maintenance records are manual operation records generated by power system maintenance personnel after performing operations. Vulnerability reports are security vulnerability announcements related to power system software issued by security organizations, vendors, or vulnerability platforms. Parsing and processing is the process of extracting semantically meaningful feature information from different modal data using corresponding parsing techniques based on their respective data structure characteristics. Semantic features are structured representations extracted from various types of raw data that reflect the core semantic information of the data.

[0085] In one embodiment of this application, after the server obtains multi-source security data of the power system, it parses the source code in the multi-source security data to obtain the semantic features of the source code; it parses the binary program in the multi-source security data to obtain the semantic features of the binary program; it parses the operation logs and maintenance records in the multi-source security data to obtain the semantic features of the logs and maintenance data; and it parses the vulnerability reports in the multi-source security data to obtain the semantic features of the vulnerability reports.

[0086] In another embodiment, the server receives raw security data from different data sources in the power system. For source code data, it uses lexical and syntactic analysis to extract functional logic features; for binary program data, it uses disassembly and control flow analysis to extract execution behavior features; for runtime logs and maintenance records, it uses event sequence analysis and pattern recognition to extract operational behavior features; and for vulnerability notification data, it uses natural language processing and key information extraction to extract threat description features. The server then uses the semantic information obtained after parsing these various data types as the semantic features of the corresponding modalities.

[0087] In one exemplary embodiment, such as Figure 5 As shown, the above-mentioned "encoding the structured features and projecting the encoded structured features onto the same semantic space to obtain the semantic vector of the structured features in the semantic space" includes:

[0088] Step 401: Encode the structured features to obtain the semantic vectors of each modality.

[0089] Structured features are a set of computable features extracted from raw multi-source security data, possessing a unified data format and semantic labels. Encoding involves inputting the structured features into a semantic encoder, which then uses a neural network model to convert the discrete structured features into continuous vectors. The semantic vector is the numerical vector representation of the structured features obtained after encoding.

[0090] In one embodiment of this application, the server inputs structured features into a semantic encoder for encoding. The semantic encoder performs feature extraction and dimension transformation on the structured features through a multi-layer neural network, and outputs a semantic vector of fixed dimension as the semantic vector of the modality data.

[0091] In another embodiment, the server inputs the structured features of each modality into their respective encoding networks. Each encoding network encodes the feature distribution characteristics of the modality data and outputs the semantic vector of the corresponding modality.

[0092] Step 402: Project the semantic vectors of each modality to the same semantic space using a projection matrix, and normalize the projected vectors to obtain the semantic vectors of each modality in the semantic space.

[0093] Here, the projection matrix is ​​a linear transformation parameter used to map semantic vectors of different modalities from their respective original spaces to the same common space. The semantic space is a unified vector space formed after mapping semantic vectors of different modalities to the same dimensional space through the projection matrix. Normalization is the scaling of the projected vectors, so that vectors of different modalities have comparable dimensions in the unified space.

[0094] In one embodiment of this application, after the server obtains the semantic vectors of each modality, it multiplies the semantic vectors of each modality with their respective projection matrices to map the semantic vectors of each modality to a common semantic space of the same dimension, and then normalizes the mapped vectors to obtain the semantic vectors of each modality in the common semantic space.

[0095] In another embodiment, the server maintains a set of projection parameters for each modality, maps the semantic vectors of each modality to a common semantic space of the same dimension through their respective projection parameters, and performs L2 norm standardization on the mapping results so that the vectors of each modality have a uniform numerical range in the common semantic space, thus obtaining the semantic vectors of each modality in the common semantic space.

[0096] In one exemplary embodiment, such as Figure 6 As shown, the above-mentioned "risk assessment and processing of risk nodes in the risk propagation path to obtain risk analysis results for the power system shown" includes:

[0097] Step 501: Cluster the risk nodes in the risk propagation path to obtain the clustered risk nodes.

[0098] In this context, the risk propagation path is a continuous path in the semantic association graph that starts from a risk node, follows the association edges, passes through several intermediate nodes, and reaches another node. A risk node is a node located on the risk propagation path and identified as having potential security threats. Clustering is the process of grouping risk nodes with similar characteristics or the same business attributes into the same category based on their semantic similarity or business relevance.

[0099] In one embodiment of this application, the server obtains all searched risk propagation paths and extracts the semantic vectors of all risk nodes in each risk propagation path. The server clusters risk nodes based on the vector distance between their semantic vectors in the semantic space, and merges risk nodes with a vector distance less than a preset clustering threshold into the same cluster, thus obtaining a clustered set of risk nodes.

[0100] In another embodiment, the server obtains all the risk propagation paths found and extracts the power business tags and equipment type tags corresponding to all risk nodes in the paths. The server uses the semantic vector of each risk node as the main clustering basis, and combines the equipment type tags of each risk node for auxiliary constraints, grouping risk nodes belonging to the same equipment type and with similar semantic vectors into the same cluster, thus obtaining the clustered set of risk nodes.

[0101] Step 502: Perform a risk assessment on the clustered risk nodes to obtain the risk assessment results for each risk node.

[0102] The risk assessment process involves quantifying and classifying the risk severity of each risk node or category of risk nodes after clustering. The risk assessment result is the risk level identifier or risk score obtained for the target risk node after assessment.

[0103] In one embodiment of this application, the server obtains a clustered set of risk nodes, and for each risk node, it performs a comprehensive score based on the risk score of the node, the total weight of the risk propagation path to which the node is located, and the criticality of the power business corresponding to the node. Based on the comprehensive score results, each risk node is divided into different risk levels to obtain the level assessment result of each risk node.

[0104] In another embodiment, the server obtains the clustered set of risk nodes. For each risk node, it calculates the node's risk score, the sum of its in-degree and out-degree along the risk propagation path, and the number of key business objects affected by the node. The server then weights and sums these three dimensions to obtain the node's comprehensive risk score. The server sorts the risk nodes from highest to lowest based on their comprehensive risk scores and classifies them into high, medium, and low risk levels according to their ranking, thus obtaining the risk level assessment result for each risk node.

[0105] Step 503: Based on the risk propagation path and level assessment results, output the risk analysis results; the risk analysis results include the risk level, risk propagation path and key risk nodes.

[0106] Key risk nodes are those whose risk level exceeds the preset threshold in the risk assessment results, or those located at the intersection of multiple risk propagation paths and having a high impact range. The risk analysis results are a comprehensive security analysis report output to the power system, containing risk level information, risk propagation path information, and key risk node information.

[0107] In one embodiment of this application, the server obtains the clustered risk nodes obtained in step 501 and the level assessment results of each risk node obtained in step 502, and combines them with all the risk propagation paths searched in step 204 to generate risk analysis results. The risk analysis results include at least the risk level of each risk node, the path information of each risk propagation path, and the information of key risk nodes that are assessed as high-risk. The server outputs the risk analysis results.

[0108] In another embodiment, the server acquires each risk propagation path, the clustered set of risk nodes, and the risk level assessment results for each risk node. It then selects risk nodes with high and medium risk assessment results as critical risk nodes. The server generates a risk analysis result, which arranges the critical risk nodes from high to low risk level and lists all risk propagation paths containing these critical risk nodes. The topology of the risk propagation paths is presented graphically, and the generated risk analysis result is output to a display device or storage device.

[0109] In one exemplary embodiment, such as Figure 7 As shown, after obtaining the risk analysis results for the power system described above, the method further includes:

[0110] Step 601: Receive new security events; encode the new security events and project them into the semantic space to obtain the semantic vector of the new events.

[0111] The newly added security events refer to newly received power system security-related data after the risk analysis results are output. Encoding is the process of converting the newly added security events into semantic vectors. Projection is the process of mapping the encoded semantic vectors onto an existing semantic space. The semantic vector is the numerical representation of the newly added security event in the semantic space.

[0112] In one embodiment of this application, after outputting the risk analysis results, the server continuously listens to the security data receiving port. When a new security event is received, the server acquires the new security event, uses the same encoder and projection matrix as in step 202 to encode the new security event, and projects it onto the existing semantic space to obtain the semantic vector of the new security event.

[0113] In another embodiment, after outputting the risk analysis results, the server receives new security events from the power system through a real-time data stream interface. The server uses the same encoding model as for historical data processing to encode the new security event, obtaining an initial vector. This initial vector is then mapped to an existing semantic space using a projection matrix, and the mapped vector is standardized to obtain the semantic vector of the new security event in the existing semantic space.

[0114] Step 602: Retrieve historical objects in the semantic space whose vector distance to the semantic vector of the new event is less than a vector threshold.

[0115] Here, "historical objects" refers to the semantic vectors and associated information corresponding to historical security events stored in the existing semantic space. Vector distance is a measure of the similarity between two semantic vectors in the semantic space. The vector threshold is a preset value used to determine whether two semantic vectors are sufficiently similar.

[0116] In one embodiment of this application, after the server obtains the semantic vector of the new event, it calculates the vector distance between the vector and the semantic vectors corresponding to all historical objects in the existing semantic space, and filters out historical objects whose vector distance is less than a preset vector threshold.

[0117] In another embodiment, after the server obtains the semantic vector of the new event, it uses the vector index structure already established in the semantic space to perform an approximate nearest neighbor search with the semantic vector as the query vector, and quickly retrieves all historical objects whose vector distance from the query vector is less than a preset threshold.

[0118] Step 603: Determine the local influence range based on historical objects; based on the current value of the weight parameters, redetermine the association metric value and update the association edges within the local influence range to obtain the updated semantic association graph.

[0119] The local impact range refers to the set of nodes and edges in the semantic association graph that need to be recalculated and updated due to the impact of the new security event. The weight parameter is an adjustable weight coefficient used to determine the association metric. The association metric is a quantitative indicator that measures whether an association should be established between two nodes.

[0120] In one embodiment of this application, the server determines the nodes corresponding to the historical objects retrieved in step 602 and their neighboring nodes in the semantic association graph, and defines the local subgraph range containing these nodes as the local influence range. The server obtains the current weight parameter value, and within this local influence range, recalculates the association metric value between each node according to the same association metric value determination method as in step 203. Based on the recalculated association metric value, the server updates or adjusts the association edges within the local influence range to obtain the updated semantic association graph.

[0121] In another embodiment, the server determines the nodes corresponding to the historical objects retrieved in step 602 in the semantic association graph. It then expands outwards from these historical objects by a predetermined number of hops to include neighboring nodes, using the expanded subgraph formed by the covered nodes and edges as the local influence range. Within the determined local influence range, the server obtains the current values ​​of the weight parameters, recalculates the association metrics between nodes within the local influence range using the current weight parameters, and adjusts the association edges within the local influence range based on the recalculated results. Association edges in other regions remain unchanged, resulting in an updated semantic association graph.

[0122] Step 604: Search for risk propagation paths again in the updated semantic association graph and re-cluster and grade risk nodes, and output the updated risk analysis results.

[0123] In one embodiment of this application, after the server obtains the updated semantic association graph in step 603, it re-searches for risk propagation paths along the association edges only within the local influence range of the updated semantic association graph. The risk nodes in the re-searched risk propagation paths are then re-clustered and their levels are re-evaluated, and the updated risk analysis results for the local influence range are output.

[0124] In another embodiment, after obtaining the updated semantic association graph in step 603, the server re-executes the risk propagation path search, risk node clustering, and level assessment processing on the entire updated semantic association graph, and outputs an updated risk analysis result containing all risk propagation paths and risk node level assessment results.

[0125] In an exemplary embodiment, prior to the above-described "encoding and projecting the new security events into the semantic space," the method further includes:

[0126] Check if the newly added security event is in the historical security event set; if the newly added security event exists in the historical security event set, terminate the processing of the newly added security event.

[0127] The historical security event set is a collection of all historical security events that have been processed. New security events are newly received power system security-related data after the risk analysis results are output.

[0128] In one embodiment of this application, after receiving a new security event, the server checks whether the new security event already exists in the historical security event set before encoding and projecting it. The server compares the new security event with each record in the historical security event set. If an event matching the new security event is found in the historical security event set, it is determined that the new security event has already been processed, and the server ends the processing of this new security event and does not perform subsequent steps for the event.

[0129] In another embodiment, after receiving a new security event, the server extracts the unique identifier of the new security event and searches for it in the historical security event index. If a matching record is found, it is determined that the new security event exists in the historical security event set, and the server directly discards the new security event and ends the current processing flow.

[0130] In one exemplary embodiment, the method further includes:

[0131] Obtain the judgment result of whether the newly added security event is a valid attack chain; if the judgment result is yes, increase the weight parameter used when generating the associated edge within the local influence range; if the judgment result is no, decrease the weight parameter used when generating the associated edge within the local influence range, and continue to receive the next newly added security event.

[0132] The effective attack chain is the risk propagation link where a newly added security event is confirmed to constitute a complete attack path. The weight parameters used when generating the associated edges are the adjustable weight coefficients used in step 203 to determine the association metric. The local influence range is the set of nodes and edges in the semantic association graph that need to be recalculated and updated due to the impact of the newly added security event.

[0133] In one embodiment of this application, the server obtains the judgment result of whether a newly added security event constitutes a valid attack chain. If the judgment result is yes, the weight parameter used to generate the associated edges within the local influence range is increased, making it easier for nodes to meet preset conditions and establish associated edges when determining the associated metric value within the local influence range. If the judgment result is no, the weight parameter used to generate the associated edges within the local influence range is decreased, making it more difficult for nodes to meet preset conditions and establish associated edges when determining the associated metric value within the local influence range. After adjusting the weight parameter, the server continues to receive the next newly added security event.

[0134] In another embodiment, the server receives verification feedback for a newly added security event, which includes a confirmation result regarding whether the new security event constitutes a valid attack chain. The server uses this confirmation result as a judgment result. If the new security event is confirmed to be a valid attack chain, the server increases the weight parameter within the local influence range corresponding to the new security event by a preset step value; if the new security event is confirmed not to be a valid attack chain, the server decreases the weight parameter within the local influence range corresponding to the new security event by a preset step value. After adjusting the weight parameter, the server returns to the receiving state and waits for the arrival of the next new security event.

[0135] In one exemplary embodiment, the method further includes:

[0136] The weight parameter is the adjustable weight coefficient used to determine the correlation metric. The number of adjustments is the cumulative number of times the weight parameter has been increased or decreased. The adjustment threshold is a pre-set upper limit for the number of adjustments used to trigger global reconstruction.

[0137] In one embodiment of this application, the server records the number of times the weight parameters are adjusted. After each adjustment of the weight parameters, the adjustment count is incremented by one. The server compares the adjustment count with a preset adjustment threshold. When the adjustment count reaches the threshold, the server re-executes all steps from determining the structured features to outputting the risk analysis results, that is, re-executes steps 201 to 204 to perform a global reconstruction of the semantic space and semantic association graph. After the reconstruction is completed, the adjustment count is cleared to zero, and the incremental update process continues.

[0138] In another embodiment, the server maintains a counter to record the cumulative number of adjustments to the weight parameters. Each time the weight parameter is increased or decreased, the counter increments by one unit. The server determines whether the current value of the counter has reached a preset adjustment threshold. If it has, a full reconstruction process is triggered, re-executing preprocessing, encoding, projection, semantic association graph construction, risk propagation path search, and risk assessment steps on all historical security data to update the global structure of the semantic space and semantic association graph. After reconstruction is complete, the counter is reset, and the server continues to receive and incrementally process new security events.

[0139] In one embodiment, Figure 8 The system architecture diagram provided for the embodiments of this application is referred to Figure 8 As shown, embodiments of this application can be integrated into software modules.

[0140] The system adopts a modular pipeline design, consisting of four core functional modules and a dynamic feedback closed-loop mechanism. It receives multi-source security data related to power system software as input and, through collaborative processing in multiple stages, including multi-source heterogeneous data preprocessing, cross-modal semantic representation, vulnerability correlation reasoning, and dynamic feedback optimization, gradually completes unified semantic modeling and deep risk perception of power system software security risks. Finally, it outputs vulnerability semantic correlation results, risk propagation paths, and a potential security risk analysis report.

[0141] The system architecture of this application consists of the following four core modules, which are connected through standardized data interfaces to form a complete cross-modal vulnerability semantic perception and dynamic optimization analysis pipeline.

[0142] Module A: Multi-source heterogeneous secure data access and preprocessing module

[0143] This module serves as the system's entry point, responsible for receiving security data from different levels and sources within the power system, including source code files, binary programs, runtime logs, vulnerability notifications, security alarms, and maintenance records. Addressing the complex sources, heterogeneous structures, and inconsistent formats of power system software data, the module first performs unified parsing, format conversion, and structured processing on all types of data.

[0144] For source code data, the module extracts function call relationships, variable dependencies, and abstract syntax tree features; for binary programs, it extracts instruction sequences, function boundaries, and control flow graphs through disassembly and control flow analysis; for runtime logs and maintenance records, it extracts time-series behavioral features, abnormal event features, and key operational semantics; for vulnerability reports and security intelligence data, it extracts key information such as vulnerability numbers, vulnerability descriptions, affected components, and attack methods. Ultimately, a unified, structured set of multi-source security features is formed, providing standardized input for subsequent cross-modal semantic analysis.

[0145] This application does not require that every software object simultaneously possess all modal data such as source code, binary program, running log, vulnerability notification, and operation and maintenance records; when some modalities are missing, the system generates a unified semantic object based on the existing modalities, and completes candidate association and risk reasoning through fields such as asset identifier, component identifier, protocol type, time window, and business object.

[0146] Module B: Cross-modal unified semantic representation module

[0147] This module receives structured security data output from module A and is responsible for achieving unified semantic mapping and alignment between security information of different modalities. This module encodes source code, binary instructions, log text, vulnerability descriptions, and operational semantics separately using a pre-trained large code model, a machine language model, and a natural language semantic model, mapping different modal features to a unified semantic vector space. The machine language model in this application refers to a model used for semantically encoding binary machine instruction sequences, opcode sequences, basic blocks, control flow graphs, external function calls, and system call behavior, and is not a general machine learning model.

[0148] Within a unified semantic space, this module establishes implicit relationships between different data through cross-modal semantic alignment mechanisms. For example, it establishes a semantic association between dangerous function call behavior in binary programs and attack descriptions in vulnerability reports; it establishes a semantic mapping between abnormal communication behavior in runtime logs and protocol processing logic in source code; and it establishes an association analysis relationship between operation and maintenance records and system access control logic.

[0149] Meanwhile, this module integrates the power industry knowledge base and power business rules to enhance the semantics of typical power business such as dispatch control, protection and control, remote communication, and equipment status monitoring. This enables the system to understand the actual security meaning of different software behaviors in power business scenarios and ultimately outputs a unified vulnerability semantic representation result.

[0150] Module C: Vulnerability Correlation Analysis and Risk Reasoning Module

[0151] This module receives the unified vulnerability semantic representation results generated by module B and is responsible for performing correlation analysis, risk propagation reasoning, and potential attack path identification among multi-source security events.

[0152] The module first constructs a vulnerability semantic association graph based on a unified semantic space, abstracting software components, vulnerability nodes, abnormal behaviors, operation and maintenance events and attack behaviors into nodes in the graph structure, and establishes edges between nodes through semantic similarity, time association, call relationship and business dependency relationship.

[0153] Subsequently, the module utilizes semantic clustering, path search, and graph reasoning algorithms to analyze the propagation relationships between different risk nodes, identifying potential chain vulnerabilities and complex attack paths. For example, when the system detects abnormal communication behavior in a scheduling module, it can further correlate its corresponding vulnerable components, historical operation and maintenance change records, and related access control logic to infer whether this abnormal behavior may form a deep attack chain or a potential risk propagation path.

[0154] Ultimately, the module outputs comprehensive security analysis results, including risk level, vulnerability correlation links, potential attack paths, and key risk nodes.

[0155] Module D: Dynamic Vulnerability Perception and Feedback Optimization Module

[0156] This module is responsible for the dynamic optimization and continuous evolution of the system's vulnerability perception capabilities. It establishes real-time feedback channels with external security monitoring systems, vulnerability intelligence platforms, and operational monitoring platforms to continuously receive new vulnerability reports, log events, abnormal behaviors, and security alerts.

[0157] When the system detects new risk events or newly added security samples, the module automatically triggers an incremental semantic learning process to perform semantic encoding and risk correlation analysis on the new data, and dynamically updates the risk nodes and their relationships in the unified semantic space. Simultaneously, the module adaptively adjusts the semantic correlation weights and risk assessment strategies based on historical analysis results, risk propagation paths, and false positives.

[0158] By establishing a dynamic feedback closed-loop mechanism, this invention enables continuous updates to the vulnerability perception model and continuous enhancement of risk analysis capabilities, allowing the system to adapt to the complex security environment of continuous evolution of power system software, constant exposure of vulnerabilities, and dynamic changes in attack methods.

[0159] In one embodiment, Figure 9 The overall flowchart provided for the embodiments of this application is referred to Figure 9 As shown, the process includes:

[0160] Module A: Multi-source heterogeneous secure data access and preprocessing module

[0161] This module is responsible for receiving multi-source security data related to power system software and completing unified structured processing, providing standardized input for subsequent cross-modal semantic representation and risk analysis.

[0162] Step 1.1: Multi-source secure data access and structured preprocessing

[0163] Step 1.1.1 Source Code Analysis and Semantic Feature Extraction

[0164] The server receives the software source code of the power monitoring system, dispatch automation system, and protection and control system. It performs lexical analysis, syntax analysis, and abstract syntax tree (AST) construction on the source code, extracting function call relationships, variable dependencies, and key dangerous function features to form a set of code semantic features.

[0165]

[0166] Where ck represents the k-th code semantic feature.

[0167] Step 1.1.2 Binary program disassembly and control flow analysis

[0168] For closed-source components and legacy programs, the server disassembles the binary program to generate a sequence of low-level instructions, and automatically delineates function boundaries, basic blocks, and control flow graphs (CFGs) through control flow analysis to form a set of machine instruction features.

[0169]

[0170] Where bi represents the i-th binary semantic feature.

[0171] Step 1.1.3 Structured processing of operation logs and maintenance records

[0172] The server receives operation logs, scheduling records, security alarms, and maintenance operation logs. It performs time-series parsing, event extraction, and behavior classification on the log text, extracting abnormal operations, abnormal communications, and key system behaviors to form a set of behavioral semantic features.

[0173]

[0174] Where lj represents the j-th log behavior feature.

[0175] Step 1.1.4 Vulnerability Notification and Threat Intelligence Semantic Analysis

[0176] The server receives vulnerability announcements, security notifications, and threat intelligence data. It performs natural language parsing on the vulnerability descriptions, affected components, attack methods, and exploitation conditions to extract vulnerability semantic features and attack behavior features, forming a vulnerability semantic set.

[0177]

[0178] Here, vk represents the semantic feature of the k-th vulnerability.

[0179] Step 1.1.5 Unified Encapsulation of Multi-Source Features

[0180] The server encapsulates code characteristics, binary characteristics, log behavior characteristics, and vulnerability semantic characteristics in a unified manner to form a standardized cross-modal security data set, which serves as the input to module B.

[0181] Module B: Cross-modal unified semantic representation module

[0182] This module implements a unified semantic mapping between security data of different modalities. By constructing a unified semantic space, it achieves cross-modal semantic association between source code, binary programs, log behavior, and vulnerability descriptions.

[0183] Step 1.2: Cross-modal unified semantic representation and semantic alignment

[0184] Step 1.2.1 Semantic vector encoding of security data in different modalities

[0185] The server calls the large code model, machine language model, and natural language semantic model respectively to encode data of different modalities:

[0186] Code semantic vector:

[0187]

[0188] Binary semantic vector:

[0189]

[0190] Log semantic vector:

[0191]

[0192] Vulnerability semantic vector:

[0193]

[0194] Step 1.2.2 Construction of a cross-modal unified semantic space

[0195] To achieve unified comparison and correlation analysis among different modalities of security data, such as source code, binary programs, runtime logs, vulnerability reports, and operation and maintenance records, this application constructs a cross-modal unified semantic space. This unified semantic space does not simply concatenate the original data from different modalities, but rather forms a comparable, searchable, and reasonable unified semantic representation through methods such as "modal-independent encoding, unified dimensional projection, weakly supervised semantic alignment, and domain label enhancement."

[0196] The server employs independent semantic encoders for different modalities. For source code data, a code semantic encoder encodes the abstract syntax tree, function call relationships, variable dependencies, data flow relationships, and dangerous function call characteristics to obtain the code semantic vector Ec. For binary programs, a binary instruction semantic encoder encodes the opcode sequence, basic blocks, control flow graph, external function calls, and system call characteristics to obtain the binary semantic vector Eb. For runtime logs and maintenance records, an event semantic encoder encodes the log template, timestamp, operation subject, operation object, event type, exception level, and context window to obtain the behavioral event semantic vector El. For vulnerability reports and threat intelligence, a text semantic encoder encodes the vulnerability number, vulnerability description, affected components, attack method, exploitation conditions, and remediation suggestions to obtain the vulnerability intelligence semantic vector Ev.

[0197] The server sets up corresponding modality projection matrices for different modalities, projecting modality vectors of different dimensions and distributions into the same d-dimensional semantic space. Specifically, for any modality m, the system calculates a unified semantic vector using the corresponding projection matrix Wm and the bias term bm:

[0198]

[0199] Where Em represents the original semantic vector of the m-th modality, Wm represents the semantic projection matrix corresponding to this modality, bm represents the bias term, Norm represents vector normalization, and Zi represents the semantic vector mapped to a unified semantic space. By setting projection matrices Wc, Wb, Wl, Wv, and Wo for the code modality, binary modality, log modality, vulnerability text modality, and operation and maintenance record modality respectively, the problem that a single mapping matrix cannot adapt to the feature distribution of different modalities can be avoided.

[0200] The server calibrates the unified semantic space through a weakly supervised semantic alignment mechanism. Weakly supervised alignment samples are automatically constructed from multimodal data within the same software component, asset ID, vulnerability ID, communication protocol, business object, time window, function symbol, or security event chain. For cross-modal samples belonging to the same risk event or business object, the server constructs them as positive sample pairs; for samples with different assets, protocols, business objects, or significantly unrelated time windows, the server constructs them as negative sample pairs. The server uses contrastive learning loss or triplet loss to constrain positive samples to be closer and negative samples to be farther apart in the unified semantic space, thereby achieving semantic alignment between different modalities.

[0201] After completing vector mapping and semantic alignment, the server generates a unified semantic object Ui for each security object. Ui includes at least a unified semantic vector Zi, modality type Mi, asset identifier Ai, software component identifier Ci, business object Bi, protocol type Pi, time attribute Ti, risk label Ri, and evidence source Si. Through this unified semantic object, data from different modalities can undergo similarity calculation, vector retrieval, node association, and subsequent graph reasoning within the same semantic space.

[0202] Step 1.2.3 Semantic Enhancement of Electricity Business

[0203] The server integrates power industry knowledge bases and business rules to semantically enhance power business logic such as dispatch control, protection measurement and control, status monitoring and remote communication, enabling the server to understand the actual business meaning of different software behaviors in power scenarios.

[0204] Step 1.2.4 Cross-modal semantic association analysis

[0205] The server performs cross-modal semantic association analysis based on the mapped unified semantic objects, establishing candidate associations between source code behavior, binary execution behavior, runtime log events, vulnerability intelligence, operation and maintenance operations, and power business objects. For any two unified semantic objects Ui and Uj, the server first calculates the cosine similarity using the semantic vectors Zi and Zj mapped to the unified semantic space.

[0206]

[0207] Here, Zi and Zj represent the unified semantic vectors mapped from two secure objects, and ||Zi|| and ||Zj|| represent the norms of the corresponding vectors. This similarity is used to measure the semantic closeness of two secure objects in the unified semantic space.

[0208] The server does not rely solely on semantic similarity to determine whether there is a valid correlation between two security events. Instead, it uses semantic similarity as one of the candidate correlation criteria and further combines it with asset consistency, component consistency, time proximity, function call relationships, communication relationships, vulnerability impact scope, operation and maintenance objects, and power business dependencies for a comprehensive judgment. Only when two security objects meet preset conditions across multiple dimensions, including semantic similarity, asset or component relationships, time windows, and business context, does the server consider a potential risk correlation between them.

[0209] By employing the above methods, the server can avoid false associations caused by relying solely on text or vector similarity, thereby improving the accuracy and interpretability of cross-modal security event association analysis.

[0210] Step 1.2.5 Generation of Unified Vulnerability Semantic Representation

[0211] The server constructs a unified vulnerability semantic representation based on the semantic association results, and outputs a unified semantic analysis result containing risk nodes, association relationships and business semantic tags, which serves as the input to module C.

[0212] Module C: Vulnerability Correlation Analysis and Risk Reasoning Module

[0213] This module, based on the results of a unified semantic space, enables the analysis of complex risk propagation relationships and the reasoning of potential attack paths.

[0214] Step 1.3: Vulnerability Correlation Analysis and Risk Propagation Reasoning

[0215] Step 1.3.1 Construction of Vulnerability Semantic Relationship Graph

[0216] The server constructs a vulnerability semantic association graph G=(N,E,T,R) based on the unified semantic object set output by module B, where N represents the set of risk nodes, E represents the set of association edges between nodes, T represents the set of node types, and R represents the set of edge relationship types. This association graph has a heterogeneous graph structure, with different types of nodes and different types of edges representing different objects and their relationships in the security analysis of the power server software.

[0217] Risk nodes include at least the following types: software component nodes, source code function nodes, binary function nodes, basic block nodes, vulnerability nodes, runtime log event nodes, security alarm nodes, operation and maintenance nodes, account permission nodes, communication protocol nodes, business function nodes, equipment asset nodes, and external attack behavior nodes. Specifically, software component nodes represent software entities such as the dispatch master station module, protection and control module, communication service module, and database service module; source code function nodes and binary function nodes represent program logic and underlying execution behavior; vulnerability nodes represent CVE vulnerabilities, security notification vulnerabilities, or potential defects discovered internally; log event nodes and operation and maintenance nodes represent abnormal behavior, configuration changes, account logins, remote operations, and alarm events during server operation; and business function nodes represent power business operations such as remote control, telemetry, remote signaling, remote adjustment, setting modification, protection activation / deactivation, and alarm confirmation.

[0218] The server generates connections between nodes based on multiple types of evidence. These connections include at least the following types:

[0219] Semantic similarity edges. The server connects semantically highly related code behaviors, binary behaviors, log events, and vulnerability descriptions based on vector similarity in a unified semantic space.

[0220] Asset ownership edge. If multiple security objects belong to the same host, the same software component, the same plant equipment, the same communication link, or the same business server, then an asset ownership relationship edge is established.

[0221] Program dependency edges. For source code and binary programs, the server establishes program dependency edges based on function call relationships, control flow relationships, data flow relationships, external library call relationships, and server call relationships.

[0222] Vulnerability impact edge. If the affected component, version information, function name, protocol type, or attack method in the vulnerability report matches a certain software component or function node, then a vulnerability impact edge is established between the vulnerable node and the relevant component node or function node.

[0223] Temporal causal edge. If multiple log events, alarm events, or operation and maintenance events occur consecutively in a specific time sequence on the same asset, the same account, the same business object, or the same communication link, a temporal causal edge is established.

[0224] Communication relationship edge. If there is a communication connection, protocol interaction, port access, or data forwarding relationship between two software modules, device nodes, or business servers, then a communication relationship edge is established.

[0225] Business dependency edge. If a software component, log event, or operation corresponds to an upstream or downstream relationship in the same power business process, such as the dependency relationship between remote control preset, remote control execution, remote control calibration, and switch status change, then a business dependency edge is established.

[0226] Operational impact edge. If an operational operation involves configuration changes, account permission adjustments, patch upgrades, service startup / shutdown, policy modifications, or setpoint changes, and may affect a software component or business function, then an operational impact edge is established.

[0227] For any two nodes vi and vj, the server does not determine their association relationship solely based on semantic similarity, but instead comprehensively calculates the association edge weight Wij:

[0228]

[0229] Here, Ssemantic represents semantic similarity in a unified semantic space, Stime represents temporal proximity, Sasset represents asset or component consistency, Sprogram represents the strength of call relationships, control flow relationships, or data flow relationships, Sbusiness represents the strength of power business dependencies, and Sthreat represents the degree of matching of vulnerability exploitation methods, attack stages, or threat intelligence; α, β, γ, δ, ε, and η are configurable weight parameters. The server establishes a risk association edge between two nodes only when Wij exceeds a preset association threshold or meets preset strong rule association conditions.

[0230] During the graph construction process, the server merges duplicate nodes, marks isolated nodes with low confidence, and aggregates highly similar events within the same asset, component, and time window to prevent excessive graph expansion. The final generated vulnerability semantic association graph not only records nodes and edges but also the evidence source, association type, edge weight, time window, and confidence level of each edge, providing interpretable evidence for subsequent risk propagation reasoning and attack path identification.

[0231] Step 1.3.2 Constraint Reasoning Involving Electricity Business Rules

[0232] To avoid inaccurate risk assessments in power business scenarios due to reliance solely on semantic similarity or general vulnerability scoring, this application introduces a power business rule constraint mechanism during the risk association graph reasoning process. Power business rules describe the correspondence, preconditions, execution order, permission requirements, and security consequences between power server software behavior and actual power business operations, enabling the server to determine whether a security event has real risk significance based on the business context.

[0233] Power business rules are stored in a rule base, which includes at least the following fields: business object, operation type, protocol type, permission constraints, time sequence, equipment status, business impact, and security constraints. Business objects include circuit breakers, disconnect switches, protection devices, measurement and control devices, remote control devices, dispatching master stations, substation terminals, and communication gateways. Operation types include remote control presets, remote control execution, telemetry acquisition, remote signaling changes, remote adjustment commands, protection activation / deactivation, setting modification, file download, parameter configuration, and alarm confirmation. Protocol types include common remote control communication protocols, station control layer communication protocols, and proprietary vendor protocols used in power monitoring and industrial control scenarios. Permission constraints describe the account roles, approval status, and operation source required to execute the business operation. Time sequence describes the sequential dependencies of different events in the business process. Equipment status describes the changes in equipment status before and after the business operation. Business impact describes the dispatching control, protection actions, status monitoring, or communication links that the operation may affect.

[0234] In the risk reasoning process, power business rules are involved in the calculation in three ways.

[0235] Participate in the generation of related edges. If two nodes not only have semantic similarity but also satisfy the sequential dependency relationship in the same power business process, the server increases the weight of the business dependency edge between them. For example, if remote control preset events, remote control execution events, and switch status change events appear in the logs, and all three occur within the same device object and a reasonable time window, the server identifies them as the same remote control business link and establishes a strong business dependency edge.

[0236] Participate in risk score correction. For behaviors that may be considered low to medium risk in ordinary IT servers, if the behavior corresponds to critical control operations in power servers, such as protection setting modification, remote opening and closing, protection interlocking, master station permission change, or communication gateway configuration modification, the server will increase the risk score of that node based on its business importance. Conversely, for events that meet whitelist rules, have complete approval processes, are operated by trustworthy entities, and whose business status changes are reasonable, the server will lower their risk score or mark them as low-priority events.

[0237] Participating in attack chain constraint reasoning. The server determines whether a risk path meets the conditions for establishing an attack chain based on power business rules. Only when a risk path simultaneously meets several of the following conditions—"attack entry point reachable, vulnerability or weakness exploitable, permissions or business processes can proceed, critical business objects affected, and outcome events observable"—is the server identified as a valid potential attack chain. For paths that do not meet the business prerequisites or lack key supporting evidence, the server lowers their confidence level to avoid false positives based solely on semantic similarity.

[0238] Specifically, the server calculates the business constraint risk score for the candidate risk path P={v1,v2,...,vn}:

[0239]

[0240] Where Risk(vi) represents the basic risk score of node vi in ​​the path, Wij represents the weight of the associated edge between adjacent nodes, B(P) represents the degree of matching between the path and the power business rules, C(P) represents the completeness of the path evidence, and λ and μ are adjustment coefficients. If the path involves key businesses such as dispatch control, protection and monitoring, remote communication, and equipment status changes, and meets the high-risk operation conditions in the business rule base, the server increases the risk level and output priority of the path. Before calculating the risk score of candidate risk paths, the server normalizes the basic risk score of nodes, the weight of associated edges, the degree of matching with business rules, and the completeness of evidence; for candidate paths of different lengths, a path length normalization coefficient or a risk attenuation coefficient can be used for correction to avoid the risk score being too high simply because the number of path nodes is large.

[0241] Through the above mechanism, power business rules not only participate in unified semantic representation as semantic enhancement information, but also directly participate in risk association edge generation, node risk correction, attack chain validity judgment and risk path ranking, thereby improving the reasoning accuracy and interpretability of this invention in the power server software scenario.

[0242] Step 1.3.3 Risk Transmission Path Analysis

[0243] Based on the semantic relationships and business dependencies between nodes, the server searches and infers risk propagation paths to identify potential attack chains and chain vulnerabilities.

[0244] Step 1.3.4 Risk Node Clustering and Level Assessment

[0245] The server performs semantic clustering analysis on risk nodes, and assesses and prioritizes risk nodes based on vulnerability severity, propagation scope, business impact, and correlation depth.

[0246] Step 1.3.5 Output of Comprehensive Risk Analysis Results

[0247] The server outputs a comprehensive vulnerability analysis result that includes risk level, risk propagation path, key risk nodes, and potential attack chains.

[0248] Module D: Dynamic Vulnerability Perception and Feedback Optimization Module

[0249] This module enables dynamic optimization and continuous evolution of server vulnerability awareness capabilities.

[0250] Step 1.4: Dynamic Feedback Optimization and Incremental Semantic Update

[0251] Step 1.4.1 Add real-time security event reception

[0252] The server continuously receives new vulnerability announcements, operation logs, security alerts, and abnormal behavior data, and monitors new risk events in real time.

[0253] Step 1.4.2 Incremental Semantic Analysis and Local Risk Update

[0254] To avoid re-encoding, re-graphing, and re-inferring all historical data every time a new vulnerability notification, operation log, security alert, or maintenance record is added, this invention employs an incremental semantic analysis and local risk update mechanism. The server persistently stores the unified semantic space, vector index, risk association graph, business rule index, and historical inference results, maintaining their state changes through version numbers and timestamps. When new security data enters the server, the server only updates the new data and its affected local subgraphs, without recalculating the entire dataset.

[0255] Specifically, the server first performs incremental preprocessing on the newly added security data to generate a new set of structured features and calculates the data fingerprint. If the newly added data is highly consistent with existing data in terms of asset identifier, event type, log template, vulnerability number, time window, and content summary, the server identifies it as a duplicate event or duplicate sample, and only updates the event frequency, most recent occurrence time, and statistical attributes, without repeating semantic encoding and graph structure generation.

[0256] For newly identified security data, the server invokes the corresponding modality's semantic encoder to generate a new semantic vector, which is then mapped to a unified semantic space using the corresponding modality's projection matrix. Subsequently, the server uses the vector index to retrieve the Top-K historical objects in the unified semantic space that are most similar to the new semantic object, and combines this with asset indexes, component indexes, vulnerability number indexes, protocol indexes, business object indexes, and time window indexes to determine a set of candidate related nodes. The server only calculates the edge weights between the new node and the candidate related nodes, without recalculating the relationships between all nodes in the entire graph.

[0257] During the risk correlation graph update process, the server constructs a local influence subgraph GΔ centered on the newly added node. GΔ includes the newly added node, candidate nodes directly associated with the newly added node, nodes with one- or two-hop critical business dependencies on the candidate nodes, and related event nodes of the same asset or business object within a specified time window. The server only performs edge addition, deletion, weight adjustment, and node risk score updates within the scope of GΔ. For historical nodes and historical edges that do not belong to GΔ, the server retains their original calculation results.

[0258] During risk propagation reasoning, the server employs an event-driven local propagation mechanism. If the addition of a new node or edge causes a change in the risk score of a node, the server adds that node to the update queue and propagates the risk change outward along its adjacent edges. The server stops propagating when the propagation distance exceeds a preset number of hops, the risk change is below a preset threshold, or the propagation path does not meet the constraints of power business rules. In this way, risk reasoning only iterates and updates within the affected local area, avoiding full-scale reasoning on the entire risk association graph.

[0259] Step 1.4.3 Incremental optimization of risk association weights and model parameters

[0260] Based on the verification results of new events, historical false alarms, manual confirmation results, and subsequent alarm feedback, the server incrementally adjusts the weights of associated edges and risk scoring parameters in the local subgraph. For confirmed valid risk association paths, the server increases the weights of the corresponding edge types, business rules, and semantic features; for confirmed false alarm association paths, the server decreases the corresponding weights or adds exclusion conditions. This optimization process prioritizes updating lightweight parameters, including modal projection matrices, edge weight parameters, risk scoring coefficients, rule confidence, and index structures, rather than frequently retraining the underlying semantic encoding model.

[0261] When the amount of new data reaches a preset threshold, model performance degrades beyond a preset range, or the business rule base undergoes significant changes, the server can perform periodic batch calibration offline, compressing, merging, and reconstructing the unified semantic space and risk association graph. During online operation, an incremental update mechanism is still used to ensure high real-time performance and low computational overhead while continuously receiving new data.

[0262] By using the incremental update method described above, this invention can update only the affected semantic objects, candidate related edges, and local risk propagation paths when new vulnerabilities, logs, alarms, and maintenance events are continuously generated. This avoids repeated encoding, repeated graph building, and full inference of all historical security data, thereby improving the real-time performance, scalability, and engineering feasibility of server dynamic vulnerability awareness.

[0263] Step 1.4.4 Output of Dynamic Vulnerability Perception Results

[0264] After the server completes the incremental semantic update and risk propagation analysis, it outputs the latest unified vulnerability semantic association results and dynamic risk perception report, realizing continuous perception and dynamic analysis of the security risks of power server software.

[0265] In one exemplary embodiment, the method further includes:

[0266] Step 1: Perform semantic parsing on different modalities of multi-source security data to obtain the semantic features of each modality.

[0267] Step 2: Encapsulate each semantic feature to obtain structured features.

[0268] Step 3: Encode the structured features to obtain the semantic vectors of each modality.

[0269] Step 4: Project the semantic vectors of each modality to the same semantic space using a projection matrix, and normalize the projected vectors to obtain the semantic vectors of each modality in the semantic space.

[0270] Step 5: Obtain the business rules from the power business rule base, and integrate the business rules into the semantic vector to obtain the semantic object.

[0271] Step 6: Using each semantic object as a construction node, determine the association metric value based on the vector distance between each construction node in the semantic space and the business dependency relationship between the power businesses corresponding to each construction node; the business dependency relationship includes one or more of the following: the dependency relationship between upstream and downstream operations in the same power business process, the association relationship between different operations on the same equipment asset, and the temporal dependency relationship between multiple operations in the same scheduling instruction sequence.

[0272] Step 7: If the association metric meets the preset conditions, establish association edges between each pair of building nodes. After traversing all building nodes, a semantic association graph is obtained.

[0273] Step 8: Correct the node risk scores and edge weights in the semantic association graph according to the business rules, and search for risk propagation paths along the association edges in the corrected semantic association graph.

[0274] Step 9: Cluster the risk nodes in the risk propagation path to obtain the clustered risk nodes.

[0275] Step 10: Perform a risk assessment on the clustered risk nodes to obtain the risk assessment results for each risk node.

[0276] Step 11: Based on the risk propagation path and level assessment results, output the risk analysis results; the risk analysis results include the risk level, risk propagation path and key risk nodes.

[0277] Step 12: Receive new security events.

[0278] Step 13: Encode the new security events and project them into the semantic space to obtain the semantic vector of the new events.

[0279] Step 14: Retrieve historical objects in the semantic space whose vector distance to the semantic vector of the new event is less than the vector threshold.

[0280] Step 15: Determine the local scope of influence based on historical objects.

[0281] Step 16: Based on the current value of the weight parameter, redetermine the association metric value and update the association edges within the local influence range to obtain the updated semantic association graph.

[0282] Step 17: Search for risk propagation paths again in the updated semantic association graph and re-cluster and grade risk nodes, and output the updated risk analysis results.

[0283] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0284] Based on the same inventive concept, this application also provides a semantic analysis-based power system security risk propagation path analysis device for implementing the semantic analysis-based power system security risk propagation path analysis method described above. The solution provided by this device is similar to the implementation scheme described in the above method. Therefore, the specific limitations of one or more semantic analysis-based power system security risk propagation path analysis device embodiments provided below can be found in the limitations of the semantic analysis-based power system security risk propagation path analysis method described above, and will not be repeated here.

[0285] In one exemplary embodiment, such as Figure 10 As shown, a power system security risk propagation path analysis device based on semantic analysis is provided, including: a preprocessing module 701, an encoding module 702, a fusion module 703, and a correction module 704, wherein:

[0286] Preprocessing module 701 is used to preprocess multi-source security data of the power system to obtain structured features;

[0287] The encoding module 702 is used to encode the structured features and project the encoded structured features into the same semantic space to obtain the semantic vector of the structured features in the semantic space.

[0288] The fusion module 703 is used to obtain business rules from the power business rule base, fuse the business rules into the semantic vector to obtain semantic objects, and construct a semantic association graph based on the semantic objects;

[0289] The correction module 704 is used to correct the node risk scores and edge weights in the semantic association graph according to business rules, search for risk propagation paths along the association edges in the corrected semantic association graph, and perform risk assessment processing on the risk nodes in the risk propagation path to obtain the risk analysis results for the power system shown.

[0290] It should be noted that each module in the above-mentioned semantic analysis-based power system security risk propagation path analysis device can execute the above-mentioned method embodiments, and their implementation principles and technical effects are similar, so they will not be described again here.

[0291] Each module in the aforementioned semantic analysis-based power system security risk propagation path analysis device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each module.

[0292] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0293] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0294] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0295] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0296] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0297] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for analyzing the propagation path of power system security risks based on semantic analysis, characterized in that, The method includes: Data preprocessing is performed on multi-source security data of the power system to obtain structured features; The structured features are encoded, and the encoded structured features are projected onto the same semantic space to obtain the semantic vector of the structured features in the semantic space; Obtain business rules from the power business rule base, integrate the business rules into the semantic vector to obtain a semantic object, and construct a semantic association graph based on the semantic object; The node risk scores and edge weights in the semantic association graph are corrected according to the business rules. Risk propagation paths are searched along the association edges in the corrected semantic association graph, and risk assessment processing is performed on the risk nodes in the risk propagation paths to obtain the risk analysis results for the power system shown.

2. The method according to claim 1, characterized in that, The step of constructing a semantic association graph based on the semantic object includes: Using each of the semantic objects as construction nodes, the association metric is determined based on the vector distance between each construction node in the semantic space and the business dependency relationship between the power services corresponding to each construction node; the business dependency relationship includes one or more of the following: the dependency relationship between upstream and downstream operations in the same power service process, the association relationship between different operations on the same equipment asset, and the temporal dependency relationship between multiple operations in the same scheduling instruction sequence; If the association metric meets the preset conditions, an association edge is established between each pair of the building nodes. After traversing all the building nodes, the semantic association graph is obtained.

3. The method according to claim 1, characterized in that, The data preprocessing of multi-source security data from the power system to obtain structured features includes: Semantic parsing is performed on different modalities of the multi-source security data to obtain the semantic features of each modality. The semantic features are encapsulated to obtain the structured features.

4. The method according to claim 3, characterized in that, The semantic parsing process performed on different modalities of the multi-source security data to obtain the semantic features of each modality includes at least one of the following: The source code in the multi-source security data is parsed to obtain the semantic features of the source code; The binary program in the multi-source security data is parsed to obtain the semantic features of the binary program; The operation logs and maintenance records in the multi-source security data are parsed and processed to obtain the semantic features of the logs and maintenance data. The vulnerability reports in the multi-source security data are parsed and processed to obtain the semantic features of the vulnerability reports.

5. The method according to claim 1, characterized in that, The process of encoding the structured features and projecting the encoded structured features into the same semantic space to obtain the semantic vector of the structured features in the semantic space includes: The structured features are encoded to obtain semantic vectors for each modality; The semantic vectors of each modality are projected onto the same semantic space using a projection matrix, and the projected vectors are normalized to obtain the semantic vectors of each modality in the semantic space.

6. The method according to claim 1, characterized in that, The risk assessment processing of risk nodes in the risk propagation path yields risk analysis results for the power system shown, including: Clustering is performed on the risk nodes in the risk propagation path to obtain clustered risk nodes; The clustered risk nodes are subjected to a risk assessment process to obtain the risk assessment results for each risk node. Based on the risk propagation path and the risk assessment results, the risk analysis results are output; the risk analysis results include the risk level, risk propagation path, and key risk nodes.

7. The method according to claim 1, characterized in that, After obtaining the risk analysis results for the power system shown, the method further includes: Receive new security events; The newly added security events are encoded and projected into the semantic space to obtain the semantic vector of the newly added events; Retrieve historical objects in the semantic space whose vector distance to the semantic vector of the newly added event is less than a vector threshold; Determine the local scope of influence based on the historical objects; Based on the current value of the weight parameter, the association metric value is redefined and the association edges are updated within the local influence range to obtain the updated semantic association graph. The risk propagation path is re-searched in the updated semantic association graph, and the risk nodes are re-clustered and their levels are reassessed to output the updated risk analysis results.

8. The method according to claim 7, characterized in that, Before encoding the newly added security event and projecting it into the semantic space, the method further includes: Detect whether the newly added security event belongs to the historical security event set; If the newly added security event exists in the historical security event set, the processing of this newly added security event will end.

9. The method according to claim 7, characterized in that, The method further includes: Obtain the judgment result of whether the newly added security event is a valid attack chain; If the judgment result is yes, then increase the weight parameter used to generate the associated edges within the local influence range; If the judgment result is negative, the weight parameter used to generate the associated edge within the local influence range is reduced, and the next new security event is received.

10. The method according to claim 9, characterized in that, The method further includes: If the number of times the weight parameters are adjusted reaches the adjustment threshold, the step of determining the structured features and outputting the risk analysis results is repeated.