Visualizing Game-Based Certificates for Hyperproperty Verification

Raven Beutner, Bernd Finkbeiner, Angelina Göbl

Introduction

In formal verification, ensuring that a system adheres to complex security policies is a significant challenge. These policies, known as hyperproperties, describe behaviors that relate multiple execution traces of a system. A classic example is non-interference in information flow security: an observer monitoring low-security outputs should not be able to deduce anything about high-security inputs. Verifying such properties requires comparing different execution paths—for instance, ensuring that a trace where a high-security input is "true" produces the same low-security output as a trace where it is "false."

While algorithms exist to verify if a system satisfies these properties, providing a human-understandable certificate (a proof of satisfaction) is difficult. For standard Linear Temporal Logic (LTL), a counterexample is a single trace. However, for alternating hyperproperties (e.g., $\forall^* \exists^*$), a certificate must define a complex mapping: "For any trace you choose, the system can produce a matching trace that satisfies the property." This paper introduces HyGaViz, a tool designed to make these complex certificates intuitive through interactive visualization.

Verification as a Game

The core methodology of this work involves reframing the verification of $\forall^* \exists^*$ HyperLTL formulas as a game between two players:

  1. The $\forall$-player (The User): Acts as the "attacker" or environment, controlling the universally quantified traces by moving through the system to generate a path.
  2. The $\exists$-player (The System): Controls the existentially quantified traces, reacting to the $\forall$-player's moves to ensure the underlying LTL property holds.

If the system satisfies the property, the $\exists$-player possesses a winning strategy. This strategy acts as a step-by-step Skolem function, serving as the formal certificate of verification.

A close-up of the Deterministic Parity Automaton (DPA) and the associated HyperLTL formula being verified.

The HyGaViz Tool

To make these abstract strategies digestible, the authors developed HyGaViz, a browser-based interactive tool. Instead of presenting a static, unreadable strategy table, HyGaViz allows users to explore the certificate by playing the game.

The HyGaViz interface: (a) shows the initial system configuration, while (b) illustrates the interactive verification game with separated universal and existential systems.

As shown in the interface, the user clicks through states for the $\forall$-system, and the tool automatically updates the $\exists$-system based on its synthesized winning strategy. This interactive exploration helps users build an intuitive understanding of why a system is secure, rather than just receiving a binary "yes/no" result from a black-box verifier.

Handling Infinite Traces with Prophecies

A significant hurdle in game-based verification is that the $\exists$-player only sees the user's moves one step at a time (a finite prefix), whereas LTL properties are defined over infinite traces. To bridge this gap, HyGaViz implements prophecies.

Prophecies allow the user to declare their future behavior (e.g., "I will eventually visit state X"). The $\exists$-player can then use this assumption to formulate its winning strategy. If the user later violates their own prophecy, the tool detects the contradiction and automatically rewinds the game to the point where the "lie" occurred. This mechanism ensures mathematical rigor while keeping the game winnable for the system.

Implementation and Results

HyGaViz is built on a robust technical stack. The backend verification engine is written in F#, utilizing spot for LTL-to-automata translation and oink for parity game solving. The frontend is a stateless Node.js application that renders interactive graphs using Cytoscape.js.

The authors demonstrated the tool's effectiveness using manually constructed finite-state transition systems, such as models of non-interference. The tool successfully handles real-time strategy synthesis and provides a seamless experience for interactive gameplay and prophecy management.

Conclusion and Future Work

HyGaViz represents a first-of-its-kind approach to generating and visualizing certificates for $\forall^* \exists^*$ HyperLTL formulas. While currently limited to relatively small systems that can be explicitly visualized as directed graphs, the underlying game-based approach supports symbolic representation. Future work will focus on developing novel UI/UX strategies to visualize and interact with larger, potentially infinite-state symbolic systems, bringing the benefits of interactive certification to industrial-scale verification tasks.

Summary updated

BibTeX
@inproceedings{beutner2024visualizing,
  author = {Raven Beutner and Bernd Finkbeiner and Angelina Göbl},
  title = {{Visualizing Game-Based Certificates for Hyperproperty Verification}},
  booktitle = {FM},
  year = {2024},
  doi = {10.1007/978-3-031-71177-0\_5},
}
Figure