A network risk grading early warning and traceability tracking system

By using technologies such as industrial control data access and dual-modal traffic splitting modules, the resource conflicts and cross-system collaboration problems in real-time early warning and in-depth tracing of network attacks have been solved. It has achieved real-time early warning and full evidence retention, metadata desensitization and encrypted retrieval in the cross-domain tracing process, and is applicable to network risk classification early warning and tracing of critical information infrastructure such as power, water and industrial control.

CN123145016APending Publication Date: 2026-11-20BEIJING ZHONGYUN XINAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, real-time early warning and in-depth tracing of cyberattacks on critical infrastructure suffer from resource conflicts and cross-system coordination challenges, which prevent early warning systems from effectively tracing the source of attacks. Furthermore, the lack of an integrated coordination mechanism when conducting cross-organizational collaborative tracing makes it difficult to achieve accurate tracing.

Method used

It employs modules for industrial control data access and dual-modal traffic splitting, hierarchical early warning engine, evidence preservation and index construction, source tracing request desensitization and encapsulation, distributed source tracing orchestration and execution, and full-chain source tracing splicing and model feedback. Through technologies such as temporal convolutional sparse coding networks, homomorphic encryption, and secure multi-party computation, it achieves real-time early warning and full evidence retention, metadata desensitization and encrypted retrieval during cross-domain source tracing, forming a complete intrusion source tracing chain.

Benefits of technology

It achieves a high degree of synergy between real-time early warning and full evidence retention, and protects privacy through metadata desensitization and encrypted retrieval during cross-domain tracing. It is applicable to network risk classification, early warning, and tracing in critical information infrastructure fields such as power, water, and industrial control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145016A_ABST
    Figure CN123145016A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of network risk early warning and tracing, in particular to a network risk grading early warning and tracing system; the system comprises an industrial data access and bimodal shunting module, which is used for accessing real-time operation logs, sensor time sequence values and industrial control protocol traffic of power, water affairs or industrial control systems, synchronously generating a lightweight early warning feature flow and a full-amount original record flow, and writing the full-amount original record flow into a normal-temperature layer of distributed grading storage. The application has the high cooperativity of real-time early warning and full-amount evidence reservation, the metadata desensitization and ciphertext retrieval privacy protection capability in the cross-domain tracing process, and the tracing result driven early warning model self-adaptive closed-loop optimization capability, and is suitable for the network risk grading early warning and tracing scene of key information infrastructure fields such as power, water affairs and industrial control, which faces advanced threats and needs multi-agency collaborative tracking of attack sources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network risk early warning and tracing technology, specifically a network risk classification early warning and tracing system. Background Technology

[0002] In critical infrastructure sectors such as power, water, and industrial control, cyberattacks often directly threaten physical production processes, placing extremely high demands on real-time early warning and accurate attribution. Currently, the tiered early warning system and evidence collection and attribution platform at the security operations center are typically built and operated independently, lacking an integrated collaborative mechanism, leading to the following prominent problems.

[0003] However, there is a fundamental conflict between the resources available for real-time alerts and in-depth attribution analysis. To meet millisecond- to second-level decision-making requirements, alert systems often employ streaming computing architectures, retaining only aggregated features or summary data while actively discarding the original full traffic, operation logs, and terminal behavior records. Once a high-risk alert occurs and attribution analysis needs to be initiated, crucial evidence may be irretrievable due to the storage strategy, resulting in a gap between "being able to issue alerts but not effectively attribution analysis." This is particularly critical in scenarios requiring precise attack path location, such as abnormal industrial control commands.

[0004] Meanwhile, significant barriers exist in cross-system and cross-organizational collaboration. Early warning platforms often focus on streaming processing and rule matching, while tracing systems rely on batch analysis and evidence collection. Their data formats, storage durations, and interface specifications are incompatible, resulting in high integration costs. More seriously, in cross-organizational collaborative tracing, alarm information often contains internal topology and operational characteristics such as the logical addresses of industrial control equipment and the frequency distribution of opcodes. Due to confidentiality restrictions, this information cannot be fully transmitted to external collaborating nodes, causing the recipient to lack context and making in-depth tracing difficult. This creates collaborative gaps, hindering the effective implementation of distributed tracing.

[0005] Based on this, the present invention provides a network risk classification, early warning and source tracing system to solve the above-mentioned technical problems. Summary of the Invention

[0006] The purpose of this invention is to provide a network risk classification, early warning, and source tracing system to solve the problems mentioned in the background.

[0007] To achieve the above objectives, the present invention provides the following technical solution: This invention proposes a network risk classification, early warning, and source tracing system, comprising: The industrial control data access and dual-modal diversion module accesses real-time operation logs, sensor timing values, and industrial control protocol traffic from power, water, or industrial control systems. It synchronously generates a lightweight early warning feature stream and a full raw record stream for each data event, and writes the full raw record stream into distributed hierarchical storage at room temperature in time-sliced ​​segments. The hierarchical early warning engine module embeds a temporal convolutional sparse coding network to read lightweight early warning feature streams, calculate multi-dimensional risk vectors through sliding window convolution and dictionary sparse decomposition, and generate emergency alarms and linkage trigger signals when any dimension of the multi-dimensional risk vector exceeds a dynamic threshold. The linkage trigger signal carries an alarm time window and the logical identifier of the affected industrial control assets. The evidence preservation and index construction module, after receiving the linkage trigger signal, extracts the full original record stream of the corresponding time window from the distributed hierarchical storage ambient temperature layer, formats it into an evidence collection standard data packet and attaches a digital signature, and at the same time constructs a hierarchical searchable encrypted index for the payload and fields of the evidence collection standard data packet. The index structure includes a Bloom filter vector of hidden keywords and a ciphertext inverted list. After the index is constructed, an existence notification is generated. The source tracing request desensitization and encapsulation module receives the existence notification and reads the metadata of the evidence collection standard data packet. The metadata includes the logical address of the alarm industrial control equipment, the frequency histogram of abnormal operation codes, and the session time range. The metadata is input into a pre-trained variational autoencoder to obtain confidential security protection latent variables that conform to a Gaussian distribution. The original logical address and operation code frequency histogram are discarded, and the confidential security protection latent variables are encapsulated into a source tracing task instruction vector and sent. The distributed tracing orchestration and execution module receives a tracing task instruction vector, decomposes the instruction into subtasks according to the security domain identifier in the vector, and initiates queries to at least two independent cross-domain tracing nodes through a secure multi-party computation protocol. Each cross-domain tracing node uses its own encrypted forensics database and a hierarchical searchable encryption protocol consistent with the evidence preservation and index building module within a trusted execution environment to match the index in a homomorphic encryption manner and return encrypted attack path fragments. The secure multi-party computation protocol aggregates the fragments and outputs an encrypted distributed path result set. The full-chain tracing and model feedback module decrypts the encrypted scattered path result set, extracts the attack steps and behavioral temporal information from each segment, constructs an attack step graph, and uses a spatiotemporal attention graph neural network to remove loops, complete and sort the attack step graph to form a complete intrusion tracing link and attacker facility association graph. After pairing and labeling the intrusion tracing link with emergency alarms, it is converted into incremental training samples and input into the hierarchical early warning engine module to fine-tune the dictionary basis vectors and dynamic thresholds of the temporal convolutional sparse coding network online.

