Skip to main content
QUICK REVIEW

[Paper Review] Sound and Complete Runtime Security Monitor for Application Software

Muhammad Taimoor Khan, Dimitrios Serpanos|arXiv (Cornell University)|Jan 17, 2016
Parallel Computing and Optimization TechniquesComputer Science17 references3 citations
TL;DR

This paper presents a sound and complete runtime security monitor that detects both known and unknown cyber attacks by formally verifying application execution against a specification written in monadic second-order logic and event calculus. The monitor ensures zero false alarms and high efficiency by leveraging modular, abstract specifications and run-time verification, making it suitable for real-time and legacy systems.

ABSTRACT

Conventional approaches for ensuring the security of application software at run-time, through monitoring, either produce (high rates of) false alarms (e.g. intrusion detection systems) or limit application performance (e.g. run-time verification). We present a runtime security monitor that detects both known and unknown cyber attacks by checking that the run-time behavior of the application is consistent with the expected behavior modeled in application specification. This is crucial because, even if the implementation is consistent with its specification, the application may still be vulnerable due to flaws in the supporting infrastructure (e.g. the language runtime system, libraries and operating system). This runtime security monitor is sound and complete, eliminating false alarms, as well as efficient, so that it does not limit runtime application performance and so that it supports real-time systems. The security monitor takes as input the application specification and the application implementation, which may be expressed in different languages. The specification language of the application software is formalized based on monadic second order logic and event calculus interpreted over algebraic data structures. This language allows us to express behavior of an application at any desired (and practical) level of abstraction as well as with high degree of modularity. The security monitor detects every attack by systematically comparing the application execution and specification behaviors at runtime, even though they operate at two different levels of abstraction. We define the denotational semantics of the specification language and prove that the monitor is sound and complete. Furthermore, the monitor is efficient because of the modular application specification at appropriate level(s) of abstraction.

Motivation & Objective

  • To address the limitations of conventional runtime monitors that suffer from high false alarm rates or performance overhead.
  • To enable detection of both known and unknown cyber attacks by verifying runtime behavior against a formal application specification.
  • To provide a solution that is both sound (no false positives) and complete (detects all deviations from specification) without degrading system performance.
  • To support both legacy and modern systems by operating independently of implementation language and abstraction level.
  • To facilitate effective defense by enabling attack characterization through specification-based modeling of attack plans.

Proposed method

  • Formalizing application specifications using monadic second-order logic and event calculus over algebraic data structures.
  • Defining denotational semantics for the specification language to enable formal reasoning about system behavior.
  • Implementing a run-time monitor that compares execution traces of the application with its specification in real time.
  • Using abstraction relations (state, value, environment) to compare concrete execution states with abstract specification states.
  • Applying assume/guarantee reasoning to prove soundness and completeness of the monitor under formal verification.
  • Leveraging modular specification at appropriate abstraction levels to ensure efficiency and scalability.

Experimental results

Research questions

  • RQ1Can a runtime security monitor be both sound and complete in detecting deviations from application specifications without false alarms?
  • RQ2How can formal specifications expressed in monadic second-order logic and event calculus be used to model application behavior at multiple abstraction levels?
  • RQ3What mechanisms enable efficient run-time verification across different implementation and specification abstraction levels?
  • RQ4How can the monitor detect unknown attacks by comparing execution behavior with a formal specification?
  • RQ5Can the monitor be applied to both legacy and modern systems without performance degradation?

Key findings

  • The proposed monitor achieves soundness and completeness, ensuring no false alarms and detection of all deviations from the specified behavior.
  • The monitor operates efficiently by using modular specifications at appropriate abstraction levels, avoiding performance bottlenecks.
  • The formal specification language enables modeling of known and potential attack plans, supporting attack characterization and effective defense.
  • The monitor is applicable to both legacy and new systems, regardless of the implementation language.
  • The proof strategy based on assume/guarantee contracts provides a foundation for automatic monitor generation and semi-automated verification.
  • The authors plan to mechanize the proofs in Coq to create a generic library for reusable, formally verified runtime monitors.

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.