Functional Pattern-Related Anomaly Detection Approach Collaborating Binary Segmentation with Finite State Machine

Ming Wan, Minglei Hao, Jiawei Li, Jiangyuan Yao, Yan Song2023

Abstract

The process control-oriented threat, which can exploit OT (Operational Technology) vulnerabilities to forcibly insert abnormal control commands or status information, has become one of the most devastating cyber attacks in industrial automation control. To effectively detect this threat, this paper proposes one functional pattern-related anomaly detection approach, which skillfully collaborates the BinSeg (Binary Segmentation) algorithm with FSM (Finite State Machine) to identify anomalies between measuring data and control data. By detecting the change points of measuring data, the BinSeg algorithm is introduced to generate some initial sequence segments, which can be further classified and merged into different functional patterns due to their backward difference means and lengths. After analyzing the pattern association according to the Bayesian network, one functional state transition model based on FSM, which accurately describes the whole control and monitoring process, is constructed as one feasible detection engine. Finally, we use the typical SWaT (Secure Water Treatment) dataset to evaluate the proposed approach, and the experimental results show that: for one thing, compared with other change-point detection approaches, the BinSeg algorithm can be more suitable for the optimal sequence segmentation of measuring data due to its highest detection accuracy and least consuming time; for another, the proposed approach exhibits relatively excellent detection ability, because the average detection precision, recall rate and F1-score to identify 10 different attacks can reach 0.872, 0.982 and 0.896, respectively.

Introduction

In the realm of critical infrastructure—such as power plants, water treatment facilities, and oil refineries—cyber-security is a matter of physical safety. While traditional IT security focuses on data confidentiality, Operational Technology (OT) security must protect the integrity of the physical process itself. A significant threat in this domain is the "process control-oriented attack," where malicious actors exploit OT vulnerabilities to inject false control commands or forge sensor data.

This paper presents a hybrid anomaly detection framework that bridges the gap between statistical data analysis and physical control logic. By combining Binary Segmentation (BinSeg) for time-series analysis with Finite State Machines (FSM) to model physical processes, the proposed system identifies sophisticated attacks that often bypass traditional security measures.

Methodology: A Three-Stage Framework

The proposed approach, termed a "functional pattern-related" detection method, consists of three primary stages designed to link actuator intent with sensor reality.

1. Optimal Sequence Segmentation (BinSeg)

The first step involves partitioning continuous sensor data into discrete, meaningful segments. The system utilizes the Binary Segmentation (BinSeg) algorithm paired with an Auto-Regressive (AR) cost function. BinSeg treats sensor data as a time series and greedily identifies "change points" where the statistical behavior of the data shifts. This allows the system to identify the start and end of specific physical events (e.g., a tank filling or a pump activating).

2. Pattern Association via Bayesian Networks

To understand the underlying physics, the system must determine which actuators (valves, pumps) influence which sensors (flow meters, level sensors). The researchers use Bayesian Networks to automatically discover these relationships from historical data, identifying the "domination set" for each sensor. This automated logic discovery removes the need for manual rule-writing in complex industrial environments.

3. FSM-Based Detection Engine

The final stage is the construction of a Finite State Machine (FSM). In this model:

  • States represent functional patterns (e.g., "slowly rising water level").
  • Transitions are triggered by changes in actuator states.

The FSM serves as the detection engine. If the sensor data behaves in a way that contradicts the current actuator command (e.g., the water level drops while the pump is commanded to stay on), the FSM flags a mismatch as a potential cyber-attack.

Experimental Evaluation

The approach was evaluated using the Secure Water Treatment (SWaT) dataset, a standard benchmark in OT security. The study focused on Stage 1 (P1) of the water treatment process, analyzing over 165,000 records collected over 26 hours. The dataset included 10 distinct types of sophisticated attacks, such as sensor measurement spoofing and malicious command forging.

Key Results

  • Efficiency: BinSeg proved highly efficient, processing the data in just 0.43 seconds, compared to 6.71 seconds for the Pelt algorithm, while maintaining higher accuracy.
  • Detection Performance: The hybrid approach achieved an average Precision of 0.872, a Recall of 0.982, and an F1-score of 0.896.
  • Comparative Advantage: Compared to deep learning engines (DNNs) and Support Vector Machines (SVMs), the proposed FSM-based model showed a superior recall rate, ensuring that very few actual attacks go undetected—a critical requirement for infrastructure safety.

Conclusion and Future Work

By integrating statistical segmentation with logical state modeling, this research provides a robust method for detecting "invisible" process-oriented threats. The system's ability to link control intent to physical outcomes allows it to catch sophisticated spoofing attacks that purely mathematical models might miss.

Future work will focus on scaling the pattern association phase for larger, multi-stage industrial processes and improving the detection of highly stealthy attacks where physical changes are nearly indistinguishable from normal process noise.

Summary updated

BibTeX
@inproceedings{wan2023functional,
  author = {Ming Wan and Minglei Hao and Jiawei Li and Jiangyuan Yao and Yan Song},
  title = {{Functional Pattern-Related Anomaly Detection Approach Collaborating Binary Segmentation with Finite State Machine}},
  booktitle = {Computers,},
  year = {2023},
  doi = {10.32604/cmc.2023.044857},
}
Figure