[0008] Preferably, the distributed hierarchical storage further includes a cold archiving layer. After generating the evidence standard data packet and digital signature, the evidence preservation and index building module migrates the full original record stream of the corresponding time window from the ambient temperature layer to the cold archiving layer and applies read-only protection. At the same time, it generates a storage location pointer and writes it into the metadata segment of the hierarchical searchable encrypted index.

[0009] Preferably, it also includes a cross-domain identity and homomorphic key management module, which issues an attribute-based encryption private key to each cross-domain tracing node, and distributes a one-time homomorphic encryption session key to the participating nodes when each secure multi-party computation session is started. The session key is bound to the alarm event ID.

[0010] The system-based network risk classification, early warning, and source tracing method includes the following steps: S1. The industrial control data access and dual-modal diversion module receives industrial control field data. After deep protocol parsing, it generates a real-time lightweight early warning feature sequence and a full raw record stream carrying full payload and timestamp for each data event. It temporarily stores the full raw record stream using a memory ring buffer and writes it to the ambient temperature layer of the distributed hierarchical storage in fixed time slices. S2. The hierarchical early warning engine module extracts a sliding window feature matrix from the lightweight early warning feature sequence, inputs it into the pre-trained temporal convolutional sparse coding network, and outputs sparse coding coefficients by the encoder. After reconstruction by the decoding dictionary, it is compared with the current window features to obtain the reconstruction residual. Combined with the preset industrial control operation baseline, it calculates a multi-dimensional risk vector including instruction abnormality, parameter deviation, and attack stage confidence. When any dimension exceeds the corresponding dynamic threshold, an emergency alarm is generated and a linkage trigger signal carrying the alarm time window and the logical identifier of the affected industrial control assets is output. S3. The evidence preservation and index construction module extracts the full original record stream from the distributed hierarchical storage ambient temperature layer based on the linkage trigger signal generated in S2 and the alarm time window as the retrieval condition. It converts the full original record stream into a standard data packet for evidence collection, which includes PCAP, terminal operation logs and sensor numerical sequences. It generates a digital signature for the data packet using the national cryptographic algorithm. Then, it extracts keywords from each field in the standard data packet for evidence collection and the reconstructed session payload to build a hierarchical searchable encrypted index. The index consists of a Bloom filter vector inserted after the hidden keywords are homomorphically hashed and a ciphertext inverted list based on the keyword tree. After the index is built, it sends an existence notification to the source tracing request desensitization and encapsulation module. After receiving the existence notification from S3, the S4. Source tracing request desensitization and encapsulation module parses the alarm industrial control device logical address, abnormal operation code frequency histogram, and session time range from the evidence standard data packet as metadata. The metadata is then input into the encoder network of the variational autoencoder, which has been trained using the industrial control alarm context, to obtain the mean vector and variance vector. After sampling from the standard Gaussian distribution, confidential security protection latent variables are generated using reparameterization techniques. The original metadata is discarded, and the confidential security protection latent variables are serialized together with the alarm event ID and security domain identifier to form the source tracing task instruction vector. This vector is then sent to the distributed source tracing orchestration and execution module through the identity authentication channel. S5. The distributed tracing orchestration and execution module receives the tracing task instruction vector generated by S4, parses the security domain identifier, divides the instruction into sub-tasks corresponding to each security domain, and starts a multi-party secure computation session. Each cross-domain tracing node participating in the session calculates the matching degree with the Bloom filter vector and ciphertext inverted list in the hierarchical searchable encrypted index constructed by S3 in a homomorphic encryption method according to the confidential security level protection potential variables in the sub-task vector. If a match is found, the corresponding encrypted forensic record fragment is extracted as a response. All responses are spliced ​​and deduplicated in the aggregation circuit of the secure multi-party computation protocol to obtain an encrypted distributed path result set. S6. The full-chain tracing and model feedback module decrypts the encrypted distributed path result set output by S5. It extracts the source IP sequence, operation instruction timeline, lateral movement jump node and C2 communication features of each segment from the decryption results. It maps attack steps to nodes, and the temporal dependencies and jump relationships between steps to edges, constructing a directed attack step graph. It uses a spatiotemporal attention graph neural network to predict and complete missing edges in the graph, detect and eliminate loops and rearrange their order, generating a coherent intrusion tracing link and attacker facility association graph. It combines the intrusion tracing link with the corresponding emergency alarm in S2 to form labeled sample pairs, which are then input into the temporal convolutional sparse coding network of the hierarchical early warning engine module in an online learning manner to fine-tune its dictionary basis vectors and dynamic threshold parameters.

[0011] Preferably, the implementation process of step S1 is as follows: S1.1. A protocol parser is set up in the industrial control data access and dual-mode splitting module. The protocol parser extracts function codes, register addresses, coil status and control command parameters according to Modbus, IEC61850 and DNP3 protocols to form a structured event record. S1.2. For the same structured event record, generate a lightweight warning feature stream and a full raw record stream. The lightweight warning feature stream includes the normalized instruction frequency, register change rate and timing difference features, while the full raw record stream includes the original protocol message payload, operation log text and timestamp. S1.3. The memory circular buffer caches the entire original record stream in a first-in-first-out manner. When the accumulated data volume reaches the fragmentation threshold, the fragmented data is marked with an alarm preparation sequence number and written to the ambient temperature layer of the distributed hierarchical storage.

[0012] Preferably, the implementation process of step S2 is as follows: S2.1. The hierarchical early warning engine module performs sliding segmentation on the lightweight early warning feature stream using the time window length and step size, and arranges the feature values ​​within the window into a two-dimensional feature matrix; S2.2. The first layer of the temporal convolutional sparse coding network is a one-dimensional causal convolutional layer to extract local temporal patterns. The second layer is a sparse coding layer. The near-end gradient descent algorithm is used to solve the sparse coding coefficients of the feature matrix on the overcomplete dictionary, and the residual between the dictionary reconstruction vector and the original feature matrix is ​​calculated. S2.3. Compare the residual with the preset industrial control operation baseline to generate a multi-dimensional risk vector that includes instruction anomaly degree, parameter deviation degree and attack stage confidence degree. Use exponential moving average to update the dynamic threshold of each dimension. When any dimension exceeds its dynamic threshold, an alarm is triggered and a linkage trigger signal is output.

