arXiv:2609.31012cs.CRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.31012

Breaking the Black Box: Byte-Level Boundary Inference of Real-World Antivirus Systems

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, Jingwei Ye, Jianwen Tian, Wanpeng Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, Jingwei Ye, Jianwen Tian, and Wanpeng Li

Abstract—Existing approaches for understanding the detection logic of real-world antivirus (AV) software infer only binary malware/benign decisions from black-box queries, providing limited insight into the fine-grained decision-critical regions that govern AV detection. In this paper, we present AVHunter, the first framework for inferring byte-level decision-critical regions of real-world AV products under a black-box threat model. AVHunter constructs the first large-scale Byte-Level AV Boundary Dataset (BABD) by systematically probing 11 real-world AV products, revealing that modern AV detections are largely associated with a small number of compact decision-critical byte regions. Leveraging BABD, AVHunter trains AV-specific models that not only reproduce binary AV decisions, but also localize the decision-critical byte regions underlying these decisions, achieving an average boundary prediction recall of 85.07% while maintaining 97.43% detection agreement with the target AVs. We further validate that the predicted regions capture genuine AV decision knowledge through boundary-guided malware evasion, false-positive induction on benign executables, and a seven-month longitudinal study demonstrating that the inferred regions remain largely stable as AV products evolve. Overall, AVHunter moves beyond conventional binary-label AV modeling by enabling fine-grained boundary-region localization and revealing a new form of AV knowledge leakage with important implications for malware analysis, AV security, and boundary-aware defenses.

Index Terms—Antivirus Software, Malware Detection, Boundary Inference

I. INTRODUCTION

Model-stealing techniques have become a well-established threat in both the computer vision [1]-[6] and natural language processing domains [7]-[10]. By enabling the construction of high-fidelity surrogate models, these attacks can leak proprietary intellectual property and facilitate effective adversarial sample generation, leading to substantial economic and security risks for model vendors.

Prior studies have shown that model-stealing attacks can extend to real-world antivirus (AV) software, where black-box queries and semi-supervised active learning can be used to construct surrogate models with high detection agreement [11]. Malware evasion studies similarly rely on surrogate models or optimization objectives that implicitly learn decision boundaries to guide functionality-preserving modifications [12], [13]. However, these learned boundaries are typically derived from coarse-grained features or substitute detectors, and thus provide limited effectiveness against real-world AV products. As a result, high surrogate agreement or successful surrogate-side evasion does not necessarily indicate accurate recovery of the AV's fine-grained byte-level boundary.

We attribute this limitation primarily to the discrete nature of AV decision boundaries and the strict black-box constraints under which AV engines operate. Although machine learning-based malware detectors have shown promising results in controlled settings, their practical deployment is often hindered by high false-positive rates and substantial maintenance costs [14]. In practice, real-world AV products are hybrid systems that combine multiple detection sources, such as signatures, cloud intelligence, behavioral profiles, and runtime monitoring. However, prior empirical analysis of commercial AV internals shows that most detection capabilities are still provided by static checks [15]. Consequently, many AV decisions remain closely tied to discrete static detection patterns, where specific combinations of key bytes can determine whether a sample matches a detection rule [15], [16]. Existing model-stealing approaches, however, only observe binary benign/malware feedback and cannot access the internal detection logic of AV engines. Such coarse supervision loses fine-grained boundary information, causing surrogate models to approximate global AV behavior while failing to accurately reconstruct the byte-level decision-critical regions near the true AV boundary. To construct a surrogate model that can both replicate AV behavior and recover actionable byte-level boundary knowledge, two key challenges must be addressed:

C1: Extracting and representing AV decision boundary information in a learnable form under black-box constraints. Because AV engines expose only binary detection feedback, existing stealing approaches suffer from severe information loss. The challenge is to identify the sparse yet critical byte patterns that govern AV detection and transform such boundary information into machine-learnable supervision without accessing internal signatures, rules, or models.

(Corresponding author: Zhi Wang.)

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, and Jingwei Ye are with the College of Cryptology and Cyber Science, Nankai University, Tianjin 300350, China (email: yjs@mail.nankai.edu.cn; zwang@nankai.edu.cn; jiay@nankai.edu.cn; 2120250720@mail.nankai.edu.cn; kid519388073@mail.nankai.edu.cn; champion.su@mail.nankai.edu.cn; jwye@mail.nankai.edu.cn).

