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

Manuscript Offprint

arXiv:2609.31003

Weaponizing Ground Truth: Data Poisoning Attacks by Exploiting Boundary Misalignment Between Antivirus Software and Learning-Based Detectors

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—Machine-learning (ML)-based malware detectors are commonly trained using labels obtained from antivirus (AV) engines and aggregation services (e.g., VirusTotal). This practice assumes AV-generated labels provide reliable supervision. However, small byte-level modifications can substantially alter AV verdicts while leaving the representations perceived by downstream ML detectors largely unchanged, producing label-feature inconsistencies that can contaminate training datasets and create poisoning opportunities for ML-based malware detection. We present Bi-Iocane, a black-box poisoning framework that exploits the reliance of malware-labeling pipelines on AV-generated labels. Bi-Iocane identifies AV-sensitive bytes and modifies them to induce label changes. It rewrites such bytes in malware to obtain benign labels (evasion-oriented poisoning) and injects malware-associated byte patterns into benign software to obtain malicious labels (defamation-oriented poisoning). These poisoned samples and their lightly modified variants corrupt training data and cause selected targets to be misclassified. We evaluate Bi-Iocane with 13 AV engines simulating AV aggregation services and eight ML detectors. For 30 malware and 30 benign clean targets, Bi-Iocane combines AV-specific manipulations to generate malware-to-benign and benign-to-malware poisoned samples whose all tested AV-based labels are flipped. After these poisoned samples and variants are used for downstream training, the resulting ML models misclassify 92.08% of the original clean targets on average with only a 0.06% poisoning budget per target. Meanwhile, the poisoned models largely preserve clean-set performance, and six evaluated poisoning defenses show only limited mitigation. VirusTotal evaluation further confirms practical defamation risk and reveals potential evasion risk in real-world AV-to-ML labeling supply chains.

Index Terms—Data Poisoning, Malware Detection, Antivirus Software, Supply Chain Security.

I. INTRODUCTION

As malware continues to grow and evolve [1], traditional signature-based detection faces increasing difficulty in handling unseen and rapidly changing threats. This limitation has motivated ML-based malware detectors, which learn discriminative and generalizable patterns from large-scale historical labeled datasets and are better suited to detecting previously unseen or emerging malware families [2].

However, ML models critically depend on the quality of their training labels. In practice, dataset builders and ML detector developers often obtain samples and labels from security vendors or multi-engine aggregation services, such as VirusTotal [3] and VirScan [4], and treat AV verdicts as ground truth for downstream training [3]–[7]. These users become primary victims when attacker-submitted samples enter the labeling supply chain with manipulated AV-assigned labels. Although this workflow enables scalable dataset construction, it inherits a fundamental mismatch between upstream AV engines and downstream ML detectors. AV engines still rely substantially on discrete signatures and patterns [8]–[10], whereas ML detectors learn continuous and aggregated representations. Consequently, small byte-level perturbations can flip AV labels while largely preserving ML-perceived representations, making AV-to-ML labeling pipelines vulnerable to boundary-induced label manipulation.

Existing poisoning attacks against ML-based malware detectors mainly target downstream models rather than upstream label sources. Most are designed around the target model's input representation or feature extraction pipeline, modifying artifacts that affect detector-specific features such as API calls, byte sequences, section contents, or handcrafted statistical attributes [11]–[17]. Even problem-space attacks still rely on such detector-specific feature effects. Although effective in controlled settings, these attacks require the adversary to know, infer, or approximate the target representation, which is difficult for proprietary black-box detectors. The diversity of downstream representations, including handcrafted statistics, raw bytes, opcode sequences, graphs, and images, further limits their transferability. In contrast, manipulating AV-assigned labels in the upstream AV-to-ML pipeline offers a more general poisoning path for heterogeneous downstream detectors.

To the best of our knowledge, AndroVenom [18] is the first work to shift poisoning from downstream detectors to the upstream AV-based labeling stage. It injects malicious files into benign Android APKs, causing AV engines or multi-engine services to assign malicious labels that later propagate into downstream training data. However, AndroVenom still

(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).

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).

