Secure-by-construction synthesis of cyber-physical systems

Siyuan Liu, Ashutosh Trivedi, Xiang Yin, Majid Zamani

In the world of Cyber-Physical Systems (CPS)—think autonomous drones, smart power grids, and implantable medical devices—safety is usually the top priority. We use "correct-by-construction" methods to ensure these systems won't crash or fail. However, security is often treated as an afterthought, verified only after the system is built. This paper argues for a paradigm shift: Secure-by-Construction Synthesis, where security requirements are baked into the system's DNA from the very first line of design.

TL;DR

This paper proposes a unified framework to automatically synthesize controllers for Cyber-Physical Systems that are guaranteed to be both safe and secure. By combining formal methods, control theory, and the concept of "opacity," the authors provide a roadmap for building systems that are mathematically shielded against information leaks via side-channels.

What Problem Does This Paper Address?

Traditional security focuses on encryption and firewalls. But CPS have a unique vulnerability: side-channels. Because these systems interact with the physical world, an attacker can infer secret information (like a patient's medical condition or a vehicle's destination) just by observing "harmless" physical outputs like timing, power consumption, or temperature.

The challenge is that these leaks are often products of the control logic itself. If you design a controller for safety first and check for security later, you might find that fixing a security leak requires a total redesign. The authors tackle the "curse of dimensionality" and the difficulty of modeling continuous physical variables alongside discrete computer logic to create a design process that handles both simultaneously.

Methods

The paper synthesizes several high-level formal techniques:

  • Opacity as a Security Metric: The authors use "opacity" to define security. A system is opaque if an intruder, despite knowing the system's rules and seeing its outputs, cannot certaintly determine if a "secret" behavior (like starting from a sensitive location) has occurred.
  • Approximate Opacity: Since physical measurements are never perfectly precise, the authors introduce $\delta$-approximate opacity. This allows for a "robust" version of security suitable for the real world, where two outputs are considered indistinguishable if they are within a small distance ($\delta$) of each other.
  • Symbolic Abstractions: To handle complex continuous dynamics, the researchers create "finite abstractions"—simplified, discrete maps of the system.
  • Opacity-Preserving Simulation Relations: This is a key mathematical contribution. They define specific rules to ensure that if a simplified symbolic model is proven secure, the original, complex physical system is also guaranteed to be secure.
  • Barrier Certificates: For systems where creating a map is too difficult, they use "Barrier Certificates"—Lyapunov-like functions that act as mathematical "walls," proving that the system can never enter a state where it would leak its secrets.
  • Compositional Reasoning: To prevent the math from becoming overwhelming for large systems, they break the CPS into smaller subsystems and prove that if each part is secure and their interactions are limited (using "small-gain" theorems), the whole network is secure.

Datasets

As a theoretical and survey-oriented paper, it does not train a traditional machine learning model. However, it utilizes two primary examples for validation:

  1. Hospital Timing Data: A dataset from Bestvater et al. [26] regarding patient waiting times. The authors show that a simple decision tree can leak private psychotherapy visit information through timing side-channels, motivating the need for their framework.
  2. AWS DeepRacer: The authors use the dynamics of an AWS DeepRacer robotic car in a grid-world simulation to demonstrate how a controller can be synthesized to visit targets (mission) while hiding its starting point (security).

Key Insights and Ideas

  • Security is a Design Driver: Security shouldn't be a "patch" applied later; it must be a "primary design driver" alongside safety.
  • The Power of "Approximate": Exact security is often impossible in the physical world. By framing security as an approximation problem ($\delta$-closeness), it becomes mathematically tractable for control engineers.
  • Bridging Three Communities: The paper successfully links Discrete Event Systems (DES), Control Systems (CS), and Formal Methods (FM), showing that tools from one (like LTL logic) can solve problems in another (like side-channel leakage).
  • Compositionality is Mandatory: You cannot verify a smart city as a single block. The only way forward is "divide and conquer" via compositional proofs.

Key Results

  • Theorem 4.2 & 4.4: These establish that if an abstraction satisfies certain "InitSOP" (Initial-State Opacity Preserving) relations, the security guarantees carry over to the real-world system.
  • Discretization-Free Verification: The authors demonstrate that Barrier Certificates can verify the security of continuous-time systems without ever needing to simplify them into discrete steps, avoiding the "state-space explosion" problem.
  • Small-Gain Composition: They provide a condition ($\gamma_1\gamma_2 < 1$) that allows designers to build large, interconnected secure systems by only looking at the "gain" (influence) of one subsystem on another.

Limitations and Future Work

  • Stability Requirements: Many current methods rely on "Incremental Input-to-State Stability" ($\delta$-ISS), which is a restrictive assumption for some highly dynamic or unstable systems.
  • Binary vs. Quantitative: Currently, the framework mostly asks "Is it opaque or not?" Future work needs to focus on how much information is leaking (Information-Theoretic Entropy).
  • Data-Driven Security: The current approach assumes we have a perfect mathematical model of the system. The authors suggest moving toward Reinforcement Learning (RL) to "learn" secure controllers for systems that are too complex to model by hand.
  • Multi-Agent Complexity: While the paper touches on composition, securing a network of competing or collaborating agents (like a fleet of autonomous taxis) remains an open, undecidable challenge in many scenarios.

Summary updated

BibTeX
@inproceedings{liu2022secure,
  author = {Siyuan Liu and Ashutosh Trivedi and Xiang Yin and Majid Zamani},
  title = {{Secure-by-construction synthesis of cyber-physical systems}},
  booktitle = {Annu. Rev. Control},
  year = {2022},
  url = {https://openreview.net/forum?id=uAATUdazK9},
}
Figure