Secure Safety Filter: Towards Safe Flight Control under Sensor Attacks

Xiao Tan, Junior Sundar, Renzo Bruzzone, Pio Ong, Willian T. Lunardi, Martin Andreoni, Paulo Tabuada, Aaron D. Ames

Abstract

Modern unmanned aerial vehicles (UAVs) rely heavily on sensor data for navigation, making them vulnerable to malicious spoofing attacks. This paper presents a "Secure Safety Filter" that ensures flight safety even when onboard sensors are compromised. The proposed framework integrates a secure state reconstructor with robust Control Barrier Functions (CBFs) to identify a set of plausible states and compute control inputs that guarantee safety across all potential drone locations, accounting for both measurement noise and nonlinear dynamics.

Introduction

Drones increasingly operate in complex environments where collision avoidance and geofencing are critical. These systems depend on sensors like GPS, IMUs, and magnetometers. However, these sensors are susceptible to "spoofing"—the injection of false signals that deceive the drone's navigation system. Standard safety mechanisms, such as Control Barrier Functions (CBFs), typically assume sensor integrity. Under attack, a traditional CBF might allow a drone to violate safety boundaries because it is operating on falsified state estimates.

Methodology

The proposed Secure Safety Filter (SSF) operates as a modular "safety shield" between the nominal controller and the drone's actuators. It consists of two primary components:

  1. Secure State Reconstruction (SSR): By analyzing a window of past inputs and outputs, the SSR identifies a set of "plausible states" ($X^t$). It assumes $s$-sparse observability—meaning a majority of sensors remain honest—while explicitly accounting for bounded measurement noise. This transforms the estimation problem from finding a single point to identifying a bounded region of uncertainty.
  2. Robust Safety Filtering: The filter receives a nominal control command ($u_{nom}$) and solves a Quadratic Program (QP). The goal is to find a safe control input ($u_{safe}$) that is as close as possible to $u_{nom}$ while satisfying safety constraints for every state within the plausible set $X^t$.
Overview of the Secure Safety Filter architecture and its performance under attack compared to a standard system.

To ensure real-time feasibility on flight hardware, the authors employ a reduced-order cascaded model. This approach treats high-frequency attitude control as a black box and focuses on the linear velocity-tracking loop, allowing the optimization problem to be solved efficiently.

Experimental Evaluation

The system was evaluated using both high-fidelity simulations and physical hardware.

  • Software-in-the-Loop (SITL): Tests were conducted using the PX4 Autopilot stack and the Gazebo Garden physics engine to simulate various attack vectors.
  • Hardware Experiments: Real-world flights utilized Holybro X500 quadrotors. The hardware stack included dual Pixhawk 5X flight controllers and an Intel UP Xtreme mission computer to handle the computationally intensive state reconstruction and safety filtering.
Hardware architecture of the Holybro X500 drone used for real-world validation of the Secure Safety Filter.

Results and Discussion

The SSF was tested against four distinct attack types: constant value, noise, scale, and shift attacks.

Key Findings

  • Resilience: Drones equipped with the SSF successfully maintained geofence boundaries (e.g., a $[-3, 3]$ meter box) despite active sensor spoofing. In contrast, unprotected drones consistently violated safety constraints.
  • Minimal Intervention: The filter follows the "least-restrictive" principle, only overriding the nominal controller when a safety violation is imminent due to an attack or proximity to a boundary.
  • Real-time Performance: The system achieved a 20Hz update rate on the Intel UP Xtreme, demonstrating its readiness for practical deployment.

Limitations

While effective, the system faces challenges in extreme scenarios. If an attacker compromises all redundant sensors simultaneously, the state cannot be reconstructed. Additionally, if the set of plausible states is too large, the QP may become infeasible. In such cases, the drone currently defaults to a zero-velocity command, but more advanced fail-safe maneuvers are a subject for future research.

Conclusion

The Secure Safety Filter provides a robust defense mechanism for UAVs against sensor spoofing. By bridging the gap between secure estimation theory and practical robotic control, this work moves towards more resilient autonomous systems capable of operating safely in adversarial environments.

Summary updated

BibTeX
@inproceedings{tan2025secure,
  author = {Xiao Tan and Junior Sundar and Renzo Bruzzone and Pio Ong and Willian T. Lunardi and Martin Andreoni and Paulo Tabuada and Aaron D. Ames},
  title = {{Secure Safety Filter: Towards Safe Flight Control under Sensor Attacks}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11247729},
}
Figure