Work

BranchCARET Model Checking of Self Modifying Code

Year: 2026
Type: conference-paper
Abstract: Binary code analysis is an important task, especially for malware detection. Model checking is one of the static analysis techniques that can reason about behaviour of a program. Pushdown System (PDS) is a natural abstraction used for model checking binary code. However, when working with binary code, it is crucial to take self-modifying instructions into account. We consider Self-Modifying Pushdown Systems (SM-PDS) as an abstraction for self-modifying binary code. To specify malicious behaviour, the language needs to express return values and parameters of functions. Such expressivity is provided by the Temporal Logic of Matching Calls and Returns (CARET). Moreover, the language also needs to express branching behaviour of malware (as in CTL), which is not supported by CARET. BranchCARET is a logic that combines branching features of CTL and matching calls and returns. In this work, we present an efficient algorithm for BranchCARET model checking of selfmodifying PDS. We tackle the problem by constructing a kind of Büchi PDS and performing a kind of reachability analysis. We have implemented our algorithm in a tool and obtained promising results. In particular, we were able to detect several self-modifying malwares.
Source: HAL
Language: English
Open Access status: green
OpenAlex ID: W7214142114
FWCI:
Cites:
Cited by:
Related to: 10