Data-Driven and Stealthy Deactivation of Safety Filters

Daniel Arnström, André M. H. Teixeira

TL;DR

This paper presents a novel data-driven attack that can stealthily deactivate safety filters in cyber-physical systems. Unlike previous attacks requiring full knowledge of system dynamics, this method learns the necessary information from observed data, making it more realistic and applicable to a wider range of safety-critical systems.

What Problem Does This Paper Address?

Safety filters are crucial components in safety-critical cyber-physical systems (CPSs), acting as a last line of defense to ensure system stability and prevent dangerous behavior, even when the primary controller is unreliable or uses learning-based approaches that lack inherent safety guarantees. However, these safety filters themselves can be targets for cyberattacks. Previous research demonstrated a "false-data injection" attack that could deactivate safety filters by manipulating sensor measurements to trick the system into believing it was in a safe state, thereby allowing unsafe control actions. A significant limitation of this prior work was the requirement for the attacker to possess detailed knowledge of the system's dynamics, the safety region definition, and the observer gain. This paper addresses this gap by proposing a more realistic attack scenario where the adversary has limited prior knowledge, only observing system inputs and outputs to learn the necessary information to launch a stealthy deactivation attack.

Methods

The core of the proposed attack is a data-driven approach that bypasses the need for explicit system models. The adversary's strategy involves two main phases:

  • Offline Phase:
    • System Identification: The adversary collects data (inputs $u$, measurements $y$, and predicted measurements $\hat{y}$) from the system. This data is used to learn a latent-space state-space model that mimics the observer's dynamics. This learned model captures the system's behavior in a transformed space, denoted by $z$, which may not directly correspond to the physical state $\hat{x}$.
  • Safe Set Estimation: Using the learned latent-space model and the collected data, the adversary estimates a "safe set" in this latent space, denoted as $\mathcal{Z}$. This is achieved by finding a representation of the latent trajectories that covers the estimated safe region. Common methods include computing the convex hull or a minimum covering ellipse of the latent trajectories.
  • Detector Threshold Lower-Bounding: The adversary also estimates a lower bound for the anomaly detector's threshold ($\delta$). This is crucial for ensuring the injected false measurements remain within the detector's tolerance, thus maintaining stealth.
  • Online Phase:
    • False Data Injection: The adversary uses the learned latent-space model, the estimated latent safe set, and the lower-bounded detector threshold to generate false measurements ($y^a$). The goal is to inject $y^a$ such that the resulting latent state $z$ is pushed towards the interior of the estimated latent safe set $\mathcal{Z}$. This, in turn, biases the estimated state $\hat{x}$ towards the interior of the actual safe set $S$, effectively deactivating the safety filter. The injection policy is designed to maximize the safety margin in the latent space while remaining stealthy.

Datasets

The paper uses data collected from an inverted pendulum system for training and evaluation. This data consists of system inputs ($u$), measurements ($y$), and predicted measurements ($\hat{y}$). The authors do not introduce a new benchmark dataset but rather use a standard experimental setup for their demonstration.

Key Insights and Ideas

  • Data-Driven Deactivation: The most significant insight is that an adversary can effectively deactivate safety filters without prior knowledge of the system's internal workings, relying solely on observed data. This significantly broadens the scope of potential attacks on safety-critical systems.
  • Latent Space Attack: The attack operates in a learned "latent space" rather than the physical state space. This is a clever workaround for not knowing the true system dynamics or the exact definition of the safe set. By learning a topologically equivalent representation, the adversary can manipulate the latent state to achieve the desired effect on the physical state estimate.
  • Stealthy Manipulation: The attack is designed to be stealthy by ensuring that the injected false measurements do not trigger the anomaly detector. This is achieved by staying within a learned bound of the predicted measurement and by carefully selecting the direction of the false data injection.
  • Deactivation Mechanism: The paper clearly links the manipulation of the state estimate to the deactivation of the safety filter. By biasing the estimate into the safe set, the filter is tricked into allowing unsafe control actions, leading to the system leaving its intended safe region.

Key Results

The paper successfully demonstrates the proposed data-driven attack on an inverted pendulum system. The key qualitative result is that the attack can:

  • Stealthily drive the system state outside its safe set: Figure 6(a) shows the actual state trajectory leaving the safe set $S$ while the perceived state trajectory remains within $S$.
  • Maintain stealth: Figure 6(b) shows that the residuals generated by the anomaly detector remain within the bounds of the measurement noise, indicating the attack is not immediately detected.
  • Deactivate the safety filter: The successful deviation of the actual state from the safe set, while the estimated state remains safe, confirms the deactivation of the safety filter.

While specific quantitative metrics like percentage of successful attacks or time to deactivation are not explicitly detailed in the summary, the visual evidence strongly supports the effectiveness of the proposed method.

Limitations and Future Work

  • Assumptions on Adversary Capabilities: The attack relies on the adversary being able to observe inputs ($u$), measurements ($y$), and predicted measurements ($\hat{y}$). It also assumes the adversary can modify measurements. If these capabilities are not present, the attack may not be feasible.
  • Learning Accuracy: The effectiveness of the attack depends on the accuracy of the learned latent-space model, the estimated safe set, and the lower-bounded detector threshold. Inaccurate learning could lead to detection or failure of the attack.
  • System Complexity: While demonstrated on an inverted pendulum, the applicability to more complex, higher-dimensional systems might require more sophisticated system identification and latent space modeling techniques.

Future work could explore:

  • Developing more robust system identification techniques for noisy or limited data.
  • Investigating attacks on safety filters with different underlying principles (e.g., beyond CBFs).
  • Designing more sophisticated anomaly detectors that can specifically identify this type of data-driven attack.
  • Exploring defenses against such data-driven attacks.

Summary updated

BibTeX
@inproceedings{arnstrom2024data,
  author = {Daniel Arnström and André M. H. Teixeira},
  title = {{Data-Driven and Stealthy Deactivation of Safety Filters}},
  booktitle = {L4dc},
  year = {2024},
  doi = {10.48550/arxiv.2412.01346},
}
Figure