arXiv:2609.08394cs.CRSep 2026

Manuscript Offprint

arXiv:2609.08394

Windows Malware Detector as a Compound AI System: Trade-Offs in Accuracy, Efficiency, and Adversarial Robustness

Andrea Ponte, Luca Demetrio, Luca Oneto, Battista Biggio, Fabio Roli

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

Andrea Ponte, Luca Demetrio, Member, IEEE,

Luca Oneto, Senior Member, IEEE, Battista Biggio, Fellow, IEEE, Fabio Roli, Fellow, IEEE

Abstract—Industrial Windows malware detectors are commonly described as Compound AI Systems composed of multiple heterogeneous components, including rule-based mechanisms as well as machine-learning-based static and dynamic analyses. However, due to industrial secrecy and limited public disclosure, the internal architectures of these systems can only be inferred, rendering systematic evaluations of detection accuracy, computational costs, and adversarial robustness largely infeasible. In contrast, academic research provides reproducible and transparent evaluation methodologies, but typically investigates individual detection components in isolation. To bridge the gap between academic research and industrial practice, and inspired by state-of-the-art industrial architectures for Windows malware detection, we propose a novel methodology that (i) explicitly balances the trade-off among detection performance, computational requirements, and robustness, and introduces (ii) system-level threat models that capture how attackers exploit different degrees of knowledge to evade the entire Compound AI System rather than isolated detectors. Experiments conducted on real-world data demonstrate that the Compound AI System training time can be reduced and responsiveness improved while incurring only a marginal loss in detection performance. Leveraging our threat modeling, we show that increasingly knowledgeable attackers craft more effective adversarial examples, revealing the system's strengths and weaknesses, degrading its responsiveness, and exposing a direct trade-off between efficiency and robustness. Finally, we translate these trade-offs into take-home messages and deployment guidelines, helping practitioners to select the system that best matches their operational constraints.

Index Terms—Windows Malware Detection, Compound AI System, Accuracy, Efficiency, Threat Models, Robustness.

I. INTRODUCTION

When browsing antivirus solutions to install or purchase, most products emphasize the adoption of multi-layered detection pipelines. These typically combine traditional detection techniques with advanced Machine Learning (ML) models [1]–[5], often collectively referred to as Compound AI Systems. Due to industrial secrecy and limited public disclosure, the internal structure of these Compound AI Systems can only be partially inferred. They are commonly assumed to operate as sequential pipelines that trade detection effectiveness for computational efficiency [1], [2], [4]. Such pipelines usually begin with a signature-based detector, which is deployed for its reliability in identifying well-known malware samples [6], [7]. This stage is typically followed by ML models trained on static analysis, i.e., inferring maliciousness from code and metadata without executing the program [8]–[11]. Finally, the last line of defense is provided by models trained on dynamic analysis, which infer maliciousness from runtime behavior observed when samples are executed in isolated virtual environments [12]–[14]. These dynamic analysis components may be deployed locally or executed in the cloud. However, the secrecy surrounding these pipelines renders systematic and transparent evaluations infeasible. While competitive benchmarking platforms exist 1^{1} and report metrics such as detection rates and false positive counts on closed sets of malicious and benign samples, they do not enable comparisons of Compound AI Systems along other critical dimensions, particularly overlooking computational requirements and robustness. As a result, it remains unclear whether - and to what extent - these systems can be evaded by carefully crafted and minimally modified programs, commonly referred to as adversarial EXEmples [15]. In contrast, academic research offers systematic and transparent evaluations, but solely focused on isolated components rather than fully integrated Compound AI Systems [16], [17]. At design time, most research concentrates on training individual ML models within narrowly defined settings, either exclusively for static [8]–[11], dynamic [12]–[14], or hybrid [18] analysis. Alternatively, some works stack pre-trained models to emulate sequential detection pipelines [19]. At deployment time, due to the lack of system-wide security evaluations and formalized threat models for Compound AI Systems, research continues to focus almost exclusively on isolated models [15], [17], [20]–[23]. In fact, at the time of writing, the only available approach to assess the robustness of Compound AI Systems for Windows malware detection consists of generating attacks against a single ML model and subsequently testing them against the real target system [17], [19], [24], [25]. Consequently, academia has largely overlooked rigorous analyses of integrated systems, contributing to a growing disconnect between academic research and industrial practice. To the best of the authors' knowledge, there is currently no work systematically investigating the joint optimization of performance, computational requirements, and robustness while accounting for both development and deployment costs. Hence, in this paper, we aim to narrow the gap between industry and academia by proposing a novel methodology for optimizing and evaluating Compound AI Systems for Windows malware detection. Our approach explicitly highlights the inherent trade-offs among detection performance, computational requirements (both at