C2: Learning extremely sparse boundary signals within large binary inputs. AV boundary evidence is sparse and embedded in high-dimensional binary inputs. In a 1 MB executable, most bytes are irrelevant to detection, while the decision-critical bytes, which we define as boundary points, are typically fewer than 20 bytes (see Section II-A1). Mod-

Jianwen Tian is with the School of Computing and Information Systems, Singapore Management University, 80 Stamford Road, Singapore 178902 (email: jwtian@smu.edu.sg).

Wanpeng Li is with the School of Computer Science and Informatics, University of Liverpool, Liverpool, UK (e-mail: wanpeng.li@liverpool.ac.uk).

ifying these bytes can invalidate the corresponding detection pattern and cause the AV to miss the malware. Therefore, the surrogate model must reliably isolate weak boundary signals and learn them precisely, rather than producing noisy or overly coarse boundary estimates.

To address these challenges, we present AVHunter, a novel framework for systematically inferring fine-grained decision boundaries of real-world AV products at the byte level. To address C1, AVHunter performs controlled perturbations on malware samples to identify decision-critical bytes and expands them into boundary regions that preserve contextual information, thereby converting localized AV boundary evidence into learnable byte-level labels. To address C2, we design AV-DBNet, a boundary-aware surrogate model based on a multi-scale convolutional encoder, attention fusion, and decoder architecture. AV-DBNet jointly learns AV classification behavior and boundary probability distributions, enabling it to approximate target AV decisions while explicitly recovering decision-critical byte regions for downstream tasks such as boundary-guided evasion analysis, AV detection logic analysis, and cross-AV knowledge transfer assessment.

Using AVHunter, we construct the Byte-Level AV Boundary Dataset (BABD), a large-scale dataset comprising 241,070 malware and benign executables annotated with byte-level boundary information from 11 real-world AV products. BABD reveals that, despite the increasing complexity of modern AV systems, their detections are largely associated with a small number of compact decision-critical byte regions. Leveraging BABD, we train AV-specific models that not only reproduce binary AV decisions, but also predict the decision-critical byte regions underlying these decisions. Extensive experiments across 11 real-world AV products demonstrate that AVHunter achieves 85.07% average boundary prediction recall while maintaining 97.43% detection agreement with the target AVs. The predicted regions further enable highly effective boundary-guided malware evasion, achieving an average evasion rate of 83.78%. In a seven-month longitudinal study, AVHunter remains largely stable, with detection agreement decreasing by only 1.59%.

In summary, this paper makes the following contributions:

• We construct BABD, the first large-scale byte-level antivirus boundary dataset spanning 11 real-world AV products. BABD provides a benchmark for AV boundary-region localization and reveals that AV detections rely on a small number of compact decision-critical byte regions.

• We propose AVHunter, the first black-box framework for localizing byte-level decision-critical regions of real-world antivirus products. Unlike prior AV model-stealing approaches that reproduce only binary malware/benign labels, AVHunter predicts fine-grained decision-critical byte regions while maintaining high agreement with target AV detection.

• We perform the first large-scale evaluation of AV boundary-region localization across 11 real-world AV products. The results demonstrate that AVHunter accurately predicts decision-critical regions, which are validated through boundary-guided malware evasion, false-positive induction, temporal robustness, and comparisons

Boundary Region

Boundary Point

Raw Bytes: 65 48 8B DC B8 7B 1D 80 7C FF D0 31 C0 50

Detection Pattern: ?? B8 ?? ?? ?? ?? FF D0 ?? ??

Fig. 1: Illustration of AV Detection Patterns, Boundary Points, and Boundary Regions. Each detection pattern (e.g., signature or rule) contains critical Boundary Points (BPs), which, if modified, can invalidate the pattern. The surrounding context forms a Boundary Region (BR); modifying a BR overwrites the enclosed BPs and disrupts the associated detection rule.

with state-of-the-art binary-feedback-only approaches.

• We show that AV knowledge leakage goes beyond binary-label imitation. Fine-grained boundary knowledge can be recovered from black-box interactions, exposing risks of unauthorized AV replication, boundary-aware malware attacks, and transferable malware analysis.

Our implementation and open-science policy are available at https://anonymous.4open.science/r/AVHunter-8BE2/.

References (52)