arXiv:2610.25639cs.LOOct 2026

Manuscript Offprint

arXiv:2610.25639

Privacy-Preserving Robust Monitoring of Dense-Time Temporal Logic

Charles Koll, Mike Rosulek, Houssam Abbas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Charles Koll ID^{ID}

Oregon State University

Corvallis, OR, USA

kollch@oregonstate.edu

Mike Rosulek ID^{ID}

Oregon State University

Corvallis, OR, USA

rosulekm@oregonstate.edu

Houssam Abbas ID^{ID}

Oregon State University

Corvallis, OR, USA

houssam.abbas@oregonstate.edu

Abstract—Motivated by the use of third-party testing, this paper presents a privacy-preserving implementation of the robustness monitoring of Signal Temporal Logic (STL). STL is a specification language for systems whose output traces have real-valued timestamps – most prominently, cyber-physical systems. Its robust semantics, which assign real rather than binary truth values, are an essential ingredient of systems testing and runtime monitoring. In a number of system testing scenarios, the designer and the tester are separate parties. This testing-as-a-service model is common in software, avionics, and semiconductors, and is growing in importance in the red-teaming of machine learning models. In such a model, the designer seeks to preserve the privacy (or secrecy) of its design, while the tester seeks to preserve the privacy of its collateral, including the detailed specification suite. This paper presents a secure multi-party implementation of the robust semantics using arithmetic circuits. This implementation allows one party, which provides a secret trace, and a second party which provides a secret formula, to jointly compute the robustness without either party being able to learn the other party's secret input. We present a number of algorithmic modifications to the robustness computation to enable an efficient multi-party robustness computation. We also present new, semi-linear, robust semantics for STL that take advantage of the efficiencies of arithmetic circuits. The experimental results demonstrate that not only is this privacy-preserving monitor efficient on its own, but also that it can be used in a testing loop without affecting the speed at which bugs are found during robustness-guided system testing.

I. INTRODUCTION

Monitoring, also known as runtime verification, is a key routine in the testing and runtime operation of Cyber-Physical Systems (CPS). The basic setup is one where an executing system generates an output signal s, which is a function of time, that is supposed to satisfy some specification ϕ\phi in an appropriate temporal logic. A monitor receives that signal and determines whether it satisfies the specification. Monitoring is used at runtime (during system operation) to detect spec violations, or at design time, during system testing, to guide the test case generator. When monitoring or testing systems with physical components (e.g., cyber-physical systems), the specification is typically formalized in a dense-time logic, i.e., one which places real-time constraints on the signals and is interpreted over traces with real-valued timestamps. Moreover, one is especially interested in robust satisfaction, i.e. in obtaining a real-valued measure of how well the trace satisfies the specification or how badly it violates it, not just in a binary satisfies/violates answer. This paper uses Signal Temporal Logic, or STL, as a specification logic [1], and the max/min robust semantics of STL [2] for quantitative satisfaction. These are very commonly used options in cyber-physical systems monitoring and testing.

In some applications, the monitored trace and the formal specification are owned by two different parties, and there's a need to keep each of them a secret known only to its owner. For example, Testing-as-a-Service (TaaS), which is the practice of outsourcing some testing activities to an outside party, is common in industries like semi-conductor [3]–[5], aerospace [6], fuel cell batteries [7], and software [8]–[11]. There is significant economic incentive in building novel TaaS models: the global TaaS market in software was estimated at USD 4.54 billion in 2023 [12] and at USD 2.5 billions in semiconductors [13]. The design company has clear incentives for keeping its design secret. In particular, this implies keeping the system's output traces secret, since otherwise the tester might learn to map input traces (which it generates) to output traces. The testing company, on the other hand, possesses refined and targeted correctness specifications which it developed over years of experience with different designs. These specifications steer the test case generator towards effective tests. The testing company is thus incentivized to keep them secret. A key challenge of TaaS is therefore the protection of the intellectual properties (IP) of both the design and the testing companies, namely the design's output signals (and the design that produced them), and the tester's correctness specifications.

