Skip to main content
QUICK REVIEW

[Paper Review] On the Formal Semantics of the Cognitive Middleware AWDRAT

Muhammad Taimoor Khan, Dimitrios Serpanos|arXiv (Cornell University)|Dec 11, 2014
Advanced Software Engineering MethodologiesComputer Science6 references9 citations
TL;DR

This paper formally defines the semantics of the Execution Monitor in the cognitive middleware AWDRAT using denotational semantics, enabling precise specification of runtime behavior and inconsistency detection between system observations and architectural model predictions. The formalism supports correctness proofs and paves the way for extending AWDRAT to new cybersecurity domains with verified safety properties.

ABSTRACT

The purpose of this work is two fold: on one hand we want to formalize the behavior of critical components of the self generating and adapting cognitive middleware AWDRAT such that the formalism not only helps to understand the semantics and technical details of the middleware but also opens an opportunity to extend the middleware to support other complex application domains of cybersecurity; on the other hand, the formalism serves as a pre-requisite for our proof of the behavioral correctness of the critical components to ensure the safety of the middleware itself. However, here we focus only on the core and critical component of the middleware, i.e. Execution Monitor which is a part of the module "Architectural Differencer" of AWDRAT. The role of the execution monitor is to identify inconsistencies between runtime observations of the target system and predictions of the System Architectural Model. Therefore, to achieve this goal, we first define the formal (denotational) semantics of the observations (runtime events) and predictions (executable specifications as of System Architectural Model); then based on the aforementioned formal semantices, we formalize the behavior of the "Execution Monitor" of the middleware.

Motivation & Objective

  • To formally specify the behavior of the Execution Monitor in AWDRAT to ensure behavioral correctness and safety.
  • To provide a rigorous semantic foundation for extending AWDRAT to new cybersecurity application domains.
  • To enable formal verification of the middleware’s critical components using denotational semantics.
  • To bridge the gap between high-level architectural models and low-level runtime observations through formal semantics.
  • To support automated diagnosis and response by formally defining state transitions and failure detection.

Proposed method

  • Defining a denotational semantics for runtime events (observations) and executable specifications (predictions) from the System Architectural Model.
  • Introducing semantic algebras for truth values, numeral values, environments, states, event values, and component states to model system behavior.
  • Formalizing valuation functions for system components, behavioral models, and attack models using recursive and lifted semantic constructs.
  • Specifying the Execution Monitor’s behavior via state and environment transition sequences, with formal predicates for monitoring and diagnosis.
  • Using formal logic to define the monitor’s response to entry, exit, allowable, and unexpected events, including state mode changes and diagnosis triggering.
  • Defining a monitoring predicate that ensures post-states match expected outcomes or trigger diagnosis when compromised states are detected.

Experimental results

Research questions

  • RQ1How can the behavior of the Execution Monitor in AWDRAT be formally specified using denotational semantics?
  • RQ2What semantic constructs are required to model runtime observations and architectural model predictions accurately?
  • RQ3How can formal semantics enable verification of the Execution Monitor’s correctness and safety?
  • RQ4In what way does the formal model support diagnosis activation upon detecting inconsistencies?
  • RQ5How can the formalism be extended to support automated translation from Abstract State Machines to System Architectural Models?

Key findings

  • The formal semantics of the Execution Monitor enables precise, machine-checkable specification of component state transitions and event handling.
  • The model formally captures the transition from 'running' to 'completed' or 'compromised' mode based on event validity and postcondition checks.
  • Diagnosis is formally triggered when an unexpected event occurs or when postconditions fail, ensuring timely response to anomalies.
  • The formalism supports the construction of pre- and post-state sequences that maintain semantic equivalence between the target system and its architectural model.
  • The semantics ensures that a compromised state leads to diagnosis activation, with the system state being restored to a normal post-state.
  • The formal framework provides a foundation for future formal reliability and soundness analysis of the Execution Monitor.

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.