An industrial control security simulation method and system based on real attack traffic and attack links
By parsing and calibrating real attack PCAP messages and source process states, a target process state calibration execution sequence is formed, which solves the problem of distortion of the physical consequences of attack messages in the target environment and achieves accuracy and consistency in attack chain simulation.
Patent Information
- Application Number
- CN202611386854.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot guarantee that attack packets will produce the same physical consequences in the target environment when migrating real attack traffic to another set of target environment processes, resulting in a complete attack chain but distorted physical consequences.
By analyzing real attack PCAP messages and source process states, a source attack message process action alignment record set is formed. The process state prerequisites of the attack message are extracted, and the target simulation running state is compared and calibrated one by one to form a target process state calibration execution sequence. This controls the pre-replay state calibration and message triggering timing of the target industrial control simulation environment.
Ensuring that the network layer attack chain sequence is consistent with the physical layer response acceptance relationship reduces the situation where the message syntax can be replayed but the target physical state does not accept the attack consequences, thus improving the accuracy of attack chain simulation.
Smart Images

Figure CN123137280A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial control system security simulation technology, and in particular to an industrial control security simulation method and system based on real attack traffic and attack links. Background Technology
[0002] Industrial control systems are widely used in energy, power, petrochemical, water, and smart manufacturing scenarios. Cyberattacks targeting PLCs, DCSs, RTUs, HMIs, engineering workstations, or field control loops can cause communication interruptions, control logic tampering, valve malfunctions, abnormal pump start / stop, uncontrolled liquid levels and pressures, and disruptions to the production process. To reproduce the attack chain, assess the attack impact, and verify protective measures in a secure and controllable environment, engineering practice often involves importing real attack PCAP packets into a network range or hardware-in-the-loop simulation environment for playback.
[0003] Existing attack traffic replay methods primarily focus on maintaining consistency in message syntax, industrial control protocol type, source and destination addresses, function codes, register addresses, written values, timestamps, and the order of attack stages. While these methods can reproduce the attack chain sequence at the network communication level, whether the attack messages produce the same physical consequences on the industrial control object often depends on process conditions such as valve opening, pump start / stop status, control loop mode, setpoint status, upstream and downstream liquid level, pressure, and flow status, and the equipment's operating stage.
[0004] When real attack traffic migrates to another set of target environment processes, the target environment's topology, interlocking conditions, security boundaries, and current operating state may differ from the source real scenario. Even if the PCAP messages, protocol fields, and attack chain timing remain consistent, if the target object's current process state cannot accommodate the physical triggering conditions of the corresponding attack message in the source scenario, the same message may be canceled by control logic, weakened by process constraints, or act on different physical processes, resulting in a complete attack chain but distorted physical consequences. Therefore, an industrial control security simulation scheme is needed that can automatically characterize, determine, and calibrate the process state prerequisites required for attack messages before real attack traffic is replayed. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention provides an industrial control system security simulation method based on real attack traffic and attack chains, comprising:
[0006] S1, parses and aligns the real attack PCAP message, the synchronously collected source process status record, the source PLC register read and write log, the source attack stage annotation, and the target point table topology configuration to form a source attack message process action alignment record set;
[0007] S2, perform causal filtering and process state premise extraction on the alignment record set of process effects of the source attack message to form a process state premise profile sequence of the attack message.
[0008] S3, compare and constrain the attack message process state prerequisite profile sequence with the target simulation running state one by one to form the target process state calibration execution sequence;
[0009] S4, based on the target process state calibration execution sequence control, performs pre-replay state calibration and message triggering timing of the target industrial control simulation environment to form the attack chain simulation result calibrated by the process premise.
[0010] Further, step S1 includes:
[0011] S11, parse the communication timestamp, industrial control protocol type, function code, register address, written value and source and destination address in the real attack PCAP message to form a source attack message field parsing record;
[0012] S12, based on the source attack message field parsing record, source PLC register read and write log, source attack stage mark, source valve opening record, source pump start and stop record, source control loop set value record, source liquid level, pressure and flow sampling record, and target point table topology configuration, form the source attack message process status association record;
[0013] S13, summarize the message fields, register read / write status, attack stage identifier, valve opening status, pump start / stop status, control loop set value status, liquid level, pressure, flow sampling status and object point mapping relationship in the process status association record of the source attack message, and form the process action alignment record set of the source attack message.
[0014] Further, step S2 includes:
[0015] S21. Based on the object location mapping relationship and the time proximity relationship before the occurrence of the source side physical response, extract valve opening range, pump operating status, control loop mode, set value status, upstream and downstream liquid level, pressure and flow status and stable state fragments of equipment operation stage from the source attack message process action alignment record set to form attack message candidate process state prerequisite record.
[0016] S22, based on the attack phase identifier, register read / write status and source-side physical response change direction, performs response before and after difference verification, point topology transfer verification and operating condition consistency verification on the synchronization status item in the candidate process status prerequisite record of the attack message, forming a process status prerequisite profile sequence of the attack message.
[0017] Further, step S3 includes:
[0018] S31, map the necessary state items, allowable deviation items and prohibited state items in the process state prerequisite profile sequence of the attack message to the current valve opening, pump start / stop status, control loop mode, set value, liquid level, pressure and flow status and equipment operation stage in the target simulation running state, respectively, to form a target message-level process prerequisite matching record set;
[0019] S32, based on the target message-level process prerequisite matching record set, target process topology constraints, interlock constraints and equipment safety boundaries, determines the reachable, interlock-permitted, safety boundary-within-reversible valve adjustment, pump start / stop, control loop mode switching and setpoint preset actions, forming the target process state calibration execution sequence.
[0020] Further, step S4 includes:
[0021] S41, Perform calibration actions for the target valves, pumps, control loops and equipment operation stages in sequence according to the target process state calibration execution sequence, and record the target message-level calibration completion status record;
[0022] S42, after the calibration completion status corresponding to each attack message is satisfied, the real attack PCAP message is replayed according to the original attack chain time relationship, and the target liquid level, pressure and flow status, equipment status and control loop response are collected to form the attack chain simulation result calibrated by the process premise.
[0023] Further, step S21 includes:
[0024] S211, based on the attack message communication timestamp, the time boundary after the previous attack message completed the state interception before the response was completed, and the time when the source side physical response appeared, determine the response time proximity range used to extract the process state premise before the trigger;
[0025] S212, within the time range adjacent to the response time, determine the valve opening stable state segment, pump operation stable state segment, control loop mode stable state segment, set value stable state segment, upstream and downstream liquid level, pressure and flow stable state segment and equipment operation stage stable state segment respectively.
[0026] S213, the stable state segments corresponding to the same attack message are collected at the message level according to the attack message identifier to form a prerequisite record of the candidate process state of the attack message.
[0027] Further, step S22 includes:
[0028] S221, based on the valid sampled value at the end of the steady state segment before the response and the first valid sampled value after the physical response of the source side, determine the direction of the continuous quantity state change, and determine the reference for the discrete device state change based on whether the state category is switched before and after the response.
[0029] S222, according to the object point mapping relationship, mark the synchronization state items that are in the object itself, the direct upstream, the direct downstream or the same control loop closed loop as transitive state items, and remove non-transferable state items.
[0030] S223, based on the working condition consistency relationship between the state value, state range or state category of the transferable state item and the direction of change of the source-side physical response, the reserved state item is marked as a necessary state item, an allowable deviation item or a prohibited state item.
[0031] Further, step S31 includes:
[0032] S311, according to the object point mapping relationship, map the state item points in the attack message process state prerequisite profile sequence to the same type of process object points in the target simulation running state;
[0033] S312, perform a satisfaction judgment on whether the current state of the target falls into the necessary state interval or target category for necessary state items, perform a deviation judgment on whether the current state of the target falls into the allowable deviation interval for allowable deviation items, and perform a conflict judgment on whether the current state of the target triggers the prohibited state value or prohibited state interval for prohibited state items.
[0034] S313, Generate a target message-level process prerequisite matching record set according to satisfying relationship, deviation relationship and prohibited conflict relationship.
[0035] Further, step S32 includes:
[0036] S321. Based on the status type of the item to be calibrated, the target point identifier, the current status value or current status category, the desired range or desired category, the deviation direction, the prohibited status value or prohibited status range, and the corresponding response direction, determine the candidate calibration action.
[0037] S322, perform topology reachability check, interlock constraint check, equipment safety boundary check and reversible recovery relationship confirmation sequentially for candidate calibration actions;
[0038] S323, according to the attack message order, prerequisite dependencies and reversible recovery relationships, reconstructs the candidate calibration actions confirmed by topology reachability verification, interlock constraint verification, equipment security boundary verification and reversible recovery relationships to form the target process state calibration execution sequence.
[0039] This invention also provides a system for industrial control system security simulation based on real attack traffic and attack chains, including a message process action alignment unit, a state prerequisite profile generation unit, a target state calibration sequence generation unit, and an attack chain simulation execution unit. The message process action alignment unit parses and aligns real attack PCAP messages, synchronously collected source process state records, source PLC register read / write logs, source attack phase annotations, and target point table topology configuration to form a source attack message process action alignment record set. The state prerequisite profile generation unit performs causal filtering and process state prerequisite extraction on the source attack message process action alignment record set to form an attack message process state prerequisite profile sequence. The target state calibration sequence generation unit compares and calibrates the attack message process state prerequisite profile sequence with the target simulation running state line by line to form a target process state calibration execution sequence. The attack chain simulation execution unit controls the pre-replay state calibration and message triggering timing of the target industrial control simulation environment based on the target process state calibration execution sequence to form an attack chain simulation result calibrated by process prerequisites.
[0040] Compared to existing technologies, this invention organizes the actual attack messages, source-side process state changes, and target object mapping relationships into a unified record structure. It extracts necessary state items, permissible deviation items, and prohibited state items at the message granularity, and generates a calibration execution sequence in the target environment based on topology, interlocking, security boundaries, and reversible recovery relationships. Therefore, attack messages are no longer mechanically replayed according to communication timestamps, but are triggered only after the target process prerequisites are met. This ensures that the network layer attack chain sequence and the physical layer response acceptance relationship remain consistent, reducing situations where the message syntax is replayable but the target physical state does not accept the attack consequences. Attached Figure Description
[0041] Figure 1 The flowchart shows an industrial control system security simulation method based on real attack traffic and attack links according to an embodiment of this application.
[0042] Figure 2 This is a schematic diagram illustrating the alignment of source-side packets and process responses in an industrial control security simulation method based on real attack traffic and attack links, according to an embodiment of this application.
[0043] Figure 3 This is a structural diagram of an industrial control security simulation system based on real attack traffic and attack links, according to an embodiment of this application. Detailed Implementation
[0044] The present invention will be further described below with reference to specific embodiments. These specific embodiments are only for explaining the present invention and do not limit the scope of protection of the present invention.
[0045] In one specific embodiment, such as Figure 1As shown, the industrial control security simulation method based on real attack traffic and attack links is executed according to steps S1 to S4.
[0046] Further, step S1 includes:
[0047] S11, parse the communication timestamp, industrial control protocol type, function code, register address, written value and source and destination address in the real attack PCAP message to form a source attack message field parsing record.
[0048] Specifically, after acquiring the actual attack PCAP messages, the message frame structure and protocol payload are parsed according to pre-stored industrial control protocol parsing rules to determine the communication timestamp, industrial control protocol type, function code, register address, written value, and source and destination addresses of each attack message. The parsed fields are grouped into source attack message field parsing records according to the attack message identifier, enabling the location of register read / write actions, message targets, and attack phase contexts at the same message granularity when subsequently associating source-side process states.
[0049] In a specific example, the actual attack PCAP message is an attack chain flow file collected from a water treatment simulation process unit. This PCAP message includes multiple industrial control communication messages pointing to the PLC controller. The source address of each message is the address of the first network node, and the destination address is the address of the PLC controller. After reading the PCAP message, the system parses it according to the hierarchical order of Ethernet frames, IP packets, transport layer packets, and industrial control protocol payloads, and identifies the Modbus / TCP messages based on pre-stored industrial control protocol parsing rules. For example, for the attack message identified as P001, the system parses it to obtain a communication timestamp of T001, an industrial control protocol type of Modbus / TCP, a source address of A1, a destination address of B1, a function code of write single register function code, a register address of R101, and a write value of V101. For the attack message identified as P002, the system parses it to obtain a communication timestamp of T002, an industrial control protocol type of Modbus / TCP, a source address of A1, a destination address of B1, a function code of write multiple registers, a register address range of R102 to R104, and a set of write values of V102, V103, and V104. The system then writes the communication timestamp, industrial control protocol type, function code, register address, write values, and source and destination addresses into the fields corresponding to the attack message identifier, forming a source attack message field parsing record.
[0050] The source attack message field parsing record can include attack message identifier, original message sequence number, communication timestamp, source address, destination address, industrial control protocol type, function code, register address, written value, payload length, and parsing status identifier. The parsing status identifier indicates whether the message was successfully identified as a preset industrial control protocol message. When the message contains non-industrial control protocol payloads, missing fields, or fails verification, the system retains the corresponding original message sequence number and communication timestamp, and marks the message as having missing fields or an unconfirmed protocol status.
[0051] S12, based on the source attack message field parsing record, source PLC register read / write log, source attack stage annotation, source valve opening record, source pump start / stop record, source control loop set value record, source liquid level, pressure and flow sampling record, and target point table topology configuration, form a source attack message process status association record.
[0052] Specifically, based on the communication timestamp and register address in the parsed records of the source attack message, combined with a pre-set time proximity window and target point table topology configuration, time relationship verification and object point relationship verification are performed on the source PLC register read / write logs, source attack phase annotations, source valve opening records, source pump start / stop records, source control loop setpoint records, and source liquid level, pressure, and flow sampling records. Time relationship verification confirms whether the source-side logs or sampling status fall within the adjacent time period of the corresponding attack message, while object point relationship verification confirms whether there is a topology or control object mapping between register points and valve, pump, control loop, setpoint, liquid level, pressure, or flow points. Through this joint verification of time relationship and object point relationship, a process status association record for the source attack message is formed.
[0053] In a specific example, the source attack message field parsing record includes attack message P003. This attack message has a communication timestamp of T003, an industrial control protocol type of Modbus / TCP, a function code of write single register, a register address of R201, a write value of 80, a source address of A1, and a destination address of B1. The system first queries the target point table topology configuration based on register address R201 to determine that the source-side process point corresponding to R201 is the opening command point of valve FV-101, and the object mapped to it in the target simulation environment is the opening command point of target valve TV-201.
[0054] When verifying the relationship between object points, the system does not only associate them based on similar timestamps, but also further verifies the object relationship between R201 and each process status point. If the target point table topology configuration records that R201 belongs to valve FV-101, FV-101 is located downstream of inlet pump P-101 and on the inlet pipeline of reaction tank T-101, and the opening feedback point of FV-101 is FV-101-POS, and the control loop it belongs to is FIC-101, then the system will mark the source valve opening record corresponding to FV-101-POS as the status item of this object, mark the source pump start / stop record corresponding to P-101 as the direct upstream status item, mark the set value record of FIC-101 as the status item of the same control loop, and mark the liquid level sampling point LT-101, inlet flow sampling point FT-101, and inlet pressure sampling point PT-101 of T-101 as liquid level, flow, and pressure status items that have a topology transmission relationship with the attack message.
[0055] For example, within the time window before and after T003, the source PLC register read / write log shows that R201 was written with the value 80; the source valve opening record shows that FV-101-POS changed from 30% to 80%; the source pump start / stop record shows that P-101 is in operation; the source control loop setpoint record shows that the flow setpoint of FIC-101 remains at S101; and the source liquid level, pressure, and flow sampling record shows that LT-101, FT-101, and PT-101 each have valid sampled values. Since the above points are all within the same object, directly upstream, directly downstream, or within the same control loop as the valve FV-101 corresponding to register R201, the system determines that these points are checked against the object point relationship and writes them into the source attack message process status association record of attack message P003.
[0056] Conversely, if at the same time, another reaction vessel T-302's level sampling point LT-302 fluctuates within a neighboring window, but LT-302 and FV-101 do not belong to the same equipment object, upstream / downstream pipeline, or control loop in the target point table topology configuration, and there is no object mapping relationship from R201 to LT-302, then the system will mark LT-302 as an unassociatable point. Even if this point is close in time to the attack message P003, it will not be written into the process status association record of the source attack message of P003, avoiding the erroneous attribution of unrelated process fluctuations to the attack message.
[0057] S13, summarize the message fields, register read / write status, attack stage identifier, valve opening status, pump start / stop status, control loop set value status, liquid level, pressure, flow sampling status and object point mapping relationship in the process status association record of the source attack message, and form the process action alignment record set of the source attack message.
[0058] Specifically, the message fields, register read / write status, attack phase identifier, valve opening status, pump start / stop status, control loop setpoint status, liquid level, pressure, and flow sampling status, and object point mapping relationships in the source attack message process state association record are arranged in chronological order of the attack message, and missing item identifiers are retained in the same record structure. The resulting source attack message process action alignment record set binds the actual message with the source-side process state changes, and can transmit message fields, source-side process state, source-side physical response, and target object mapping relationships, avoiding the inability to locate the process object affected by the message and its source-side physical response simply by rearranging the attack traffic according to the message timestamp.
[0059] Further, step S2 includes:
[0060] S21. Based on the object location mapping relationship and the time proximity relationship before the occurrence of the source side physical response, extract valve opening range, pump operating status, control loop mode, set value status, upstream and downstream liquid level, pressure and flow status and stable state fragments of equipment operation stage from the source attack message process action alignment record set to form attack message candidate process state prerequisite record.
[0061] Specifically, the source attack message process action alignment record set enters the message-level state prerequisite extraction process in the order of attack message time. Each alignment record carries a communication timestamp, industrial control protocol type, function code, register address, written value, source and destination addresses, register read / write status, attack stage identifier, valve opening status, pump start / stop status, control loop setpoint status, liquid level, pressure, and flow sampling status, and object point mapping relationship. For any attack message, the register point directly affected by the attack message and its corresponding process object are first determined by the object point mapping relationship. Then, valve points, pump points, control loop points, setpoint points, liquid level points, pressure points, and flow points adjacent to or upstream / downstream of the process object are selected along the mapping relationship. Continuous quantity states are represented by a sampling sequence consisting of timestamp, point identifier, and value. Discrete quantity states are represented by a state sequence consisting of timestamp, point identifier, and state category. Missing items use the missing item identifier from the source attack message process action alignment record set, so that subsequent stable segment determination can distinguish between two situations: the state is indeed not satisfied and the state was not collected.
[0062] Based on the attack message communication timestamp, the time boundary after the previous attack message's response state was captured, and the time of the source-side physical response, a pre-response time proximity range is determined to capture the pre-trigger process state. This pre-response time proximity range is jointly constrained by a preset window before the attack message, the capture boundary corresponding to the previous attack message, and the source-side physical response confirmation boundary, excluding the transition period from the attack message's transmission to the response's occurrence. This time range is only used to extract the stable operating conditions before the response and does not change the original timestamp and value in the source attack message's process action alignment record set.
[0063] The formula for calculating the time range of a steady-state segment is:
[0064]
[0065] in, Indicates the first The attack message is used to extract the immediate vicinity of the response time prior to the triggering of the process state. Indicates the first The communication timestamp of the attack message, This indicates the pre-defined window length for the time proximity to the response. This indicates the time boundary after the previous attack message completes its response state interception. This indicates the time of response occurrence determined by the source-side physical response confirmation rules. This excludes the transition period between the sending of the attack message and the occurrence of the response. If the current attack message does not have a previous boundary, The start time of the alignment record set is determined by the source attack message's processing technique; if the response time is not acknowledged, It is determined by the upper limit of the preset time range.
[0066] Within the immediate vicinity of the response time, valve opening status is sampled at valve locations. A stable valve opening state segment is defined when continuous sampled values fluctuate within a preset valve opening stability deviation range and the duration meets a preset minimum stable duration. The opening range of a stable valve opening state segment is determined by the minimum and maximum opening values within that segment. If a missing item is identified within the segment, the already collected opening values form the opening range, and a missing item identifier is appended. Pump operation status and control loop mode are located at the corresponding pump and control loop locations according to the object location mapping relationship, and the status categories are checked for continuity within the immediate vicinity of the response time. When a status switch occurs, the last continuously maintained status segment before the attack message communication timestamp is selected, and the switching boundary is recorded. Setpoint status is extracted from the control loop setpoint locations. A stable setpoint state segment is defined when continuous setpoints remain unchanged or fluctuations do not exceed a preset setpoint stability deviation range. The upstream and downstream liquid levels, pressures, and flow rates are each sampled according to their respective sampling fields, and stable sampling segments are found within the time range adjacent to the response time. The stable range is formed by the minimum and maximum values among the effective sampled values, while maintaining the original sampling dimensions.
[0067] The formula for calculating the range of upstream and downstream liquid level, pressure, and flow rate steady-state segments is as follows:
[0068]
[0069] in, Indicates the first Attack packets at the location The stable range of continuous quantities on the above Indicates point At any moment The liquid level, pressure, or flow rate sampling values, This indicates the immediate vicinity of the response time preceding the attack message; liquid level, pressure, and flow rate are calculated separately according to their respective sampling fields, and the resulting range retains the original sampling dimensions. If the point... exist If a missing item exists, the range is calculated using the valid sample values, and a missing item identifier is appended. If the valid sample values are insufficient to form a range, the continuous stable range of that point is marked as missing. This range value, along with the upstream and downstream attributes of the point and the start and end times of the segment, is written into the candidate record to represent the state of the surrounding process medium of the target object before the attack message is triggered.
[0070] After identifying various stable state segments, the valve opening range, pump operating status, control loop mode, setpoint status, upstream and downstream liquid level, pressure, flow rate status, and equipment operating stage corresponding to the same attack message are aggregated at the message level according to the attack message identifier. The aggregated attack message candidate process state prerequisite record includes the attack message timestamp, industrial control protocol type, function code, register address, written value, source and destination addresses, object point mapping relationship, point identifier of each stable state segment, segment start and end time, state value or state range, missing item identifier, and the time when the source-side physical response occurs. This candidate record binds the actual attack message to the valve, pump, control loop, setpoint, upstream and downstream liquid level, pressure, flow rate, and equipment operating stage conditions before its triggering, providing a structured basis for subsequently eliminating state items without causal correlation and retaining necessary state items, allowable deviation items, and prohibited state items.
[0071] S22, based on the attack phase identifier, register read / write status and source-side physical response change direction, performs response before and after difference verification, point topology transfer verification and operating condition consistency verification on the synchronization status item in the candidate process status prerequisite record of the attack message, forming a process status prerequisite profile sequence of the attack message.
[0072] Specifically, when candidate process state records of attack messages enter the causal filtering process, each candidate record has already collected the attack stage identifier, industrial control protocol type, function code, register address, written value, register read / write status, object point mapping relationship, source-side physical response occurrence time, valve opening range, pump operating status, control loop mode, setpoint status, upstream and downstream liquid level, pressure, and flow status, and equipment operating stage. For each synchronous state item corresponding to the same attack message, a set of state items to be verified is established according to the point identifier, state type, segment start and end time, state value or state range, and missing item identifier. In order to perform causal filtering between synchronous state items and source-side physical responses, the direction of change of liquid level, pressure, flow, or equipment status before and after the occurrence time of the source-side physical response is determined as the response direction reference for this attack message.
[0073] When performing pre- and post-response difference verification on continuous quantity synchronization state items, the valid sampled value at the end of the stable state segment before the response is compared with the first valid sampled value after the occurrence of the source-side physical response. The comparison result is determined as the direction of continuous quantity state change, which is used to subsequently determine whether there is a consistent, opposite, or unrelated change succession relationship between the synchronization state item and the source-side physical response. The direction of continuous quantity state change is marked with three categories: increase, stability, or decrease. When a valid sampled value is missing before or after the response, the corresponding state item is set to an unconfirmed state and carries a missing item identifier for subsequent verification. When performing pre- and post-response difference verification on discrete device states, the state category maintained before the response is compared with the first valid state category after the response occurs. If the categories are the same before and after the response, it is recorded as no device state change; if the categories are different before and after the response, it is recorded as a device state change, and the categories before and after the switch are retained.
[0074] The formula for calculating the direction of change of a continuous quantity is:
[0075]
[0076] in, Indicates the first Attack packets at the location The direction of change of a continuous quantity is indicated by discrete direction markers, which take values of increasing, stable, or decreasing. This is the valid sampled value at this point at the end of the steady-state segment before the response. It is the first valid sampled value after the occurrence of the physical response on the source side, and both retain the original dimensions of liquid level, pressure or flow rate; This is a preset sampling change threshold for that point, used to eliminate the influence of sampling jitter on the determination of the change direction.
[0077] After verifying the differences before and after the response, a point topology transfer verification is performed on the status items to be verified. In the object point mapping relationship, the process object corresponding to the register point directly affected by the attack message is identified as the affected object. Status items within the affected object itself, its direct upstream, direct downstream, or the same control loop closed loop are marked as transferable status items. Status items that do not have a defined object point mapping relationship with the affected object, or that only appear at the same time as the attack phase label but do not correspond to the affected object, upstream / downstream object, or control loop object, are marked as non-transferable status items. Non-transferable status items cannot explain the changes in liquid level, pressure, flow rate, or equipment status caused by the affected object of the attack message; therefore, they are removed from the set of status items to be verified, forming the first set of retained status items consisting of transferable status items.
[0078] The first set of reserved state items continues to undergo operational consistency verification. During verification, the attack phase identifier, register read / write status, function code, register address, and written value are used as limiting conditions for the message's action mode. The state value, state range, or state category of each transitible state item is checked against the direction of change in the source-side physical response. For continuous quantity synchronization state items, the verification results are divided into direction-consistent, direction-opposite, and direction-independent categories based on whether the interval in which the state item is located can support the current response direction. For discrete quantity synchronization state items, the verification results are divided into state-allowed, state-blocked, and state-independent categories based on whether the state category allows, blocks, or does not affect the current response. State items that are direction-independent or state-independent are removed from the first set of reserved state items; state items that are direction-consistent or state-allowed enter constraint marking processing; state items that are direction-opposite or state-blocked are not directly retained as satisfyable prerequisites but are transformed into candidate content for prohibited state items.
[0079] In constraint marking processing, reserved state items that, if missing, would block the source-side physical response or prevent the message's written value from acting on the target point are marked as necessary state items; state items that deviate but are still allowed to produce the same response under the same physical response direction are marked as permissible deviation items; and state items that, if present, would cancel, change, or block the source-side physical response are marked as prohibited state items. Necessary state items, permissible deviation items, and prohibited state items are all formed by the aforementioned response before-and-after difference verification, point topology transfer verification, and operational condition consistency verification, and are used for subsequent satisfaction judgment, deviation judgment, and conflict judgment in the target environment, respectively. The resulting attack message process state prerequisite profile sequence expands each attack message from a network layer message into a portable attack unit containing necessary process state prerequisites, permissible deviation boundaries, and prohibited conflict conditions, reducing the interference of synchronously acquired states on the physical interaction relationship of the attack message.
[0080] The boundaries of permissible deviation items are determined according to the type of state item. When valve opening, setpoint, liquid level, pressure, and flow rate are in continuous or quasi-continuous states, the permissible deviation range is formed by superimposing the minimum and maximum values of the stable segments in the candidate records with the corresponding preset stable deviation range. The calculation formula is as follows:
[0081]
[0082] in, Indicates the first Status item corresponding to each attack message The allowable deviation range; and These are the lower and upper boundaries of the state item in the steady state segment before the response, respectively, taken from the valve opening range, the set value state range, or the stable range of liquid level, pressure, and flow. State item The corresponding preset stable deviation range maintains the original physical dimensions for continuous quantities. This range is only used to determine whether similar states in the target environment can still produce the same response direction, without changing the original stable segment boundaries in the candidate records.
[0083] Further, step S3 includes:
[0084] S31, map the necessary state items, allowable deviation items and prohibited state items in the attack message process state prerequisite profile sequence to the current valve opening, pump start / stop status, control loop mode, set value, liquid level, pressure and flow status and equipment operation stage in the target simulation running state, respectively, to form a target message-level process prerequisite matching record set.
[0085] Specifically, the attack message process state prerequisite profile sequence enters the target process prerequisite matching process according to the original attack message time sequence. Each profile record includes communication timestamp, industrial control protocol type, function code, register address, written value, source and destination addresses, attack stage identifier, register read / write status, object point mapping relationship, source-side physical response change direction, necessary status items, allowable deviation items, and prohibited status items. The target simulation running state maintains the current valve opening, pump start / stop status, control loop mode, setpoint, liquid level, pressure, flow rate status, and equipment operating stage according to the target point identifier in the target point table topology configuration. For any profile record, the status items in the source profile are first mapped to the same type of process object in the target simulation operation state according to the object point mapping relationship. This ensures that necessary status items, allowable deviation items, and prohibited status items correspond to the target valve point, target pump point, target control loop point, target setpoint point, target liquid point point, target pressure point, target flow point, and target equipment operation stage point, respectively. Status items that cannot be mapped to the target point are retained as unmatched items and written into the message-level temporary matching result along with the corresponding attack message identifier.
[0086] After completing the point mapping, a satisfaction check is performed on the necessary state items. For continuous necessary state items, the current target value is compared with the target interval corresponding to the source-side necessary state item. If the current target value falls into the necessary state interval, it is marked as prerequisite satisfied; otherwise, it is marked as necessary state unsatisfied. For discrete necessary state items, the current target state category is compared with the target category of the source-side necessary state item. If they match, it is marked as prerequisite satisfied; otherwise, it is marked as necessary state unsatisfied. When performing deviation checks on allowable deviation items, the current target value or current target state category is compared with the allowable deviation interval or allowable deviation category set. If it is within the allowable deviation boundary, it is recorded as acceptable deviation; otherwise, it is recorded as out-of-bounds deviation. When performing conflict checks on prohibited state items, if the current target state triggers a prohibited state value, prohibited state category, or prohibited state interval, it is recorded as prohibited conflict; otherwise, it is recorded as no prohibited conflict.
[0087] The formula for calculating the necessary continuous quantities satisfying the relationship is:
[0088]
[0089] in, Indicates the first Each attack message corresponds to a necessary continuous quantity state item The satisfaction flag in the target simulation runtime has a value of [value]. Time indicates that the condition is met, and the value is [value]. When this condition is not met and a deviation relationship is formed, the value is [value to be filled in]. The time indicates that the current state of the target is missing; This represents the current continuous value of the target located by the object point mapping relationship, taken from the corresponding field in the target valve opening, set value, liquid level, pressure or flow status; This indicates the necessary status items in the portrait record. The necessary state interval.
[0090] The formula for calculating the matching relationship of continuous allowable deviation is:
[0091]
[0092] in, Indicates the first The attack message corresponds to the allowable deviation continuous quantity status item. The deviation marker, with a value of This indicates that the current value of the target is within the allowable deviation range, and its value is... This indicates that the current value of the target exceeds the allowable deviation range and forms a deviation relationship; the value is [value to be filled in]. The time indicates that the current state of the target is missing; This indicates the allowable deviation items in the portrait record. Within the allowable deviation range, the valve opening, set value, liquid level, pressure, or flow rate should maintain their original dimensions.
[0093] The formula for calculating the conflict relationship of prohibited continuous quantities is:
[0094]
[0095] in, Indicates the first The attack message corresponds to the prohibited continuous quantity status item. The conflict flag in the target simulation runtime has a value of The time indicates the existence of a prohibited conflict, and the value is [value]. When the time indicates that the prohibited state has not been triggered, the value is: The missing information indicates that the conflicting relationship was not confirmed; This indicates prohibited items in the portrait record. The prohibited state intervals retain their original dimensions according to the corresponding state type. For discrete state items, pump start / stop states, control loop modes, and equipment operation stages are compared for consistency according to necessary categories, allowed category sets, or prohibited category sets, and missing or unmatched items are retained.
[0096] All necessary state item satisfaction relationships, allowable deviation item deviation relationships, and prohibited state item conflict relationships under the same attack message are aggregated at the message level. When all necessary state items are satisfied and there are no prohibited conflicts, the message-level comprehensive matching relationship is recorded as premise satisfaction; when necessary state items are not satisfied or allowable deviations exceed limits and prohibited state items are not triggered, it is recorded as premise deviation; when prohibited state item conflicts exist, it is recorded as prohibited conflict; when there are missing or unmatched items, the corresponding missing or unmatched details are recorded. The generated target message-level process premise matching record set retains the state item position, current value, expected range, missing items, and response direction, so that subsequent calibration actions are formed based on the actual deviation or conflict state, rather than a general initialization of the target industrial control simulation environment.
[0097] S32, based on the target message-level process prerequisite matching record set, target process topology constraints, interlock constraints and equipment safety boundaries, determines the reachable, interlock-permitted, safety boundary-within-reversible valve adjustment, pump start / stop, control loop mode switching and setpoint preset actions, forming the target process state calibration execution sequence.
[0098] Specifically, when the message-level comprehensive matching relationship in the target message-level process prerequisite matching record set enters the calibration action determination process, each matching record includes the attack message identifier, communication timestamp, industrial control protocol type, function code, register address, written value, source and destination addresses, attack stage identifier, register read / write status, object point mapping relationship, source-side physical response change direction, necessary state item satisfaction details, allowable deviation item deviation details, prohibited state item conflict details, missing item identifier, target current state snapshot, and comprehensive matching conclusion. For attack messages whose comprehensive matching conclusion is prerequisite satisfaction, the target current state snapshot of the corresponding record is maintained, and no ordinary calibration action is formed; for attack messages whose comprehensive matching conclusion is prerequisite deviation or prohibited conflict, items to be calibrated are extracted from the necessary state item non-satisfaction details, allowable deviation item deviation details, and prohibited state item conflict details, and candidate calibration actions are determined according to the status type, target point identifier, current status value or current status category, expected range or expected category, deviation direction, prohibited status value or prohibited status range, and corresponding response direction of the items to be calibrated.
[0099] Once candidate calibration actions are determined, a topology reachability check is performed on them according to the target process topology constraints. The target process topology constraints represent the physical connections, upstream and downstream directions, and relationships between controlled objects and target valves, pumps, control loops, setpoints, and level, pressure, and flow points. The connection relationship between the target point affected by the candidate calibration action and the target of the attack message is checked along the target process topology. If the action can be transmitted upstream, downstream, or through a closed loop within the same control loop to the target of the attack message, a topology reachability flag is generated; if a connection relationship is missing or the transmission path is blocked by a known topology breakpoint, a topology unreachability flag is generated. Candidate actions that are topology unreachable do not enter the interlock constraint check.
[0100] The formula for calculating topological reachability markers is:
[0101]
[0102] in, Indicates the first The attack message corresponds to the candidate calibration action The topological reachability flag, with a value of This indicates that the candidate action can be propagated along the target process topology constraints to the target object of the attack message, and its value is... This indicates that there is no transitive relationship between the candidate action and the object being acted upon, and its value is [value to be filled in]. This indicates that the target point of the candidate action is missing or the mapping relationship of the object point has not been confirmed. Indicates candidate actions The corresponding target process object is determined by the target point identifier in the candidate action according to the object point mapping relationship; , , and They represent the first The attack message affects the scope of the target object, the upstream target object, the downstream target object, and the same control loop.
[0103] Interlock constraint verification is performed on candidate calibration actions that are topologically reachable. Interlock constraints are jointly determined by the current valve opening, pump start / stop status, control loop mode, setpoint, liquid level, pressure, and flow status, and equipment operation stage in the target simulation running state. Valve adjustment actions generate an interlock permission flag when the associated pump status allows media transfer and the equipment operation stage allows valve adjustment; pump start / stop actions generate an interlock permission flag when the upstream and downstream paths are transferable and the control loop mode does not prohibit pump status changes; control loop mode switching and setpoint preset actions generate an interlock permission flag when the current mode allows control output changes and the object corresponding to the register read / write status can accept the change. If there are missing item flags for interlock-related points, an interlock unconfirmed flag is generated, and disallowed candidate actions are removed from the topologically reachable action set.
[0104] For interlock-permitted candidate actions, continue to perform equipment safety boundary verification. Valve adjustment actions and setpoint preset actions are continuous or quasi-continuous quantity verifications, comparing the action target value with the safe allowable range of the corresponding target point in the equipment safety boundary. Pump start / stop actions, control loop mode switching actions, and actions related to equipment operation phases are discrete category verifications, comparing the action target category with the set of allowed state categories of the corresponding target point in the equipment safety boundary. For valve adjustment or setpoint preset actions whose target value is determined by the expected range, a safe reachable action target range is formed based on the expected range of the item to be calibrated and the allowable range of the equipment safety boundary. If this range intersects, it indicates the existence of a safe reachable action target value, and the candidate action enters the safe reachable action set; if this range does not intersect, the candidate action is marked as an out-of-bounds action and does not enter the executable action set.
[0105] The formula for calculating the reachable interval of the continuous quantity of the action target is:
[0106]
[0107] in, Indicates the first Candidate actions corresponding to each attack message Optional continuous target range within the safety boundary; It represents the target prerequisite range determined by the expected range or allowable deviation range of the item to be calibrated, while maintaining the original dimensions of the valve opening or set value; Indicates the candidate actions in the device safety boundary The safe allowable range is defined by the target location. If there is a valid intersection within this range, a safe and reachable action target value is determined; if the intersection is empty, the candidate action will not be included in the set of executable actions.
[0108] Within the set of securely reachable actions, reversible recovery relationships are confirmed. Each securely reachable action retains its pre-action state and target state. The pre-action state is taken from a snapshot of the target's current state in the target message-level process prerequisite matching record set. The pre-action state is compared with the allowable range of the equipment security boundary and the interlocking allowable conditions during recovery, and the comparison result is determined as a reversible marker. When the reversible marker is "recoverable," it means that reversible recovery can be performed according to the recorded pre-action state after the action is completed; when the reversible marker is "non-recoverable," it means that the pre-action state exists, but recovery will cross the equipment security boundary or trigger interlocking blocking; when the reversible marker is "unconfirmed," it means that the pre-action state is missing, resulting in the recovery target not being confirmed. Recoverable actions are added to the set of executable calibration actions, non-recoverable actions are retained as irreversible risk actions in the calibration description of the corresponding attack message, and unconfirmed actions are added to the pending confirmation content with a missing item identifier.
[0109] The formula for calculating reversible marking is:
[0110]
[0111] in, Indicates the first The attack message corresponds to the secure reachable action. The reversible flag, with a value of This indicates that the state can be reversibly restored after the action is completed, based on the recorded state before the action. The value is... This indicates that although the state existed before the action, the recovery process would cross the device safety boundary or trigger an interlocking block. The value is... This indicates that the lack of pre-action state resulted in the recovery target not being confirmed; Indicates action The target point status before execution, with continuous quantities representing the values before the action and discrete quantities representing the status categories before the action; Indicates action The permissible range of equipment safety boundaries at the corresponding target location; This indicates the recovery permission condition determined by the interlocking constraints.
[0112] After the set of executable calibration actions is formed, the execution sequence is reconstructed according to the attack message order, prerequisite dependencies, and reversible recovery relationships. The attack message order is determined by the communication timestamps in the target message-level process prerequisite matching record set. Multiple executable calibration actions under the same attack message are arranged in the order of first resolving prohibited conflicts, then correcting necessary state items, and then handling allowable deviation out-of-bounds items. When there are dependencies between the same type of state items, the order of actions is arranged according to the transmission direction and interlocking allowable conditions determined by the target process topology constraints. The reconstructed target process state calibration execution sequence consists of several message-level calibration action records. Each record contains the attack message identifier, communication timestamp, attack stage identifier, associated items to be calibrated, target point identifier, action type, pre-action state, action target state, topology reachability marker, interlocking allowable marker, security boundary verification result, reversibility marker, execution sequence number, prerequisite dependency object, target state to be restored, and missing item identifier, so that the target environment can orderly approach the process triggering prerequisites required by the real attack message before replay.
[0113] Further, step S4 includes:
[0114] S41, execute the calibration actions of the target valve, pump, control loop and equipment operation stage in sequence according to the target process state calibration execution sequence, and record the target message-level calibration completion status record.
[0115] Specifically, when the target process state calibration execution sequence enters the target simulation environment for calibration processing, the actions to be executed are organized according to the attack message identifier, execution sequence number, target point identifier, action type, pre-action state, action target state, prerequisite dependent objects, interlock permission flag, safety boundary verification result, reversibility flag, and missing item identifier. For multiple calibration actions under the same attack message, they are first arranged according to the execution sequence number, and then it is checked whether the valves, pumps, control loop modes, setpoints, or equipment operation stages that the current action depends on have reached the states recorded in the prerequisite dependent objects. If the dependent state has not yet been met, the current action is temporarily recorded as a pending execution state, and the corresponding attack message identifier and dependent point identifier are retained to facilitate re-entry into the execution verification after the dependent actions are completed.
[0116] Before the actual action is issued, the action type and target location are matched according to the pre-set equipment control interface rules. Valve adjustment actions correspond to the target valve location's opening degree writing interface, pump start / stop actions correspond to the target pump location's start / stop control interface, control loop mode switching actions correspond to the target control loop mode writing interface, setpoint preset actions correspond to the target setpoint writing interface, and equipment operation phase-related actions correspond to the target equipment operation phase's allowed state switching interface. After matching the corresponding control interface, it is further verified whether the action target state is within the equipment safety boundary's allowable range. If the target location is missing, the action target state is missing, or the safety boundary verification result shows unreachable, the calibration action is not issued, and a missing or out-of-bounds flag is written in the message-level temporary execution record.
[0117] For actions that can be issued, the action target value or target category is written according to the device control interface rules, and the action issuance time, target location identifier, action type, and associated attack packet identifier are recorded. After the action is issued, the post-execution status of the same target location is obtained within the preset action confirmation time range. For continuous quantities, the post-execution sampled value is compared with the action target value or action target range. For discrete quantities, the post-execution status category is compared with the target category for consistency. If the continuous quantity deviation does not exceed the preset action confirmation threshold, or the post-execution sampled value falls within the action target range, it is recorded as action completed. If the continuous quantity deviation exceeds the preset action confirmation threshold, it is recorded as action incomplete and the post-execution deviation is retained. If the discrete status category is consistent with the target category, it is recorded as action completed. If the status category has not switched to the target category or has not returned to a valid status, it is recorded as action incomplete or status unconfirmed.
[0118] For all calibration actions corresponding to the same attack message, message-level aggregation is performed according to the execution results, such as action completion, pending execution, interlock blocking, boundary violation, missing, unconfirmed status, and post-execution deviation exceeding limits. If all necessary calibration actions have been completed and there are no interlock blocking, boundary violation, or unconfirmed status records, the calibration completion status corresponding to the attack message is marked as satisfied. If there are actions not executed, post-execution deviation exceeding the action confirmation threshold, discrete categories not reaching the target category, or interlock conditions not confirmed, the calibration completion status is marked as unsatisfied. If there are security boundary violations or interlock blocking, the calibration completion status is marked as incomplete. After aggregation, a target message-level calibration completion status record is generated, recording the attack message identifier, attack stage identifier, target location identifier, action type, pre-action status, action target status, post-execution status, action issuance time, status confirmation time, action confirmation threshold, interlock allowed confirmation result, security boundary confirmation result, reversible recovery status, missing item identifier, and calibration completion status satisfaction relationship. This record allows subsequent message triggering to no longer depend solely on whether the calibration action has been issued, but rather on whether the target simulation environment has actually met the corresponding process prerequisites.
[0119] S42, after the calibration completion status corresponding to each attack message is satisfied, the real attack PCAP message is replayed according to the original attack chain time relationship, and the target liquid level, pressure and flow status, equipment status and control loop response are collected to form the attack chain simulation result calibrated by the process premise.
[0120] Specifically, after the target message-level calibration completion status record has been formed and arranged in chronological order of attack messages, the calibration completion status satisfaction relationship is checked one by one according to the attack message identifier. If the calibration completion status is satisfied, the corresponding real attack PCAP message is included in the replayable messages; if the calibration completion status is not satisfied, cannot be completed, or the status is not confirmed, the reason for the non-triggered attack message is recorded, and the attack stage identifier, calibration completion status, missing item identifier, and target current status snapshot are retained to avoid directly injecting messages when the process prerequisites are not met. For attack messages included in the replayable messages, the original attack chain time relationship is determined according to the original communication timestamp in the real attack PCAP message, and the waiting interval between adjacent replayable messages is determined by the difference of the corresponding original communication timestamp; when the previous message is not triggered, subsequent messages are still checked for trigger conditions in the original attack message time order, and the original sequential relationship between non-triggered messages and triggered messages is retained in the result.
[0121] When the corresponding message replay trigger time is reached, message replay is performed according to the industrial control protocol type, function code, register address, written value, and source and destination addresses already determined in the actual attack PCAP message. The replay order is consistent with the time relationship of the original attack chain. Before replay, the calibration completion status satisfaction relationship corresponding to the attack message is checked again. If the satisfaction relationship is still valid, the message is sent. If the target's current status changes to unsatisfied, incomplete, or unconfirmed status during the waiting period, the message is marked as trigger cancellation, and the cancellation time, current calibration completion status, and corresponding target status snapshot are written to the temporary replay record. After the message is replayed, the target liquid level, pressure, and flow status, equipment status, and control loop response are organized within the preset acquisition time range. For continuous status, the point identifier, sampling time, sampled value, and missing item identifier are recorded. For discrete status, the point identifier, status category, status update time, and missing item identifier are recorded.
[0122] After replaying and processing the response of each triggerable attack message, the following data is aggregated at the message level: replay trigger time, original communication timestamp, attack stage identifier, industrial control protocol type, function code, register address, written value, source and destination addresses, calibration completion status, target liquid level, pressure, and flow sampling results, equipment status change results, control loop response results, missing item identifier, and reason for non-triggering. For multiple attack messages under the same attack stage, the message-level aggregation results are arranged according to the original attack chain time relationship, ensuring that replayed messages, trigger cancellation messages, and non-trigger messages retain the same time sequence position. After all messages are processed, a process prerequisite-calibrated attack chain simulation result is generated, which includes the attack chain replay order, the trigger status of each attack message, the calibration completion status, the target process response record, and anomaly or missing identifiers. This ensures a consistent data continuity between the message replay order, the target process prerequisite, and the target physical response, and distinguishes whether the message's failure to produce consequences is due to unmet prerequisites or limited changes in the target response after replay.
[0123] In one specific embodiment, such as Figure 2As shown, during industrial control security simulation, when the process state of the target simulation environment is inconsistent with the source real scene, directly replaying the attack message cannot trigger the same physical response. However, after the process state prerequisite calibration of this solution, the attack chain can generate a process response consistent with the source side. The figure shows the source side column, the pre-calibration column, and the post-calibration column from left to right. In the message sequence area, each column displays three attack messages arranged in chronological order with the same attack message sequence: "Write valve opening command", "Write pump start / stop command", and "Write setpoint modification command". This message sequence corresponds to the real attack message, that is, the attacker sequentially performs write operations on the valve, pump, and control loop setpoints of the target industrial control object, forming a complete attack chain. In the process response curve area, each column uses four curves to represent the changes of four process variables over time: valve opening, pump operating status, liquid level, and pressure. The horizontal axis is time (labeled as time 1, time 2, and time 3), and the vertical axis is the value of each process variable. The curves use dashed lines to mark two key time points, Time 1 and Time 2, to distinguish the changes in process state before and after the attack message's effect. The source-side column represents the process response under the actual attack scenario. In the message sequence, the attacker sends three attack messages sequentially according to the attack chain. In the process response curve, the valve opening decreases from 40% to 45% to 10%, the pump changes from running to stopping, the liquid level rises from 1.2m to 1.8m, and the pressure decreases from 0.35MPa to 0.20MPa. All process variables exhibit the expected physical response consistent with the direction of the attack message's effect, indicating that the attack chain has produced a complete physical impact on the source side. The pre-calibration column represents the result of directly replaying the attack message without calibrating the process state in the target simulation environment. In the message sequence, the content, order, and timing of the replayed attack messages are consistent with the source side. In the process response curve, the valve opening stabilizes after decreasing from 90% to 80%, the pump remains stopped, the liquid level drops only slightly from 2.3m to 2.2m, and the pressure drops only slightly from 0.60MPa to 0.58MPa. The magnitude and direction of change of each process variable differ significantly from the source side. This is because the initial process state of the target environment differs from that of the source side: in the target environment, the valve opening is 90% (40%~45% on the source side), the pump is stopped (running on the source side), the control loop is in manual mode (automatic mode on the source side), the setpoint is 200 (180 on the source side), the liquid level is 2.3m (1.2m on the source side), and the pressure is 0.60MPa (0.35MPa on the source side). Because the process state of the target environment does not meet the state prerequisites upon which the attack message depends, the same attack message cannot trigger the same physical response in the target environment as on the source side, resulting in a complete attack chain but distorted simulation results. The corrected column represents the result of replaying the attack packets after calibration according to the process state prerequisites of this scheme. In the packet sequence, the content, order, and timing of the replayed attack packets are consistent with those on the source side and before calibration.In the process response curve, the valve opening decreased from 40%~45% to 10%, the pump changed from running to stopping, the liquid level rose from 1.2m to 1.8m, and the pressure decreased from 0.35MPa to 0.20MPa. The magnitude and direction of change of each process variable were consistent with the source side. This is because, before message replay, this solution calibrated the process state of the target environment to meet the state prerequisites on which the attack message depended (valve opening calibrated to 40%~45%, pump calibrated to running state, control loop calibrated to automatic mode, setpoint calibrated to 180, liquid level calibrated to 1.2m, and pressure calibrated to 0.35MPa), thereby making the attack chain produce physical effects consistent with the source real scene in the target industrial control simulation environment.
[0124] In one specific embodiment, such as Figure 3 As shown, the system includes a message process action alignment unit, a state prerequisite profile generation unit, a target state calibration sequence generation unit, and an attack chain simulation execution unit. The message process action alignment unit outputs a source attack message process action alignment record set to the state prerequisite profile generation unit; the state prerequisite profile generation unit outputs an attack message process state prerequisite profile sequence to the target state calibration sequence generation unit; the target state calibration sequence generation unit outputs a target process state calibration execution sequence to the attack chain simulation execution unit; and the attack chain simulation execution unit writes the process prerequisite-calibrated attack chain simulation result to the storage unit.
[0125] The above description is merely a specific embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art can make various improvements or substitutions to the present invention without departing from its principles, and all such improvements or substitutions should fall within the protection scope of the claims of the present invention.
Claims
1. An industrial control system security simulation method based on real attack traffic and attack chains, characterized in that, include: S1, parses and aligns the real attack PCAP message, the synchronously collected source process status record, the source PLC register read and write log, the source attack stage annotation, and the target point table topology configuration to form a source attack message process action alignment record set; S2, perform causal filtering and process state premise extraction on the alignment record set of process effects of the source attack message to form a process state premise profile sequence of the attack message. S3, compare and constrain the attack message process state prerequisite profile sequence with the target simulation running state one by one to form the target process state calibration execution sequence; S4, based on the target process state calibration execution sequence control, performs pre-replay state calibration and message triggering timing of the target industrial control simulation environment to form the attack chain simulation result calibrated by the process premise.
2. The industrial control system security simulation method based on real attack traffic and attack links according to claim 1, characterized in that, Step S1 includes: S11, parse the communication timestamp, industrial control protocol type, function code, register address, written value and source and destination address in the real attack PCAP message to form a source attack message field parsing record; S12, based on the source attack message field parsing record, source PLC register read and write log, source attack stage mark, source valve opening record, source pump start and stop record, source control loop set value record, source liquid level, pressure and flow sampling record, and target point table topology configuration, form the source attack message process status association record; S13, summarize the message fields, register read / write status, attack stage identifier, valve opening status, pump start / stop status, control loop set value status, liquid level, pressure, flow sampling status and object point mapping relationship in the process status association record of the source attack message, and form the process action alignment record set of the source attack message.
3. The industrial control system security simulation method based on real attack traffic and attack links according to claim 1, characterized in that, Step S2 includes: S21. Based on the object location mapping relationship and the time proximity relationship before the occurrence of the source side physical response, extract valve opening range, pump operating status, control loop mode, set value status, upstream and downstream liquid level, pressure and flow status and stable state fragments of equipment operation stage from the source attack message process action alignment record set to form attack message candidate process state prerequisite record. S22, based on the attack phase identifier, register read / write status and source-side physical response change direction, performs response before and after difference verification, point topology transfer verification and operating condition consistency verification on the synchronization status item in the candidate process status prerequisite record of the attack message, forming a process status prerequisite profile sequence of the attack message.
4. The industrial control system security simulation method based on real attack traffic and attack links according to claim 1, characterized in that, Step S3 includes: S31, map the necessary state items, allowable deviation items and prohibited state items in the process state prerequisite profile sequence of the attack message to the current valve opening, pump start / stop status, control loop mode, set value, liquid level, pressure and flow status and equipment operation stage in the target simulation running state, respectively, to form a target message-level process prerequisite matching record set; S32, based on the target message-level process prerequisite matching record set, target process topology constraints, interlock constraints and equipment safety boundaries, determines the reachable, interlock-permitted, safety boundary-within-reversible valve adjustment, pump start / stop, control loop mode switching and setpoint preset actions, forming the target process state calibration execution sequence.
5. The industrial control system security simulation method based on real attack traffic and attack links according to claim 1, characterized in that, Step S4 includes: S41, Perform calibration actions for the target valves, pumps, control loops and equipment operation stages in sequence according to the target process state calibration execution sequence, and record the target message-level calibration completion status record; S42, after the calibration completion status corresponding to each attack message is satisfied, the real attack PCAP message is replayed according to the original attack chain time relationship, and the target liquid level, pressure and flow status, equipment status and control loop response are collected to form the attack chain simulation result calibrated by the process premise.
6. The industrial control system security simulation method based on real attack traffic and attack links according to claim 3, characterized in that, Step S21 includes: S211, based on the attack message communication timestamp, the time boundary after the previous attack message completed the state interception before the response was completed, and the time when the source side physical response appeared, determine the response time proximity range used to extract the process state premise before the trigger; S212, within the time range adjacent to the response time, determine the valve opening stable state segment, pump operation stable state segment, control loop mode stable state segment, set value stable state segment, upstream and downstream liquid level, pressure and flow stable state segment and equipment operation stage stable state segment respectively. S213, the stable state segments corresponding to the same attack message are collected at the message level according to the attack message identifier to form a prerequisite record of the candidate process state of the attack message.
7. The industrial control system security simulation method based on real attack traffic and attack links according to claim 3, characterized in that, Step S22 includes: S221, based on the valid sampled value at the end of the steady state segment before the response and the first valid sampled value after the physical response of the source side, determine the direction of the continuous quantity state change, and determine the reference for the discrete device state change based on whether the state category is switched before and after the response. S222, according to the object point mapping relationship, mark the synchronization state items that are in the object itself, the direct upstream, the direct downstream or the same control loop closed loop as transitive state items, and remove non-transferable state items. S223, based on the working condition consistency relationship between the state value, state range or state category of the transferable state item and the direction of change of the source-side physical response, the reserved state item is marked as a necessary state item, an allowable deviation item or a prohibited state item.
8. The industrial control system security simulation method based on real attack traffic and attack links according to claim 4, characterized in that, Step S31 includes: S311, according to the object point mapping relationship, map the state item points in the attack message process state prerequisite profile sequence to the same type of process object points in the target simulation running state; S312, perform a satisfaction judgment on whether the current state of the target falls into the necessary state interval or target category for necessary state items, perform a deviation judgment on whether the current state of the target falls into the allowable deviation interval for allowable deviation items, and perform a conflict judgment on whether the current state of the target triggers the prohibited state value or prohibited state interval for prohibited state items. S313, Generate a target message-level process prerequisite matching record set according to satisfying relationship, deviation relationship and prohibited conflict relationship.
9. The industrial control system security simulation method based on real attack traffic and attack links according to claim 4, characterized in that, Step S32 includes: S321. Based on the status type of the item to be calibrated, the target point identifier, the current status value or current status category, the desired range or desired category, the deviation direction, the prohibited status value or prohibited status range, and the corresponding response direction, determine the candidate calibration action. S322, perform topology reachability check, interlock constraint check, equipment safety boundary check and reversible recovery relationship confirmation sequentially for candidate calibration actions; S323, according to the attack message order, prerequisite dependencies and reversible recovery relationships, reconstructs the candidate calibration actions confirmed by topology reachability verification, interlock constraint verification, equipment security boundary verification and reversible recovery relationships to form the target process state calibration execution sequence.
10. A system for industrial control system security simulation based on real attack traffic and attack chains, characterized in that, include: The message process function alignment unit is used to parse and align the real attack PCAP message, the synchronously collected source process status record, the source PLC register read / write log, the source attack stage annotation, and the target point table topology configuration to form a source attack message process function alignment record set; the state premise profile generation unit is used to perform causal filtering and process state premise extraction on the source attack message process function alignment record set to form an attack message process state premise profile sequence. The target state calibration sequence generation unit is used to compare and constrain the attack message process state prerequisite profile sequence with the target simulation running state one by one to form the target process state calibration execution sequence. The attack chain simulation execution unit is used to calibrate the execution sequence control of the target industrial control simulation environment before replaying the state calibration and message triggering timing based on the target process state, and form the attack chain simulation result after process precondition calibration.