[0013] Preferably, the implementation process of step S3 is as follows: S3.1. The evidence preservation and index building module parses the start and end times of the alarm time window in the linkage trigger signal, initiates a range query to the distributed hierarchical storage ambient temperature layer, retrieves all full original record stream fragments within the time window, and reassembles them into a complete session set according to the alarm preparation sequence number; S3.2. Standardize the format of the complete session set, convert the industrial control protocol interaction into PCAP file, convert the operation log into JSON line format, convert the sensor value sequence into a time series database snapshot, calculate the SM3 digest of the standardized file as a whole and sign it with the SM2 private key, and encapsulate it into a forensic standard data packet; S3.3. Extract IP address, register address, function code and instruction text from the standard data packet for evidence collection as keywords, map them through a homomorphic hash function and insert them into a Bloom filter vector. At the same time, construct an inverted list for each keyword in ciphertext form. The key of the inverted list is the ciphertext keyword, and the value is the session ID and offset set in which the keyword appears. Complete the construction of a hierarchical searchable encrypted index and issue an existence notification.

[0014] Preferably, the implementation process of step S4 is as follows: S4.1. The source tracing request desensitization and encapsulation module extracts the logical address of the alarm industrial control equipment, the frequency histogram of abnormal operation codes and the session time range from the standardized JSON of the evidence collection standard data packet, and concatenates them into a fixed-length metadata vector; S4.2. The metadata vector is fed into the encoder of the variational autoencoder, which consists of a three-layer fully connected network and outputs a mean vector and a log-variance vector. Confidential and equivalent latent variables are generated through the reparameterized sampling formula. S4.3. The original alarm industrial control equipment logical address and abnormal operation code frequency histogram are abandoned. The confidential information protection latent variables are combined with the alarm event ID and the security domain identifier to which the logical identifier of the affected industrial control asset in S2 belongs. After symmetric encryption, the source tracing task instruction vector is formed and sent to the distributed source tracing orchestration and execution module through the national cryptographic SSL channel.

[0015] Preferably, the implementation process of step S5 is as follows: S5.1. The distributed tracing orchestration and execution module decrypts the tracing task instruction vector, extracts the security domain identifier, searches for the corresponding active tracing node in the cross-domain node list, combines the confidential security protection potential variables with the alarm event ID to form a sub-task request, and establishes an encrypted channel with each node through a secure multi-party computation circuit. S5.2. Each participating cross-domain tracing node uses the confidential security protection potential variables in the subtask request as retrieval clues, performs homomorphic ciphertext matching operation in the local trusted execution environment, and uses the hierarchical searchable encryption protocol consistent with S3 to match the Bloom filter vector and the ciphertext inverted list. If there is a membership certificate and keyword match under the ciphertext conditions, the corresponding encrypted evidence record fragment is retrieved and returned to the secure multi-party computation aggregation circuit in ciphertext form. S5.3. The secure multi-party computation aggregation circuit concatenates and deduplicates encrypted evidence record fragments returned by multiple nodes according to alarm event ID and time sequence label without decrypting the fragment content, and outputs an encrypted distributed path result set.

[0016] Preferably, the implementation process of step S6 is as follows: S6.1. The full-chain tracing and model feedback module uses session keys to decrypt the scattered path result set, parses the source IP address, operation timestamp, operation instruction type and C2 communication characteristics in each record, and abstracts the attack steps into nodes. The node attributes include operation type vector and timestamp encoding. S6.2. Initialize the directed attack step graph with the time difference and IP connectivity between nodes as edges, use the spatiotemporal attention graph neural network to calculate the attention weight between nodes, perform link prediction on the missing lateral movement edges, and use time constraint rules to eliminate the cyclic edges in the graph to generate a linearized intrusion tracing link and attacker facility association graph. S6.3. Label each step in the intrusion tracing chain with the corresponding dimension of the multidimensional risk vector generated in S2 to form incremental training samples. Input these samples into the temporal convolutional sparse coding network of the hierarchical early warning engine module and use online stochastic gradient descent to fine-tune the basis vectors of the overcomplete dictionary and the dynamic threshold parameters of each dimension.

[0017] Compared with the prior art, the beneficial effects of the present invention are: This invention features a high degree of synergy between real-time early warning and full evidence retention, metadata desensitization and encrypted retrieval privacy protection capabilities during cross-domain tracing, and adaptive closed-loop optimization capabilities of the early warning model driven by tracing results. It is applicable to network risk classification early warning and tracing scenarios in critical information infrastructure fields such as power, water, and industrial control that face advanced threats and require multi-agency collaborative tracking of attack sources. Attached Figure Description

[0018] Figure 1 This is a topology diagram of the network risk classification, early warning, and source tracing system of the present invention; Figure 2 This is a flowchart of the network risk classification, early warning, and source tracing method of the present invention. Detailed Implementation