relies on knowledge of the downstream feature space. Specifically, the injected files are placed in the APK res folder because widely used feature extractors, such as Drebin [19] and MaMaDroid [20], do not process resource-file contents. The payload is therefore visible to AV engines but invisible to these downstream representations. If the target detector incorporates res contents, this assumption no longer holds. Thus, AndroVenom depends on a known downstream feature blind spot, is not fully feature-agnostic, and supports only unidirectional defamation, leaving reverse evasion unexplored.

To move beyond these limitations and expose a general supply-chain weakness, we propose Bi-Iocane, a downstream-detector-agnostic black-box poisoning framework that supports bidirectional attacks. Unlike AndroVenom, which relies on a known blind spot of downstream Android feature extractors, Bi-Iocane assumes no detector-specific invisible region or feature representation. Instead, it operates through the AV labeling interface and exploits decision-boundary misalignment between AV engines and ML-based detectors. By introducing subtle, localized perturbations to executable files, Bi-Iocane flips AV-assigned labels while largely preserving the representations perceived by downstream ML detectors.

Bi-Iocane constructs poisoned samples in two directions. For evasion, it corrupts AV-sensitive boundary bytes in malware, causing AV engines to assign benign labels. For defamation, it implants malware-mimicking boundary byte sequences into benign software to trigger malicious AV labels. The resulting samples and lightweight variants carry AV-assigned “ground-truth” labels and enter downstream training data, forcing detectors to associate nearly unchanged representations with flipped labels. At deployment time, the poisoned model misclassifies the original targets, either defaming benign software or enabling malware to evade detection. Since Bi-Iocane requires no knowledge of the downstream detector’s architecture, feature extraction pipeline, or input representation, it provides a general poisoning pathway across heterogeneous ML-based malware detectors.

The results show that Bi-Iocane effectively poisons downstream ML-based malware detectors through AV-based labeling services. Across 13 AV engines, it achieves an average malware-to-benign label reversal rate of 90.96% with only 0.09‰ perturbation. For benign-to-malware reversal, Bi-Iocane identifies effective malware-mimicking byte sequences for 10 of 13 AV engines and achieves an average label reversal rate of 85.96% with 0.13% perturbation. We further use these engines to construct a controlled multi-AV labeling setting approximating VirusTotal and assume that eight downstream detectors across six feature families are trained using their labels. Under this 13-AV setting, Bi-Iocane achieves a 92.08% average attack success rate with only a 0.06% per-target poisoning ratio. The poisoned models preserve clean-set performance, with a maximum average F1 decrease of 0.15 percentage points, and retain an 82.14% average attack success rate under the strongest of six evaluated defenses. To assess real-world impact, we submit 30 benign samples injected with malware-mimicking byte sequences and 30 malware samples rewritten at AV-sensitive byte positions to VirusTotal. The results show that malware-mimicking injection can push benign samples beyond common malicious-label thresholds, confirming practical defamation poisoning, while rewriting AV-sensitive bytes substantially lowers malicious AV verdicts, revealing a potential evasion-oriented poisoning risk. In summary, this paper makes the following contributions:

• We identify an upstream label-supply-chain attack surface in ML-based malware detection. Attackers can exploit AV-to-ML boundary misalignment to inject samples with manipulated AV labels into downstream training data, causing targeted misclassification without knowing the target model.

• We propose Bi-Iocane, a downstream-detector-agnostic black-box poisoning framework supporting bidirectional attacks. It rewrites AV-sensitive boundary points in malware for evasion and injects malware-mimicking boundary bytes into benign software for defamation.

• We evaluate Bi-Iocane on 13 AV engines and eight ML-based detectors across six feature families. Under a controlled 13-AV setting, it achieves 92.08% average attack success with a 0.06% per-target poisoning ratio, while preserving clean-set performance and resisting existing defenses. VirusTotal validation confirms practical defamation risk and reveals potential evasion risk for multi-AV labeling pipelines.

The associated poisoning sample generation tool and evaluation implementation are available at https://anonymous.40pen.science/r/Bi-Iocane-25A7/.

References (66)