Secure-by-Construction Synthesis of Cyber-Physical Systems

Siyuan Liu, Ashutosh Trivedi, Xiang Yin, Majid Zamani

Introduction: The Shift to Secure-by-Design

In the domain of Cyber-Physical Systems (CPS)—encompassing autonomous drones, smart power grids, and implantable medical devices—safety has traditionally been the paramount design objective. Engineers frequently employ "correct-by-construction" methodologies to ensure these systems operate within safe bounds. However, security is often relegated to an afterthought, addressed through post-hoc verification or "patching" after the system is built. This paper advocates for a paradigm shift toward Secure-by-Construction Synthesis, where security requirements are integrated into the system's fundamental design from the outset.

The Challenge: Physical Side-Channels in CPS

While traditional cybersecurity focuses on encryption and network firewalls, CPS face a unique threat: side-channels. Because these systems interact directly with the physical environment, an adversary can infer sensitive internal information—such as a patient's medical condition or a vehicle's classified destination—simply by observing "harmless" physical outputs like timing, power consumption, or thermal signatures.

These leaks are often inherent to the control logic. If a controller is designed for safety first, retrofitting it for security may necessitate a complete redesign. The challenge lies in the "curse of dimensionality" and the difficulty of modeling continuous physical variables alongside discrete computational logic.

A Unified Synthesis Framework

The proposed framework bridges Control Theory and Formal Methods to automatically synthesize controllers that are guaranteed to be both safe and secure.

Synthesis framework for the AWS DeepRacer: from continuous dynamics (a) and intruder modeling (b) to symbolic grid abstraction (c) and physical validation (d).

Key components of this methodology include:

  • Opacity as a Security Metric: A system is considered "opaque" if an intruder, despite knowing the system's model and observing its outputs, cannot determine with certainty if a "secret" behavior has occurred.
  • Approximate Opacity ($δ$-opacity): Recognizing that physical measurements are rarely precise, the authors introduce a robust version of security where outputs within a distance $δ$ are considered indistinguishable.
  • Symbolic Abstractions: To manage complex continuous dynamics, the system is mapped to a finite, discrete abstraction.
  • Barrier Certificates: For systems where abstraction is computationally prohibitive, Lyapunov-like "Barrier Certificates" act as mathematical boundaries, proving the system can never enter a state that leaks secrets.
  • Compositional Reasoning: Large-scale systems are decomposed into smaller subsystems. By applying "small-gain" theorems, the authors prove that if individual components are secure and their interactions are bounded, the entire network remains secure.

Experimental Validation and Case Studies

The framework was validated using two distinct scenarios that highlight the breadth of CPS security challenges.

Hospital Timing Side-Channels

Using a dataset regarding patient waiting times, the authors demonstrated how a simple decision tree can inadvertently leak private psychotherapy visit information through timing side-channels. This case study underscores the necessity of formal security guarantees in data-driven physical processes.

Decision tree analysis of hospital timing data, demonstrating how sensitive visit types can be inferred from wait times.

AWS DeepRacer Grid-World

The researchers utilized the dynamics of an AWS DeepRacer robotic car in a grid-world simulation. The goal was to synthesize a controller that allows the vehicle to reach its mission targets while successfully hiding its sensitive starting location from an external observer.

Conclusion and Future Outlook

The research establishes that security must be a primary design driver alongside safety. By framing security as an approximation problem ($δ$-closeness), it becomes mathematically tractable for control engineers.

However, several challenges remain. Current methods often rely on restrictive stability assumptions (e.g., $δ$-ISS). Future work aims to move beyond binary opacity toward quantitative information-theoretic metrics and explore Reinforcement Learning (RL) for systems too complex for manual modeling. Securing multi-agent systems, such as fleets of autonomous taxis, remains a significant open challenge in the field.

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