[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figures 1 to 2 This invention proposes a network risk classification, early warning, and source tracing system, comprising: The industrial control data access and dual-modal diversion module accesses real-time operation logs, sensor timing values, and industrial control protocol traffic from power, water, or industrial control systems. It synchronously generates a lightweight early warning feature stream and a full raw record stream for each data event, and writes the full raw record stream into distributed hierarchical storage at room temperature in time-sliced ​​segments. The hierarchical early warning engine module embeds a temporal convolutional sparse coding network to read lightweight early warning feature streams, calculate multi-dimensional risk vectors through sliding window convolution and dictionary sparse decomposition, and generate emergency alarms and linkage trigger signals when any dimension of the multi-dimensional risk vector exceeds a dynamic threshold. The linkage trigger signal carries an alarm time window and the logical identifier of the affected industrial control assets. The evidence preservation and index construction module, after receiving the linkage trigger signal, extracts the full original record stream of the corresponding time window from the distributed hierarchical storage ambient temperature layer, formats it into an evidence collection standard data packet and attaches a digital signature, and at the same time constructs a hierarchical searchable encrypted index for the payload and fields of the evidence collection standard data packet. The index structure includes a Bloom filter vector of hidden keywords and a ciphertext inverted list. After the index is constructed, an existence notification is generated. The source tracing request desensitization and encapsulation module receives the existence notification and reads the metadata of the evidence collection standard data packet. The metadata includes the logical address of the alarm industrial control equipment, the frequency histogram of abnormal operation codes, and the session time range. The metadata is input into a pre-trained variational autoencoder to obtain confidential security protection latent variables that conform to a Gaussian distribution. The original logical address and operation code frequency histogram are discarded, and the confidential security protection latent variables are encapsulated into a source tracing task instruction vector and sent. The distributed tracing orchestration and execution module receives a tracing task instruction vector, decomposes the instruction into subtasks according to the security domain identifier in the vector, and initiates queries to at least two independent cross-domain tracing nodes through a secure multi-party computation protocol. Each cross-domain tracing node uses its own encrypted forensics database and a hierarchical searchable encryption protocol consistent with the evidence preservation and index building module within a trusted execution environment to match the index in a homomorphic encryption manner and return encrypted attack path fragments. The secure multi-party computation protocol aggregates the fragments and outputs an encrypted distributed path result set. The full-chain tracing and model feedback module decrypts the encrypted scattered path result set, extracts the attack steps and behavioral temporal information from each segment, constructs an attack step graph, and uses a spatiotemporal attention graph neural network to remove loops, complete and sort the attack step graph to form a complete intrusion tracing link and attacker facility association graph. After pairing and labeling the intrusion tracing link with emergency alarms, it is converted into incremental training samples and input into the hierarchical early warning engine module to fine-tune the dictionary basis vectors and dynamic thresholds of the temporal convolutional sparse coding network online.

[0021] It should also be noted that the distributed hierarchical storage includes a cold archiving layer. After generating the evidence standard data package and digital signature, the evidence preservation and index building module migrates the full original record stream of the corresponding time window from the normal temperature layer to the cold archiving layer and applies read-only protection. At the same time, it generates a storage location pointer and writes it into the metadata segment of the hierarchical searchable encrypted index.

[0022] Preferably, it also includes a cross-domain identity and homomorphic key management module, which issues an attribute-based encryption private key to each cross-domain tracing node, and distributes a one-time homomorphic encryption session key to the participating nodes when each secure multi-party computation session is started. The session key is bound to the alarm event ID.

[0023] The system-based network risk classification, early warning, and source tracing method includes the following steps: S1. The industrial control data access and dual-modal diversion module receives industrial control field data. After deep protocol parsing, it generates a real-time lightweight early warning feature sequence and a full raw record stream carrying full payload and timestamp for each data event. It temporarily stores the full raw record stream using a memory ring buffer and writes it to the ambient temperature layer of the distributed hierarchical storage in fixed time slices. It should also be noted that the implementation process of step S1 is as follows: S1.1. A protocol parser is set up in the industrial control data access and dual-mode splitting module. The protocol parser extracts function codes, register addresses, coil status and control command parameters according to Modbus, IEC61850 and DNP3 protocols to form a structured event record. S1.2. For the same structured event record, generate a lightweight warning feature stream and a full raw record stream. The lightweight warning feature stream includes the normalized instruction frequency, register change rate and timing difference features, while the full raw record stream includes the original protocol message payload, operation log text and timestamp. S1.3. The memory circular buffer caches the entire original record stream in a first-in-first-out manner. When the accumulated data volume reaches the fragmentation threshold, the fragmented data is marked with an alarm preparation sequence number and written to the ambient temperature layer of the distributed hierarchical storage.

[0024] S2. The hierarchical early warning engine module extracts a sliding window feature matrix from the lightweight early warning feature sequence, inputs it into the pre-trained temporal convolutional sparse coding network, and outputs sparse coding coefficients by the encoder. After reconstruction by the decoding dictionary, it is compared with the current window features to obtain the reconstruction residual. Combined with the preset industrial control operation baseline, it calculates a multi-dimensional risk vector including instruction abnormality, parameter deviation, and attack stage confidence. When any dimension exceeds the corresponding dynamic threshold, an emergency alarm is generated and a linkage trigger signal carrying the alarm time window and the logical identifier of the affected industrial control assets is output. It should also be noted that the implementation process of step S2 is as follows: S2.1. The hierarchical early warning engine module performs sliding segmentation on the lightweight early warning feature stream using the time window length and step size, and arranges the feature values ​​within the window into a two-dimensional feature matrix; S2.2. The first layer of the temporal convolutional sparse coding network is a one-dimensional causal convolutional layer to extract local temporal patterns. The second layer is a sparse coding layer. The near-end gradient descent algorithm is used to solve the sparse coding coefficients of the feature matrix on the overcomplete dictionary, and the residual between the dictionary reconstruction vector and the original feature matrix is ​​calculated. S2.3. Compare the residual with the preset industrial control operation baseline to generate a multi-dimensional risk vector that includes instruction anomaly degree, parameter deviation degree and attack stage confidence degree. Use exponential moving average to update the dynamic threshold of each dimension. When any dimension exceeds its dynamic threshold, an alarm is triggered and a linkage trigger signal is output.

[0025] S3. The evidence preservation and index construction module extracts the full original record stream from the distributed hierarchical storage ambient temperature layer based on the linkage trigger signal generated in S2 and the alarm time window as the retrieval condition. It converts the full original record stream into a standard data packet for evidence collection, which includes PCAP, terminal operation logs and sensor numerical sequences. It generates a digital signature for the data packet using the national cryptographic algorithm. Then, it extracts keywords from each field in the standard data packet for evidence collection and the reconstructed session payload to build a hierarchical searchable encrypted index. The index consists of a Bloom filter vector inserted after the hidden keywords are homomorphically hashed and a ciphertext inverted list based on the keyword tree. After the index is built, it sends an existence notification to the source tracing request desensitization and encapsulation module. It should also be noted that the implementation process of step S3 is as follows: S3.1. The evidence preservation and index building module parses the start and end times of the alarm time window in the linkage trigger signal, initiates a range query to the distributed hierarchical storage ambient temperature layer, retrieves all full original record stream fragments within the time window, and reassembles them into a complete session set according to the alarm preparation sequence number; S3.2. Standardize the format of the complete session set, convert the industrial control protocol interaction into PCAP file, convert the operation log into JSON line format, convert the sensor value sequence into a time series database snapshot, calculate the SM3 digest of the standardized file as a whole and sign it with the SM2 private key, and encapsulate it into a forensic standard data packet; S3.3. Extract IP address, register address, function code and instruction text from the standard data packet for evidence collection as keywords, map them through a homomorphic hash function and insert them into a Bloom filter vector. At the same time, construct an inverted list for each keyword in ciphertext form. The key of the inverted list is the ciphertext keyword, and the value is the session ID and offset set in which the keyword appears. Complete the construction of a hierarchical searchable encrypted index and issue an existence notification.

[0026] After receiving the existence notification from S3, the S4. Source tracing request desensitization and encapsulation module parses the alarm industrial control device logical address, abnormal operation code frequency histogram, and session time range from the evidence standard data packet as metadata. The metadata is then input into the encoder network of the variational autoencoder, which has been trained using the industrial control alarm context, to obtain the mean vector and variance vector. After sampling from the standard Gaussian distribution, confidential security protection latent variables are generated using reparameterization techniques. The original metadata is discarded, and the confidential security protection latent variables are serialized together with the alarm event ID and security domain identifier to form the source tracing task instruction vector. This vector is then sent to the distributed source tracing orchestration and execution module through the identity authentication channel. It should also be noted that the implementation process of step S4 is as follows: S4.1. The source tracing request desensitization and encapsulation module extracts the logical address of the alarm industrial control equipment, the frequency histogram of abnormal operation codes and the session time range from the standardized JSON of the evidence collection standard data packet, and concatenates them into a fixed-length metadata vector; S4.2. The metadata vector is fed into the encoder of the variational autoencoder, which consists of a three-layer fully connected network and outputs a mean vector and a log-variance vector. Confidential and equivalent latent variables are generated through the reparameterized sampling formula. S4.3. The original alarm industrial control equipment logical address and abnormal operation code frequency histogram are abandoned. The confidential information protection latent variables are combined with the alarm event ID and the security domain identifier to which the logical identifier of the affected industrial control asset in S2 belongs. After symmetric encryption, the source tracing task instruction vector is formed and sent to the distributed source tracing orchestration and execution module through the national cryptographic SSL channel.

[0027] S5. The distributed tracing orchestration and execution module receives the tracing task instruction vector generated by S4, parses the security domain identifier, divides the instruction into sub-tasks corresponding to each security domain, and starts a multi-party secure computation session. Each cross-domain tracing node participating in the session calculates the matching degree with the Bloom filter vector and ciphertext inverted list in the hierarchical searchable encrypted index constructed by S3 in a homomorphic encryption method according to the confidential security level protection potential variables in the sub-task vector. If a match is found, the corresponding encrypted forensic record fragment is extracted as a response. All responses are spliced ​​and deduplicated in the aggregation circuit of the secure multi-party computation protocol to obtain an encrypted distributed path result set. It should also be noted that the implementation process of step S5 is as follows: S5.1. The distributed tracing orchestration and execution module decrypts the tracing task instruction vector, extracts the security domain identifier, searches for the corresponding active tracing node in the cross-domain node list, combines the confidential security protection potential variables with the alarm event ID to form a sub-task request, and establishes an encrypted channel with each node through a secure multi-party computation circuit. S5.2. Each participating cross-domain tracing node uses the confidential security protection potential variables in the subtask request as retrieval clues, performs homomorphic ciphertext matching operation in the local trusted execution environment, and uses the hierarchical searchable encryption protocol consistent with S3 to match the Bloom filter vector and the ciphertext inverted list. If there is a membership certificate and keyword match under the ciphertext conditions, the corresponding encrypted evidence record fragment is retrieved and returned to the secure multi-party computation aggregation circuit in ciphertext form. S5.3. The secure multi-party computation aggregation circuit concatenates and deduplicates encrypted evidence record fragments returned by multiple nodes according to alarm event ID and time sequence label without decrypting the fragment content, and outputs an encrypted distributed path result set.

[0028] S6. The full-chain tracing and model feedback module decrypts the encrypted distributed path result set output by S5. It extracts the source IP sequence, operation instruction timeline, lateral movement jump node and C2 communication features of each segment from the decryption results. It maps attack steps to nodes, and the temporal dependencies and jump relationships between steps to edges, constructing a directed attack step graph. It uses a spatiotemporal attention graph neural network to predict and complete missing edges in the graph, detect and eliminate loops and rearrange their order, generating a coherent intrusion tracing link and attacker facility association graph. It combines the intrusion tracing link with the corresponding emergency alarm in S2 to form labeled sample pairs, which are then input into the temporal convolutional sparse coding network of the hierarchical early warning engine module in an online learning manner to fine-tune its dictionary basis vectors and dynamic threshold parameters.

[0029] It should also be noted that the implementation process of step S6 is as follows: S6.1. The full-chain tracing and model feedback module uses session keys to decrypt the scattered path result set, parses the source IP address, operation timestamp, operation instruction type and C2 communication characteristics in each record, and abstracts the attack steps into nodes. The node attributes include operation type vector and timestamp encoding. S6.2. Initialize the directed attack step graph with the time difference and IP connectivity between nodes as edges, use the spatiotemporal attention graph neural network to calculate the attention weight between nodes, perform link prediction on the missing lateral movement edges, and use time constraint rules to eliminate the cyclic edges in the graph to generate a linearized intrusion tracing link and attacker facility association graph. S6.3. Label each step in the intrusion tracing chain with the corresponding dimension of the multidimensional risk vector generated in S2 to form incremental training samples. Input these samples into the temporal convolutional sparse coding network of the hierarchical early warning engine module and use online stochastic gradient descent to fine-tune the basis vectors of the overcomplete dictionary and the dynamic threshold parameters of each dimension.

[0030] Example 1: This example provides a network risk classification, early warning, and tracing system, including an industrial control data access and dual-modal diversion module, a classification early warning engine module, an evidence preservation and index construction module, a tracing request desensitization and encapsulation module, a distributed tracing orchestration and execution module, and a full-chain tracing splicing and model feedback module.

[0031] The industrial control data access and dual-modal traffic splitting module is built on an FPGA-accelerated deep protocol parsing board. The board integrates Modbus, IEC61850, and DNP3 protocol parsing IP cores. It connects to real-time communication traffic from power substations, water PLCs, or industrial control ring networks via mirrored ports, while simultaneously receiving operation logs and sensor timing values ​​pushed by the SCADA server. For each parsed data event, the module synchronously generates a lightweight warning feature stream and a full raw record stream. The lightweight warning feature stream includes normalized instruction frequency, register change rate, and timing differential characteristics. The full raw record stream contains the complete protocol message payload, the original operation log text, and nanosecond-level hardware timestamps. The full raw record stream is first written to a memory circular buffer. When the buffer data accumulates to a preset fragmentation threshold of 64MB, it is marked with a monotonically increasing alarm readiness sequence number and persisted to a distributed hierarchical storage ambient temperature layer, which uses a Ceph object storage cluster.

[0032] The hierarchical early warning engine module is deployed on NVIDIA A100 GPU compute nodes and embeds a temporal convolutional sparse coding network. The first layer of the network is a dilated causal convolutional layer with a kernel size of k=7 and dilation coefficients d=1,2,4, extracting local temporal patterns. The second layer is a sparse coding layer that processes the feature matrix output by the dilated causal convolution. In a complete dictionary Solving for sparse coding coefficients ,in The optimization problem can be categorized as follows: ; The proximal gradient descent algorithm is used to iteratively update C, where λ is the sparsity penalty coefficient. The decoded and reconstructed vector is... Calculate the reconstructed residual The residual R is compared with the preset industrial control operation baseline, and the thresholds for each dimension are dynamically maintained using exponential moving average. : ; Where α = 0.99, Let be the i-th component of the residual vector. The multidimensional risk vector consists of instruction anomaly degree, parameter deviation degree, and attack stage confidence degree. When any dimension exceeds its dynamic threshold, an emergency alarm is generated and a linkage trigger signal is output. The signal carries the alarm time window and the logical identifier of the affected industrial control asset.

[0033] After receiving the linkage trigger signal, the evidence preservation and index construction module retrieves the full original record stream fragments corresponding to the alarm preparation sequence number from the Ceph ambient temperature layer using the alarm time window as the query condition, and reassembles the complete session set. The session set is formatted into a standard forensic data packet, containing industrial control protocol interactions in pcap format, operation logs in JSON line format, and sensor numerical sequences in time-series database snapshot format. An SM3 digest is calculated for the entire standard forensic data packet, and a digital signature is generated by signing it with an SM2 elliptic curve private key. Subsequently, a hierarchical searchable encrypted index is constructed: IP address, register address, function code, and instruction text are extracted field by field as keywords, and a homomorphic hash function is used to generate the index. After mapping, a Bloom filter vector (BF) is inserted, and keyword ciphertext is generated using the SM4 symmetric encryption algorithm. An inverted index of the ciphertext is then constructed, where each item maps the ciphertext keyword to the session ID and offset set in which that keyword appears. Once the index is built, an existence notification is sent to the source tracing request de-identification and encapsulation module.

[0034] Upon receiving an existence notification, the source tracing request de-identification and encapsulation module extracts the logical address of the alarm industrial control device, the frequency histogram of abnormal operation codes, and the session time range from the standardized JSON of the evidence collection standard data packet, and concatenates them into a fixed-length metadata vector. The input v is a pre-trained conditional variational autoencoder network. The encoder is a three-layer fully connected structure, and the output is a mean vector. Sum of logarithmic variance vector Generate confidential security level protection latent variable z using reparameterization techniques: ; Optimize the lower bound of evidence during training: ; Where p(z) is a standard Gaussian distribution and β>1 is the unwrapping coefficient. The original metadata is discarded; instead, the confidential security protection latent variable z is serialized together with the alarm event ID and security domain identifier, and sent to the distributed tracing orchestration and execution module via a national cryptographic SSL channel.

[0035] The distributed tracing orchestration and execution module is built on the Apache Flink stream processing framework. After receiving the tracing task instruction vector, it parses the security domain identifier, divides the instruction into sub-tasks corresponding to each security domain according to the identifier, and initiates a secure multi-party computation session based on the SPDZ protocol. Each cross-domain tracing node participating in the session, within the IntelSGX trusted execution environment, uses confidential security compliance latent variables in the sub-tasks as search clues. It performs ciphertext matching on the Bloom filter vector and the ciphertext inverted list of the hierarchical searchable encrypted index using the BGV fully homomorphic encryption scheme. The matching operation involves calculating the encrypted inner product of the homomorphically hashed search keyword vector and the Bloom filter vector. If the result meets the membership requirements compared to the threshold, a homomorphic comparison operation is used to retrieve the matching encrypted forensic record fragment from the ciphertext inverted list. All responses undergo ciphertext concatenation and deduplication in the SPDZ aggregation circuit, outputting an encrypted distributed path result set.

[0036] The full-chain tracing and model feedback module uses session keys to decrypt the scattered path result set, extracting the source IP sequence, operation timestamp, operation command type, and C2 communication features of each record to construct a directed attack step graph. Node attributes in the graph include one-hot encoding of the operation type and timestamp location encoding. A spatiotemporal attention graph neural network is used for graph structure completion and sorting: the attention coefficient between nodes is calculated as follows. ; Here, TE is the temporal encoding function, using sinusoidal positional encoding. Neighbor features are aggregated through multi-head attention weighting, and the probability of the existence of missing lateral movement edges in the prediction layer output is linked. Temporal constraint rules eliminate loops. A linear intrusion tracing link and attacker facility association graph are generated. The tracing link is paired with emergency alarms in S2 for labeling, and the dictionary basis vector D and dynamic threshold parameters of the temporal convolutional sparse coding network in the hierarchical early warning engine module are fine-tuned using online stochastic gradient descent. .

[0037] Example 2 differs from Example 1 in that it provides a distributed, hierarchical cold archiving layer. The system adds a cold archiving layer, using a high-density Blu-ray disc library as the storage medium, and connects to the Ceph ambient temperature layer via a data archiving gateway. After generating the standard data package and digital signature for evidence collection, the evidence preservation and index building module automatically migrates the full original record stream of the corresponding time window from the ambient temperature layer to the cold archiving layer. After migration, read-only protection (write-once, read-many) is applied to the cold archived objects, and a storage location pointer containing the archive volume ID, starting block offset, and length is generated. This pointer is written into the metadata segment of the hierarchical searchable encrypted index, enabling the index to reference the physical location of the cold archive.

[0038] In method step S3, the following processing is added after sub-step S3.3: The evidence preservation and index building module initiates a migration task to the archiving gateway, transmits the fragment object marked with the alarm preparation sequence number, verifies the SM3 digest of the cold archiving layer fragment and stores it in the optical disc cartridge, and returns the storage location pointer; the module encodes the pointer into a fixed-length byte string, stores it in the metadata segment of the searchable encrypted index, updates the index structure of the Bloom filter vector and the inverted list, and then issues an existence notification.

[0039] When the distributed tracing orchestration and execution module hits an index entry through ciphertext matching and needs to extract complete evidence, the cross-domain tracing node reads back the full original record stream fragments from the cold archive layer based on the storage location pointer in the index metadata. The integrity of the read data is verified by SM3 digest and SM2 signature.

[0040] Example 3 differs from Example 2 in that it provides a cross-domain identity and homomorphic key management module. This module is implemented by a blockchain-based distributed key generation service, which issues attribute-based encrypted private keys to each cross-domain tracing node allowed to join a secure multi-party computation session. The private key is associated with the node's security domain and accessible alarm category attributes. Each time the distributed tracing orchestration and execution module initiates a secure multi-party computation session, the cross-domain identity and homomorphic key management module distributes a one-time homomorphic encrypted session key to the participating nodes. The session key is distributed as ciphertext encrypted with attribute base and bound to an alarm event ID.

[0041] The homomorphic encryption scheme was replaced from BGV to CKKS approximate arithmetic homomorphic encryption to support ciphertext inner product calculation of latent variable vectors. Each cross-domain tracing node uses the CKKS public key within its local SGX enclave to encrypt the Bloom filter vector in its own index and performs ciphertext matching: ; in For encrypted index vectors, This is an encrypted retrieval vector. The decrypted score is compared to a threshold to determine membership. The session key is distributed securely via a secure channel by the cross-domain identity and homomorphic key management module and becomes invalid after the session ends.

[0042] In addition, at the initial stage of step S5, the module receives the security domain identifier and alarm event ID from the traceability task instruction vector, queries the node registry and access policy on the blockchain, verifies that the attributes of each node meet the policy, and issues a session token with a time window validity period to the multi-party computing coordinator to further restrict the query permissions of cross-domain nodes.

[0043] Through the above steps, this invention generates a lightweight early warning feature stream and a full original record stream simultaneously through a dual-modal data diversion mechanism. Combined with a distributed hierarchical storage evidence preservation design, it completely retains the original network sessions and operation logs while performing real-time risk classification at the millisecond level, fundamentally eliminating the resource conflict between discarding details in real-time early warning and requiring full evidence for in-depth tracing. The evidence preservation and index building module formats the data into a standard evidence collection data package and builds a hierarchical searchable encrypted index. After the alarm is triggered, the original evidence is immediately solidified, tamper-proof, and has encrypted retrieval capabilities, providing a credible and searchable evidence base for subsequent cross-domain tracing. By using the source tracing request desensitization and encapsulation module, the pre-trained variational autoencoder maps sensitive metadata such as the logical address of alarm industrial control equipment and the frequency histogram of abnormal operation codes into confidential security protection latent variables that conform to Gaussian distribution. When transmitting source tracing query clues across organizations, the internal topology and operational details are completely hidden, thereby breaking the collaboration gaps caused by confidentiality level restrictions and enabling legitimate investigation nodes to complete the retrieval task without touching the original metadata. By combining a distributed tracing orchestration and execution module with a secure multi-party computation protocol and homomorphic encryption, multiple independent cross-domain tracing nodes perform ciphertext matching indexing and aggregate encrypted attack path fragments within a trusted execution environment. The entire cross-security domain tracing process does not require exposing plaintext evidence content, thus protecting the data privacy of each domain while achieving complete splicing of the attack path. Through the full-chain source tracing and model feedback module, the spatiotemporal attention graph neural network is used to remove loops, complete and sort the attack step graph, forming a coherent intrusion source tracing link. This link is then paired with emergency alarms and labeled as incremental training samples input into the hierarchical early warning engine. The dictionary basis vectors and dynamic thresholds of the temporal convolutional sparse coding network are fine-tuned online, enabling the early warning model to continuously adapt to changes in attack methods and gradually improve the detection rate of abnormal behavior and the completeness of source tracing.

[0044] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0045] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A network risk classification, early warning, and source tracing system, characterized in that, include: The industrial control data access and dual-modal diversion module is used to access real-time operation logs, sensor timing values ​​and industrial control protocol traffic from power, water or industrial control systems, and simultaneously generate a lightweight early warning feature stream and a full raw record stream, and write the full raw record stream into the ambient temperature layer of distributed hierarchical storage. The hierarchical early warning engine module, which embeds a temporal convolutional sparse coding network, is used to read the lightweight early warning feature stream, calculate the multi-dimensional risk vector, and generate an emergency alarm and linkage trigger signal when any dimension exceeds the dynamic threshold. The linkage trigger signal carries the alarm time window and the logical identifier of the affected industrial control assets. The evidence preservation and index building module is used to receive linkage trigger signals, extract the full original record stream of the corresponding time window from the room temperature layer, format it into a standard data package for evidence collection and attach a digital signature, build a hierarchical searchable encrypted index, and generate an existence notification after the index is built. The source tracing request desensitization and encapsulation module is used to receive existence notifications, read the metadata of the evidence collection standard data packet, generate confidential security protection latent variables through a pre-trained variational autoencoder, discard the original metadata, and encapsulate the confidential security protection latent variables into a source tracing task instruction vector. The distributed tracing orchestration and execution module is used to receive tracing task instruction vectors, initiate queries to at least two independent cross-domain tracing nodes through a secure multi-party computation protocol, match indexes in a homomorphic encryption manner and return encrypted attack path fragments, and aggregate the fragments to output an encrypted set of scattered path results. The full-chain tracing and model feedback module is used to decrypt the scattered path result set, construct the attack step graph, form the intrusion tracing link through the spatiotemporal attention graph neural network, and convert the intrusion tracing link and emergency alarm into incremental training samples after pairing and labeling, and input them into the hierarchical early warning engine module for online fine-tuning.

