Secure State Estimation for Cyber-Physical Systems Under Sensor Attacks: A Satisfiability Modulo Theory Approach

Yasser Shoukry, Pierluigi Nuzzo, Alberto Puggelli, Alberto L. Sangiovanni-Vincentelli, Sanjit A. Seshia, Paulo Tabuada

TL;DR

This paper introduces IMHOTEP-SMT, a novel algorithm for "secure state estimation"—the challenge of accurately determining a system's status when some of its sensors are being maliciously manipulated. By combining logic-based SAT solvers with specialized mathematical "theory" solvers, the authors provide a method that is both mathematically guaranteed to be correct and significantly faster (often by an order of magnitude) than existing techniques.

What Problem Does This Paper Address?

Cyber-Physical Systems (CPS)—like autonomous vehicles, smart grids, and industrial robots—rely on a constant stream of sensor data to function. However, these sensors are vulnerable to attacks: hackers can inject malware into the processing unit, intercept network data, or physically "spoof" the environment (e.g., using a fake signal to trick a car's velocity sensor).

When an attacker corrupts a subset of sensors, the system faces a "Secure State Estimation" problem. It must figure out two things simultaneously:

  1. Which sensors are lying? (A combinatorial logic problem)
  2. What is the true state of the system based on the honest sensors? (A continuous math problem)

Previous solutions either used "brute force" (which is too slow for real-time use) or "convex relaxations" (which are fast but can produce incorrect results because they simplify the problem too much).

Methods

The authors propose a "Satisfiability Modulo Theory" (SMT) approach. They treat the problem as a hybrid of logic and geometry.

  • The Lazy SMT Paradigm: Instead of checking every possible combination of sensors, the algorithm uses a SAT solver to propose a "hypothesis" (e.g., "Sensors 1, 2, and 5 are honest").
  • The Theory Solver: A specialized mathematical solver then checks if this hypothesis is consistent with the laws of physics (modeled as linear dynamical systems). It uses a least-squares approach to see if the sensor readings actually intersect at a single point in the system's state space.
  • Learning from Failure (Certificates): If a hypothesis is wrong, the theory solver doesn't just say "no." It generates a "certificate"—a compact logical explanation of why those specific sensors are conflicting. This allows the SAT solver to prune away thousands of other incorrect hypotheses instantly.
  • Heuristics: The authors introduced "Conflicting" and "Agreeable" sensor set heuristics. By looking at the "residuals" (how much a sensor's reading deviates from the current best guess), the algorithm can more quickly identify the most likely culprits.

Datasets

The paper evaluates the algorithm using:

  • Randomly Generated Linear Systems: Used to test scalability across different numbers of states ($n$) and sensors ($p$).
  • Unmanned Ground Vehicle (UGV) Model: A simulated 4-wheeled robot equipped with GPS and motor encoders. The authors simulated various attacks, including random noise, step/ramp functions, and "replay attacks" (where old, valid data is played back to the controller).

Key Insights and Ideas

  • Geometry as Logic: The paper brilliantly frames sensor readings as hyperplanes in a high-dimensional space. In a healthy system, these hyperplanes intersect at the true state. An attack pushes some hyperplanes away. The SMT approach is essentially a smart way to find the largest set of hyperplanes that still intersect.
  • Soundness and Completeness: Unlike popular "convex relaxation" methods (like $l_1$ minimization), IMHOTEP-SMT is sound (if it gives an answer, it's correct) and complete (if a solution exists, it will find it).
  • The "Aha" Moment on Scalability: The authors found that while the problem is technically NP-hard, the specific "geometry" of control systems allows for very efficient pruning. Their custom certificates reduced the number of iterations required by up to 75x compared to a standard "naive" SMT approach.

Key Results

  • Speedup: IMHOTEP-SMT outperformed alternative methods like ETPG and MIQP (Mixed-Integer Quadratic Programming). In tests with 150 system states, it was an order of magnitude faster than the next best competitor.
  • Iteration Reduction: The specialized heuristics led to a 50x to 75x reduction in the number of iterations needed to find the correct sensor set compared to basic search methods.
  • Real-world Application: In the UGV simulation, the algorithm successfully detected and mitigated random noise attacks, ramp attacks, and replay attacks, allowing the vehicle to follow its intended path despite the sensor manipulation.
  • Noise Robustness: The authors mathematically proved "$\delta$-completeness," meaning the algorithm remains reliable even when the sensors have normal background noise in addition to the malicious attacks.

Limitations and Future Work

  • Linear Systems: The current framework is designed for linear dynamical systems. While many real-world systems can be approximated as linear, highly complex or fast-changing systems might require a nonlinear approach.
  • Bound on Attacks: The algorithm requires an estimate of the maximum number of sensors under attack ($s$). If the attacker compromises more sensors than the system expects (specifically more than half of the sensors required for "observability"), the state cannot be uniquely recovered.
  • Future Directions: The authors suggest extending this SMT-based reasoning to nonlinear and hybrid systems, where the math becomes significantly more complex but the logical "SAT" framework remains a powerful tool for managing the combinatorial complexity.

Summary updated

BibTeX
@article{shoukry2017secure,
  author = {Yasser Shoukry and Pierluigi Nuzzo and Alberto Puggelli and Alberto L. Sangiovanni-Vincentelli and Sanjit A. Seshia and Paulo Tabuada},
  title = {{Secure State Estimation for Cyber-Physical Systems Under Sensor Attacks: A Satisfiability Modulo Theory Approach}},
  journal = {IEEE Trans. Automatic Control},
  year = {2017},
  url = {https://openreview.net/forum?id=9zxZDAvalOLz},
}
Figure