Thus we are faced with the following problem: given two parties, Designer who owns a secret dense-time trace and Verifier who owns an STL formula, how can they compute the robustness of the trace relative to the formula, so that both learn the robustness, but Verifier does not learn anything else about the monitored trace, and Designer does not learn anything about what formula the trace is monitored against? Such an implementation is called privacy-preserving, or simply private. Non-Disclosure Agreements (NDAs) provide penalties for leaking trace and formula beyond the two parties, but cannot ensure that design and formula secrets are not leaked between parties.

In this paper, we use a cryptographic technique called secure multi-party computation [14], aka MPC, to create a privacy-

doi https://doi.org/

This article is licensed under a Creative Commons Attribution 4.0 International License

CC BY

SUT: the cyber-physical System

Under Test

A combination of software and physical hardware

Figure

Input trace to the engine

Output trace from the engine

Robustness ρ(ϕ,xk)\rho(\phi, x_k)

TEST CASE

GENERATOR

Select next test

Fig. 1: CPS monitoring-and-testing loop. A CPS System Under Test (SUT) takes an input signal and produces an output signal. The robustness of the output signal w.r.t. to an STL specification is computed by the monitor and used to guide the test generator. The signal is a proprietary secret to the system designer, while the formula is a proprietary secret of the testing company.

preserving implementation of STL robustness monitoring. Our work is offline, meaning that the robustness monitoring only occurs once Designer has a full trace. We seek to answer the following research questions:

  1. Can we develop an MPC implementation of robustness monitoring that is fast enough for use in a robustness-guided testing loop?

  2. Does private monitoring negatively affect the rate at which robustness-guided testing finds bugs? By bug finding rate, we mean the number of tests needed to find a bug. This is distinct from the time it takes to monitor a given output trace, produced by the system in response to a given test.

MPC is known to add significant computational overhead, so merely dropping an algorithm into a general-purpose MPC framework will not be enough. Algorithmic and domain-specific theoretical modifications will be necessary, and these constitute the core of this paper.

Related Work. There are very few works on private monitoring. The concept of private offline monitoring was introduced for LTL in [15], which also sketched a number of approaches to preserving the privacy of the monitored signal – but not of the LTL formula. Banno et al. [16] define a scheme for preserving the privacy of both a safety-only LTL formula and a signal, using fully homomorphic encryption [17] and the LTL formula's representation as a DFA (Deterministic Finite Automaton). We work with the full Signal Temporal Logic (STL) required for CPS designs, so both our signals and formulas are significantly different. In particular, STL formulas in dense time do not have a DFA representation, so work on oblivious DFA evaluation, like [18] and [19], is not applicable here. Along similar lines, works such as [20] rely on characteristics of discrete-time STL for their approach, which do not work in our dense-time setting. Henzinger et al. [21] have the same goal of private runtime verification, but approach the problem differently – they encode the formula specification as a circuit, while we implement a functionality that takes the formula as an input. Additionally, their experiments focus on simple functionality such as comparators and adders, whereas we compute robustness and assume more complex specifications. Contributions. This work makes the following contributions:

  1. An approach for an MPC-based approach to private STL robustness monitoring for any formula up to a given depth;

  2. A novel robust semantics of STL that computes more efficiently than traditional robust semantics in arithmetic circuits;

  3. An experimental confirmation of the practicality of private monitoring using the MP-SPDZ framework [22].

  4. An experimental confirmation that the private computation does not degrade the rate at which robustness-driven testing finds bugs.

Along with this document we have also submitted an artifact containing code for our experiments.

Organization. Section II provides background regarding STL, robustness, and multi-party computation; Section III describes our variants of robustness monitoring algorithms which are efficient for MPC, including new robustness semantics; Section IV presents experimental results; and Section V concludes.

References (25)