2. The network risk classification, early warning, and source tracing system according to claim 1, characterized in that, The distributed hierarchical storage also includes a cold archiving layer. After generating the evidence standard data package and digital signature, the evidence preservation and index building module migrates the full original record stream of the corresponding time window from the normal temperature layer to the cold archiving layer and applies read-only protection. At the same time, it generates a storage location pointer and writes it into the metadata segment of the hierarchical searchable encrypted index.

3. The network risk classification, early warning, and source tracing system according to claim 2, characterized in that, It also includes a cross-domain identity and homomorphic key management module, which issues an attribute-based encryption private key to each cross-domain tracing node and distributes a one-time homomorphic encryption session key to the participating nodes when each secure multi-party computation session is started. The session key is bound to the alarm event ID.

4. A method for network risk classification, early warning, and source tracing applied to the system described in any one of claims 1 to 3, characterized in that, Includes the following steps: S1. The industrial control data access and dual-modal diversion module receives industrial control field data. After deep protocol parsing, it generates a real-time lightweight early warning feature sequence and a full raw record stream carrying full payload and timestamp for each data event. It temporarily stores the full raw record stream using a memory ring buffer and writes it to the ambient temperature layer of the distributed hierarchical storage in fixed time slices. S2. The hierarchical early warning engine module extracts a sliding window feature matrix from the lightweight early warning feature sequence, inputs it into the pre-trained temporal convolutional sparse coding network, and outputs sparse coding coefficients by the encoder. After reconstruction by the decoding dictionary, it is compared with the current window features to obtain the reconstruction residual. Combined with the preset industrial control operation baseline, it calculates a multi-dimensional risk vector including instruction abnormality, parameter deviation, and attack stage confidence. When any dimension exceeds the corresponding dynamic threshold, an emergency alarm is generated and a linkage trigger signal carrying the alarm time window and the logical identifier of the affected industrial control assets is output. S3. The evidence preservation and index construction module extracts the full original record stream from the distributed hierarchical storage ambient temperature layer based on the linkage trigger signal generated in S2 and the alarm time window as the retrieval condition. It converts the full original record stream into a standard data packet for evidence collection, which includes PCAP, terminal operation logs and sensor numerical sequences. It generates a digital signature for the data packet using the national cryptographic algorithm. Then, it extracts keywords from each field in the standard data packet for evidence collection and the reconstructed session payload to build a hierarchical searchable encrypted index. The index consists of a Bloom filter vector inserted after the hidden keywords are homomorphically hashed and a ciphertext inverted list based on the keyword tree. After the index is built, it sends an existence notification to the source tracing request desensitization and encapsulation module. After receiving the existence notification from S3, the S4. Source tracing request desensitization and encapsulation module parses the alarm industrial control device logical address, abnormal operation code frequency histogram, and session time range from the evidence standard data packet as metadata. The metadata is then input into the encoder network of the variational autoencoder, which has been trained using the industrial control alarm context, to obtain the mean vector and variance vector. After sampling from the standard Gaussian distribution, confidential security protection latent variables are generated using reparameterization techniques. The original metadata is discarded, and the confidential security protection latent variables are serialized together with the alarm event ID and security domain identifier to form the source tracing task instruction vector. This vector is then sent to the distributed source tracing orchestration and execution module through the identity authentication channel. S5. The distributed tracing orchestration and execution module receives the tracing task instruction vector generated by S4, parses the security domain identifier, divides the instruction into sub-tasks corresponding to each security domain, and starts a multi-party secure computation session. Each cross-domain tracing node participating in the session calculates the matching degree with the Bloom filter vector and ciphertext inverted list in the hierarchical searchable encrypted index constructed by S3 in a homomorphic encryption method according to the confidential security level protection potential variables in the sub-task vector. If a match is found, the corresponding encrypted forensic record fragment is extracted as a response. All responses are spliced ​​and deduplicated in the aggregation circuit of the secure multi-party computation protocol to obtain an encrypted distributed path result set. S6. The full-chain tracing and model feedback module decrypts the encrypted distributed path result set output by S5. It extracts the source IP sequence, operation instruction timeline, lateral movement jump node and C2 communication features of each segment from the decryption results. It maps attack steps to nodes, and the temporal dependencies and jump relationships between steps to edges, constructing a directed attack step graph. It uses a spatiotemporal attention graph neural network to predict and complete missing edges in the graph, detect and eliminate loops and rearrange their order, generating a coherent intrusion tracing link and attacker facility association graph. It combines the intrusion tracing link with the corresponding emergency alarm in S2 to form labeled sample pairs, which are then input into the temporal convolutional sparse coding network of the hierarchical early warning engine module in an online learning manner to fine-tune its dictionary basis vectors and dynamic threshold parameters.

