Anytime Secure Safety Filtering Under Sensor Spoofing

A robot or drone with redundant sensors can stay safe even when an attacker secretly rewrites some of its readings. The idea is to avoid trusting any single estimate of where the robot is. Instead, the robot keeps a set of every state consistent with enough sensors, and it chooses controls that are safe for all of them. The current way to build that set is to check every possible subset of sensors that might be honest. That check grows combinatorially with the number of sensors. When it cannot finish within the control deadline, today's systems fall back on crude emergency stops. Even when the check does finish, being safe for every candidate makes the controller cautious during perfectly normal operation.

We propose a filter that can be stopped at any deadline and still returns a set guaranteed to contain the true state. Extra computation only makes that set smaller. The mechanism starts from small groups of sensors that together can already pin down the state, and it refines toward full subsets as time allows. Whether such small groups exist depends on how much sensor redundancy the system has beyond the minimum. Redundancy therefore becomes something a designer can spend on speed. A learned model only decides which groups to refine first. An attacker who fools that model can make the robot more cautious but cannot make it unsafe. Our central empirical question is how clean-operation performance, compute budget and redundancy margin trade against each other.

Core Claim

Existing secure safety filters treat the set of plausible states as all-or-nothing: either every sensor subset is checked, or there is no certified set. We claim a sound outer bound on that set exists at every intermediate compute budget. We also claim that the cost of making it tight is governed by the redundancy margin, meaning how many sensors beyond the minimum can be removed while the state stays observable.

To make this concrete, let $m$ be the number of sensors, at most $s$ of which are attacked. Call a subset of sensors observable if it alone determines the state. Call a family $\mathcal{K}$ of observable sensor groups ("cores") a cover if every subset of $m-s$ sensors contains at least one core. Let $P_K$ be the set of states consistent with core $K$'s measurements within known noise bounds over a sliding window. Let $\mathrm{Reach}(X^{t-1})$ be the states reachable in one step from the previous certified set. The certified set at time $t$ is then

$$\hat X^t = \mathrm{Reach}(X^{t-1}) \cap \bigcup_{K \in \mathcal{K},\ K \text{ consistent}} P_K .$$

Soundness follows from a simple argument. The honest sensors number at least $m-s$, so they contain some core. That core is all-honest and therefore consistent, and its $P_K$ contains the true state.

Refinement replaces a core $K$ by its consistent supersets. This preserves the cover and can only shrink $\hat X^t$. Small cores are cheap and loose, while full $(m-s)$-subsets reproduce the exact enumerated set. Small cores are only admissible when the system tolerates losing more than $s$ sensors, so the achievable speedup is predicted by the redundancy margin. With no margin, the method collapses to full enumeration and saves nothing.

Position Relative to Prior Work

The closest work, and the method we directly extend, is the Secure Safety Filter line.

Both require the enumeration to finish. Neither measures how much caution costs during clean flight. We keep their safety program unchanged and replace only the set construction with an anytime, cover-based one.

Two other lines supply methods or motivation.

  • Secure Data Reconstruction: A Direct Data-Driven Approach shows that convex relaxations (ℓ1 and group LASSO) recover trajectories of linear time-invariant systems much faster than brute force. It returns a point estimate with no closed-loop analysis, and we treat it as a fast competitor.
  • The coding-theory and observability analyses of Shoukry and Tabuada, Mishra et al. and Mao et al. explain why the redundancy margin controls both uniqueness and tractability. They motivate our prediction that margin buys speed.

Collaborative-perception defenses show that fast learned detection is possible but not trustworthy against adaptive attackers.

These papers constrain our design. Any learned component must sit where its failure costs efficiency, not safety.

Detecting Deception Attacks on Autonomous Vehicles via Linear Time-Varying Dynamic Watermarking detects attacks by injecting a secret probing signal into the actuators. It pays in tracking quality and does not say which sensor is compromised, so we treat it as complementary rather than competing.

Research Program

We will build three pieces.

The offline cover. For a given plant and sensor suite, we choose a hierarchy of covers from small observable cores up to full $(m-s)$-subsets. We select cores for small consistency sets using the observability structure of each sensor group.

The online anytime refinement. Each control step begins from the coarsest cover, warm-started with the refinement state from the previous step. It refines cores in priority order until the deadline. The resulting $\hat X^t$ is passed to the unchanged barrier-function program. If the program is infeasible, any remaining budget is spent refining the cores whose sets most constrain the program, before falling back to a stop.

The priority model. A small learned scorer uses residual features similar to those of CP-Guard+ to rank cores by how likely they are to be dropped or shrunk. Soundness never depends on this ranking.

We will also produce an analysis of how redundancy margin and noise level determine the compute needed to reach a given set diameter. Its prediction is that a larger margin allows smaller cores and fewer checks.

