Skip to main content
QUICK REVIEW

[Paper Review] Developing Theoretical Foundations for Runtime Enforcement

Ian Cassar, Adrian Francalanza|arXiv (Cornell University)|Apr 24, 2018
Formal Methods in VerificationComputer Science5 references6 citations
TL;DR

This paper develops a theoretical foundation for automated synthesis of runtime enforcement monitors using a highly expressive logic, Hennessy-Milner Logic with Recursion (µHML). It identifies a subset of µHML formulae that are enforceable, enabling automatic generation of correct-by-construction monitors that ensure safety properties through suppression-based enforcement, with formal guarantees on correctness and determinism.

ABSTRACT

The ubiquitous reliance on software systems increases the need for ensuring that systems behave correctly and are well protected against security risks. Runtime enforcement is a dynamic analysis technique that utilizes software monitors to check the runtime behaviour of a software system with respect to a correctness specification. Whenever the runtime behaviour of the monitored system is about to deviate from the specification (either due to a programming bug or a security hijack attack), the monitors apply enforcement techniques to prevent this deviation. Current Runtime Enforcement techniques require that the correctness specification defines the behaviour of the enforcement monitor itself. This burdens the specifier with not only having to define property that needs to be enforced, but also with having to specify how this should be enforced at runtime; we thus relieve the specifier from this burden by resorting to a highly expressive logic. Using a logic we allow the specifier to define the correctness specification as a logic formula from which we can automatically synthesise the appropriate enforcement monitor. Highly expressive logics can, however, permit for defining a wide variety of formulae, some of which cannot actually be enforced correctly at runtime. We thus study the enforceability of Hennessy Milner Logic with Recursion for which we identify a subset that allows for defining enforceable formulae. This allows us to define a synthesis function that translates enforceable formulae into enforcement monitors. As our monitors are meant to ensure the correct behaviour of the monitored system, it is imperative that they work correctly themselves. We thus study formal definitions that allow us to ensure that our enforcement monitors behave correctly.

Motivation & Objective

  • To relieve specification authors from manually designing enforcement monitors by automating monitor synthesis from correctness properties.
  • To identify a subset of Hennessy-Milner Logic with Recursion (µHML) that guarantees enforceability at runtime.
  • To formally verify that the synthesized enforcement monitors are deterministic and correctly enforce safety properties.
  • To provide a theoretical foundation for sound and transparent enforcement using logic-based specification.
  • To separate the specification of system properties from the enforcement mechanism, enabling modular and correct-by-construction enforcement.

Proposed method

  • Uses a logic-based specification language (µHML) to express correctness properties, abstracting away enforcement implementation.
  • Introduces a normalization procedure to transform arbitrary symbolic HML formulae into a normal form (sHMLnf) that enables effective monitor synthesis.
  • Employs a synthesis function that maps enforceable formulae to deterministic enforcement monitors via symbolic event handling and state-based monitoring.
  • Applies a bisimulation game characterization to formally verify monitor correctness and enforceability.
  • Establishes formal definitions for strong enforceability, including soundness and transparency, ensuring monitors do not interfere with correct executions.
  • Uses fixpoint semantics and labelled transition systems to model system and monitor behavior, enabling formal reasoning about runtime behavior.

Experimental results

Research questions

  • RQ1Which formulae in µHML are enforceable at runtime, and how can we formally characterize this subset?
  • RQ2How can we automatically synthesize a deterministic enforcement monitor from a given enforceable logic formula?
  • RQ3What formal guarantees can be provided to ensure that the synthesized monitor is both sound and transparent?
  • RQ4How can the enforcement mechanism be decoupled from the property specification to improve modularity and correctness?
  • RQ5What logical and structural constraints ensure that the monitor itself behaves correctly and does not introduce unintended side effects?

Key findings

  • The paper identifies a syntactic subset of µHML that is enforceable, enabling automatic synthesis of monitors from logical specifications.
  • A normalization procedure is developed that preserves semantics while transforming formulae into a normal form suitable for monitor synthesis.
  • The synthesized enforcement monitors are formally proven to be deterministic, ensuring predictable behavior under all execution traces.
  • The monitors are proven to be sound: they never allow a violation of the specified safety property.
  • The monitors are transparent: they do not interfere with correct system behavior, preserving all valid executions.
  • The framework provides a formal foundation for separating property specification from enforcement logic, enabling correct-by-construction enforcement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.