TL;DR
This paper introduces the first fully automated symbolic execution method for detecting violations of $\forall\exists$ (universal-existential) hyperproperties in infinite-state software. By combining symbolic execution with a novel bounded semantics, the authors' tool can automatically find "hyperbugs"—concrete counterexamples where a specific program execution cannot be matched by any other execution to satisfy a required property like refinement or non-interference.
What Problem Does This Paper Address?
Most software testing focuses on trace properties: "Does this single execution crash?" However, many critical security and correctness requirements are hyperproperties, which relate multiple executions.
The most challenging class is $\forall\exists$ hyperproperties. These require that for every possible execution trace, there must exist another trace that relates to it in a specific way. Examples include:
- Refinement: Does every behavior of a complex implementation exist in a simple specification?
- Generalized Non-interference: Can a secret input change the output in a way that couldn't be explained by a different secret input?
Refuting these is a nightmare for automated tools. To prove a bug exists, you can't just find one "bad" trace; you have to find one trace and then prove that no second trace exists to satisfy the requirement. Existing tools either only work on finite-state systems, require humans to write complex manual "invariants" (proofs), or are limited to simpler $k$-safety properties.
Methods
The authors propose a "Lazy" bug-finding approach based on Symbolic Execution:
- OHyperLTL$_{safe}$: They use a fragment of "Hyper Linear Temporal Logic" that focuses on invariants across traces, synchronized at specific "observation points."
- Upper-Bounded Semantics: Standard symbolic execution struggles with infinite loops. The authors developed a new semantics that looks at traces of length at most $k$. This ensures that if a bug is found in the bounded version, it is a guaranteed bug in the real program.
- The Lazy Algorithm: Instead of trying to solve the entire $\forall\exists$ formula at once (which creates massive, unmanageable SMT queries), the algorithm iterates. It picks one universal symbolic trace (representing a set of real executions) and then asks an SMT solver (Yices) to prove that no existential trace can possibly match it.
- Asynchronous Product Construction: To handle properties involving different programs (like checking if Program A refines Program B), they developed a way to "stitch" programs together, synchronizing them only when they hit user-defined observation points.
Datasets
The authors evaluated their prototype, Hyena, using two main sources:
- ORHLE Benchmarks: A set of 30 programs (15 with known bugs) used by a previous state-of-the-art deductive verifier. These include examples of refinement, non-interference, and delimited release.
- "Escalating" Benchmark: A new, parameterized benchmark designed by the authors to stress-test tools. It features a "path explosion" where the number of possible executions grows exponentially, making it extremely difficult for standard model checkers.
Key Insights and Ideas
- Automation over Proof: Unlike deductive verifiers (like ORHLE) that require users to provide loop invariants, this approach is "push-button." It finds bugs automatically by exploring the state space symbolically.
- The Power of "Lazy" Checking: By isolating the universal trace first, the tool significantly reduces the complexity of the SMT queries. This allows it to handle programs with thousands of path combinations that would crash other solvers.
- Handling Termination: One of the "aha" moments in the paper is the refinement of semantics to handle terminating and non-terminating programs consistently. Their "upper-bounded" approach avoids "vacuous truths" where a property is technically satisfied just because a program ends.
Key Results
- Speed and Accuracy: On the ORHLE benchmarks, Hyena found 14 out of 15 bugs in less than one second each. It failed on only one case where the program was not "finitely observable" (it could loop forever without hitting an observation point).
- Outperforming the Competition: In the "Escalating" case study, Hyena was compared against HyperQB (a bounded model checker) and HyHorn (a Horn clause solver). While the other tools timed out after 30 minutes as the problem difficulty increased, Hyena found the bugs in under 30 seconds.
- Concrete Evidence: Unlike many formal methods tools that just say "Property Violated," Hyena provides a concrete universal trace that serves as a witness to the bug.
Limitations and Future Work
- Finite Observability: The algorithm assumes that for any $k$ observations, the program will eventually reach them in a finite number of steps. If a program has a "silent" infinite loop that never hits an observation point, the tool may diverge (loop forever).
- Counterexample Explanations: While the tool identifies the "bad" universal trace, it doesn't yet provide a high-level "proof of absence" for the existential trace. The authors want to work on generating better explanations for why no match exists.
- Theory Support: The current prototype is optimized for integer arithmetic. Expanding support to other SMT theories (like bit-vectors or arrays) is a goal for future versions.
Summary updated