Stream-based Decentralized Runtime Verification

Ritam Ganguly, Borzoo BonakdarpourarXiv 2023 · DOI

Introduction

Industrial Control Systems (ICS), such as power grids and water treatment plants, are geographically distributed infrastructures. Monitoring these systems for safety and security is challenging because individual components, like PLCs and sensors, often lack a perfectly synchronized global clock. In such distributed environments, the "true" order of events is frequently ambiguous. For instance, if a sensor reports a spike and a valve closes shortly after, determining causality without a global clock involves checking every possible sequence of events, which leads to an exponential computational explosion.

Methodology

The proposed framework addresses these challenges through three primary innovations:

Partially Synchronous Semantics

The authors assume a "bounded clock skew" ($\epsilon$), meaning the difference between any two local clocks never exceeds a fixed value. This constraint significantly narrows the search space for possible event orderings, transforming an asynchronous problem into a structured partially synchronous one.

LOLA Extension for Uncertain Streams

The framework extends LOLA, a stream-based specification language, to handle sets of possible values resulting from timing uncertainty. Unlike standard temporal logics that return binary results, this extension allows for the aggregation of statistics and the propagation of uncertainty through the system.

Figure 1: Illustration of stream addition under bounded clock skew, where resulting values are sets of possible outcomes.

Decentralized Monitoring and SMT-Based Rewriting

The core engine uses SMT (Satisfiability Modulo Theories) solvers to "rewrite" safety rules into symbolic equations when local data is insufficient. Monitors share these partially evaluated equations and resolve them as more data arrives. This decentralized approach allows monitors to collaboratively verify system correctness without a central coordinator.

Figure 6: Algorithm 1 detailing the behavior of a monitor in the decentralized framework.

Evaluation and Results

The approach was evaluated using synthetic traces and real-world datasets, including the Secure Water Treatment (SWaT) plant, power and gas distribution systems, and NASA’s RACE dataset for aircraft monitoring.

Key findings include:

  • Attack Detection: The system successfully identified various ICS attacks, such as tank overflows and short-circuits.
  • Soundness: As a formal method, the system ensures no false negatives; if a violation is possible under the timing constraints, it will be detected.
  • Complexity Insights: Verifying logical expressions is significantly faster than arithmetic ones, as the latter can yield many unique values under different interleavings.
  • Scalability: While complexity grows with clock skew and stream count, the system remains performant for typical ICS specifications (e.g., $N=100$ time instances).
  • Precision: False positives (flagging violations that didn't occur due to ambiguity) decrease significantly as clock synchronization improves.

Conclusion

This framework provides a robust, sound method for monitoring distributed systems without a global clock. By formalizing bounded uncertainty, the authors enable efficient decentralized verification. Future research will focus on enhancing fault tolerance against malicious monitors and investigating the impact of unreliable communication networks on the rewriting process.

Summary updated

BibTeX
@misc{ganguly2023stream,
  author = {Ritam Ganguly and Borzoo Bonakdarpour},
  title = {{Stream-based Decentralized Runtime Verification}},
  year = {2023},
  eprint = {2301.13266},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.13266},
}
Figure