Efficient Symbolic Execution of Software under Fault Attacks
Yuzhou Fang, Chenyu Zhou, Jingbo Wang, Chao Wang
TL;DR
The paper tackles the problem of safely analyzing software under fault attacks, where hardware faults can cause instruction skipping and aberrant control flow. It introduces two key innovations: a program-transformation fault-modeling technique that injects fault flags to accurately capture fault-induced behavior, and a suffix-summary–based pruning approach that uses the weakest precondition ($WP$) to cut redundant symbolic-execution paths while respecting a fault budget $\\beta$. The method is implemented atop LLVM, KLEE, and Z3 and evaluated on 32 benchmarks, showing that it detects many previously missed safety violations and achieves about $2.0\times$ speedup on average compared with the state of the art. This work advances scalable, software-only verification for fault-resilient embedded systems by reducing path explosion and improving fault-model fidelity, enabling more comprehensive safety guarantees under realistic fault models.
Abstract
We propose a symbolic method for analyzing the safety of software under fault attacks both accurately and efficiently. Fault attacks leverage physically injected hardware faults to break the safety of a software program. While there are existing methods for analyzing the impact of faults on software, they suffer from inaccurate fault modeling and inefficient analysis algorithms. We propose two new techniques to overcome these problems. First, we propose a fault modeling technique that leverages program transformation to add symbolic variables to the program, to accurately model the fault-induced program behavior. Second, we propose a redundancy pruning technique that leverages the weakest precondition and fault saturation to mitigate path explosion, which is a performance bottleneck of symbolic execution that is exacerbated by the fault-induced program behavior. We have implemented the method and evaluated it on a variety of benchmark programs. The experimental results show that our method significantly outperforms the state-of-the-art method. Specifically, it not only reveals many previously-missed safety violations but also reduces the running time drastically. Compared to the baseline, our optimized method is 2.0$\times$ faster on average.