5. The network risk classification, early warning, and source tracing method according to claim 4, characterized in that, The implementation process of step S1 is as follows: S1.

1. A protocol parser is set up in the industrial control data access and dual-mode splitting module. The protocol parser extracts function codes, register addresses, coil status and control command parameters according to Modbus, IEC61850 and DNP3 protocols to form a structured event record. S1.

2. For the same structured event record, generate a lightweight warning feature stream and a full raw record stream. The lightweight warning feature stream includes the normalized instruction frequency, register change rate and timing difference features, while the full raw record stream includes the original protocol message payload, operation log text and timestamp. S1.

3. The memory circular buffer caches the entire original record stream in a first-in-first-out manner. When the accumulated data volume reaches the fragmentation threshold, the fragmented data is marked with an alarm preparation sequence number and written to the ambient temperature layer of the distributed hierarchical storage.

6. The network risk classification, early warning, and source tracing method according to claim 5, characterized in that, The implementation process of step S2 is as follows: S2.

1. The hierarchical early warning engine module performs sliding segmentation on the lightweight early warning feature stream using the time window length and step size, and arranges the feature values ​​within the window into a two-dimensional feature matrix; S2.

2. The first layer of the temporal convolutional sparse coding network is a one-dimensional causal convolutional layer to extract local temporal patterns. The second layer is a sparse coding layer. The near-end gradient descent algorithm is used to solve the sparse coding coefficients of the feature matrix on the overcomplete dictionary, and the residual between the dictionary reconstruction vector and the original feature matrix is ​​calculated. S2.