Andrea Ponte, Luca Demetrio and Luca Oneto are with the Department of Informatics, Bioengineering, Robotics and Systems Engineering, University of Genova, 16126 Genova, Italy (e-mail: andrea.ponte@edu.unige.it).

Battista Biggio is with the Department of Electrical and Electronic Engineering, University of Cagliari, 09123 Cagliari, Italy.

Fabio Roli is with the Department of Informatics, Bioengineering, Robotics and Systems Engineering, University of Genova, 16126 Genova, Italy, and also with the Department of Electrical and Electronic Engineering, University of Cagliari, 09123 Cagliari, Italy.

1^{1}https://www.av-test.org/en/antivirus/business-windows-client/ design and deployment stages), and robustness that arise from integrating multiple detection technologies within a single pipeline (Sect. III-A). During the design stage, the primary computational costs stem from training the ML models for static and dynamic analysis. Reducing the amount of training data by exploiting the fact that a subset of samples is filtered out at earlier pipeline stages directly lowers these costs. However, using less training data may negatively impact performance, as reduced data availability often leads to lower model accuracy and may also hinder robustness. In this work, we identify when it is possible to reduce the training data while limiting the impact on performance, and when such reductions become detrimental. At the deployment stage, the pipeline components are naturally ordered by increasing computational cost: deterministic signature-based detectors, which incur negligible overhead (hundredths of a second); probabilistic static ML models, which require slightly higher computation times (fractions of a second); and probabilistic dynamic ML models, which are significantly more expensive, often requiring several seconds per sample. We show that optimizing the probabilistic thresholds used to decide whether to trigger more computationally expensive analyses allows one to jointly optimize performance and computational cost. With respect to robustness evaluation, we first formalize a range of threat models under varying assumptions about the attacker's knowledge of the system (Sect. III-B). We begin with a zero-knowledge adversary, who has no information about the system, and progressively consider stronger attackers who are aware of its structure but possess detailed knowledge of only a subset of its components. We then restrict our analysis to threat models that are feasible in practice, given the current state of the art in attack libraries targeting individual components or entire Compound AI Systems. Specifically, we focus on manipulations that affect only parts of the pipeline (e.g., the static ML component and/or signature-based detectors), as no effective manipulations are currently available for the remaining components. We conduct a series of experiments on real-world data using OBELISK, our implementation of a Compound AI System for Windows malware detection (Sect. IV) inspired by recent work [19], [25], which is optimized and evaluated according to our proposed methodology (Sect. V). Our results show that the proposed filtering mechanism significantly reduces resource consumption while incurring only a marginal decrease in performance (Sect. V-B). Moreover, our system-level threat models reveal that better-informed attackers can mount more effective evasion attacks, degrading system responsiveness and exposing the system's strengths and weaknesses that remain hidden when detectors are evaluated in isolation (Sect. V-C). Also, we show that the same filtering mechanism used to reduce computational cost simultaneously widens the system's attack surface and, by training on smaller datasets, further weakens robustness, exposing a direct trade-off also between computational savings and robustness (Sect. V-D). Finally, we distill our findings into a set of take-home messages and practical guidelines (Sect. V-E), to help practitioners select the configuration that best matches their operational constraints.

Figure

Fig. 1: Depiction of the Windows PE file format.

References (59)