An Online Approach to Physical Watermark Design

Hanxiao Liu, Yilin Mo, Jiaqi Yan, Lihua Xie, Karl Henrik Johansson

Introduction

Cyber-Physical Systems (CPS) are increasingly targeted by sophisticated adversaries. One particularly stealthy threat is the replay attack, where an attacker records legitimate sensor data and replays it to the controller while simultaneously sabotaging the physical plant. Because the replayed data appears normal, traditional anomaly detectors often fail to trigger. This paper presents an online learning framework designed to secure systems against such attacks even when the underlying mathematical model is unknown.

The Physical Watermarking Framework

To counter replay attacks, researchers employ physical watermarking: injecting a small, known random noise signal into the control input. Since the controller knows the exact watermark injected, it expects a corresponding "echo" in the sensor readings. A missing echo indicates that the sensor data is being replayed.

However, traditional watermarking assumes a perfect system model. In practice, parameters are often unknown or time-varying. Furthermore, the optimal watermark for detection is typically a "rank-1" signal, which lacks the "persistent excitation" required for system identification—creating a classic exploration-exploitation trade-off.

Proposed Online Learning Architecture

The authors propose a dual-purpose algorithm that performs system identification and attack detection concurrently.

System architecture for online physical watermark design and attack detection.

As shown in the architecture above, the system integrates an Online Learning block that processes the watermarked input $\phi_k$ and the sensor output $y_k$. This block updates the controller $U_k$ and provides the necessary parameter estimates to the Detector.

Methodology

The algorithm addresses the identification-detection conflict through several key steps:

  1. Exploration vs. Exploitation: The watermark covariance is designed as a sum of an "exploitation" term (optimized for detection) and a diminishing "exploration" term ($k^{-\beta}$). This ensures sufficient excitation for learning in the early stages while converging toward optimal detection efficiency over time.
  2. Recursive Identification: The system employs a recursive least-squares approach to estimate Markov parameters, which define the input-output relationship.
  3. Spectral Estimation and Detection: Using the identified parameters, the system reconstructs its eigenvalues and matrices to construct a Neyman-Pearson detector. This statistical tool determines the authenticity of sensor data based on the expected watermark echo.

Experimental Validation

The approach was validated using two primary simulations:

  • Numerical Example: A stable linear system with 5 states, demonstrating that the parameter estimation error decreases at a predictable rate of $O(k^{-\gamma+\epsilon})$.
  • Tennessee Eastman Process (TEP): A complex chemical plant benchmark. The algorithm successfully flagged attacks even when the system's complexity was intentionally underestimated during the learning phase, demonstrating significant industrial viability.

Conclusion

This research demonstrates that systems can "learn while protecting." By carefully balancing exploration and exploitation, the proposed online algorithm eliminates the need for a separate calibration phase and provides robust defense against replay attacks in the face of model uncertainty. Future work will focus on non-linear transitions and scenarios where an attacker might attempt to corrupt the initial learning phase.

Summary updated

BibTeX
@article{liu2020online,
  author = {Hanxiao Liu and Yilin Mo and Jiaqi Yan and Lihua Xie and Karl Henrik Johansson},
  title = {{An Online Approach to Physical Watermark Design}},
  journal = {IEEE Trans. Automatic Control},
  year = {2020},
  url = {https://openreview.net/forum?id=Eaea9godl2},
}
Figure