A power monitoring safety instruction intelligent checking method and device and related equipment
By generating a unique connection fingerprint in the power monitoring system and calculating the risk score using a feature identification model, precise TCP packet blocking is achieved. This solves the problems of business continuity and scheduling response timeliness caused by coarse-grained blocking in existing technologies, and improves the operational reliability and security of the power monitoring system.
Patent Information
- Application Number
- CN202611335052.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
When faced with localized business anomalies, existing power monitoring systems suffer from problems such as coarse-grained blocking mechanisms that lead to disruption of critical business continuity and reduced dispatch response timeliness. Furthermore, the lack of real-time feedback results in false blocking failing to be automatically resolved for extended periods.
By collecting connection characteristics of active TCP connections on the industrial control host, a unique connection fingerprint is generated. The control command to be verified is parsed and bound to the target connection fingerprint. The link-level risk score is calculated using the feature identification model, and a precise blocking message is generated. The blocking device is driven to discard only the TCP messages of the target connection. The feature representation is updated based on the feedback situation data, forming a dynamic closed-loop verification mechanism.
It achieves precise mapping from coarse-grained host level to fine-grained link level, ensuring the normal transmission of non-violation services such as protection and telemetry, improving the service continuity and security protection level of the power monitoring system, solving the problem of lack of real-time data acquisition after the blockage, and significantly improving operational reliability.
Smart Images

