Windows malware detectors as composite AI systems: trade-offs among accuracy, efficiency, and adversarial robustnessWindows Malware Detector as a Compound AI System: Trade-Offs in Accuracy, Efficiency, and Adversarial Robustness
OBELISK uses a three-stage pipeline to trade off accuracy, cost, and robustness in Windows malware detection; aggressive filtering is faster, and informed attackers are more likely to bypass it.
The goal is test-time evasion. TM1 is zero-knowledge black-box transfer, unaware of internals. TM2–TM4 are partial knowledge: TM2 knows signatures; TM3 performs white-box on the static model, stealing only parameters, unaware of thresholds and preceding signatures, and selects 1% FPR on external data; TM4 knows signatures and the static model. Capability is test-time manipulation that preserves functionality. Attacks on the dynamic layer are not included.
- Industrial Windows malware detection is often assembled from signatures, static and dynamic analysis into a Compound AI System, but confidentiality makes accuracy, overhead, and robustness difficult to evaluate together, and academic work often tests only isolated components.
- The authors implement OBELISK: YARA filters first, then a GBDT on EMBER features uses a dual threshold to send uncertain samples to Nebula on Speakeasy reports. Models can be trained on full or filtered data, and TM1 to TM4 are defined by knowledge of signatures and static models.
- At approximately 1% FPR, the most aggressive filtering configuration OBV3 has a TPR of about 96% and trains faster than the less-filtered configuration that requires at least 100 hours; unfiltered STND has an average inference time of at least 4 seconds. The authors state that the more knowledge an attacker has, the more effective the attack, aggressive filtering expands the attack surface, and STND is more robust to attacks but slower.
- The authors note that dynamic analysis is weaker than static, only static adversarial examples were evaluated, no query attacks targeting the entire output were performed, and packing, obfuscation, and temporal drift were not separately evaluated. The experiments cover three filtering variants plus STND, totaling 37 configurations, four threat models, and 700 attack samples.
- Evaluated models
- EMBER-GBDT (GBDT-ALL / GBDT-YARA)Nebula (NEBULA-ALL / NEBULA-GBDT-YARA)
- Benchmarks
- SpeakeasyChocolatey goodwareWindows 8.1/10/11 system files
- Metrics
- TPRFPRF1TRTtTiworst-case TPR
The research proposes an evaluation method for compound AI systems for Windows malware detection, explicitly trading off detection performance, computational cost, and robustness, and introduces system-level threat models that characterize attackers using varying degrees of knowledge to bypass the entire compound system rather than individual detectors. Real-data experiments show that the system can reduce training time and improve response speed with only a slight loss in detection performance; attackers with more knowledge can craft more effective adversarial examples, reducing system responsiveness, revealing a direct trade-off between efficiency and robustness.
Paper analysis
What problem does this paper attempt to solve?
Industrial multi-layer detection is hard to evaluate due to secrecy; the paper uses system-level threat models to trade off accuracy, cost, and robustness.
Industrial Windows malware detection is often built as a multi-layer Compound AI System, but confidentiality prevents evaluating accuracy, computational overhead, and adversarial robustness together, and academic work often tests only isolated components.
- Scenario: The authors state commercial products chain signatures, static machine learning, and dynamic analysis into a pipeline, using early filtering for computational efficiency; internal structure can only be inferred. Public evaluation platforms report detection rates and false positive counts on closed sets but do not compare computational requirements and robustness.
- Existing gaps: The authors state academic work often trains static, dynamic, or hybrid models in isolation, or stacks pretrained models to simulate pipelines; deployment-time attacks target almost exclusively isolated models, then samples are tested on real systems. The authors state that to their knowledge, no work systematically studies the joint optimization of performance, computational requirements, and robustness while accounting for development and deployment costs.
- Observation: Upstream filtering can reduce downstream training data and lower overhead, but less data may harm accuracy and robustness; at deployment, components are arranged in increasing cost order, with probabilistic thresholds deciding whether to trigger more expensive analysis.
- This paper's approach: The authors propose a methodology that explicitly balances detection performance, computational requirements, and robustness, and introduce a system-level threat model describing how attackers with varying degrees of knowledge evade the entire system rather than individual detectors; implemented as OBELISK, with deployment guidance.
- Threat model:
- Goal: Test-time evasion under all four models.
- Knowledge: TM1 is zero-knowledge black-box transfer, unaware of internals, crafting samples against a substitute system and transferring. TM2 knows signatures, not subsequent layers. TM3 extracts static model parameters, unaware of preceding signatures and decision thresholds, and selects a 1% FPR operating point on external data. TM4 knows both signatures and the static model, also selecting that operating point.
- Capability: Test-time manipulation that preserves original functionality and loads without errors. Due to lack of stable open-source attack implementations for dynamic analysis, only the four models in Fig. 3 are evaluated.
- Victim systems: The authors' implemented Windows PE detection pipeline OBELISK, and the unfiltered reference STND.
What related research exists?
The paper discusses signatures, isolated detectors, and adversarial examples; the authors state existing system-level work does not address all three trade-offs simultaneously.
Industrial multi-layer detection and signatures
- Commercial solutions [1]–[5]: combine traditional detection with machine learning in multi-layer pipelines. The authors state that real deployments typically follow the order of signatures, static metadata, and dynamic behavior, using early filtering for computational efficiency.
- Signature mechanisms: Apple's macOS antivirus [6], Bitdefender [29], Microsoft Defender [4], and CrowdStrike Agent [30] use pattern matching. A blocklist hit classifies as malicious; an allowlist uses hashes to mark known benign samples, to reduce false positives that could cause harm.
- The paper writes in the methods discussion that signatures do not natively support tuning detection rate and false positives; one can treat matches as features and retrain a classifier, or remove rules with excessive false positives; during development, signatures can also constrain the data distribution seen downstream [25].
Detectors on isolated components
- Static detection: deep models trained on entire executables [8], [10], and EMBER [33] with handcrafted features using domain knowledge and aggregation techniques.
- Dynamic and hybrid: detectors on sandbox or emulation reports [12]–[14], and hybrid meta-models combining contextual and behavioral representations [18].
- Pipeline simulation: some work stacks pretrained models to mimic sequential detection pipelines [19].
Adversarial EXEmples and attack tools
- Demetrio et al. [15] call Windows malware samples that evade ML detectors while preserving functionality "adversarial EXEmples." The paper lists manipulations including modifying the extension header, injecting new sections [17], filling inter-section gaps [26], and appending bytes at the end of the file [20]. Optimization can be black-box queries or transfer, or white-box gradient optimization on differentiable detectors [20], [21].
- Transfer attacks [24] and query attacks [17] are listed by the paper as black-box evaluation practices. Static detection has stable open-source tools [38]; the paper states that dynamic attacks either have no public implementation [39], rely on Cuckoo, which stopped updating in 2021 [23], [40], or operate only in feature space [41], [42].
- Packing and obfuscation are common in practice, but the paper treats them as a separate problem not addressed here.
System-level work and baselines
- SLIFER [19] and analysis of the role of rule-based detection [25]: the authors state these are among the few works explicitly studying Windows malware Compound AI Systems, but only initial steps in system research. The paper explicitly contrasts that these works do not explicitly handle the trade-off among performance, computational requirements, and robustness, nor define and evaluate system-level threat models.
- Baseline methods: STND, i.e., YARA, GBDT-ALL trained on full data with a single detection threshold for inference, and NEBULA-ALL trained on all emulation reports. Attacks use GAMMA section injection [17] and padding [20], generated via SecML Malware [38]; for TM1/TM2, the substitute model is an open-source GBDT pretrained on EMBER.
- Benchmark/dataset: Speakeasy [18], supplemented with Windows system files and Chocolatey benign programs.
The authors position this work as: approximating an industrial three-stage architecture in a reproducible setting, while optimizing and evaluating the entire pipeline rather than isolated detectors.
How does the paper address this problem?
OBELISK chains signatures, static GBDT, and dynamic Nebula, uses dual-threshold filtering, and evaluates evasion under four knowledge assumptions.
The authors frame detection as a sequential Compound AI System: upstream filtering reduces downstream data, and the entire pipeline is evaluated under threat models with increasing knowledge. The implementation is named OBELISK.
Problem setting and three-stage structure
- Sequential: signature pattern matching, static metadata analysis, dynamic behavior analysis (Fig. 2). The authors state this corresponds to moving from rigid domain knowledge to data-driven decisions, with increasing computational cost: signatures on the order of hundredths of a second, static models on the order of tenths of a second, and dynamic analysis often taking seconds.
- Filtering role: samples that can be decided with high confidence and low cost end early; those with insufficient prior evidence go to more expensive analysis. The authors state that without computational constraints, the pipeline would degenerate to end-to-end.
- Inter-stage dependencies: each stage is a filter for the next, both reducing data volume and changing the distribution seen downstream. The authors state this can be beneficial for shallower models that rely on handcrafted features, but potentially harmful for deep networks that need large data to learn representations.
- Failure handling: in evaluation, samples that fail preprocessing are excluded without assigning default labels, to avoid mislabeling as malicious and inflating false positives, or as benign and lowering detection; this effect is in [19]. Manual review in practice is out of scope.
How data is reduced during training and inference
- Static model: GBDT-ALL ignores signature filtering and trains on full data; GBDT-YARA uses only samples not identified by either blocklist or allowlist.
- Dynamic model: NEBULA-ALL uses all reports; NEBULA-GBDT-YARA uses only the subset filtered by the first two stages. The latter uses δ to set two cutoffs: probability p ≤ δ labels benign, p ≥ 1−δ labels malicious, and only samples in (δ, 1−δ) are used to train the dynamic model.
- Inference: first label known samples with blocklist and allowlist; those not matched go to the static model. p ≤ δ labels benign, p ≥ 1−δ labels malicious, and the rest go to the dynamic stage for final decision.
- Trade-off: the authors state that only the dual threshold avoids sending all benign programs to the dynamic stage; they also acknowledge that adversaries may try to push samples below the lower threshold, which is an attack surface relative to the computational constraints of the full system.
The three stages of OBELISK
- Signature: YARA. The blocklist comes from public malicious rules; the allowlist is hashes of known programs distributed with Windows. Rules that trigger at least one false positive on the training data are all discarded.
- Static: GBDT from XGBoost, with EMBER features. Trained with 1000 trees, learning rate 0.1, 32 parallel jobs, rest are library defaults.
- Dynamic: Nebula, a transformer, input is Speakeasy emulation reports. The authors state it was chosen because end-to-end detection outperforms prior methods. BPE vocabulary 50,000, max input length 512 tokens; AdamW, learning rate 1e-4, β1=0.9, β2=0.999, ε=1e-8, batch size 64, trained for 60 epochs; model selected by ROC AUC on a 10% validation split of the training data.
- Four configurations: STND is YARA, GBDT-ALL with single threshold, NEBULA-ALL. OBV1 has the same structure but uses dual thresholds for inference. OBV2 replaces the second stage with GBDT-YARA. OBV3 further replaces the third stage with NEBULA-GBDT-YARA.
Attacks under four threat models
- Manipulation: GAMMA injects non-executable content from benign programs; PAD appends bytes in the overlay. When signatures are known, GAMMA-YARA is used, avoiding components that would trigger rules. The optimizer is a genetic algorithm. Specific section counts, padding lengths, and query budgets are written in Sect. V-A, not expanded into operational steps here.
- A1: Generate samples against an open-source EMBER GBDT substitute model, then transfer to the real system.
- A2: The substitute system is the deployed signatures plus the A1 substitute model, using GAMMA-YARA.
- A3 and A4: The static model is changed to the actually deployed GBDT-ALL or GBDT-YARA in OBELISK, no longer using the substitute GBDT. A3 attacks only that model; A4 attacks both the signatures and that model. The attacker still does not know the deployed threshold, and the operating point is chosen at 1% FPR on external data.
Decision and cost
- Detection metrics: TPR, FPR, F1. Strategies within each threat model are treated as an ensemble: a sample is considered successful if any strategy evades the target system, then worst-case TPR is computed. TR is the proportion that simultaneously evades both the "target of the attack" and the real system.
- Cost: Tt includes EMBER feature extraction, GBDT training, Speakeasy report generation and filtering normalization, BPE training, and Nebula training, excluding time to create signatures. Ti is average prediction time: signature matching is always done, static only if not matched, and emulation and Nebula only if confidence is insufficient.
What experiments did the paper conduct?
Aggressive filtering can maintain TPR at about 96% and reduce cost, but expands the attack surface; STND is more robust and slower at inference.
Experimental Setup
- Data: After Speakeasy deduplication, training had 71,505 malicious and 26,059 benign samples; testing had 17,495 malicious and 10,000 benign samples, collected in January and April 2022, respectively. Seven families: Backdoor, Coinminer, Dropper, Keylogger, Ransomware, RAT, Trojan. Additionally, 2,648 Windows 8.1/10/11 system files (training only) and 9,809 2024 Chocolatey programs (testing only). Final training: 71,505 malicious + 28,707 benign; testing: 17,495 malicious + 19,809 benign.
- Reports and rules: After removing errors in training simulations, there were 78,084 successful reports, with 67,611 unique reports. Testing discarded samples that could not be analyzed; the paper does not give the count after discarding. Of public rules collected in April 2025, after removing those with at least one false positive on the training set, 236 remained; the allowlist was 2,648 hashes.
- Systems and δ: STND, OBV1, OBV2, OBV3. δ values: (0.1, 0.27, 0.44, 0.72, 1.18, 1.93, 3.16, 5.18, 8.48, 13.89, 22.76, 37.28)×10^-3, denoted δ0–δ11. Three OBV variants each with 12 levels plus STND, totaling 37 systems.
- Attacks: Pool is 700 malicious samples from Speakeasy test set, 100 per family. A1 has three groups, using GAMMA-CHOCO, GAMMA-WIN, PAD against the EMBER substitute GBDT; A2 has three groups, using GAMMA-YARA-CHOCO, GAMMA-WIN, PAD against signatures plus that substitute model; A3 has six groups, using the first three against the deployed GBDT-ALL or GBDT-YARA; A4 has six groups, using GAMMA-YARA variants, GAMMA-WIN, and PAD against signatures plus the corresponding GBDT. The paper sets GAMMA injection into 50 Chocolatey .rdata sections or 10 Windows 11 sections, λ=1e-7; PAD sizes 0.5, 1, 1.5 KB; genetic algorithm with at most 500 queries, population 10.
- Metrics and operating points: TPR, FPR, F1, TR, Tt, Ti. The final threshold is tuned to approximately 1% FPR, taking the point on the ROC closest to that constraint. The text states that in Fig. 4, circles and stars correspond to slightly lower and slightly higher FPR, respectively; the caption draws STND as a black dashed line, with legend including Threshold @ 1% FPR and First tunable threshold. Robustness is the worst-case TPR of the ensemble within the threat model. The paper does not report the number of repetitions and does not use a separate review model.
- Hardware: Intel Xeon Gold 5420, two Nvidia L40S, 540 GB memory.
Main Results
Swipe horizontally to read the table
System TPR at ~1% FPR Tt Ti Source STND Not reported ≥100 hours ≥4 seconds THM2, THM4 OBV1 Not reported ≥100 hours Not reported THM2; Fig. 5 OBV2 Not reported ≥100 hours Not reported THM2; Fig. 5 OBV3, δ11 ≈96% Specific hours not reported Specific seconds not reported THM1, G2; Fig. 5 - The authors state that in Fig. 4, TPR worsens at low δ when more samples enter the dynamic layer, and improves with more aggressive filtering; they state this is expected because dynamic analysis alone has lower accuracy. Sect. V-D states STND has the highest accuracy, but does not give TPR at that operating point.
- The authors state that considering only performance and computational cost, OBV3 with δ11 is suitable for production; they also state that in Fig. 5b's Ti–performance trade-off, OBV1 with δ11 leads, most others are in the lower-left corner, and OBV3 with δ11 has similar performance and comparable inference cost.
- The authors state that training time for STND, OBV1, OBV2 is dominated by data preparation rather than fitting: feature extraction about 0.26 seconds/sample, simulation about 8.1 seconds/sample. STND's inference latency comes from benign samples going through the full pipeline; the authors state this latency may be unacceptable in production.
Robustness and Inference Time
- What was tested: All 37 systems tuned to approximately 1% FPR, evaluated under A1–A4. Fig. 6 plots Pareto frontiers of Ti vs. worst-case TPR and Ti vs. TR. The text does not give exact TPR or TR values for each point.
- Results: The authors state STND is most robust under almost all threat models, tying with other top-performing configurations under A3; next are OBV1 and OBV2 with moderate δ; OBV3 is the least robust family. Robustness does not vary monotonically with δ: OBV1 and OBV2 are better at δ6 and δ7, and within the OBV3 family the more robust is also δ6, with average TPR drop relative to STND of less than 10%. TR increases from TM1 to TM4.
- Authors' interpretation: Training on less data and static-layer filtering do not benefit robustness. Attacks raise Ti because manipulation increases input size, slows static feature extraction, and samples that bypass the first two layers trigger simulation. The authors state robustness and responsiveness are therefore coupled.
Layer Contributions
- What was tested: Only STND, OBV1-δ6, OBV2-δ6, OBV3-δ6, OBV3-δ11. Fig. 7 shows the proportion of test set where each layer makes the final decision, solid for correct, hatched for misclassified; Fig. 8 shows the same decomposition under worst-case A1–A4.
- No attack: The authors state δ shifts the decision burden to the static layer, which alone resolves about 80% of the test set; STND is the opposite, with the dynamic layer accounting for about 47% of correctly classified test set. The signature layer correctly classifies about 13% of the test set, with negligible false positives, which the authors link to discarding rules with false positives on the training set.
- With attack: The authors state the proportion of attacks blocked by the signature layer on STND is about 75% for A1 and A3, and about 25% for A2 and A4 where attackers avoid rule components. In Fig. 8, the hatched area above the static layer for OBV3-δ11 is interpreted by the authors as an overly broad benign region allowing evasion of only the static layer to break the pipeline; its dynamic model barely blocks attacks after the first two layers are bypassed. The authors state the dynamic layer contributes to defense only when trained on full data, and system robustness is not the sum of layer robustnesses.
Other Ablations and Analyses
- Training sets: GBDT-ALL is 100,212; GBDT-YARA is 79,319; NEBULA-ALL is 67,611; NEBULA-GBDT-YARA decreases from 59,461 at δ0 to 3,373 at δ11 (Sect. V-B).
- δ has 12 levels; the text states low δ corresponds to more samples entering the dynamic layer and worse TPR in Fig. 4.
- Windows 11 sections do not trigger signatures, so GAMMA-YARA-WIN is not listed separately; GAMMA-WIN is identical to it (Sect. V-A).
- Deployment guide (Sect. V-E): Use OBV3-δ6 when no dominant constraint; OBV3-δ11 when both training and inference are tight; OBV1-δ6 when training is ample but deployment is tight; STND when performance and robustness are prioritized and latency is not a bottleneck.
- Negative results: The authors report the OBV3 family is least robust; the dynamic layer at δ11 has almost no interception after the first two layers are bypassed; attacks raise Ti even when not fully defeating detection (THM5, THM8, THM13).
- The paper does not report TPR separately by PAD length or GAMMA section source, nor does it report the exclusion rate for preprocessing failures.
What are some points that can be further explored?
The authors note that the dynamic layer is weak, only static attacks were tested, and no query attacks targeting the entire pipeline output were performed.
Limitations and future directions noted by the authors
- Weak dynamic analysis: accuracy is lower than static, improvement remains difficult and underexplored. Nebula requires large training sets and days of emulation; virtualized traces are richer but much more expensive. The authors state that the reported dynamic layer limits should be read as limits of the current state of the art, not artifacts of the chosen model (Sect. VI).
- Only static adversarial examples evaluated: the threat models do not attack the dynamic layer. The authors state that relevant techniques either have no public implementation or rely on outdated platforms that are hard to set up; they also state that robustness numbers are therefore optimistic, and extending to runtime behavior manipulation would expand the measured attack surface (Sect. VI).
- No end-to-end query attacks: query-based attacks directly targeting the Compound AI System output were not computed. The authors state that each optimization round must wait for emulation to finish, which is too slow for the sample sizes and configuration counts in this paper; transfer attacks give a lower bound on attack effectiveness and thus an upper bound on the robustness of the tested system (Sect. VI).
- Packing and obfuscation: detection performance was not explicitly evaluated, nor was the presence of these techniques in the data controlled. The authors state that Speakeasy is collected in the wild by a security vendor and its authors report packed samples; this paper relies on that judgment without quantifying the proportion (Sect. VI).
- Data sources and temporal drift: larger or newer datasets require paid retrieval of programs to run attacks and emulation; the authors state that the method itself is not tied to a specific data source. Temporal drift is not explicitly handled; the existing split preserves temporal order, but the authors state this does not substitute for evaluation over longer observation windows (Sect. VI).
- Future plans: the authors plan to study richer behavioral representations, and emulation or virtualization that trades execution speed for fidelity; extend the same system to family attribution; study techniques for directly evading dynamic detection and poisoning; and study DoS that forces the system to fall back to emulation, thereby increasing inference time (Sect. VII).
Experimental coverage
- Tested configurations are STND, OBV1, OBV2, OBV3, with twelve δ levels, totaling 37 systems, compared on the Speakeasy final test set at an operating point of about 1% FPR for TPR, F1, Tt, and Ti (Sect. V-A, V-B).
- Adversarial evaluation is A1–A4, corresponding to TM1–TM4; the attack pool has 700 malicious samples, 100 per family. For A1/A2, the static target is the EMBER substitute GBDT, then transferred to OBELISK; for A3/A4, the static model is the deployed GBDT-ALL or GBDT-YARA (Sect. IV-B, V-C).
- Layer-wise decomposition covers only five representative systems: STND, OBV1, OBV2, OBV3 at δ6, and OBV3 at δ11 (Sect. V-D).
- The paper does not report the number of repetitions, the exclusion rate for preprocessing failures, or TPR separately for each attack variant; robustness is reported as the worst-case within each threat model ensemble (Sect. V-A, V-C).
- Dynamic analysis attacks, query attacks against the entire pipeline output, separate evaluation of packing and obfuscation, and temporal drift over longer windows are stated in Sect. VI as not performed, with reasons given as tool unavailability, queries requiring waiting for emulation, data already containing packing but not quantified, and lack of vendor telemetry or program retrieval permissions.
Summarize the main content of the paper
Three-stage filtering trades speed for a small detection loss; the same mechanism expands the attack surface, and deployment should choose configurations based on constraints.
OBELISK turns Windows PE malware detection into a sequential pipeline of YARA, EMBER-GBDT, and Nebula, to simultaneously examine detection, computational cost, and adversarial robustness.
- Problem: Industrial multi-layer detectors are hard to compare transparently on these three aspects due to secrecy, and academic evaluations often stop at isolated components. The authors aim to explicitly handle the trade-offs among the three in a reproducible setting and formalize different levels of attacker knowledge about the entire pipeline.
- Method: Signatures first match known samples; those not matched are classified by GBDT with a dual threshold δ as benign, malicious, or uncertain, and only uncertain samples go to the dynamic model on Speakeasy reports. Static and dynamic models can be trained on the full data or only on the subset filtered by upstream stages. TM1 to TM4 range from transfer with no knowledge of internals, to knowing signatures, knowing static model parameters, or knowing both; manipulations are section injection and overlay padding.
- Performance: At about 1% FPR, OBV3 with δ11 has a TPR of about 96% and belongs to a family that trains faster. STND, OBV1, OBV2 train for at least 100 hours, mainly spent on feature extraction at about 0.26 seconds per sample and emulation at about 8.1 seconds per sample. STND averages at least 4 seconds for inference.
- Robustness: The authors state that STND is more resistant to attacks under almost all threat models, while OBV3 is less resistant; OBV3 with δ6 has an average TPR drop of less than 10% relative to STND. On STND, attacks blocked by the signature layer drop from about 75% for A1/A3 to about 25% when the attacker knows the signatures. The dynamic stage of OBV3-δ11 barely blocks after the first two stages are bypassed.
- Authors' conclusion: Filtering can reduce cost, and the authors state that the sacrificed detection performance is small; but the same mechanism expands the attack surface. More knowledge allows samples to transfer to the full system more effectively, and attacks also slow down response. Four guidelines map no dominant constraint, both training and inference tight, only deployment tight, and performance and robustness priority, to OBV3-δ6, OBV3-δ11, OBV1-δ6, and STND, respectively.