arXiv:2608.22721cs.CRAug 2026

Manuscript Offprint

arXiv:2608.22721

EGAMA-RC: Risk-Calibrated Evidence-Gated Adaptive Malware Analysis for Robust and Interpretable Memory-Forensic Triage

Isaac Kofi Nti

Isaac K. Nti, Member, IEEE

Abstract—Machine-learning malware detectors often achieve high clean-data accuracy, but operational triage also requires evidence about uncertainty, novelty, robustness, interpretability, latency, and review cost. This paper presents EGAMA-RC, a risk-calibrated evidence-gated framework for memory-forensic malware triage. Building on SHAP-guided feature refinement, EGAMA-RC combines dataset-specific refinement, model-pool evaluation, adversarial and open-family testing, novelty scoring, explanation-conditioned evidence, and runtime-aware routing. Low-risk samples are accepted automatically, while uncertain, high-risk, or potentially novel cases are routed to review, escalation, or novelty-aware handling. Across three malware datasets and a frozen multi-seed protocol, the selected hybrid gate accepts 93.12% of pooled samples with 99.86% accepted accuracy and a 0.136% false-accept rate. Novelty calibration reduces over-restrictive review behavior while preserving a low unsafe-accept profile. XGBoost provides lightweight fast-path inference with p50/p95 latency of 0.0054/0.0059 ms per sample. The results show that dependable malware analysis requires risk-calibrated routing, novelty awareness, and controlled analyst review, not classification accuracy alone.

Index Terms—Memory forensics, malware detection, explainable artificial intelligence, SHAP-guided feature refinement, adversarial machine learning, selective prediction, novelty detection, runtime triage.

I. INTRODUCTION

Malware detection is challenging when dangerous actions are masked by obfuscation, deferred execution, packaging, code injection, or artifacts that exist only in runtime and may not be detected by static file signatures [1], [2], [3], [4], [5], [6], [7]. Memory-forensic analysis offers a complementary perspective because it can capture evidence from the volatile execution state, including processes, services, handles, loaded modules, thread activity, and injection-related traces [1], [5], [8], [9], [10], [11], [12], [13]. In SHapley Additive exPlanations (SHAP)-guided feature refinement work [1], memory-resident indicators from the CIC MalMem-2022 dataset were used to build a compact malware detection pipeline. That study examined 55 memory-resident features and reduced them to 13 forensic indicators using mutual information and SHAP-guided feature refinement (SHAP-GFR), with the retained indicators dominated by service, handle, thread, module-loading, and injection-related evidence [1].

However, strong clean-data performance alone does not establish operational reliability [5], [8], [14], [15]. A detector used for memory-forensic triage must also remain dependable under perturbation, obfuscation, family shift, latency constraints, explanation instability, and analyst-review cost [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30]. The SHAP-GFR study [1] is an excellent illustration of this tension: The random forest achieved the highest clean Independent and Identically Distributed (IID) F1-score. XGBoost achieved similar clean performance with the lowest median per-sample latency. While Convolutional Neural Network (CNN)-based models were more stable under direct gradient-based perturbations, RF and XGBoost showed the strongest parsed-family Leave-One-Family-Out (LOFO) behavior [1]. These findings suggest that model choice depends on the deployment condition rather than on clean accuracy alone.

Current malware-detection and Explainable Artificial Intelligence (XAI) experiments [1], [2], [3], [4], [6], [10], [31], [32], [33], [34], [35] show high classification metrics and subsequently provide post-hoc explanations to understand the model behavior. That design is useful, but it leaves a gap between explanation and operational decision control. In operational triage, the system must decide not only which label to assign, but also whether the evidence is strong enough for automatic acceptance, whether the case should be escalated for higher-assurance handling, whether it resembles a novel or shifted family, or whether analyst review is required.

Prior malware-defense work typically defines an explicit operational or adversarial mechanism, such as stateful query-defense indicators in MalProtect or interpretable structural rectification in IADGuard, rather than relying only on standard classifier comparison [2], [4]. MalProtect [2], for example, uses multiple threat indicators to detect query attacks and reports evasion-rate reduction under several attacker scenarios, including adaptive settings [2].

To address this gap, we propose a risk-calibrated evidence-gated adaptive malware analysis for robust and interpretable memory-forensic triage, abbreviated EGAMA-RC. EGAMA-RC builds on the compact SHAP-GFR memory-forensic evidence layer [1] but adds a runtime decision architecture. Ref. [1] showed that no single model family dominates all operational conditions. Tree ensembles are highly accurate and efficient under clean IID and family-generalization settings, while convolutional neural models can be more resilient under gradient-based perturbations. Therefore, EGAMA needs an escalation route that moves

