Reactive software calls for instrumentation methods that uphold the reactive attributes of systems. Runtime verification imposes another demand on the instrumentation, namely that the trace event sequences it reports to monitors are sound -- that is, they reflect actual executions of the system under scrutiny. This paper presents RIARC, a novel decentralised instrumentation algorithm for outline monitors meeting these two demands. The asynchronous setting of reactive software complicates the instrumentation due to potential trace event loss or reordering. RIARC overcomes these challenges using a next-hop IP routing approach to rearrange and report events soundly to monitors.
RIARC is validated in two ways. We subject its corresponding implementation to rigorous systematic testing to confirm its correctness. In addition, we assess this implementation via extensive empirical experiments, subjecting it to large realistic workloads to ascertain its reactiveness. Our results show that RIARC optimises its memory and scheduler usage to maintain latency feasible for soft real-time applications. We also compare RIARC to inline and centralised monitoring, revealing that it induces comparable latency to inline monitoring in moderate concurrency settings, where software performs long-running, computationally-intensive tasks, such as in Big Data stream processing.
BISM: Bytecode-Level Instrumentation for Software Monitoring
BISM(Bytecode-Level Instrumentation for Software Monitoring)是一个轻量级的字节码插装工具,它具有一种表达性高的高级控制流感知插装语言。该语言遵循面向方面的编程范式,采用了joinpoint模型、通知内联和单独的插装机制。BISM提供了从字节码指令到方法执行的连接点、对全面的静态和动态上下文信息的访问以及插装方法。BISM在两种检测模式下运行:构建时和加载时。我们证明了BISM的有效性,使用两个实验:安全方案和一般运行时验证的情况下。结果表明,BISM插装引起低的运行时间和内存开销。
Architecting software monitors for control-flow anomaly detection through large language models and conformance checking
University of Naples Federico II(那不勒斯费德里科二世大学);University of Applied Sciences and Arts of Southern Switzerland(瑞士南部应用科学与艺术大学);University of Florence(佛罗伦萨大学);Linnaeus University(林奈大学)