Figure CN123185218A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power monitoring technology, and in particular to a method, device, and related equipment for intelligent verification of power monitoring safety commands. Background Technology
[0002] Power monitoring systems undertake the tasks of monitoring and remotely controlling the operation of critical infrastructure such as substations, dispatch centers, and distribution automation. Their internal industrial control hosts typically handle multiple concurrent services, including protection tripping, telemetry and telecontrol, waveform recording and transmission, and clock synchronization. These services interact with external security command and control systems via different Transmission Control Protocols (TCP). In related technologies, power monitoring network security protection generally adopts coarse-grained access control strategies based on host IP or port. When the security command and control system detects a risk in a control command, it issues a system-wide communication blocking command targeting the host IP to the blocking device. The blocking device then discards all packets related to that IP at the network entry and exit points. Simultaneously, the risk identification process uses static rule matching or a single feature model, performing compliance verification only on the command fields.
[0003] Because multiple concurrent service links on the same industrial control host share the same IP address, if one of these service links is deemed abnormal, the entire system's communication will be cut off, causing simultaneous interruptions to non-violation services such as protection and telemetry, thus disrupting the continuity of critical substation services. Furthermore, the lack of real-time feedback on communication status after the command to block communication makes it prone to false blocking that cannot be automatically lifted for extended periods, thereby affecting the real-time performance and availability of power grid dispatch. Therefore, existing methods, when faced with localized service anomalies, are prone to problems such as compromised service continuity and reduced dispatch response timeliness due to their coarse-grained blocking mechanism and lack of dynamic feedback control. Summary of the Invention
[0004] This invention provides a method, device, and related equipment for intelligent verification of power monitoring safety commands, which addresses the technical problems of impaired business continuity and reduced dispatch response timeliness.
[0005] The first aspect of this invention provides an intelligent verification method for power monitoring security commands, comprising: Collect the connection characteristics of all active TCP connections on the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain a TCP connection fingerprint database; Based on the TCP connection fingerprint database, the control command to be verified is parsed and bound to the matching target connection fingerprint to obtain the command link mapping; Based on the instruction link mapping, risk features are calculated on the real-time message sequence of the bound TCP connection using a preset feature identification model to obtain a link-level risk score. Based on the comparison result between the link-level risk score and the preset risk threshold, a link-level blocking message carrying the target connection fingerprint is generated, and the blocking device is driven to discard TCP messages that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. Based on the reconnection frequency of blocked TCP connections and the sudden change rate of host operating status collected by the target connection fingerprint, feedback situation data is obtained; and the feature representation is updated based on the feedback situation data and the feature identification model is returned to be executed until the preset release condition is met to end the current verification.
[0006] Optionally, the step of parsing the control command to be verified and binding it to the matching target connection fingerprint based on the TCP connection fingerprint database to obtain the command link mapping includes: Parse the control instructions to be verified and extract the target asset identifier, operation type, and target port from the control instructions to be verified. Based on the target asset identifier, operation type, and target port, a matching candidate connection is retrieved from the TCP connection fingerprint database, and the target connection fingerprint is determined by combining the connection characteristics of the candidate connection. The control command to be verified is associated with the target connection fingerprint to obtain the command link mapping.
[0007] Optionally, the preset feature recognition model includes an instruction semantic feature extraction module, an asset risk assessment module, and an event context feature extraction module; The instruction semantic feature extraction module is used to perform semantic encoding on the instruction information in the instruction link mapping to obtain instruction semantic features; The asset risk assessment module is used to quantify the risk of the target asset's attribute information to obtain the asset risk weight. The event context feature extraction module is used to aggregate features from the historical security event sequence of the target device to obtain event context features.
[0008] Optionally, the step of calculating risk features of the real-time message sequence of the bound TCP connection using a preset feature identification model to obtain a link-level risk score includes: The instruction semantic features output by the instruction semantic feature extraction module, the asset risk weight output by the asset risk assessment module, the event context features output by the event context feature extraction module, and the feature vector of the real-time message sequence of the bound TCP connection are obtained. The semantic features of the instruction are weighted using the asset risk weights to obtain weighted semantic features. The weighted semantic features, the feature vector of the real-time message sequence, and the event context features are concatenated and fused to obtain the fused features; The fused features are input into the fully connected layer of the feature identification model for numerical mapping to obtain a link-level risk score.
[0009] Optionally, generating a link-level blocking message carrying the target connection fingerprint based on the comparison result between the link-level risk score and a preset risk threshold includes: The link-level risk score is input into a preset segmentation function to map the corresponding risk level. When the risk level is low, a link-level blocking message carrying the target connection fingerprint is generated; When the risk level is medium risk or high risk, the identification and type information of the service channels that are cut off when host-level blocking or regional network segment blocking is performed are calculated based on the target topology dependency graph simulation to obtain the service impact simulation results. When the simulation results of the service impact do not indicate that the cut-off service channel contains a critical protection tripped link, and the proportion of the number of isolated smart electronic devices to the total number of smart electronic devices in the area does not exceed a preset proportion, a host-level blocking message or a regional network segment blocking message carrying the target connection fingerprint is generated on the basis of the link-level blocking message according to the risk level; wherein, when the risk level is medium risk, the host-level blocking message is generated, and when the risk level is high risk, the regional network segment blocking message is generated. When the simulation results of the service impact indicate that the cut-off service channel contains a critical protection tripped link, the issuance of the host-level blocking message or the regional network segment blocking message is cancelled, and only the link-level blocking message is retained; when the number of isolated smart electronic devices accounts for more than the preset percentage of the total number of smart electronic devices in the area, automatic issuance is suspended and manual review is initiated.
[0010] Optionally, the drive blocking device discards TCP packets that match the target connection fingerprint, ensuring that the remaining unmatched TCP connections are not interrupted, including: The link-level blocking message is sent to a preset blocking device, which then parses the link-level blocking message and extracts the target connection fingerprint. Based on the target connection fingerprint, a matching rule is created in the kernel-mode packet filtering framework; Using the matching rules, TCP packets that match the target connection fingerprint entering the industrial control host are discarded, while the remaining TCP packets that do not match the target connection fingerprint are allowed to be transmitted normally.
[0011] Optionally, the step of obtaining feedback situational data based on the reconnection frequency of blocked TCP connections and the abrupt change rate of host operating status collected from the target connection fingerprint includes: Based on the target connection fingerprint, the number of reconnection attempts for the blocked TCP connection is counted within a preset observation window, and the reconnection frequency is calculated. The host agent interface is used to read the operating status indicators of the associated industrial control host in the preset observation window, and the host operating status mutation rate is calculated based on the operating status indicators. The reconnection frequency and the host operating status mutation rate are combined to obtain feedback status data.
[0012] Optionally, the step of updating the feature representation based on the feedback situation data and returning to execute the feature identification model until a preset release condition is met to end the current verification includes: The feedback situation data is used as an additional feature and concatenated into the feature representation of the real-time message sequence to obtain the updated feature representation. The updated feature representation is input into the feature identification model, and the risk feature calculation step is returned to obtain a new link-level risk score. The number of times the new link-level risk score is continuously lower than the preset risk threshold is counted; When the number of attempts reaches the preset number, the message to disconnect the target fingerprint is discarded and the verification ends.
[0013] A second aspect of the present invention provides an intelligent verification device for power monitoring security commands, comprising: The TCP connection fingerprint database determination module is used to collect the connection characteristics of all active TCP connections of the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain the TCP connection fingerprint database. The instruction link mapping determination module is used to parse the control instruction to be verified and bind it to the matching target connection fingerprint according to the TCP connection fingerprint database to obtain the instruction link mapping. The link-level risk score calculation module is used to calculate the risk features of the real-time message sequence of the bound TCP connection based on the instruction link mapping and through a preset feature identification model to obtain the link-level risk score. The link-level blocking message generation module is used to generate a link-level blocking message carrying the target connection fingerprint based on the comparison result between the link-level risk score and the preset risk threshold, and drive the blocking device to discard TCP messages that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. The iterative verification module is used to collect the reconnection frequency of blocked TCP connections and the sudden change rate of host running status based on the target connection fingerprint to obtain feedback situation data; and to update the feature representation based on the feedback situation data and return to execute the feature identification model until the preset release condition is met to end the current verification.
[0014] A third aspect of the present invention provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute computer programs to implement the intelligent verification method for power monitoring security instructions as described above.
[0015] As can be seen from the above technical solutions, the present invention has the following advantages: This invention generates unique connection fingerprints by collecting connection characteristics of active TCP connections and parses instructions to bind to matching target connection fingerprints, achieving precise mapping from coarse-grained host level to fine-grained link level. During verification, only link-level blocking packets carrying the target connection fingerprint are generated, driving the blocking device to discard TCP packets matching the target fingerprint. Since unmatched connection fingerprints are not discarded, other TCP connections carrying protection, telemetry, and other non-violation services on the same industrial control host can be transmitted normally, significantly improving the continuity of critical substation services. Simultaneously, based on the target connection fingerprint, the reconnection frequency of blocked TCP connections and the host operating status mutation rate are continuously collected to obtain feedback situation data. This data is used to update the feature representation and return to the execution feature identification model, forming a dynamic closed-loop verification mechanism. Furthermore, a clear release exit is set, where the blocking is lifted when the connection is continuously below a preset threshold or the verification ends when the iteration limit is reached. This solves the defects of existing technologies, such as the lack of real-time data collection after blocking, which leads to the inability to automatically release false blocking for a long time. This significantly improves the security protection level and operational reliability of the power monitoring system. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating an intelligent verification method for power monitoring safety commands according to the present invention. Figure 2 This is a schematic diagram illustrating the process of mapping the control command to be verified to the corresponding link in this invention; Figure 3 This is a schematic diagram of the process for obtaining link-level risk scores through online application of the risk feature model in this invention; Figure 4 This is a schematic diagram of the process for generating blocking messages based on risk classification and business impact simulation in this invention; Figure 5 This is a schematic diagram illustrating the process of precise blocking based on the kernel-mode packet filtering framework in this invention; Figure 6 This is a schematic diagram of the process for obtaining feedback situation data in this invention; Figure 7 This is a schematic diagram of the iterative verification process of the feature identification model in this invention. Detailed Implementation
[0017] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “corresponding to,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0018] The implementation method in this embodiment can be implemented in a system, on a server, or on a terminal; no specific limitation is made. The method in this application will be described below from the perspective of system implementation. Please refer to... Figure 1 The intelligent verification method for power monitoring security commands provided in this application includes the following steps: S1. Collect the connection characteristics of all active TCP connections of the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain the TCP connection fingerprint database; An active TCP connection refers to a TCP connection that is established and engages in bidirectional business message exchange within a preset observation window. This is used to eliminate interference from half-open connections and idle suspended connections on the accuracy of fingerprint characterization. The duration of this preset observation window is not less than twice the longest message period of the target business; in this embodiment, the duration of the preset observation window can be 3 seconds.
[0019] During data collection, the system first deploys a connection status acquisition module within the blocking device. This module reads the connection status and 5-tuple information of all TCP connections on the target industrial control host in real time through a kernel-mode socket status query interface. Active TCP connections matching the above definition are then filtered out according to a preset observation window. Connection characteristics include the 5-tuple, periodic message timing, message length distribution, and protocol field entropy. Specifically, the 5-tuple is composed of the source IP, source port, destination IP, destination port, and protocol type; the periodic message timing represents the interval sequence of arrival times of adjacent messages on the same connection; the message length distribution represents a histogram of the statistical distribution of service message length values on the same connection; and the protocol field entropy value characterizes the randomness of the protocol fields for that connection.
[0020] When generating a unique connection fingerprint, the system collects the connection feature elements of each of the aforementioned active TCP connections, forming an original fingerprint element set for each connection. Then, each element is encoded into a byte stream in a fixed order. Specifically, the IP address in the 5-tuple is encoded as 4 bytes, the port as 2 bytes, and the protocol type as 1 byte; the periodic message interval is encoded as a 4-byte unsigned integer sequence; the message length distribution histogram is encoded as a fixed-length bucket count array; and the protocol field entropy value is encoded as a 4-byte floating-point number. Each field is separated by a single-byte delimiter. The concatenated byte stream is then processed in one operation using either the SM3 algorithm (outputting 256 bits) or the SHA-256 algorithm (outputting 256 bits) to obtain a 256-bit digest value. The hexadecimal representation of this digest value is used as the fixed-length unique connection fingerprint for that connection. Finally, the system writes the connection fingerprints of all active TCP connections, along with their corresponding 5-tuples and sets of connection feature elements, into a local key-value database, forming the TCP connection fingerprint. During the connection fingerprint generation process, the system also identifies the target asset identifier corresponding to the TCP connection by parsing the interaction messages between the industrial control host and the application layer protocol, or by reading the asset management system ledger. The system establishes an association mapping relationship between the target asset identifier, the connection's five-tuple, and the connection fingerprint, and writes them together into a local key-value database. Each record in this fingerprint database contains the target asset identifier, five-tuple, connection characteristics, and connection fingerprint, supporting retrieval by target asset identifier, five-tuple, or connection fingerprint.
[0021] S2. Based on the TCP connection fingerprint database, parse the control command to be verified and bind it to the matching target connection fingerprint to obtain the command link mapping; This step maps the control commands to be verified to the corresponding links in the TCP connection fingerprint database generated by S1. (See [link / reference]) Figure 2 Specifically, it includes the following: S21. Parse the control instructions to be verified and extract the target asset identifier, operation type and target port from the control instructions to be verified; S22. Based on the target asset identifier, operation type, and target port, retrieve matching candidate connections in the TCP connection fingerprint database, and determine the target connection fingerprint by combining the connection characteristics of the candidate connections; S23. Associate the control command to be verified with the target connection fingerprint to obtain the command link mapping.
[0022] Specifically, the system first parses the message structure of the control command to be verified field by field according to the target protocol specification, extracting three key fields: target asset identifier, operation type, and target port. The target asset identifier represents the unique identifier of the specific logical or physical device to which the command points; the operation type indicates the type of action to be performed by the command, including GOOSE publish, SV subscribe, or MMS write operations; and the target port indicates the transport layer port number used by the command. Based on the parsed target asset identifier, the system first directly searches the TCP connection fingerprint database for all active TCP connections associated with that target asset identifier, obtaining a preliminary candidate connection set. Then, combined with the target port, it filters out connections with matching ports from this preliminary candidate connection set, obtaining a final candidate connection set. Then, combining the communication feature templates corresponding to the operation type, the periodic message timing and message length distribution of each connection in the candidate connection set are compared with the communication feature templates. The connection fingerprints that match perfectly are determined as the target connection fingerprints. The communication feature templates include short-period heartbeat and fixed-length message features corresponding to GOOSE publishing, specific sampling rate and fixed-length data frame features corresponding to SV subscription, and long-period interaction and variable-length message features corresponding to MMS write operations. Finally, the system associates the unique identifier of the control instruction to be verified, the target connection fingerprint, and the target asset identifier into the instruction link mapping table. This instruction link mapping table is implemented in the form of an in-memory hash table, where the key is the unique identifier of the instruction and the value is the corresponding set of target connection fingerprints. It supports one-to-many binding to cover scenarios where the same instruction is executed across multiple links, completing the binding of instructions to links and outputting the instruction link mapping.
[0023] S3. Based on instruction link mapping, risk features are calculated on the real-time message sequence of the bound TCP connection through a preset feature identification model to obtain a link-level risk score. In this embodiment, the preset feature identification model includes an instruction semantic feature extraction module, an asset risk assessment module, and an event context feature extraction module. The instruction semantic feature extraction module is used to semantically encode the instruction information in the instruction link mapping to obtain instruction semantic features. The asset risk assessment module is used to quantify the risk of the attribute information of the target asset to obtain the asset risk weight. The event context feature extraction module is used to aggregate features from the historical security event sequence of the target device to obtain event context features.
[0024] The training process for this feature recognition model includes the following: 1. Construct a training dataset. Collect historical control commands, corresponding real-time message sequences, target logical device attribute information, and historical security event sequences from substation historical operation logs, security alarm databases, and network traffic auditing systems. Security experts annotate the collected historical control commands, marking whether they actually trigger attack risks, forming a training set containing positive and negative samples. Simultaneously, for the physical devices corresponding to the target logical devices, obtain attribute information from three dimensions: their service life, number of vulnerabilities, and number of abnormal login attempts; and extract security event sequences of the target logical devices within a preset historical time period.
[0025] 2. Three feature extraction modules were trained separately. First, the lightweight BERT model used in the instruction semantic feature extraction module was fine-tuned using historical instruction text and its corresponding normal / abnormal labels, enabling the module to output a 768-dimensional fixed-length vector representing the semantics of the instructions. Second, asset attribute information was input into the asset risk assessment module, which mapped each attribute to a 0-1 interval according to a preset normalization interval and calculated the scalar form of asset risk weights by weighted summation according to preset weights. Then, an event time series graph was constructed, using event type as nodes and the reciprocal of the time interval between two events as edge weights, converting the historical security event sequence into a graph structure. The event time series graph was iteratively trained using a graph attention network, enabling it to output a 128-dimensional event context vector.
[0026] 3. Joint Training and Fusion Classification Layer. The instruction semantic features, asset risk weights, and event context features output by the three modules are concatenated and fused with the feature vectors of the real-time message sequence, and then input into the fully connected layer. Using the cross-entropy loss function, the network parameters of the three feature extraction modules and the fully connected layer are updated simultaneously through backpropagation, allowing the model to converge on the training set and obtain the pre-set feature recognition model after training.
[0027] Please see Figure 3 The risk characteristics of the real-time message sequence of the bound TCP connection are calculated using a preset feature identification model to obtain a link-level risk score, including the following: S31. Obtain the instruction semantic features output by the instruction semantic feature extraction module, the asset risk weight output by the asset risk assessment module, the event context features output by the event context feature extraction module, and the feature vector of the real-time message sequence of the bound TCP connection. S32. Weight the semantic features of the instruction using asset risk weights to obtain weighted semantic features; S33. The weighted semantic features, the feature vector of the real-time message sequence, and the event context features are concatenated and fused to obtain the fused features; S34. Numerically map the fully connected layer of the fused feature input feature recognition model to obtain the link-level risk score.
[0028] Specifically, the system reads the bound instruction information from the instruction link mapping table, concatenates five structured fields—operation type, target logical device, logical node, data attribute, and value change amount—into an instruction description text, and inputs it into the instruction semantic feature extraction module, which converts it into instruction semantic features. Simultaneously, using the target asset identifier in the instruction as the query key, the system reads the service life, number of vulnerabilities, and number of abnormal logins of the physical device corresponding to the target logical device, inputs it into the asset risk assessment module, and the module outputs an asset risk weight between 0 and 1. Furthermore, the system extracts the historical security event sequence of the target logical device within the past 24 hours from the situational awareness system database, constructs an event time sequence graph with weights based on the reciprocal of the time interval, and inputs it into the event context feature extraction module. This module aggregates adjacent event features through a graph neural network and outputs event context features. The system also extracts and concatenates the protocol field features of each message in the real-time message sequence of the bound TCP connection to obtain the feature vector of the sequence.
[0029] The asset risk weights are multiplied element-wise by the instruction semantic features to obtain the weighted semantic features. The weighted semantic features, the feature vectors of the real-time message sequence, and the event context features are concatenated along the feature dimension to obtain the fused features. The fused features are then input into two fully connected layers. The last layer uses the Sigmoid activation function to map the output value to the range of 0 to 1; this value is the link-level risk score.
[0030] S4. Based on the comparison result between the link-level risk score and the preset risk threshold, generate a link-level blocking message carrying the target connection fingerprint, drive the blocking device to discard TCP messages that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. Please see Figure 4 The blocking message generation process based on risk classification and business impact simulation includes the following: S411. Input the link-level risk score into the preset segmentation function to map the corresponding risk level; The preset segmentation function divides the interval containing the link-level risk score. This segmentation function maps the interval [0, 0.6) to a low-risk level, the interval [0.6, 0.85) to a medium-risk level, and the interval [0.85, 1.0] to a high-risk level. The boundary values of the segmented intervals can be calibrated according to the substation type and actual protection requirements. The system inputs the link-level risk score calculated by S3 into this segmentation function to obtain the risk level corresponding to that score.
[0031] S412. When the risk level is low, generate a link-level blocking message carrying the target connection fingerprint; When the risk level output by the segmentation function is low risk, the system only generates link-level blocking messages, without triggering any host-level or regional network segment-level coarse-grained blocking actions. The link-level blocking message carries the target connection fingerprint corresponding to the connection, as well as a field indicating the type of action to be performed, instructing the blocking device to discard only the TCP packets corresponding to that target connection fingerprint.
[0032] S413. When the risk level is medium or high, the number of service channels that are cut off when host-level blocking or regional network segment blocking is executed is calculated based on the target topology dependency graph to obtain the simulation results of service impact. When the risk level output by the piecewise function is medium or high risk, the system exports a topology dependency graph of the target host or target area from the SCADA system. This topology dependency graph includes GOOSE subscription relationships, SV subscription relationships, and MMS client-server relationships between intelligent electronic devices. The system simulates the execution of host-level blocking or regional network segment blocking actions on the topology dependency graph, counts the number of at least one of the blocked GOOSE subscriptions, SV channels, and MMS services, and records the identifier and type information of each blocked service channel. The above service channel quantity, identifier, and type information are summarized as the service impact simulation result.
[0033] S414. When the simulation results of the service impact do not indicate that the disconnected service channel contains a critical protection tripped link, and the proportion of the number of isolated smart electronic devices to the total number of smart electronic devices in the area does not exceed the preset proportion, based on the risk level, a host-level blocking message or a regional network segment blocking message carrying the target connection fingerprint is generated on the basis of the link-level blocking message; among them, when the risk level is medium risk, a host-level blocking message is generated, and when the risk level is high risk, a regional network segment blocking message is generated. Specifically, the system determines whether the conditions for additional blocking are met based on the simulation results of the service impact. When the simulation results do not include any service channels of critical protection tripping link types, and the proportion of isolated smart electronic devices to the total number of smart electronic devices in the area does not exceed a preset proportion, the system adds a corresponding coarse-grained blocking message to the link-level blocking message based on the risk level. When the risk level is medium risk, a host-level blocking message is added, indicating that the host IP associated with the target connection fingerprint is blocked; when the risk level is high risk, a regional network segment blocking message is added, indicating that the regional network segment associated with the target connection fingerprint is blocked. The generated host-level or regional network segment blocking messages both carry the corresponding target connection fingerprint and blocking granularity identifier to instruct the blocking device to perform the corresponding level of blocking action.
[0034] S415. When the simulation results indicate that the service channel being cut off contains a critical protection tripped link, cancel the issuance of host-level blocking messages or regional network segment blocking messages, and retain only link-level blocking messages; when the number of isolated smart electronic devices accounts for more than the preset percentage of the total number of smart electronic devices in the area, suspend automatic issuance and transfer to manual review.
[0035] Specifically, when the business impact simulation results indicate that the cut-off business channel contains critical protection tripped links, the system automatically cancels the issuance of host-level blocking messages or regional network segment blocking messages, retaining only the link-level blocking message's action of discarding the target connection fingerprint, to avoid critical protection services being affected by overly coarse-grained blocking. When the business impact simulation results indicate that the number of isolated smart electronic devices corresponding to the regional network segment blocking action exceeds a preset percentage of the total number of smart electronic devices in the region, the system suspends the automatic issuance of regional network segment blocking messages and enters a manual review process, waiting for maintenance personnel to judge the necessity and feasibility of this blocking before deciding whether to allow it to proceed.
[0036] Please see Figure 5 The precise blocking execution process based on the kernel-mode packet filtering framework includes the following: S421. Send the link-level blocking message to the preset blocking device, which then parses the link-level blocking message and extracts the target connection fingerprint; The system sends the generated link-level blocking message to a preset generalized robust control blocking situational awareness device via either the first or second type of control channel. This device is connected in series with the network entry and exit points of the industrial control host. After receiving the message, the blocking device parses it according to a preset message format protocol, extracting the target connection fingerprint to be blocked and fields indicating the type of action to be performed.
[0037] S422. Create matching rules in the kernel-mode packet filtering framework based on the target connection fingerprint; The blocking device inserts a hook point into the routing preprocessing chain in the operating system kernel mode, specifically registering matching rules at the NF_INET_PRE_ROUTING hook point in the Netfilter framework. The extracted target connection fingerprint is converted into kernel-recognizable matching conditions, including the corresponding five-tuple information and packet feature criteria. Based on these matching conditions, a specific packet matching rule is created in kernel mode. This rule is used to perform feature matching on TCP packets entering the industrial control host.
[0038] S423. Using matching rules, discard TCP packets that match the target connection fingerprint in the incoming TCP packets of the industrial control host, and allow the remaining TCP packets that do not match the target connection fingerprint to be transmitted normally.
[0039] Specifically, the blocking device uses the kernel-mode matching rules created above to perform packet-by-packet matching on every TCP packet entering the industrial control host. When the source IP, source port, destination IP, destination port, protocol type, packet sequence, and packet length of a packet completely match the target connection fingerprint, the packet is directly intercepted and discarded by the kernel-mode discard action, thus achieving precise blocking. For the remaining TCP packets that do not match the target connection fingerprint, since they do not meet the matching conditions of the discard rule, these packets will skip the rule, continue to execute the subsequent kernel processing flow, and be forwarded normally. This ensures that the remaining TCP connections on the industrial control host that do not match the target connection fingerprint are not interrupted by the discard action, guaranteeing the normal transmission of protection, telemetry, and other non-violation services.
[0040] S5. Based on the target connection fingerprint, collect the reconnection frequency of blocked TCP connections and the sudden change rate of host running status to obtain feedback situation data; and update the feature representation based on the feedback situation data and return to the execution feature identification model until the preset release condition is met to end this verification.
[0041] After S4 completes the packet dropping action, the system simultaneously initiates auditing and status quo collection while performing the blocking action. In this embodiment, the duration of the preset observation window can be determined based on the reconnection timeout period of the blocked link and the host's resource status collection period. For example, in this embodiment, the preset observation window duration can be 5 seconds, which can cover at least two reconnection timeout periods and fully collect the status changes of the host's CPU and memory.
[0042] Please see Figure 6 Based on the reconnection frequency of blocked TCP connections and the abrupt change rate of host operating status collected from the target connection fingerprint, feedback situational data is obtained, including the following steps: S511. Based on the target connection fingerprint, count the number of reconnection attempts of the blocked TCP connection within a preset observation window, and calculate the reconnection frequency; The system first subscribes to the subsequent handshake message event stream of the target connection on the blocking device side based on the target connection fingerprint, so as to continuously monitor the reconnection status of the connection. The system counts the number of TCP handshake requests initiated by the connection within a preset observation window, divides the number by the duration of the observation window, and calculates the reconnection attempt frequency of the blocked TCP connection within the observation window.
[0043] S512. Read the operating status indicators of the associated industrial control host in the preset observation window through the host agent interface, and calculate the host operating status mutation rate based on the operating status indicators; The system reads the CPU utilization and memory usage time-series data of the associated industrial control host within the same preset observation window through the host agent interface deployed on the associated industrial control host. The system calculates the change range of CPU utilization and memory usage within the current observation window and uses this change range as the abrupt change rate of the industrial control host's operating state.
[0044] S513. Summarize the reconnection frequency and the host operating status change rate to obtain feedback status data.
[0045] Specifically, the system structures and packages the calculated reconnection frequency and host operating status mutation rate into a package, and transmits them back to the security command and control system in an encrypted manner, forming feedback situational data. This data is used for subsequent dynamic adjustment and verification strategies.
[0046] While collecting feedback situational data, the system generates an execution credential based on the target connection fingerprint. This execution credential includes the original instruction's unique identifier, the target connection fingerprint, the execution action type, the execution result code, a snapshot of the TCP connection state before and after execution, the execution timestamp, and the device fingerprint. The device fingerprint is generated based on a joint digest of at least two of the following: the hardware serial number of the blocking device, the firmware hash, and the physical network interface card (NIC) address. Specifically, the read elements are sequentially concatenated into a byte stream in a fixed order, with each element separated by a single-byte delimiter. This byte stream is then processed using either the SM3 algorithm (a national cryptographic standard) or the SHA-256 algorithm, outputting a 256-bit digest value. The hexadecimal representation of this digest value is used as the device fingerprint.
[0047] Furthermore, the system concatenates the fields of the execution credential into a continuous byte stream according to a preset order. Based on a preset digest algorithm, a credential digest is calculated from this byte stream. This digest is then signed using the asymmetric signature private key embedded in the blocking device, resulting in a credential signature. The execution credential, execution timestamp, device fingerprint, and credential signature are encapsulated into a credential message and transmitted back to the credential verification unit. Simultaneously, the credential digest is appended to the blocking device's local tamper-proof log area in a chained structure, forming a credential chain, where the previous credential digest serves as a reference to the current entry. This credential chain provides a reliable basis for subsequent verification units to perform four-dimensional verification.
[0048] Please see Figure 7 The process involves updating the feature representation based on feedback situation data and returning it to the execution feature identification model until a preset release condition is met, at which point the current verification ends. This includes the following steps: S521. The feedback situation data is used as an additional feature and concatenated into the feature representation of the real-time message sequence to obtain the updated feature representation; The system extracts two values, reconnection frequency and host operating status mutation rate, from the feedback situation data, encodes them into fixed-length feature vectors, and concatenates them with the feature vectors of the real-time message sequence originally used for feature identification. This integrates external feedback information into the model input and obtains the updated feature representation.
[0049] S522. Input the updated feature representation into the feature identification model, return to the risk feature calculation step, and obtain a new link-level risk score; The system takes the updated feature representation as input, re-executes the risk feature calculation steps in S3, and outputs the updated link-level risk score for the blocked connection through the model. This score combines real-time communication status and host status, reflecting changes in the current attack situation.
[0050] S523. Count the number of times a new link-level risk score is continuously lower than a preset risk threshold; S524. When the preset number of attempts is reached, the message to disconnect the target fingerprint is discarded and the current verification ends.
[0051] Specifically, the system sets up a continuous compliance counter and an iteration count counter. Each time a new link-level risk score is acquired, it is compared with a preset risk threshold. When the score is lower than the preset risk threshold, the continuous compliance counter is incremented by 1; when the score is not lower than the preset risk threshold, the continuous compliance counter is reset to zero. Simultaneously, each time the system returns to execute the feature identification model, the iteration count counter is incremented by 1. When the system counts that the continuous compliance counter has reached a preset number of times (e.g., three consecutive times below the preset risk threshold), it determines that the risk of the blocked connection has been resolved, and the system issues a release command to the blocking device. Upon receiving this command, the blocking device removes the hook rules for the target connection fingerprint in the kernel-mode packet filtering framework, releases the packet dropping of that connection fingerprint, restores normal transmission to the blocked TCP connection, and ends the current verification. Furthermore, when the iteration count counter reaches the set upper limit and the risk score consistently fails to meet the threshold, the system proactively ends the current verification and reports the target connection fingerprint and the current feedback status data to the operations and maintenance personnel for manual intervention.
[0052] Furthermore, the intelligent verification device for power monitoring security commands provided by the present invention includes the following: The TCP connection fingerprint database determination module is used to collect the connection characteristics of all active TCP connections of the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain the TCP connection fingerprint database. The instruction link mapping determination module is used to parse the control instruction to be verified according to the TCP connection fingerprint database and bind it to the matching target connection fingerprint to obtain the instruction link mapping. The link-level risk score calculation module is used to calculate the risk features of the real-time message sequence of the bound TCP connection based on the instruction link mapping and through a preset feature identification model to obtain the link-level risk score. The link-level blocking message generation module is used to generate a link-level blocking message carrying the target connection fingerprint based on the comparison result between the link-level risk score and the preset risk threshold, and drive the blocking device to discard TCP packets that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. The iterative verification module is used to collect the reconnection frequency of blocked TCP connections and the sudden change rate of host running status based on the target connection fingerprint to obtain feedback situation data; and to update the feature representation based on the feedback situation data and return to the execution feature identification model until the preset release condition is met to end the current verification.
[0053] For specific limitations regarding the device, please refer to the limitations of the method above, which will not be repeated here. Each module in the above 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 in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0054] Furthermore, the electronic device provided by the present invention includes: Memory, used to store computer programs; A processor is used to execute computer programs to implement the intelligent verification method for power monitoring security instructions as described above.
[0055] It is understood that those skilled in the art can combine various implementation methods in the above embodiments under the guidance of the above examples to obtain technical solutions with multiple implementation methods.
[0056] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for intelligent verification of power monitoring safety commands, characterized in that, include: Collect the connection characteristics of all active TCP connections on the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain a TCP connection fingerprint database; Based on the TCP connection fingerprint database, the control command to be verified is parsed and bound to the matching target connection fingerprint to obtain the command link mapping; Based on the instruction link mapping, risk features are calculated on the real-time message sequence of the bound TCP connection using a preset feature identification model to obtain a link-level risk score. Based on the comparison result between the link-level risk score and the preset risk threshold, a link-level blocking message carrying the target connection fingerprint is generated, and the blocking device is driven to discard TCP messages that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. Based on the reconnection frequency of blocked TCP connections and the sudden change rate of host operating status collected by the target connection fingerprint, feedback situation data is obtained; and the feature representation is updated based on the feedback situation data and the feature identification model is returned to be executed until the preset release condition is met to end the current verification.
2. The intelligent verification method for power monitoring security commands according to claim 1, characterized in that, The step of parsing the control command to be verified and binding it to the matching target connection fingerprint according to the TCP connection fingerprint database to obtain the command link mapping includes: Parse the control instructions to be verified and extract the target asset identifier, operation type, and target port from the control instructions to be verified. Based on the target asset identifier, operation type, and target port, a matching candidate connection is retrieved from the TCP connection fingerprint database, and the target connection fingerprint is determined by combining the connection characteristics of the candidate connection. The control command to be verified is associated with the target connection fingerprint to obtain the command link mapping.
3. The intelligent verification method for power monitoring security commands according to claim 1, characterized in that, The preset feature recognition model includes an instruction semantic feature extraction module, an asset risk assessment module, and an event context feature extraction module; The instruction semantic feature extraction module is used to perform semantic encoding on the instruction information in the instruction link mapping to obtain instruction semantic features; The asset risk assessment module is used to quantify the risk of the target asset's attribute information to obtain the asset risk weight. The event context feature extraction module is used to aggregate features from the historical security event sequence of the target device to obtain event context features.
4. The intelligent verification method for power monitoring security commands according to claim 3, characterized in that, The step of calculating the risk characteristics of the real-time message sequence of the bound TCP connection using a preset feature identification model to obtain a link-level risk score includes: The instruction semantic features output by the instruction semantic feature extraction module, the asset risk weight output by the asset risk assessment module, the event context features output by the event context feature extraction module, and the feature vector of the real-time message sequence of the bound TCP connection are obtained. The semantic features of the instruction are weighted using the asset risk weights to obtain weighted semantic features. The weighted semantic features, the feature vector of the real-time message sequence, and the event context features are concatenated and fused to obtain the fused features; The fused features are input into the fully connected layer of the feature identification model for numerical mapping to obtain a link-level risk score.
5. The intelligent verification method for power monitoring security commands according to claim 1, characterized in that, The step of generating a link-level blocking message carrying the target connection fingerprint based on the comparison result between the link-level risk score and the preset risk threshold includes: The link-level risk score is input into a preset segmentation function to map the corresponding risk level. When the risk level is low, a link-level blocking message carrying the target connection fingerprint is generated; When the risk level is medium risk or high risk, the identification and type information of the service channels that are cut off when host-level blocking or regional network segment blocking is performed are calculated based on the target topology dependency graph simulation to obtain the service impact simulation results. When the simulation results of the service impact do not indicate that the cut-off service channel contains a critical protection tripped link, and the proportion of the number of isolated smart electronic devices to the total number of smart electronic devices in the area does not exceed a preset proportion, a host-level blocking message or a regional network segment blocking message carrying the target connection fingerprint is generated on the basis of the link-level blocking message according to the risk level; wherein, when the risk level is medium risk, the host-level blocking message is generated, and when the risk level is high risk, the regional network segment blocking message is generated. When the simulation results of the service impact indicate that the cut-off service channel contains a critical protection tripped link, the issuance of the host-level blocking message or the regional network segment blocking message is cancelled, and only the link-level blocking message is retained; when the number of isolated smart electronic devices accounts for more than the preset percentage of the total number of smart electronic devices in the area, automatic issuance is suspended and manual review is initiated.
6. The intelligent verification method for power monitoring security commands according to claim 5, characterized in that, The drive blocking device discards TCP packets that match the target connection fingerprint, ensuring that the remaining unmatched TCP connections are not interrupted, including: The link-level blocking message is sent to a preset blocking device, which then parses the link-level blocking message and extracts the target connection fingerprint. Based on the target connection fingerprint, a matching rule is created in the kernel-mode packet filtering framework; Using the matching rules, TCP packets that match the target connection fingerprint entering the industrial control host are discarded, while the remaining TCP packets that do not match the target connection fingerprint are allowed to be transmitted normally.
7. The intelligent verification method for power monitoring security commands according to claim 1, characterized in that, The process of collecting the reconnection frequency of blocked TCP connections and the abrupt change rate of host operating status based on the target connection fingerprint to obtain feedback situational data includes: Based on the target connection fingerprint, the number of reconnection attempts for the blocked TCP connection is counted within a preset observation window, and the reconnection frequency is calculated. The host agent interface is used to read the operating status indicators of the associated industrial control host in the preset observation window, and the host operating status mutation rate is calculated based on the operating status indicators. The reconnection frequency and the host operating status mutation rate are combined to obtain feedback status data.
8. The intelligent verification method for power monitoring security commands according to claim 7, characterized in that, The step of updating the feature representation based on the feedback situation data and returning to execute the feature identification model until the preset release condition is met to end the current verification includes: The feedback situation data is used as an additional feature and concatenated into the feature representation of the real-time message sequence to obtain the updated feature representation. The updated feature representation is input into the feature identification model, and the risk feature calculation step is returned to obtain a new link-level risk score. The number of times the new link-level risk score is continuously lower than the preset risk threshold is counted; When the number of attempts reaches the preset number, the message to disconnect the target fingerprint is discarded and the verification ends.
9. A smart verification device for power monitoring safety commands, characterized in that, The intelligent verification method for power monitoring security commands according to any one of claims 1 to 8 includes: The TCP connection fingerprint database determination module is used to collect the connection characteristics of all active TCP connections of the industrial control host, generate a unique connection fingerprint for each active TCP connection, and obtain the TCP connection fingerprint database. The instruction link mapping determination module is used to parse the control instruction to be verified according to the TCP connection fingerprint database and bind it to the matching target connection fingerprint to obtain the instruction link mapping. The link-level risk score calculation module is used to calculate the risk features of the real-time message sequence of the bound TCP connection based on the instruction link mapping and through a preset feature identification model to obtain the link-level risk score. The link-level blocking message generation module is used to generate a link-level blocking message carrying the target connection fingerprint based on the comparison result between the link-level risk score and the preset risk threshold, and drive the blocking device to discard TCP messages that match the target connection fingerprint, so that the remaining unmatched TCP connections are not interrupted. The iterative verification module is used to collect the reconnection frequency of blocked TCP connections and the sudden change rate of host running status based on the target connection fingerprint to obtain feedback situation data; and to update the feature representation based on the feedback situation data and return to execute the feature identification model until the preset release condition is met to end the current verification.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing a computer program to implement the intelligent verification method for power monitoring security instructions as described in any one of claims 1 to 8.