3. Compare the residual with the preset industrial control operation baseline to generate a multi-dimensional risk vector that includes instruction anomaly degree, parameter deviation degree and attack stage confidence degree. Use exponential moving average to update the dynamic threshold of each dimension. When any dimension exceeds its dynamic threshold, an alarm is triggered and a linkage trigger signal is output.

7. The network risk classification, early warning, and source tracing method according to claim 6, characterized in that, The implementation process of step S3 is as follows: S3.

1. The evidence preservation and index building module parses the start and end times of the alarm time window in the linkage trigger signal, initiates a range query to the distributed hierarchical storage ambient temperature layer, retrieves all full original record stream fragments within the time window, and reassembles them into a complete session set according to the alarm preparation sequence number; S3.

2. Standardize the format of the complete session set, convert the industrial control protocol interaction into PCAP file, convert the operation log into JSON line format, convert the sensor value sequence into a time series database snapshot, calculate the SM3 digest of the standardized file as a whole and sign it with the SM2 private key, and encapsulate it into a forensic standard data packet; S3.

3. Extract IP address, register address, function code and instruction text from the standard data packet for evidence collection as keywords, map them through a homomorphic hash function and insert them into a Bloom filter vector. At the same time, construct an inverted list for each keyword in ciphertext form. The key of the inverted list is the ciphertext keyword, and the value is the session ID and offset set in which the keyword appears. Complete the construction of a hierarchical searchable encrypted index and issue an existence notification.

