Multi-path exploration guided by taint and probability against evasive malware

Fangzhou Xu, Wang Zhang, Weizhong Qiang, Hai Jin

Introduction

Modern malware has evolved to become increasingly "evasive," employing sophisticated techniques to detect analysis environments and suppress malicious behavior. These "logic bombs" and environment checks—such as verifying system time, hardware IDs, or the presence of a debugger—render traditional static and dynamic analysis ineffective. While multi-path exploration offers a potential solution by systematically testing code branches, it frequently suffers from "path explosion," where the sheer number of possible execution paths makes exhaustive search computationally infeasible.

This paper presents Antitoxin, a novel dynamic analysis framework designed to efficiently unmask hidden malicious payloads by prioritizing the most promising execution paths using a combination of taint analysis and probabilistic modeling.

System Architecture and Methodology

Antitoxin is built upon the Intel Pin dynamic binary instrumentation (DBI) tool. Its architecture is divided into three primary layers: evasion analysis, forced execution, and the underlying DBI engine.

High-level architecture of the Antitoxin framework, showing the interaction between evasion analysis, forced execution, and the DBI layer.

Path Planning Strategies

The core innovation of Antitoxin lies in its dual-pronged path planning strategy, which directs the analysis toward hidden malicious logic while avoiding the "benign facade" typically presented by evasive malware.

  1. Taint-Guided Exploration: Antitoxin monitors data originating from sensitive system APIs (e.g., GetSystemTime, GetAdaptersInfo). When a conditional branch depends on this "tainted" data, the system identifies it as a likely evasion check. Antitoxin then prioritizes exploring the "unnatural" side of the branch—the path the malware would not normally take in a sandbox environment.
  2. Probability-Guided Exploration (ACS): To address unknown or unsupported evasion techniques, Antitoxin employs an Ant Colony System (ACS) algorithm. By tracking execution frequency, the system assigns higher "pheromones" to common paths. Using a roulette-wheel selection mechanism, it then prioritizes branches with lower execution probabilities, assuming these represent the hidden, malicious code paths.
The path planning workflow, illustrating how dynamic execution information (coverage, taints, behaviors) informs both Taint-Guided and Probability-Guided exploration.

Forced Execution and Stability

To traverse these prioritized paths, Antitoxin utilizes "forced execution," manually altering branch outcomes. To maintain system stability during this process, the researchers developed the Pre-Allocated Memory Area (PAMA). PAMA acts as a safety net, providing valid memory addresses and random data to handle memory exceptions on-the-fly, preventing the program from crashing when forced into uninitialized code segments.

Experimental Results

The framework was evaluated against a suite of evasive samples, including the well-known Pafish tool and real-world malware such as September and Furtim.

  • Efficiency: In tests against the "September" malware (a Zbot downloader), Antitoxin reached the hidden malicious payload in a single round. In contrast, standard probability-based algorithms required 11 rounds, and linear exploration required 7.
  • Complexity Handling: Against the "Furtim" trojan, which contains over 400 rigorous evasion checks, Antitoxin successfully identified and bypassed a complex whitelist check within 12 rounds using its taint-guided strategy.
  • Generic Evasion Detection: The system demonstrated the ability to dismantle "unsupported" techniques—such as checking file counts in a directory—without requiring pre-defined rules, thanks to the probability-guided ACS component.

Conclusion and Future Work

Antitoxin demonstrates that combining high-confidence signals from taint analysis with probabilistic path exploration can significantly reduce the time required to analyze evasive malware. While the current prototype primarily handles direct conditional branches, future work will focus on extending support to indirect jumps and calls, as well as automating the identification of new sensitive data sources for taint analysis.

Summary updated

BibTeX
@article{xu2023multi,
  author = {Fangzhou Xu and Wang Zhang and Weizhong Qiang and Hai Jin},
  title = {{Multi-path exploration guided by taint and probability against evasive malware}},
  journal = {Secur. Saf.},
  year = {2023},
  doi = {10.1051/sands/2023023},
}
Figure