Baselines

Naive reference. A nominal controller with a standard barrier-function filter on the raw fused estimate, with no attack handling. It bounds clean performance from above and shows the unprotected failure mode.

Strongest existing method. The full-enumeration Secure Safety Filter of Tan et al., including its zero-velocity fallback. It is the strongest competitor because it is the only method in the file with a set-valued safety guarantee demonstrated on hardware. Its reported real-time figure is a 20 Hz update rate on the Intel UP Xtreme. No reported result was found on Lacuna for its clean-operation intervention cost or tracking degradation, so we measure it ourselves.

We run it on the same plant models, sensor suites, noise bounds, attack traces and processor. Deadlines are enforced identically: when enumeration misses the deadline, it takes its fail-safe action. Beating it means two things:

  • zero safety violations, as it achieves;
  • at deadlines where full enumeration misses, fewer fail-safe stops and lower integrated intervention. At generous deadlines, statistically indistinguishable behaviour, since our method converges to the same set.

Fast point-estimate competitor. The group-LASSO bi-level reconstruction of Secure Data Reconstruction, followed by a barrier-function filter with a margin tuned for safety on clean validation runs. It reports 14.64 ms versus 155.80 ms for brute force on a three-mass system, stays under 15 ms up to 30 units, and achieves 100% noise-free recovery. It gets the same margin-tuning budget as our method's hyperparameters.

Ablations. Three ablations isolate the key ingredients:

  • random ordering versus learned ordering versus a residual-magnitude heuristic;
  • warm-start on versus off;
  • coarsest cover only, with no refinement.

Why not just…?

Why not just use the fast convex relaxation and add a safety margin? On linear systems with large redundancy margin and small noise, this is a real threat. It is fast and nearly exact, and we expect it to match our method there. Its weaknesses sit in the regime where the plant tolerates only $s$ lost sensors, not $2s$. In that regime several states are genuinely plausible and no point estimate can be right under every attack, so a fixed margin is either unsafe or very conservative. Its guarantees also rest on linear time-invariant models and clean offline data. We settle this by sweeping the redundancy margin and running attackers that sustain an alternative plausible trajectory, measuring violations and intervention for both methods.

Why not just drop suspicious sensors with a learned detector and run an ordinary filter? Detection can be fast, as CP-Guard+ shows. However, the adaptive-attack results in MVIG and PosePert show that learned detectors are evaded, and a missed detection here becomes a safety violation. Even the purpose-built PoseGuard detects 57–84% of attacks at a 5% false-positive rate, and each false positive discards an honest sensor. Our experiments include an attacker with white-box access to the scorer. The prediction is that it raises our conservatism but produces zero violations, while the detector-then-filter baseline violates.

Why not just enumerate faster with parallel hardware? For five sensors and two attackers, as on the unicycle, this works. We expect no advantage there and will report parity. The combinatorial count grows quickly with the number of sensors and each nonlinear consistency check involves forward integration, so a deadline eventually binds on any fixed hardware. We will find where that crossover falls by scaling the sensor count on a fixed processor and a fixed deadline. If full enumeration never misses a deadline in realistic suites, the contribution narrows to the redundancy–conservatism analysis, and we will say so.

Proposed Experiments and Decisive Checks

Benchmarks. We use three plants from the file:

  • the interconnected mass-spring-damper system, scaled up to 30 units, with added redundant sensors to vary the redundancy margin;
  • the five-sensor unicycle with two spoofed sensors;
  • Gazebo/PX4 software-in-the-loop quadrotor flight inside the ±3 m geofence, with the constant, noise, scale and shift spoofing attacks of the flight paper.

We add two harder attackers. One sustains a dynamically consistent fake trajectory. The other knows the priority scorer and keeps attacked cores consistent so as to delay refinement.

Metrics. We record, for every run:

  • geofence or safe-set violations;
  • deadline misses and per-step compute;
  • quadratic-program infeasibility and fail-safe-stop rate;
  • set diameter;
  • mean deviation between the safe and nominal control during clean runs, together with clean and attacked tracking error.

Decisive checks. Five results would settle the claims:

  1. Soundness. Zero violations across every budget, ordering and attacker, including the scorer-aware one. A single violation would falsify the core claim.
  2. Graceful degradation. At deadlines where full enumeration misses, fewer stops and lower clean intervention than the Secure Safety Filter.
  3. Margin buys speed. The compute needed to reach a fixed set diameter should fall as sensors are added beyond the $s$-threshold, and there should be no saving at zero margin.
  4. Ordering and warm-start matter. The learned or heuristic ordering should reach a given diameter in fewer checks than random ordering. The scorer-aware attacker should erase that gain without causing unsafety.
  5. Parity where expected. At generous deadlines, parity with full enumeration. On high-margin linear plants, parity with group LASSO.