8. The network risk classification, early warning, and source tracing method according to claim 7, characterized in that, The implementation process of step S4 is as follows: S4.

1. The source tracing request desensitization and encapsulation module extracts the logical address of the alarm industrial control equipment, the frequency histogram of abnormal operation codes and the session time range from the standardized JSON of the evidence collection standard data packet, and concatenates them into a fixed-length metadata vector; S4.

2. The metadata vector is fed into the encoder of the variational autoencoder, which consists of a three-layer fully connected network and outputs a mean vector and a log-variance vector. Confidential and equivalent latent variables are generated through the reparameterized sampling formula. S4.

3. The original alarm industrial control equipment logical address and abnormal operation code frequency histogram are abandoned. The confidential information protection latent variables are combined with the alarm event ID and the security domain identifier to which the logical identifier of the affected industrial control asset in S2 belongs. After symmetric encryption, the source tracing task instruction vector is formed and sent to the distributed source tracing orchestration and execution module through the national cryptographic SSL channel.

9. The network risk classification, early warning, and source tracing method according to claim 8, characterized in that, The implementation process of step S5 is as follows: S5.

1. The distributed tracing orchestration and execution module decrypts the tracing task instruction vector, extracts the security domain identifier, searches for the corresponding active tracing node in the cross-domain node list, combines the confidential security protection potential variables with the alarm event ID to form a sub-task request, and establishes an encrypted channel with each node through a secure multi-party computation circuit. S5.

2. Each participating cross-domain tracing node uses the confidential security protection potential variables in the subtask request as retrieval clues, performs homomorphic ciphertext matching operation in the local trusted execution environment, and uses the hierarchical searchable encryption protocol consistent with S3 to match the Bloom filter vector and the ciphertext inverted list. If there is a membership certificate and keyword match under the ciphertext conditions, the corresponding encrypted evidence record fragment is retrieved and returned to the secure multi-party computation aggregation circuit in ciphertext form. S5.

3. The secure multi-party computation aggregation circuit concatenates and deduplicates encrypted evidence record fragments returned by multiple nodes according to alarm event ID and time sequence label without decrypting the fragment content, and outputs an encrypted distributed path result set.

10. The network risk classification, early warning, and source tracing method according to claim 9, characterized in that, The implementation process of step S6 is as follows: S6.

1. The full-chain tracing and model feedback module uses session keys to decrypt the scattered path result set, parses the source IP address, operation timestamp, operation instruction type and C2 communication characteristics in each record, and abstracts the attack steps into nodes. The node attributes include operation type vector and timestamp encoding. S6.

2. Initialize the directed attack step graph with the time difference and IP connectivity between nodes as edges, use the spatiotemporal attention graph neural network to calculate the attention weight between nodes, perform link prediction on the missing lateral movement edges, and use time constraint rules to eliminate the cyclic edges in the graph to generate a linearized intrusion tracing link and attacker facility association graph. S6.

3. Label each step in the intrusion tracing chain with the corresponding dimension of the multidimensional risk vector generated in S2 to form incremental training samples. Input these samples into the temporal convolutional sparse coding network of the hierarchical early warning engine module and use online stochastic gradient descent to fine-tune the basis vectors of the overcomplete dictionary and the dynamic threshold parameters of each dimension.