Oblivious Online Monitoring for Safety LTL Specification via Fully Homomorphic Encryption

Ryotaro Banno, Kotaro Matsuoka, Naoki Matsumoto, Song Bian, Masaki Waga, Kohei Suenaga

Introduction

In the burgeoning ecosystem of the Internet of Things (IoT), the intersection of data utility and privacy remains a critical challenge. As sensitive data—ranging from medical metrics to industrial sensor logs—is increasingly offloaded to cloud-based monitoring services, a fundamental tension arises. Users demand privacy for their raw data and the resulting diagnostic alerts, while service providers seek to protect their proprietary monitoring logic, often expressed as complex safety specifications. This paper presents a novel protocol for "oblivious online monitoring" that resolves this tension by ensuring dual-sided privacy through Fully Homomorphic Encryption (FHE).

Problem Statement

Traditional monitoring systems often force a compromise in privacy. Existing "oblivious" solutions typically suffer from one of three primary defects:

  1. Latency: Many systems are offline-only, requiring the entire data stream to be collected before processing can begin.
  2. Information Leakage: Some protocols inadvertently reveal the structure of the monitoring logic (the state machine) to the client.
  3. Inflexibility: Most cannot handle the continuous, real-time nature of IoT data, where immediate alerting is paramount.

The objective of this research is to develop a system that is truly online, preserves the privacy of the client’s data and results, and maintains the confidentiality of the server’s proprietary safety specifications.

Methodology

Formalizing Specifications

The authors utilize Linear Temporal Logic (LTL) to represent safety specifications. These LTL formulas are converted into Deterministic Finite Automata (DFA), which serve as the mathematical foundation for the monitoring logic. The DFA acts as a state-based flowchart that determines whether a sequence of inputs violates a safety property.

Privacy-Preserving Computation via TFHE

To achieve obliviousness, the protocol employs the TFHE (Torus FHE) scheme. FHE allows the server to perform logical and mathematical operations on encrypted ciphertexts without ever decrypting them. To adapt FHE for continuous, real-time streams, the authors introduced two specific algorithms:

  • REVERSE: Standard FHE-based DFA evaluation typically processes data in a "back-to-front" manner, which is incompatible with real-time streams. The REVERSE algorithm circumvents this by reversing the DFA logic itself, enabling the server to process encrypted bits as they arrive in chronological order.
  • BLOCK: For highly complex specifications where reversing the DFA might lead to a "state-space explosion," the BLOCK algorithm provides an alternative. It partitions the data stream into fixed-length blocks, processing each segment and carrying over the encrypted "current state" to the subsequent block.

Both algorithms integrate Bootstrapping, a critical FHE technique that "refreshes" ciphertexts to manage computational noise. This allows the monitoring process to continue indefinitely without the risk of decryption failure due to noise accumulation.

Experimental Evaluation

Datasets and Benchmarks

The protocol was evaluated using three distinct approaches:

  1. Synthetic Scaling: A custom binary DFA ($M_m$) was used to test scalability across up to 500 states and input lengths of 50,000 ciphertexts.
  2. Medical Case Study: The researchers utilized simglucose, a Type 1 Diabetes Simulator, to generate realistic blood glucose data.
  3. LTL Safety Formulas: Real-world safety specifications for detecting hypoglycemia and hyperglycemia were sourced from medical literature to test the system's practical utility.

Hardware Impact

A significant finding during evaluation was the role of hardware acceleration. By utilizing a client device with a dedicated AES chip (the ROCK64), the encryption process was found to be 35 times faster than on a standard Raspberry Pi 4, highlighting the importance of hardware selection for IoT edge devices.

Key Results

Scalability and Performance

The evaluation demonstrated that the time required to process data grows linearly with the length of the input. This linear scalability is essential for long-term monitoring applications. In the medical case study, the system processed individual data points in approximately 24 seconds or less. Given that commercial glucose sensors typically sample data every 1 to 5 minutes, the protocol is well within the requirements for real-time medical monitoring.

Algorithm Comparison

While the REVERSE algorithm proved faster for simpler formulas, the BLOCK algorithm demonstrated superior robustness for complex logic. In one instance (formula $\psi_4$), the REVERSE algorithm exceeded memory limits, whereas the BLOCK algorithm successfully managed the state space, indicating that the choice of algorithm should be tailored to the complexity of the safety specification.

Limitations and Future Directions

While the current protocol marks a significant advancement, several areas for future work remain:

  • Security Model: The current system assumes an "honest-but-curious" server. Future iterations could incorporate Zero-Knowledge Proofs (ZKP) to protect against malicious servers that might attempt to manipulate data.
  • Logic Expansion: The work is presently limited to "Safety" LTL properties. Expanding the framework to include "Liveness" properties (ensuring something good eventually happens) would broaden its applicability.
  • Signal Complexity: The system currently processes discrete binary signals. Extending the protocol to handle continuous-time signals (Signal Temporal Logic) would allow for more nuanced industrial and environmental monitoring.

Conclusion

This research demonstrates that dual-sided privacy in IoT monitoring is not only theoretically possible but practically feasible. By combining TFHE with innovative DFA processing algorithms, the authors have provided a blueprint for secure, real-time monitoring that protects both the user's sensitive health data and the provider's intellectual property.

Summary updated

BibTeX
@inproceedings{banno2022oblivious,
  author = {Ryotaro Banno and Kotaro Matsuoka and Naoki Matsumoto and Song Bian and Masaki Waga and Kohei Suenaga},
  title = {{Oblivious Online Monitoring for Safety LTL Specification via Fully Homomorphic Encryption}},
  booktitle = {CAV},
  year = {2022},
  doi = {10.1007/978-3-031-13185-1\_22},
}
Figure