NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Driven Attack Detection for Networked Control Systems

Sribalaji Coimbatore Anand, Michelle S. Chong, André M. H. Teixeira

TL;DR

This paper introduces a data-driven framework to identify attack-free sensors in networked control systems without requiring a prior mathematical model of the plant. By leveraging offline attack-free trajectories, the proposed algorithms can pinpoint compromised sensors during online operation, even when faced with sophisticated data-injection, delay, or replay attacks.

What Problem Does This Paper Address?

Networked Control Systems (NCS)—where sensors, controllers, and actuators communicate over a digital network—are the backbone of modern infrastructure, from power grids to automated factories. However, this connectivity makes them prime targets for cyber-attacks. An adversary might inject false data, delay signals, or replay old measurements to destabilize the system.

Most existing defense strategies (like secure state estimation or attack detection) rely on having a precise mathematical model of the system (e.g., state-space matrices). In practice, obtaining an accurate model is difficult and time-consuming. The authors tackle a fundamental question: Can we identify which sensors are telling the truth using only raw data, without knowing the underlying system equations?

Methods

The authors propose a "data-driven" approach based on the behavioral framework of systems theory. Instead of identifying a model first and then detecting attacks, they use raw input-output trajectories to represent the system's "allowable" behavior.

  1. Offline Learning: The operator collects attack-free data ($I_T$) while the plant is in an open-loop, safe environment.
  2. Combinatorial Modeling: Assuming that at most $M$ out of $N$ sensors can be compromised, the algorithm builds a library of data-driven representations for every possible subset of $N-M$ sensors. Because of the $M$-attack assumption, at least one of these subsets is guaranteed to be "clean."
  3. Online Identification (Algorithm 1): When the system goes online and attacks begin, the operator applies a test input. The algorithm compares the resulting measurements against the library of offline models. The subset that produces the smallest prediction error (ideally zero in a noise-free case) identifies the attack-free sensors.
  4. Specialized Online Detectors: The paper extends this to cases where offline data might not be available:
  5. Replay Attacks (Algorithm 2): Uses the rank of Hankel matrices. Replayed data (like a constant value) is "less exciting" than real dynamical data, causing the matrix to become rank-deficient.
  6. Delay Attacks (Algorithm 3): Leverages the "relative degree" of the system—essentially the physical time-lag between an input and a sensor's response. If a response arrives later than the physics dictates, the sensor is flagged.
The general architecture of a Networked Control System under sensor attacks, showing where the attack identification block sits relative to the plant and controller.

Datasets

The efficacy of the algorithms is demonstrated using a simulated three interconnected mass-spring-damper model.

  • Setup: Three masses connected by springs and dampers, with a force input applied to the first mass.
  • Sensors: Three sensors measuring displacements and velocity.
  • Parameters: The system is discretized with a sampling time of 1.3 seconds, and 41 samples are used for the offline data-driven representation.
  • Benchmarks: The authors compare the performance of their algorithms against three specific attack scenarios: static data-injection, network delays (5 samples), and constant-value replay attacks.

Key Insights and Ideas

  • Observability is Non-Negotiable: The paper proves that for the algorithm to work, the system must be $(N-M)$-sensor observable. This means that even after losing $M$ sensors to an attacker, the remaining sensors must still provide enough information to reconstruct the system's internal state.
  • Rank as a Diagnostic Tool: A particularly clever insight is using the rank of data matrices to catch replay attacks. Because replayed data lacks the complexity of real-time feedback, it creates a mathematical "signature" (rank deficiency) that is easy to spot without a model.
  • Physics-Informed Data Science: For delay attacks, the authors show that you don't need a full model, just the "relative degree." This is a piece of structural knowledge (e.g., "it takes at least two time steps for a change in the motor to affect this specific arm joint") that is often known from basic physics even if exact friction or mass values are unknown.

Key Results

  • Rapid Detection: In the mass-spring-damper simulation, Algorithm 1 successfully identified the attacked sensor in just 2 time steps after the attack commenced.
  • Robustness to Attack Type: The framework proved effective across three distinct classes of attacks (injection, delay, and replay), providing a versatile defense toolkit.
  • Zero-Error Identification: In the noise-free simulations provided, the identification of the attack-free subset was exact, with the norm of the prediction error dropping to zero for the correct sensor combination.

Limitations and Future Work

  • The Noise Problem: The current framework assumes a noise-free environment. In real-world engineering, sensor noise is ubiquitous. The authors explicitly note that extending this to noisy data is a primary goal for future work.
  • Combinatorial Explosion: The approach requires checking all combinations of $N-M$ sensors. As the number of sensors ($N$) grows, the number of combinations grows factorially, which could lead to high computational costs for very large-scale systems.
  • Linearity Assumption: The methods are strictly for Linear Time-Invariant (LTI) systems. Extending these data-driven proofs to non-linear systems remains a significant open challenge in the field.

Summary updated

BibTeX
@inproceedings{anand2025data,
  author = {Sribalaji Coimbatore Anand and Michelle S. Chong and André M. H. Teixeira},
  title = {{Data-Driven Attack Detection for Networked Control Systems}},
  booktitle = {Ecc},
  year = {2025},
  doi = {10.23919/ecc65951.2025.11187261},
}
Figure