School of Information Technology, University of Cincinnati, Ohio, USA. (e-mail: ntik@ucmail.uc.edu). ORCID: 0000-0001-9257-4295 uncertain, high-risk, adversarially sensitive, or model-disagreement cases away from automatic acceptance and toward stronger review or specialist evaluation. The proposed framework uses a fast path for low-risk samples, a calibrated acceptance rule for automated decisions, escalation for higher-assurance handling when uncertainty, disagreement, attribution instability, or perturbation sensitivity is high, novelty or family-shift scoring when samples deviate from known forensic profiles, and analyst review when the evidence does not support reliable automated acceptance. In this framing, SHAP-derived evidence is not treated merely as a visualization artifact; rather, explanation stability and forensic evidence consistency become part of the routing evidence used to determine whether a prediction should be accepted, escalated, reviewed, or flagged as novel. We use the term triage to mean evidence-based decision routing rather than classification alone. A triage system must determine not only whether a sample is benign or malicious, but also whether the prediction is sufficiently reliable for automatic acceptance or should instead be reviewed, escalated, or flagged as potentially novel.

The proposed threat and risk framing of the EGAMA-RC framework follows the adversarial machine-learning taxonomy in National Institute of Standards and Technology (NIST) artificial intelligence (AI) 100-2e2023 [36]. NIST organizes adversarial ML risk around system type, lifecycle stage, attacker goals, attacker capabilities, and attacker knowledge [36]. In EGAMA-RC, the primary objective of the attacker is to cause an integrity violation, specifically by accepting a malicious memory sample as benign. Depending on the evaluation setting, the attacker may manipulate feature-space artifacts, exploit obfuscation, induce family shift, or interact with a deployed triage interface in a black-box or gray-box manner. The defender's objective is not only to maximize classification accuracy, but also to reduce false acceptance of malware and route suspicious samples to robust evaluation or analyst review. At the same time, the defender must preserve low-latency inference when the evidence supports safe automated acceptance. The contributions of this work are therefore formulated as methodological contributions:

  • We propose EGAMA-RC, a risk-calibrated, evidence-gated malware-triage framework that extends memory-forensic malware detection from unconditional classification to operational decision routing. EGAMA-RC assigns each sample to automatic acceptance, analyst review, escalation, or novelty-aware handling using calibrated evidence rather than a fixed classifier output alone.

  • We develop a dataset-aware forensic evidence layer grounded in SHAP-guided feature refinement. For CIC-MalMem-2022, the evidence layer builds on the validated SHAP-GFR pipeline by organizing memory-forensic indicators into interpretable groups covering service behavior, handle usage, thread/process activity, module loading, injection artifacts, and other runtime memory evidence. For BODMAS and BCCC, the framework preserves dataset-native tabular feature spaces while applying leakage-controlled refinement and audit procedures.

• We implement a selective prediction and evidence-gated routing policy based on confidence, normalized entropy, prediction margin, model-pool probability variance, inter-model disagreement, conformal-style calibration, severe-risk triggers, and family-novelty evidence. Attribution stability, perturbation sensitivity, and runtime overhead are retained as diagnostic audit evidence rather than treated as causal proof.

  • We evaluate EGAMA-RC across three malware datasets; CIC-MalMem-2022, BODMAS, and BCCC, under clean IID testing, multi-seed feature refinement, model-pool comparison, evidence-gated routing, novelty-aware calibration, robustness stress testing, parsed-family/open-family analysis, attribution-stability diagnostics, and deployment-cost assessment.

  • We show that hybrid evidence gating provides the strongest safety–throughput trade-off in the evaluated setting. Across the pooled evaluation, the selected hybrid gate accepts 93.12% of samples with 99.864% accepted-set accuracy, 0.136% false-accept rate, and 0.106% false-accept malware rate, while preserving review and escalation pathways for higher-risk cases.

The rest of the paper is organized as follows. Section II provides background on memory-forensic malware analysis, XAI for malware detection, adversarial robustness, concept drift, open-set malware detection, calibration, and selective triage. Section III describes the EGAMA-RC methodology, including the evidence layer, model pool, risk-calibrated gate, routing policy, explanation-conditioned evidence, threat model, latency protocol, and reproducibility plan. Section IV contains the results of our experiment and discussion, and the study concludes with future directions in Section V.

References (46)