资料档案
文献来源与参考链接
当前保存的来源版本 · v1
- 作者
- Mubashar Iqbal; Hifsa Asif; Saddam Hussain Khan; Umme Zahoora; Asifullah Khan
- 文献与标准标识
- arxiv:2609.04820
- 来源版本
- v3
- 来源更新时间
- 2026-10-31T18:34:44+00:00
- 文字提取方式
- pypdf-6.19.0
- 本段页码
- 1、22
- PDF 总页数
- 22
- 当前分段
- 1
- PDF 分段总数
- 1
- 结构化格式
- native_pdf
原始标题与分类记录
Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attribution
- 研究方向
- 攻击方法、防御技术、评测治理
- 影响维度
- 机密性、完整性、安全与合规
- 风险类型
- 提示注入、隐私泄露、幻觉与可靠性
- 相关技术
- LLM、Agent、多模态
当前为离线关键词规则模式。
分类规则与原始字段
攻击方法 · attack
amic analysis
models in [12], early detection from pre attack API calls [14], zero-shot early detection [13], transformer
models in combination with assembly lan
防御技术 · defense
rchical multi-agent reinforcement learning for network defense [18], and GPT-4-assisted malware
dynamic analysis [34]. Alsubait [35] further combined LLM-based th
评测治理 · benchmark
. 729–746.
38. Jiang Y, Li G, Li S, Guo Y. BenchMFC: A benchmark dataset for trustworthy malware family classification under
concept drift. Computers & Security. 20
提示注入 · prompt injection
suppressing escalation. Infrastructure compromise and prompt injection against the LLM reviewer
are out of scope. The reviewer receives only structured, schema validated
隐私泄露 · privacy
y malware classification.
Journal of Cybersecurity and Privacy. 2025;5(3):72.
23. Iqbal A, Hussain M, Riaz Q, Khalid M, Mumtaz R, Jung K. Enhancing ransomware det
幻觉与可靠性 · reliability
𝐸 𝐴)−𝜆𝐶(𝐴) ],(1)
where𝜆 sets the exchange rate between reliability and cost. Because𝑈 depends on the unseen label,𝐴∗
cannot be computed directly; it must be approxima
机密性 · privacy
y malware classification.
Journal of Cybersecurity and Privacy. 2025;5(3):72.
23. Iqbal A, Hussain M, Riaz Q, Khalid M, Mumtaz R, Jung K. Enhancing ransomware det
完整性 · tamper
s or delay execution (degrading dynamic evidence), and tamper with memory artifacts (degrading
memory evidence). We additionally consider a routing aware adversa
安全与合规 · safety
· Per-class
Calibration
ECE · Brier score
Efficiency & Safety
Cost & Efficiency
Cost · Latency (mean, p95) · Throughput · CPU / RSS
Routing Safety
Route distribu
LLM · llm
ine cost sensitivity and
component level contribution. LLM-assisted review provides only marginal improvement in F1 while introducing
additional computational
Agent · agent
Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attribution
http://doi.org/10.32604/cmc.2026.000000
ARTICLE
Cost-Aw
多模态 · multimodal
nd memory analysis require minutes per sample.
Because multimodal ransomware detectors often apply every modality to every sample, costs and latency rise even
when s
{
"ai_relevance": {
"evidence": [
{
"end_offset": 549,
"location": "title_and_content",
"quote": "Artificial Intelligence",
"rule": "ai_term",
"start_offset": 526
},
{
"end_offset": 2450,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 2447
},
{
"end_offset": 4333,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 4317
},
{
"end_offset": 5686,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 5683
},
{
"end_offset": 6804,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 6788
},
{
"end_offset": 7606,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 7603
},
{
"end_offset": 7665,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 7662
},
{
"end_offset": 8679,
"location": "title_and_content",
"quote": "LLMs",
"rule": "ai_term",
"start_offset": 8675
},
{
"end_offset": 9514,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 9511
},
{
"end_offset": 9882,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 9879
},
{
"end_offset": 10482,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 10466
},
{
"end_offset": 11191,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 11188
},
{
"end_offset": 11724,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 11721
},
{
"end_offset": 14127,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 14124
},
{
"end_offset": 14729,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 14726
},
{
"end_offset": 15828,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 15825
},
{
"end_offset": 16319,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 16316
},
{
"end_offset": 16721,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 16718
},
{
"end_offset": 17324,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17321
},
{
"end_offset": 17419,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17416
},
{
"end_offset": 17564,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17561
},
{
"end_offset": 18070,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18067
},
{
"end_offset": 18251,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18248
},
{
"end_offset": 18475,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18472
},
{
"end_offset": 14111,
"location": "title_and_content",
"quote": "prompt injection",
"rule": "ai_attack",
"start_offset": 14095
},
{
"end_offset": 20154,
"location": "title_and_content",
"quote": "PyTorch",
"rule": "ai_component",
"start_offset": 20147
}
],
"matches": [
{
"end_offset": 549,
"location": "title_and_content",
"quote": "Artificial Intelligence",
"rule": "ai_term",
"start_offset": 526
},
{
"end_offset": 2450,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 2447
},
{
"end_offset": 4333,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 4317
},
{
"end_offset": 5686,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 5683
},
{
"end_offset": 6804,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 6788
},
{
"end_offset": 7606,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 7603
},
{
"end_offset": 7665,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 7662
},
{
"end_offset": 8679,
"location": "title_and_content",
"quote": "LLMs",
"rule": "ai_term",
"start_offset": 8675
},
{
"end_offset": 9514,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 9511
},
{
"end_offset": 9882,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 9879
},
{
"end_offset": 10482,
"location": "title_and_content",
"quote": "machine learning",
"rule": "ai_term",
"start_offset": 10466
},
{
"end_offset": 11191,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 11188
},
{
"end_offset": 11724,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 11721
},
{
"end_offset": 14127,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 14124
},
{
"end_offset": 14729,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 14726
},
{
"end_offset": 15828,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 15825
},
{
"end_offset": 16319,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 16316
},
{
"end_offset": 16721,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 16718
},
{
"end_offset": 17324,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17321
},
{
"end_offset": 17419,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17416
},
{
"end_offset": 17564,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 17561
},
{
"end_offset": 18070,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18067
},
{
"end_offset": 18251,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18248
},
{
"end_offset": 18475,
"location": "title_and_content",
"quote": "LLM",
"rule": "ai_term",
"start_offset": 18472
},
{
"end_offset": 14111,
"location": "title_and_content",
"quote": "prompt injection",
"rule": "ai_attack",
"start_offset": 14095
},
{
"end_offset": 20154,
"location": "title_and_content",
"quote": "PyTorch",
"rule": "ai_component",
"start_offset": 20147
}
],
"method": "explainable_keyword_rules",
"reason": "Matched AI topic or component evidence",
"relevant": true
},
"entity_ids": [],
"facts": [],
"method": "source_grounded_extraction",
"unknown_fields": [
"affected_products",
"affected_versions",
"fixed_versions",
"cvss",
"mitigations",
"references",
"papers",
"poc"
]
}
原始采集文本
http://doi.org/10.32604/cmc.2026.000000
ARTICLE
Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family
Attribution
Mubashar Iqbal1,2, Hifsa Asif 1, Saddam Hussain Khan 4, Umme Zahoora 5 and Asifullah
Khan1,2,3, *
1Pattern Recognition Lab, DCIS, Pakistan Institute of Engineering and Applied Sciences (PIEAS), Nilore, Islamabad, Pakistan
2Deep Learning Lab, Center for Mathematical Sciences, PIEAS, Nilore, Islamabad, Pakistan
3PIEAS Artificial Intelligence Center (PAIC), Nilore, Islamabad, Pakistan
4Interdisciplinary Research Center for Smart Mobility and Logistics, King Fahd University of Petroleum & Minerals, Dhahran
31261, Saudi Arabia
5Department of Creative Technology, AIR University, E9 Campus, Islamabad, Pakistan.
*Corresponding Author: Asifullah Khan. Email: asif@pieas.edu.pk
Version November 3, 2026 submitted to Comput Mater Contin
ABSTRACT:Sandbox execution and memory forensics are among the most resources intensive stages of malware
triage. Static analysis can scale to millions of files while dynamic and memory analysis require minutes per sample.
Because multimodal ransomware detectors often apply every modality to every sample, costs and latency rise even
when static evidence suffice.We proposea cost aware Hierarchical Multi Agent System (HMAS) that frames evidence
acquisition as a budgeted sequential decision problem enabling timely ransomware detection. Specialist agents
generate schema validated risk signals for each modality while domain controllers aggregate evidence and coordinate
analysis. The orchestrator starts with static evidence and escalates only if confidence is low or signals disagree. A
locally hosted language model provides a limited, accoutable review without replacing the deterministic pipeline.
Experiments on 16 ransomware families show 94.12% binary accuracy (F1 0.9376, ROC-AUC 0.9989). For multi class
family attribution, it achieves 98.90% accuracy (macro-F1 0.9748). The system resolves 57.95% of the samples using
static analysis alone whhile only 6.21% require the full pipeline. Compared with exhaustive cost of 12.0 units,the
proposed system reduces te average cost to 6.724 units, representing approximately 44% saving. Zero day experiments
further examine generalization to unseen ransomware families. Additional evaluations examine cost sensitivity and
component level contribution. LLM-assisted review provides only marginal improvement in F1 while introducing
additional computational overhead. Overall, the results show the potential of adaptive hierarchical multi agent
orchestration to balance ransomware detection performance, family attribution analysis cost and decision latency.
KEYWORDS:Ransomware; hierarchical multi-agent systems; cost aware classification; malware triage; family
attribution
1 Introduction
Ransomware is still one of the biggest threat classes of malware due to its direct impact on data
availability [1,2]. Security analysts process a large volume of sample streams. They are required to make a
decision for every sample (i) whether it is ransomware (ii) the family to which it belongs as it will determine
a response playbook [3]. For any malware sample, there are three types of evidence that are available at
differing costs and delays. The cost of static analysis of sample is low and it causes less delay. Dynamic
Preprint version. Submitted to arXiv.1
arXiv:2609.04820v3 [cs.CR] 31 Oct 2026
analysis is the process of running the sample in a sandbox and is prone to evasion [4]. Memory forensics is
used to capture volatile artifacts like injected code and unpacked payloads but it also needs acquisition
and offline processing incuring additional cost and delay[5,6]. Recent detectors are able to enhance the
accuracy by integrating these modalities [7,8] but they treat all modalities equally and do not consider cost
of acquisition of modalities or latency caused after execution of each modality. In operational environments
dynamic and memory analysis increase time to triage a sample. therefore, question is not just which
model is most accurate but also how much costly and delayed evidence is obtained in a certain model. So
it becomes a sequential classification problem [ 9–11]. It is widely studied in machine learning but not
explored in ransomware detection and family attribution.
1.1 Problem statement
Let a sample𝑥 have evidence available through modalities ={𝑆,𝐷,𝑀} (static, dynamic, memory)
with acquisition costs𝐶𝑆 ≪𝐶 𝐷≲𝐶 𝑀. A strategy𝐴⊆ yields evidence𝐸𝐴, a detection decision𝐷 and,
for ransomware, a family𝐹. We seek a per-sample strategy that maximizes decision utility net of acquisition
cost,
𝐴∗(𝑥)=argmax
𝐴 [𝑈(𝐷,𝐹∣𝐸 𝐴)−𝜆𝐶(𝐴) ],(1)
where𝜆 sets the exchange rate between reliability and cost. Because𝑈 depends on the unseen label,𝐴∗
cannot be computed directly; it must be approximated from the current evidence state (Section 3).
1.2 Gap and contributions
Prior ransomware work optimizes detection or attribution accuracy for a fixed modality set [7,12–15].
Cascaded and budgeted classifiers [10,11,16] decide when to stop, but have not been studied for ransomware
with specialis agent structure and family attribution. Multi agent frameworks for cyber security usually
follow fixed workflows [17–19]. We list our contributions as under.
1. A cost aware hierarchical multi agent architecture in which provenance preserving outputs make
every decision auditable.
2. An escalation policy driven by calibrated confidence and within controller disagreement with an
internal unit acquisition cost model and separately reported decision latency.
3. A bounded LLM review layer restricted to a three action set and evaluated by ablation
4. An empirical evaluation on the available train test split and leave one out and standalone held out
family (zero day) testing
Proposed HMAS is traiaged efficient and we test whether it preserves detection quality at lower acquisition
cost.
1.3 Relation to our earlier work
Our earlier multimodal multi agent ransomware study [19] fuses static, dynamic and network agents
through a learned transformer to maximize family attribution accuracy, acquiring all modalities for every
sample. Proposed HMAS differs in objective, mechanism and evaluation.
The paper is organized as follows. Section 2 reviews related work. In Section 3 We formulized problem
and theat model. We discuss proposed cost aware HMAS in Section 4. Section 5 details the implementation.
Section 6 discusses the evaluation protocol. In Section 7 the results are shown. Section 8 includes the
discussion and threats to validity and Section 9 concludes our work on HMAS.
Preprint version. Submitted to arXiv.2
2 Related Work
Recent surveys highlight the use of machine learning techniques instead of traditional signature
based approaches for ransomware detection . However, ransomware family attribution is still challenging
due to variations among samples of same family [2,20]. Authors have used explainable dynamic analysis
models in [12], early detection from pre attack API calls [14], zero-shot early detection [13], transformer
models in combination with assembly language functions [15] and fused byte alongwith API features [7].
Cost sensitive ensembles for imbalanced ransomware data is also proposed in [ 21]. Further, structured
heat map learning for multi family classification is explored in [22]. Iqbal et al. [23] combined signature
based techniques with API driven behavioral analysis for early ransomware detection, while Ghourabi
and Chouaib [24] employed LLM embeddings and ensemble learning to improve detection. LLM assisted
pre training has also been applied to ransomware semantics [ 25]. Although these approaches improve
detection through complementary classifiers, inference time selection of analysis modalities under explicit
acquisition budgets is not explored well.
Fusing static and dynamic features improves robustness [8]. Steadman et al. [26] showed the benefits
of combining visual and structural representations for polymorphic malware detection, while Wu et al. [27]
proposed multi source feature fusion using behavioral information and self attention. These studies support
the value of complementary evidence but fusion alone does not establish whether every modality must be
acquired for each sample. Fixed pipelines can therefore incur unnecessary analysis costs on easy cases.
Robustness analyses of full detection system further show that operational choices around the classifier
matter as much as the classifier itself [28].
Process level volatile memory features support ransomware detection [5] and LLMs combined with
Volatility can triage ransomware processes in memory dumps [6]. Memory evidence is particularly valuable
when other modalities are inconclusive but its acquisition and processing costs mandates selective use to
avoid cost and reduce latency in decisions.
Cascaded classifier also trade accuracy against feature evaluation cost [9,10] adaptive gating routes
easy instances to inexpensive models [11] and deep reinforcement learning can acquire costly features
sequentially [16]. Selective classification abstains when confidence is low [ 29], while calibration [ 30]
and conformal prediction [31] provide foundations for assessing prediction confidence. HMAS draws on
these principles for ransomware triage, where the “features” correspond to entire analysis modalities with
substantially different acquisition costs.
LLM agents and multi-agent frameworks are increasingly applied to security tasks [ 32], including
hierarchical planning with task-specific agents [33], hierarchical multi-agent AI for cyber-physical systems
[17], hierarchical multi-agent reinforcement learning for network defense [18], and GPT-4-assisted malware
dynamic analysis [34]. Alsubait [35] further combined LLM-based threat analysis with multi-agent rein-
forcement learning for autonomous cybersecurity detection and response. These developments demonstrate
the potential of coordinated agents for security analysis, but agent coordination and cost-aware evidence
acquisition address distinct operational requirements. Our framework uses AutoGen [ 36] only for the
reviewer; evidence generation and routing remain deterministic.
Malware classification results can be inflated by spatial and temporal bias [37], while concept drift
degrades family classifiers [38]. Common pitfalls in security machine learning [39] include data leakage
and unrealistic evaluation splits. We therefore identify family-disjoint and temporally separated evaluations
as important follow-up protocols alongside the reported random-split results.
Overall, existing research has advanced ransomware detection, multimodal feature fusion, memory
forensics, and agent-based cybersecurity analysis. However, their combination does not necessarily provide
Preprint version. Submitted to arXiv.3
an inference-time mechanism for balancing evidence acquisition cost, classification confidence, and family
attribution. HMAS addresses this integration problem through hierarchical routing across static, dynamic,
and memory analysis, with optional LLM-assisted review and explicit cost-aware evaluation. Table 1
positions HMAS against representative approaches.
Table 1:Positioning of HMAS. “Budget-aware” means the method decides at inference time which evidence to
acquire.
Method Modalities Budget-aware Family
attrib.
Memory
evidence
Audit trace
XRan [12] Dynamic No No No Explanations
RansoGuard [14] Dynamic (early) Partially (early
stop)
No No No
Pulse [15] Static (assembly) No No No No
RansomFormer [7] Static + dynamic No No No No
volGPT [6] Memory No Process-
level
Yes LLM text
MMMA-RA [19] Static + dynamic +
network
No Yes No Agent trace
HMAS (this work) Static + dynamic +
memory
Yes Yes Yes Typed trace
3 Problem Formulation and Threat Model
Let𝑌𝑑 ∈{0,1} be the binary label (1 = ransomware) and𝑌𝑓 ∈ the family for ransomware samples.
Given acquired evidence𝐸𝐴 the system outputs ̂𝑌𝑑 =𝑓 𝑑(𝐸𝐴)and ̂𝑌𝑓 =𝑓 𝑓(𝐸𝐴).
3.1 Measured cost model
For modality𝑖we define
𝐶𝑖 =𝛼𝑇 𝑖+𝛽𝑅 𝑖+𝛾𝑄 𝑖,(2)
where𝑇𝑖 denotes acquisition plus analysis time in the cost model definition,𝑅𝑖 is the resource weighted
compute footprint (CPU seconds and memory seconds, normalized), and𝑄𝑖 is the queueing/occupancy time
of a scarce resource (a sandbox VM slot or memory acquisition host). For a strategy𝐴,𝐶(𝐴)= ∑𝑖∈𝐴𝐶𝑖, and
cost reduction relative to exhaustive analysis is
𝐶𝑅= 𝐶exh−𝐶 adaptive
𝐶exh
×100.(3)
The reported comparative acquisition costs are internal units rather than direct measurements of wall clock
acquisition time or analyst effort. Decision latency is reported separately.
3.2 Calibrated confidence, stopping, and escalation
After each modality the controller yields a risk score𝑠∈[0,1] . We calibrate scores per modality on a
validation split and define confidenceConf =max(𝑠,1−𝑠) and predictive entropy𝐻. Acquisition stops
when
Conf≥𝜏 𝑐 ∧𝐻≤𝜏 𝐻 ∧𝜎 agents≤𝜏 𝜎,(4)
Preprint version. Submitted to arXiv.4
where𝜎agents is the standard deviation of child agent risk scores inside the controller (disagreement).
Otherwise the orchestrator considers the next modality. The expected utility criterion
𝐸𝑈𝑖 =E[Δ𝑄 𝑖]−𝜆𝐶 𝑖 (5)
motivates the design, withΔ𝑄𝑖 the expected gain in decision quality from modality𝑖. In theimplemented
policy, Eq. (5) is approximated by threshold rules on(Conf,𝐻,𝜎) whose values, together with𝜆, are tuned
on a validation split only (Section 6); we compare against a learned value of information gate as a stronger
alternative in the ablation.
3.3 Threat model
The adversary controls the sample. It may pack or obfuscate code (degrading static evidence), detect
sandboxes or delay execution (degrading dynamic evidence), and tamper with memory artifacts (degrading
memory evidence). We additionally consider a routing aware adversary who knows that confident static
scores short circuit analysis and perturbs static features to fall below the benign short circuit threshold,
thereby suppressing escalation. Infrastructure compromise and prompt injection against the LLM reviewer
are out of scope. The reviewer receives only structured, schema validated agent outputs and its output
space is restricted to three actions.
4 Cost Aware Hierarchical Multi Agent Framework
Fig. 1 gives an end to end overview of the proposed framework, from data preparation and multimodal
feature extraction through HMAS inference and decision output to the final evaluation. The following
subsections describe each stage in turn. The HMAS has four levels (Fig. 2). A Level-0 Meta Orchestrator;
Level-1 domain controllers (static, dynamic, memory), Level-2 specialist agents and Level-1.5 LLM reviewer.
The runtime decision flow is shown in Fig. 3.
At level 2, each agent returns an immutable, schema validated record that contains agent name, sample
ID, model version, risk score in [0,1] , latency and evidence fields. Static agents are based on Entropy,
Import Profiler and Opcode/CFG. Dynamic agents consists of API Profiler, Process Monitor and Artifact
Hunter. Memory agent reports memory risk, cryptographic material, C2 URLs, unpacked payload hashes
and anomaly scores.
At level 1, controllers aggregate child scores with fixed weights (static: entropy 0.30, imports 0.40,
opcode/CFG 0.30; dynamic: API 0.35, process 0.40, artifact 0.25; memory: weight 1.0), execute children
concurrently, and raise an escalation flag when child scores disagree (Eq. 4). We compare these fixed weights
against learned weights in the ablation.
Preprint version. Submitted to arXiv.5
1) Data
Ransomware &
Benign Samples
Preprocessing &
Data Splits
2) Feature Extraction
Static
Features
Dynamic
Features
Memory
Features
3) HMAS Inference
Manager
(Routing)
Controllers
(S / D / M)
Specialist
Agents
LLM Reviewer
(Selective )
Score Fusion
& Decision
4) Decision Output
Detection
(Ransomware /
Benign)
Family
Attribution
Confidence , Cost &
Execution Trace
5) Evaluation
Predictive Performance
Detection
Acc, P, R, F1 · ROC -AUC · PR -AUC · FPR @TPR
Family Attribution
Multiclass Acc · Macro -P/R/F1 · Per-class
Calibration
ECE · Brier score
Efficiency & Safety
Cost & Efficiency
Cost · Latency (mean, p95) · Throughput · CPU / RSS
Routing Safety
Route distribution · Per -route Acc , FN, FP
LLM Reviewer
Invocation rate · Calls · Latency · Cost
Robustness & Validity
Statistical Testing
Paired McNemar 's test (p-value)
Sensitivity Analysis
λ-sweep · Threshold (τ) sweep
Generalization
Leave-one-family-out accuracy
Static Dynamic Memory Selective / conditional Data flow
Figure 1:HMAS architecture: feature extraction pipeline (left), hierarchical decision pipeline (right), and the optional
LLM reasoning layer.
1) Feature Extraction Pipeline 2) Hierarchical Multi-Agent System Pipeline
Static Features Dynamic Features
Sample Ingest
Parallel Extractor
(PE, OPC, CFG)
Merge
Static Features
Sample Collection
VM Guest Pool
(×24)
CAPEV2
Execution
Dynamic
Features
Memory
Features
Manager
Static Dynamic Exhaustive Full
Controller
Static Controller Dynamic Controller Memory Controller
Specialist Agents
Entropy Agent
Import Agent
Opcode / CFG
Agent
API Profiler
Agent
Process Monitor
Agent
Artifact Hunter
Agent
Memory Agent
(Injection, Hollowing,
Shellcode, Anti-Analysis,
Crypto Specific URLs)
LLM Reasoning
Manager Advocate
Skeptic
Static path Dynamic path Memory path Decision / control LLM reasoning Data flow
Figure 2:HMAS architecture: feature extraction pipeline (left), hierarchical decision pipeline (right), and the optional
LLM reasoning layer.
Preprint version. Submitted to arXiv.6
Evidence
Repositories
Static
Evidence
Dynamic
Evidence
Network
Evidence
Memory
Evidence
Meta-Orchestrator
Route
Static
Evidence
Static Controller
(Entropy, Imports,
Opcode/CFG, )
Sufficient
confidence?
No
Dynamic Controller
(API, Processes,
Behavior, )
Memory Controller
(Processes, DLLs,
Strings, Crypto, )
Normalize & Fuse Scores
F(E A) = Σ i A w i s i
Case-Level Decision
Ransomware / Benign
Family Attribution
(if ransomware)
Yes
LLM Reasoning Layer
(Selective)
Confirm / Revise /
Request escalation
Low confidence /
Conflict / Other
escalation
criteria
Final Output
(Both Retained )
Deterministic Decision
LLM-Review ed Decision
Confidence , Scores
Cost, Latency ,
#Invocations
Execution Trace
Control / data flow Optional / conditional Static modality Dynamic modality Network modality
Memory modality Fusion / decision LLM reasoning Output / trace
Figure 3:Runtime pipeline: static evidence is processed first; the Meta-Orchestrator escalates on insufficient
confidence or disagreement, fuses the acquired scores, and invokes the bounded reviewer.
The orchestrator begins with static evidence. A static score below 0.20 terminates as benign and
above 0.70 as malicious. On the other hand, ambiguous scores or controller disagreement trigger escalation
to dynamic and then memory evidence if available. Acquired scores are combined by weighted fusion
renormalized over the executed modalities. Then fused score maps to verdict bands (benign, suspicious,
malicious, ransomware) and assigned a binary label. Algorithm 1 summarizes the procedure.
For severe conflict cases, a locally hosted small LLM runs a Manager/Advocate/Skeptic exchange over
the structured evidence at Level 1.5. It returns one of three actions, producing a reviewed binary verdict̂𝑌(1)
𝑑
that is retained alongside. Its invocation rate, override rate and net effect are also measured and reported.
The family classifier𝐹 operates exclusively on the pre review evidence𝐸 and the deterministic verdict
̂𝑌(0)
𝑑 . Typed outputs (ControllerOutput, FusionOutput and HmasCaseOutput) preserve intermediate agent
outputs. It enabls each final decision to be traced to the underlying agent evidence, routing and escalation
decisions, computational cost and latency. When review is invoked, the reviewer prompt, response and
resulting decisions are also retained.
5 Implementation
HMAS is implemented in Python with an asynchronous execution model. Typed messages use Pydantic,
specialist models use scikit learn, XGBoost, LightGBM and PyTorch. The LLM reviewer uses AutoGen [36]
with a locally hosted model via Ollama (Table 2). Dynamic evidence is generated in a CAPEv2 sandbox
with a pool of 24 guest VMs, and memory evidence from memory dumps processed with Volatility based
extraction (Fig. 4).
Preprint version. Submitted to arXiv.7
Algorithm 1Cost aware hierarchical decision procedure
Require:Sample𝑥; available domains𝐃; controllers𝐂; family classifier𝐹; optional reviewer𝑅
Ensure:Binary verdict, family, confidence, audit trace
1:𝐸←∅;𝑄←∅;𝑑←static if available else first available
2:repeat
3:Run𝐶 𝑑 on𝑥 𝑑 then collect child outputs. Also compute calibrated𝑠 𝑑,Conf,𝐻,𝜎
4:𝐸←𝐸∪{𝐶 𝑑 output};𝑄←𝑄∪{𝑑}
5:ifEq. (4) holdsorno domain remainsthen break
6:else𝑑←next available domain
7:end if
8:untilstopped
9:𝑠 final ←weighted_fusion(𝐸)renormalized over𝑄; map to verdict band
10:Deterministic binary verdict ̂𝑌(0)
𝑑 ; if ransomware, apply𝐹to𝐸to obtain the family label, else family←Benign
11:ifsevere conflictthen
12:Query𝑅with structured evidence; accept onlyConfirm,EscalateOneTier,DowngradeOneTier
13:Record reviewed binary verdict ̂𝑌(1)
𝑑 separately⊳family label isnotrecomputed
14:end if
15:return ̂𝑌(0)
𝑑 , ̂𝑌(1)
𝑑 (if𝑅enabled), family label, scores,𝑄, measured costs and latencies, trace
Evidence Generation
Static Feature
Extraction
Static
Evidence
CAPEv2 Sandbox
(24 guest VMs)
Dynamic
Evidence
Memory Dumps +
Volatility-based
extraction
Memory
Evidence
HMAS Runtime · Python asyncio
Manager (Routing)
Controllers (Static / Dynamic / Memory)
Specialist Agents
scikit-learn
XGBoost
LightGBM
PyTorch
Score Fusion & Decision
Typed inter-agent messages (Pydantic)
Optional Reviewer
Ollama
(locally hosted
model)
AutoGen
Manager
Advocate
Skeptic
Figure 4:HMAS implementation stack: evidence generation (CAPEv2 sandbox with 24 guest VMs), the asynchronous
Python runtime with Pydantic-typed messages and scikit-learn, XGBoost, LightGBM and PyTorch specialist models,
and the AutoGen [36] reviewer on a local Ollama-hosted model (Table 2).
Preprint version. Submitted to arXiv.8
Table 2:Reviewer LLM configuration.
Item Setting
Backend Ollama + AutoGen ( AssistantAgent,
RoundRobinGroupChat)
Models Phi-3 Mini; Qwen2.5-3B
Context / output 4096 / 512 tokens
Sampling𝑇=0.1 , top-𝑝=0.85, top-𝑘=20, repetition penalty 1.05, seed
42
Input / output Structured agent evidence / one of three actions
6 Experimental Protocol
6.1 Dataset and splits
Experiments were performed using a subset of the RanDS dataset [40], an open collection containing
104,616 ransomware samples representing 533 families and 110,788 benign samples targeting Windows
Portable Executable (PE) files. From this collection, 8,013 ransomware samples from 16 families and 8,015
benign samples (Fig. 5) were selected for the study. Static, dynamic and memory features are extracted
as described in [42]. Family sizes are strongly imbalanced. We evaluate the system under two protocols.
(P1) Random: stratified 70/10/20 train/validation/test. (P2) The closest available evidence for cross family
generalization is a leave-one-family-out standalone evaluation.
Benign
GandCrab
LockBitZeppelinWannaCry
Cerber
Sodinokibi
BabukContiAkira
Phobos
HiveQilin
BlackCatDarkSide
RyukClop
102
103
Number of samples
6209
17361708
1299
379
212 211
170
123 115
70
52 43 36 33
25
18
Figure 5:Class distribution (16 ransomware families and benign).
6.2 Compared policies
• Single modality: B1 static-only, B2 dynamic-only, B3 memory-only (each with its best tuned model).
•HMAS: deterministic (H0) and with LLM review (H1), SD HMAS(Fixed), SDM HMAS (Fixed)
6.3 Metrics
To measure performance in terms of detection accuracy, precision, recall, F1, ROC-AUC, PR-AUC, FPR,
TPR, and false negative rate are used. Similarly for family attribution accuracy, macro precision/recall/F1,
and per-family F1 are used. For calibration of agents, ECE [30] and Brier score per modality are used. To
Preprint version. Submitted to arXiv.9
Table 3:Binary detection at full scale policies
Policy Acc. Prec. Rec. F1 ROC-AUC Avg.
modalities
B1 Static-only 0.9130 0.9988 0.8273 0.9050 0.9983 1.00
B2 Dynamic-only 0.9329 0.9642 0.8994 0.9307 0.9883 1.00
B3 Memory-only 0.5002 1.0000 0.0005 0.0010 0.7644 1.00
SD HMAS (Fixed) 0.9647 0.9993 0.9302 0.9635 0.9995 2.00
SDM HMAS (fixed) 0.9401 0.9993 0.8811 0.9364 0.9995 3.00
H0 HMAS (deterministic) 0.9412 0.9993 0.8831 0.9376 0.9989 0.618
H1 HMAS + LLM review 0.9420 0.9474 0.9361 0.9417 0.9989 0.618
measure efficiency, we used modeled internal acquisition cost (Eq. 2), cost reduction (Eq. 3), median and
95th-percentile time to decision, average number of acquired modalities, andthroughput(samples/hour)
from a discrete event simulation of a 24-slot sandbox pool and one memory analysis host under Poisson
arrivals at several loads.
7 Results
7.1 RQ1: Detection accuracy versus acquisition cost
Table 3 reports binary detection for single modality baseline alongwith fixed HMAS scenarios. Two
findings stand out among the fixed and single modality baselines. First, B3 (memory only) is not an
informative classifier. It predicts almost every case negative (4 true positives out of 8,016 ransomware
cases, ROC-AUC 0.76 indicates the underlying score does rank samples somewhat. Second, SD HMAS
(fixed static+dynamic fusion) has a higher F1 (0.9635) than both SDM HMAS (exhaustive, 0.9364, which
adds the uninformative memory score) and H0 (0.9376, which adds memory only when escalation triggers).
Adding memory evidence under the current fixed weight fusion rule does not help and mildly hurts binary
F1 relative to stopping at dynamic evidence consistent with B3’s near chance standalone performance.
Comparing H0 and H1 shows the reviewer’s effect. Results show that enabling locally hosted LLM
moves 330 previously missed ransomware cases to correctly detected (recall0.8831→0.9361 ) at the cost
of 320 previously correct benign cases becoming false alarms (precision 0.9993→0.9474 ). These two
groups are disjoint by construction – true-label counts are identical between H0 and H1 (𝑇𝑁+𝐹𝑃=6,209 ,
𝐹𝑁+𝑇𝑃= 6,230 in both) – so the reviewer is not simply noisier than the deterministic pipeline, it is
systematically biased toward escalating rather than downgrading final decisions. The net F1 change is
small (+0.0041) because the two effects largely offset. Whether this trade is worthwhile depends on the
relative operational cost of a missed ransomware sample versus a false alarm, which this evaluation does
not quantify. It comes at a steep resource cost.
In addition to detection performance, HMAS is evaluated in terms of analysis cost to assess the
efficiency of adaptive evidence acquisition. Rather than measuring monetary expenses or execution time
directly, we employ a normalized computational cost model that assigns predefined weights to specialist
agent execution and LLM interactions. For each analyzed sample, the total cost is defined as
𝐶𝑖 = ∑
𝑎∈𝑖
𝑤𝑎+5𝑁 mgr
𝑖 +5𝑁 rev
𝑖 ,(6)
Preprint version. Submitted to arXiv.10
where 𝑖 denotes the specialist agents invoked for sample𝑖,𝑤𝑎 represents the assigned cost of agent𝑎,
and𝑁mgr
𝑖 and𝑁rev
𝑖 denote the numbers of manager and advocate/skeptic LLM turns, respectively. Each
LLM turn contributes five normalized cost units.
For comparison, static only, static plus dynamic, and exhaustive analysis are assigned fixed costs of 4,
10, and 12 units per sample, respectively. The average cost of a policy is computed over the 𝑁= 12,439
evaluated samples as
𝐶= 1
𝑁
𝑁
∑
𝑖=1
𝐶𝑖. (7)
The relative cost reduction compared with exhaustive analysis is
𝑆= (1− 𝐶policy
𝐶exhaustive)×100%.(8)
Table 4 summarizes the average and total modeled costs of the evaluated policies.
Table 4:Comparison of normalized analysis costs across policies.
Policy Avg. cost Total cost Savings (%)
(units) (units)
Static-only 4.000 49,756 66.7
Static + Dynamic 10.000 124,390 16.7
Exhaustive Analysis 12.000 149,268 0.0
Full HMAS 6.724 83,636 44.0
The adaptive routing mechanism enables HMAS to avoid unnecessary analysis stages for samples that
can be classified with sufficient confidence using less expensive evidence. Specifically, 56.05% of samples are
processed using static analysis alone, 39.62% require static and dynamic analysis, and only 4.33% proceed
through the full analysis pipeline.
Consequently, HMAS achieves an average modeled cost of 6.724 units per sample, corresponding to
approximately 44.0% lower cost than exhaustive analysis. Although static only analysis has the lowest
cost, it achieves lower classification performance, as shown in Tables 3 and 5. HMAS combines selective
evidence acquisition with improved binary detection and ransomware family identification, demonstrating
a favorable trade off between classification performance and modeled analysis cost.
These results quantify savings under the predefined cost model instead of measured reductions in
runtime, energy consumption or monetary expenditure.
Preprint version. Submitted to arXiv.11
4 6 8 10 12
Mean internal analysis cost (units)
0.6
0.7
0.8
0.9
1.0Multiclass macro-F1Static only
HMAS
Static + Dynamic
Exhaustive
Multiclass macro-F1 vs. analysis cost
Figure 6:Computational cost versus multiclass macro-F1 for HMAS and baseline analysis strategies
7.2 RQ2: Family attribution
Table 5 shows the separately evaluated 16 ransomware families and one benign. The binary and
multiclass accuracy figures does not represent a single hierarchy of predictions on identical samples.
Multiclass accuracy (0.9890) exceeds binary accuracy (0.9412). They are therefore interpreted as separately
evaluated outputs, not as the accuracy of a single end-to-end binary-gated family verdict. A matched-
prediction reconciliation is required before claiming end-to-end hierarchical accuracy.
Table 5:Family attribution
Policy MC Acc. Macro-P Macro-R Macro-F1
B1 Static-only 0.9076 0.9765 0.6264 0.7022
B2 Dynamic-only 0.8950 0.8893 0.7502 0.7888
B3 Memory-only 0.5001 0.0833 0.0562 0.0383
SDM HMAS(Fixed) 0.9338 0.9806 0.7341 0.8204
H0 HMAS 0.9890 0.9887 0.9890 0.9748
H1 HMAS + LLM review 0.9419 0.9473 0.9361 0.9417
Family attribution is where cost aware HMAS shows its clearest best supported gain over every single
or fixed modality HMAS. Macro-F1 rises from 0.70 (static only) and 0.82 (exhaustive) to 0.98 in case of
deterministic low cost HMAS and every one of the 17 classes individually exceeds 0.93 F1. The memory
only model (B3) is again uninformative for attribution (macro-F1 0.038, i.e., it essentially never assigns the
correct family) which matters because memory evidence is exactly what HMAS adds on the hardest 6.21%
of cases.
7.2.1 Comparative Multiclass Classification Performance
To investigate the contribution of HMAS, it was compared with three alternative analysis techniques.
Table 7 summarizes their multiclass classification performance and computational requirements.
Preprint version. Submitted to arXiv.12
Table 6:Comparison of per-class F1-scores across different analysis policies.
Class Support Static S+D Exhaustive HMAS
Akira 125 0.252 0.619 0.5800.988
Babuk 191 0.155 0.525 0.5080.953
Benign 5,810 0.909 0.780 0.7660.993
BlackCat 37 0.879 0.679 0.6040.972
Cerber 223 0.709 0.578 0.5410.956
Clop 17 0.583 0.692 0.6920.938
Conti 126 0.573 0.578 0.5540.942
DarkSide 33 0.553 0.533 0.5330.954
GandCrab 1,902 0.975 0.730 0.6640.993
Hive 57 0.879 0.578 0.5780.958
LockBit 1,765 0.948 0.651 0.6350.984
Phobos 79 0.881 0.689 0.6550.975
Qilin 411.0000.453 0.4231.000
Ryuk 26 0.556 0.632 0.6320.939
Sodinokibi 219 0.947 0.661 0.6270.984
WannaCry 396 0.150 0.637 0.6130.997
Zeppelin 1,392 0.972 0.641 0.6180.983
S+D: Static + Dynamic. Bold values indicate the highest F1-score for each class.
Table 7:Multiclass performance and computational efficiency of HMAS and alternative analysis strategies
Method Acc. Macro-F1 Cost Latency
(%) (units) (ms)
Static only 90.20 0.7011 4.00 15.39
Static + Dynamic 73.29 0.6267 10.00 239.29
Exhaustive 71.22 0.6013 12.00 242.78
Full HMAS 98.85 0.9712 6.72 107.11
The proposed HMAS achieved a multiclass macro-F1 of 0.97, compared with 0.70, 0.62 and 0.60 for
static-only, static and dynamic, and exhaustive analysis respectively. These results correspond to absolute
macro-F1 improvements of approximately 27.00, 34.45, and 36.98 %, respectively. The improvement over
exhaustive analysis is calculated as
Δ𝐹1=𝐹1 HMAS−𝐹1 Exhaustive
=0.9712−0.6013=0.3699.
(9)
The observed improvement suggests that adaptive multi-agent orchestration provides a more effective
classification strategy than indiscriminately executing all available analysis stages. In particular, HMAS
combines selective analysis execution with coordinated decision-making, enabling the system to avoid
unnecessary processing while maintaining strong multiclass discrimination. However, these results are
obtained from the reported multiclass ablation evaluation, rather than from matched zero-day tests. Thus,
they establish a comparative advantage in the evaluated multiclass setting but do not quantify a zero-day-
specific F1 improvement over the competing methods.
Preprint version. Submitted to arXiv.13
7.3 RQ3: Cost and latency
Table 8 reports the internal cost unit and measured mean inference latency logged by the pipeline.
Table 8:Internal cost units and mean/p95 inference latency, default threshold, seed 42
Policy Mean cost (units) Cost redn. vs.
exhaustive Mean latency (ms) p95 latency (ms)
B1 Static-only 4.00 66.67% 15.67 16.08
SD HMAS (Fixed) 10.00 16.67% 245.52 255.50
SDM HMAS 12.00 0% 249.28 259.29
H0 HMAS 6.65 44.6% 111.34 218.30
Table 9:Throughput observations by agent-pool-size bucket
Agent pool size𝑛(cases) Mean latency (ms) Throughput (samples/s)
3 7209 37.47 26.69
6 4457 213.47 4.68
7 773 211.34 4.73
The cost unit results are internally consistent with the routing distribution:0.5795×4+0.3583×10+
0.0621×12=6.65 , matching the logged mean cost exactly. The throughput buckets in Table 9 correspond
to the same three routes (agent pool size 3 = static-only route, 6 = static+dynamic, 7 = full pipeline).
0 50 100 150 200 250
Mean decision latency (ms)
0.6
0.7
0.8
0.9
1.0Multiclass macro-F1
Static only
Static + Dynamic
Exhaustive
HMAS
Classification quality versus decision latency
Figure 7:Comparison of multiclass macro-F1 and decision latency across analysis strategies.
Preprint version. Submitted to arXiv.14
7.3.1 Computational Cost Reduction
In addition to classification performance, computational efficiency is particularly important for intru-
sion detection systems operating under limited processing resources or strict response-time requirements.
The computational cost reduction relative to exhaustive analysis is defined as
𝑅𝐶 = 𝐶Exhaustive−𝐶HMAS
𝐶Exhaustive
×100,(10)
where𝐶 denotes the average computational cost in the relative units defined by the experimental framework.
Using the measured values,
𝑅𝐶 = 12.00−6.7237
12.00 ×100=43.97%.(11)
Thus, HMAS reduces the average computational cost by approximately 43.97% relative to exhaustive
analysis. This reduction is achieved through adaptive selection of analysis stages. Specifically, 56.05% of the
evaluated cases were processed using static analysis alone, 39.62% required combined static and dynamic
analysis, and only 4.33% required the complete pipeline. These routing proportions indicate that HMAS
avoids exhaustive processing for approximately 95.67% of the evaluated cases.
The results suggest that selective multi-agent orchestration can reduce redundant computation, partic-
ularly when the available evidence is sufficient for an earlier decision.
7.3.2 Decision Latency Analysis
The reduction in computational cost was accompanied by a decrease in average decision latency.
HMAS required an average of 107.11 ms per decision, compared with 242.78 ms for exhaustive analysis.
The relative latency reduction is given by
𝑅𝐿 = 𝐿Exhaustive−𝐿HMAS
𝐿Exhaustive
×100,(12)
where𝐿is average decision latency.
𝑅𝐿 = 242.78−107.11
242.78 ×100≈55.88%.(13)
So we cay say that HMAS achieves approximately 55.88% lower average decision latency as compared to
exhaustive analysis. Although static only analysis remains the fastest configuration, its multiclass macro-F1
is substantially lower than that of HMAS. This shows the trade off between computational efficiency and
classification quality. HMAS balances multiclass classification performance and time to decision.
The comparative ablation experiments also show that HMAS achieves substantially higher multiclass
macro-F1 while reducing both computational cost and decision latency relative to exhaustive analysis.
These characteristics are relevant to machine learning based intrusion detection where detection quality
must be balanced against processing overhead and response time constraints. Overall, the results support
the effectiveness of HMAS as a computationally efficient multiclass ransomware analysis framework and
provide an initial assessment of its zero day detection behavior.
Preprint version. Submitted to arXiv.15
7.4 RQ4: Adaptive Routing Efficiency and Error Analysis
To evaluate the effectiveness of the proposed adaptive orchestration mechanism, the routing decisions
and corresponding classification outcomes were analyzed using 12,439 case level predictions. Table 10
summarizes the distribution of samples across the three analysis routes, together with their corresponding
classification accuracy, false negatives (FN), and false positives (FP). The results demonstrate that HMAS
Table 10:Adaptive routing distribution and classification outcomes for HMAS.
Analysis route Samples Share (%) Accuracy FN FP
Static only 7209 57.95 0.9900 71 1
Static + Dynamic 4457 35.83 0.9493 225 1
Full pipeline 773 6.21 0.4386 432 2
can substantially reduce the requirement for exhaustive multimodal analysis through adaptive execution.
Specifically, 57.95% of samples were classified using static analysis alone, while an additional 35.83% required
combined static and dynamic analysis. 93.79% of the evaluated samples were processed without invoking the
complete analysis pipeline. Only 6.21% required additional memory based analysis. This shows the potential
of hierarchical multi agent orchestration to reduce computational overhead by selectively allocating analysis
resources.
The static only route achieved an accuracy of 99.00% with 71 false negatives and one false positive.
Similarly, the static plus dynamic achieved 94.93% accuracy with 225 false negatives and one false positive.
These results indicate that the earlier analysis stages provide reliable classification outcomes.
Although the escalation mechanism concentrates computational resources on samples requiring
additional analysis, the classification outcomes indicate that increasing the number of analysis modalities
does not necessarily improve decision reliability. The weak standalone performance of memory based
analysis suggests that its contribution to multimodal fusion requires further investigation. In particular,
confidence aware modality weighting may help prevent weak or uninformative features from adversely
affecting the final classification decision.
A matched evaluation of alternative fusion strategies on the same escalated samples would be required
to isolate these effects. Overall, the routing results demonstrate the computational benefits of HMAS while
identifying opportunities to improve the reliability of its final escalation stage. These findings motivate
further refinement of modality specific confidence estimation and adaptive fusion for robust intrusion
detection.
7.5 RQ5: Ablation and sensitivity
Table 11 show an ablation study. It shows accuracy, true negatives, false positive for all samples w.r.t
static only, dynamic only, memory only, adaptive routing, full HMAS with out LLM and with LLM.
Table 11:Leave-one-component-out
Row label (as logged)𝑛Acc. TN FP FN/TP
“static” (= B1 static-only) 12439 0.9130 6203 6 1076/5154
“dynamic” (= B2 dynamic-only) 12439 0.9329 6001 208 627/5603
“memory” (= B3 memory-only) 12439 0.4994 6209 0 6227/3
−adaptive routing (= SDM HMAS (Fixed)) 12439 0.9401 6205 4 741/5489
−LLM review (= H0) 12439 0.9412 6205 4 728/5502
Preprint version. Submitted to arXiv.16
Table 12 shows the objective𝑈−𝜆𝐶 (Eq. 1, accuracy minus𝜆 times internal cost units). For H0 versus
B1, the equality0.9412−6.65𝜆=0.9130−4𝜆 occurs at𝜆≈0.01064 . H0 has higher accuracy-adjusted utility
for0≤𝜆<0.01064 , while B1 is preferable for𝜆>0.01064 under this particular objective. Thus, the selected
grid values (𝜆=0,0.1,0.5,1 ) do not resolve the crossover interval. The objective measures binary accuracy
and internal acquisition cost; it does not incorporate family attribution or asymmetric false-negative harm.
Table 12:Objective valueAcc−𝜆⋅costat selected𝜆(seed 42, default threshold).
𝜆B1 Static-only SD HMAS SDM HMAS H0 HMAS
0.0 0.9130 0.9647 0.9401 0.9412
0.1 0.5130 -0.0353 -0.2599 0.2765
0.5 -1.0870 -4.0353 -5.0599 -2.3823
1.0 -3.0870 -9.0353 -11.0599 -5.7058
7.6 RQ6: Value of the LLM reviewer
A second run enabled the LLM reviewer for the main evaluation; the separate zero-day comparison
reported below did not invoke the LLM. The reviewer was invoked on 31.1% of the 12,439 cases, averaging
1.48 LLM calls per invoked case. Table 13 reports its cost. The binary accuracy/precision/recall trade-off is
discussed in Section 7.1 (Table 3)
Table 13:Cost of enabling the LLM reviewer, default threshold, single run (seed 42,𝑛=12,439).
Quantity H0 (deterministic) H1 (LLM-enabled)
Mean cost (internal units) 6.65 14.07
Mean decision latency 111 ms 6,639 ms
p95 decision latency 218 ms 22,751 ms
Invocation rate – 31.1%
Mean LLM calls per invoked case – 1.48
Enabling the reviewer roughly doubles mean analysis cost (6.65→14.07 units) and raises p95 latency
by two orders of magnitude (218 ms→22.75 s), for a net binary F1 change of +0.0041 (Section 7.1).
7.7 Zero-Day Ransomware Detection and Computational Efficiency
7.7.1 Zero-Day Evaluation Protocol
To investigate the effectiveness of the proposed Hierarchical Multi-Agent System against previously
unseen ransomware, experiments were conducted across 16 ransomware families. Each family was consid-
ered separately in the zero-day evaluation, allowing the detection capability to be examined under different
ransomware characteristics and sample distributions. The standalone held-out-family evaluation focuses on
two complementary aspects: (i) the ability to detect ransomware samples belonging to previously unseen
families, and (ii) the classification performance and computational efficiency of HMAS relative to alternative
analysis strategies in a separate comparative experiment.
7.7.2 Detection of Previously Unseen Ransomware
Table 14 shows the binary detection performance obtained for 16 zero day ransomware families. The
results reveal variation in detection capability across families.
Preprint version. Submitted to arXiv.17
Table 14:Standalone zero day binary detection performance across previously unseen ransomware families.
Family Samples Recall (%) F1
Akira 399 33.58 0.503
Babuk 600 30.17 0.464
BlackCat 128 39.84 0.570
Cerber 730 36.30 0.533
Clop 58 29.31 0.453
Conti 449 35.41 0.523
DarkSide 111 28.83 0.448
GandCrab 6204 58.64 0.739
Hive 188 43.09 0.602
LockBit 6110 60.67 0.755
Phobos 262 54.58 0.706
Qilin 149 63.76 0.779
Ryuk 85 42.35 0.595
Sodinokibi 779 52.76 0.691
WannaCry 1311 27.61 0.433
Zeppelin 4695 62.75 0.771
Among the evaluated families Qilin achieved the highest binary F1-score of 0.779, followed by Zeppelin
(0.771) and LockBit (0.755). GandCrab and Phobos also demonstrated relatively strong detection performance
achieving F1-scores of 0.73 and 0.70 respectively. On the other hand WannaCry, DarkSide and Clop
exhibited comparatively lower detection performance with F1-scores of 0.43, 0.44 and 0.45 respectively.
The unweighted macro-average binary recall across the 16 families was approximately 43.73%, whereas
the sample-weighted recall was approximately 55.07%. This difference reflects the unequal distribution of
samples among the evaluated ransomware families. These findings demonstrate that the detection capability
varies substantially across unseen families. Although several families exhibit good results, the lower recall
observed for other families indicates that zero day generalization remain challenging. Furthermore the
zero day reports assign the generic label zeroday detected to the held out samples. Therefore, the reported
perfect unknown class classification scores cannot be interpreted as evidence of successful identification of
the exact unseen ransomware family. Accordingly, binary detection recall and F1 are used as the primary
zero-day performance indicators.
8 Discussion and Threats to Validity
The experimental findings show the potential of the proposed hierarchical multi agent system (HMAS)
to balance ransomware detection performance, family attribution and computational efficiency through
adaptive evidence acquisition. HMAS selectively escalates analysis based on the available evidence and
routing decisions thus minimizing time to final decision in a critical system in case of a possible intrusion.
HMAS achieves higher binary F1 than exhaustive analysis with low cost and less decision latency.
Its main advantage is shown in multiclass ransomware family attribution. HMAS achieves a macro-F1 of
0.9748, compared with 0.7022–0.8204 for the evaluated fixed configurations (Table 5). This corresponds to
an absolute improvement of approximately 15.44–27.26 % highlighting the effectiveness of adaptive multi
agent coordination for family level ransomware classification.
The routing analysis also shows the benefits of selective modality execution in terms of cost and
latency. HMAS resolves approximately 93.8% of evaluated cases using static or combined static–dynamic
evidence and it avoids full pipeline processing for the most samples. The static-only route achieves 99.0%
Preprint version. Submitted to arXiv.18
accuracy, while the static–dynamic route achieves 94.93% accuracy. Moreover, the static stage short circuit
error rate is limited to 1.14%. It indicates that early termination can be effective for cases meeting the
corresponding routing criteria.
These findings support the suitability of adaptive evidence acquisition for resource conscious intrusion
detection environments where comprehensive analysis may introduce unnecessary overhead in terms of
cost and delay. Nevertheless, the results also indicate that adaptive routing must be accompanied by reliable
confidence estimation, particularly for samples requiring additional analysis.
The cost sensitivity analysis provides further insight into the operating conditions under which HMAS
is preferable to simpler alternatives. Under the binary accuracy–cost objectiveAcc−𝜆𝐶 , HMAS exceeds
static-only analysis for0≤𝜆<0.01064 (Table 12). This finding indicates that the preferred analysis strategy
depends on the relative importance assigned to classification accuracy and computational expenditure.
The binary accuracy–cost objective does not capture the operational value of ransomware family
attribution or the consequences of missed ransomware detections. The substantially higher multiclass
macro-F1 achieved by HMAS therefore represents an additional benefit.
The LLM assisted agent introduces a further trade off between detection sensitivity and resource
consumption. Incorporating LLM review improves binary recall by 5.3 %, although precision decreases by
5.2%. The reviewer also increases computational cost and raises decision latency to 22.75 s per case.
In the evaluated configuration, LLM assisted review reduces family attribution macro-F1 from 0.9748
to 0.9417. Consequently, the deterministic HMAS configuration currently provides the more favorable
balance for applications prioritizing accurate family attribution and low latency operation. It is obvious
from results that locally hosted is only benificial for high risks cases where cost may not matter. From an
operational perspective, the proposed framework offers a flexible foundation for security operations centers
(SOCs) and digital forensics and incident response (DFIR) workflows. The ability to terminate analysis
early for high-confidence cases can reduce processing requirements and quick action to patch, while more
complex cases can be escalated for additional inspection.
Overall, the findings establish adaptive multi-agent orchestration as a promising approach for cost-
aware ransomware analysis, particularly for fine-grained family attribution under computational constraints.
Addressing the identified limitations through improved modality calibration, robust fusion, selective LLM
invocation, and stronger zero-day evaluation will further support its application in practical intrusion
detection environments. ‘
9 Conclusion
This study presented a cost aware hierarchical multi agent system (HMAS) for ransomware detection
and family attribution, formulating multimodal evidence acquisition as a budgeted sequential decision
process. Deterministic HMAS achieved 94.12% binary detection accuracy (F1 = 0.9376) and, in a separately
reported 17-class evaluation, 98.90% classification accuracy (macro-F1 = 0.9748).
Proposed HMAS resolved approximately 93.8% of cases using static or combined static–dynamic
evidence instead of running full ehxaustive pipeline. This selective processing reduced internal analysis cost
by 44.6% compared with exhaustive evaluation, while maintaining strong overall classification performance.
The inclusion of a locally hosted LLM introduced a performance–efficiency trade off. Although LLM agent
increased binary recall by 5.3% yet it reduced precision by 5.2 %, approximately doubled mean analysis cost
and increased decision latency to 22.75 s per case. These findings suggest that LLM assistance may not be
very useful in case of intrusions where time and cost are utmost important.
Preprint version. Submitted to arXiv.19
Overall, the results also demonstrate the potential of hierarchical multi agent orchestration to balance
ransomware detection, family attribution and time to execute an analysis.
10 Statements
Acknowledgement:All work is done on an NVIDIA DGX system. We thank the Pattern Recognition Lab (DCIS),
the PIEAS Artificial Intelligence Center (PAIC), and the Center for Mathematical Sciences (CMS), PIEAS for providing
computing resources.
Availability of Data and Materials:The data and supporting materials are available from the corresponding author
upon request.
Ethics Approval:This study did not involve human or animal subjects. All malware samples were analyzed in
isolated and air gapped virtual machines.
Conflicts of Interest:The authors declare no conflicts of interest.
References
1. Beaman C, Barkworth A, Akande TD, Hakak S, Khan MK. Ransomware: Recent advances, analysis, challenges
and future research directions. Computers & Security. 2021;111:102490. DOI: 10.1016/j.cose.2021.102490.
2. Oz H, Aris A, Levi A, Uluagac AS. A survey on ransomware: Evolution, taxonomy, and defense solutions. ACM
Computing Surveys. 2022;54(11s):238. DOI: 10.1145/3514229.
3. Connolly LY, Wall DS. The rise of crypto-ransomware in a changing cybercrime landscape: Taxonomising
countermeasures. Computers & Security. 2019;87:101568. DOI: 10.1016/j.cose.2019.101568.
4. Egele M, Scholte T, Kirda E, Kruegel C. A survey on automated dynamic malware-analysis techniques and tools.
ACM Computing Surveys. 2012;44(2):6. DOI: 10.1145/2089125.2089126.
5. Arfeen A, Khan MA, Zafar O, Ahsan U. Process based volatile memory forensics for ransomware detection.
Concurrency and Computation: Practice and Experience. 2022;34(4):e6672. DOI: 10.1002/cpe.6672.
6. Oh DB, Kim D, Kim HK. volGPT: Evaluation on triaging ransomware process in memory forensics
with large language model. Forensic Science International: Digital Investigation. 2024;49:301756. DOI:
10.1016/j.fsidi.2024.301756.
7. Alzahrani S, Xiao Y, Asiri S, Alasmari N, Li T. RansomFormer: A cross-modal transformer architecture for
ransomware detection via the fusion of byte and API features. Electronics. 2025;14(7):1245. DOI: 10.3390/electron-
ics14071245.
8. Zhang S, Su H, Liu H, Yang W. MPDroid: A multimodal pre-training Android malware detection method with
static and dynamic features. Computers & Security. 2025;150:104262. DOI: 10.1016/j.cose.2024.104262.
9. Trapeznikov K, Saligrama V. Supervised sequential classification under budget constraints. In: Proceedings
of the 16th International Conference on Artificial Intelligence and Statistics (AISTATS); 2013 Apr 29–May
1; Scottsdale, AZ, USA. Proceedings of Machine Learning Research. 2013;31:581–589. Available from: https:
//proceedings.mlr.press/v31/trapeznikov13a.html.
10. Xu Z, Kusner MJ, Weinberger KQ, Chen M, Chapelle O. Classifier cascades and trees for minimizing feature
evaluation cost. Journal of Machine Learning Research. 2014;15:2113–2144. Available from: https://www.jmlr.org/
papers/v15/xu14a.html.
11. Nan F, Saligrama V. Adaptive classification for prediction under a budget. In: Advances in Neural Information
Processing Systems 30; 2017 Dec 4–9; Long Beach, CA, USA. p. 4727–4737.
12. Gülmez S, Kakisim AG, Sogukpinar I. XRan: Explainable deep learning-based ransomware detection using
dynamic analysis. Computers & Security. 2024;139:103703. DOI: 10.1016/j.cose.2024.103703.
13. Cen M, Deng X, Jiang F, Doss R. Zero-Ran Sniff: A zero-day ransomware early detection method based on
zero-shot learning. Computers & Security. 2024;142:103849. DOI: 10.1016/j.cose.2024.103849.
14. Cen M, Jiang F, Doss R. RansoGuard: A RNN-based framework leveraging pre-attack sensitive APIs for early
ransomware detection. Computers & Security. 2025;104293. DOI: 10.1016/j.cose.2024.104293.
Preprint version. Submitted to arXiv.20
15. Gaber M, Ahmed M, Janicke H. Zero day ransomware detection with Pulse: Function classification with Trans-
former models and assembly language. Computers & Security. 2025;148:104167. DOI: 10.1016/j.cose.2024.104167.
16. Janisch J, Pevný T, Lisý V. Classification with costly features using deep reinforcement learning. In: Proceedings
of the AAAI Conference on Artificial Intelligence. 2019;33(1):3959–3966. DOI: 10.1609/aaai.v33i01.33013959.
17. Ferraro A, Galli A, Moscato V, Orlando GM, Russo D. Hierarchical multi-agent AI framework for cybersecurity in
cyber-physical systems. Computer Networks. 2026;288:112556. DOI: 10.1016/j.comnet.2026.112556.
18. Singh AV, Rathbun E, Graham E, Oakley L, Boboila S, Chin P, Oprea A. Hierarchical multi-agent reinforcement
learning for cyber network defense. Reinforcement Learning Journal. 2025;6:790–810.
19. Wadood A, Iqbal M, Khan A. Multimodal multi-agent ransomware analysis using AutoGen. arXiv:2601.20346
[Preprint]. 2026. Available from: https://arxiv.org/abs/2601.20346.
20. Ispahany J, Islam MR, Islam MZ, Khan MA. Ransomware detection using machine learning: A review, research
limitations and future directions. IEEE Access. 2024;12:68785–68813. DOI: 10.1109/ACCESS.2024.3397921.
21. Zahoora U, Khan A, Rajarajan M, Khan SH, Asam M, Jamal T. Ransomware detection using deep learning based
unsupervised feature extraction and a cost sensitive Pareto ensemble classifier. Scientific Reports. 2022;12:15647.
DOI: 10.1038/s41598-022-19443-7.
22. El Rhayati O, Essadeq H, El Beqqali O, Tairi H. Structured heatmap learning for multi-family malware classification.
Journal of Cybersecurity and Privacy. 2025;5(3):72.
23. Iqbal A, Hussain M, Riaz Q, Khalid M, Mumtaz R, Jung K. Enhancing ransomware detection with machine
learning techniques and effective API integration. Computers, Materials & Continua. 2025;85(1):1693–1714. DOI:
10.32604/cmc.2025.064260.
24. Ghourabi A, Chouaib H. A ransomware detection approach based on LLM embedding and ensemble learning.
Computers, Materials & Continua. 2026;87(1):98. DOI: 10.32604/cmc.2026.074505.
25. Zhou C, Liu Y, Meng W, Tao S, Tian W, Yao F, et al. SRDC: Semantics-based ransomware detection and clas-
sification with LLM-assisted pre-training. In: Proceedings of the AAAI Conference on Artificial Intelligence.
2025;39(27):28566–28574. DOI: 10.1609/aaai.v39i27.35080.
26. Steadman P, Jenkins P, Rathore RS, Hewage C. A multi-modal deep learning framework for robust polymorphic
malware detection. Computers, Materials & Continua. 2026;88(3):86. DOI: 10.32604/cmc.2026.083998.
27. Wu X, Wan L, Ren J, Zhang B. WAFDect: A malware detection model based on multi-source feature fusion.
Computers, Materials & Continua. 2026;88(1):49. DOI: 10.32604/cmc.2026.077928.
28. Ponte A, Trizna D, Demetrio L, Biggio B, Ogbu IT. SLIFER: Investigating performance and robustness of malware
detection pipelines. Computers & Security. 2025;150:104264.
29. Geifman Y, El-Yaniv R. Selective classification for deep neural networks. In: Advances in Neural Information
Processing Systems 30; 2017 Dec 4–9; Long Beach, CA, USA. p. 4878–4887.
30. Guo C, Pleiss G, Sun Y, Weinberger KQ. On calibration of modern neural networks. In: Proceedings of the 34th
International Conference on Machine Learning (ICML); 2017 Aug 6–11; Sydney, Australia. Proceedings of Machine
Learning Research. 2017;70:1321–1330. Available from: https://proceedings.mlr.press/v70/guo17a.html.
31. Angelopoulos AN, Bates S. A gentle introduction to conformal prediction and distribution-free uncertainty
quantification. arXiv:2107.07511 [Preprint]. 2021. Available from: https://arxiv.org/abs/2107.07511.
32. Xu H, Wang S, Li N, Wang K, Zhao Y, Chen K, et al. Large language models for cyber security: A systematic
literature review. ACM Transactions on Software Engineering and Methodology. 2025. DOI: 10.1145/3769676.
33. Fang R, Bindu R, Gupta A, Zhan Q, Kang D. Teams of LLM agents can exploit zero-day vulnerabilities.
arXiv:2406.01637 [Preprint]. 2024. Available from: https://arxiv.org/abs/2406.01637.
34. Yan P, Tan S, Wang M, Huang J. Prompt engineering-assisted malware dynamic analysis using GPT-4. IEEE
Transactions on Dependable and Secure Computing. 2025;22(6):7712–7728. DOI: 10.1109/TDSC.2025.3599004.
35. Alsubait T. A large language model-driven autonomous framework for intelligent cyber threat detection and
response. Computers, Materials & Continua. 2026;89(1):34. DOI: 10.32604/cmc.2026.083550.
36. Wu Q, Bansal G, Zhang J, Wu Y, Li B, Zhu E, et al. AutoGen: Enabling next-gen LLM applications via multi-agent
conversation. In: Proceedings of the Conference on Language Modeling (COLM); 2024 Oct 7–9; Philadelphia, PA,
USA.
Preprint version. Submitted to arXiv.21
37. Pendlebury F, Pierazzi F, Jordaney R, Kinder J, Cavallaro L. TESSERACT: Eliminating experimental bias in malware
classification across space and time. In: Proceedings of the 28th USENIX Security Symposium; 2019 Aug 14–16;
Santa Clara, CA, USA. p. 729–746.
38. Jiang Y, Li G, Li S, Guo Y. BenchMFC: A benchmark dataset for trustworthy malware family classification under
concept drift. Computers & Security. 2024;139:103706. DOI: 10.1016/j.cose.2024.103706.
39. Arp D, Quiring E, Pendlebury F, Warnecke A, Pierazzi F, Wressnegger C, Cavallaro L, Rieck K. Pitfalls in machine
learning for computer security. Communications of the ACM. 2024;67(11):104–112. DOI: 10.1145/3643456.
40. Alzahrani S, Xiao Y, Asiri S. RanDS: A large-scale open dataset of raw binaries and extracted features for
ransomware research. Computers & Security. 2026;167:104909. DOI: 10.1016/j.cose.2026.104909.
41. Suciu O, Coull SE, Johns J. Exploring adversarial examples in malware detection. In: Proceedings of the IEEE
Security and Privacy Workshops (SPW); 2019 May 19–23; San Francisco, CA, USA. DOI: 10.1109/SPW.2019.00015.
42. Iqbal M, et al. A multi-modal static, dynamic & memory feature dataset for Windows ransomware detection.
Version 1.0. Zenodo; 2026 Oct 26. DOI: 10.5281/zenodo.23640635.
Preprint version. Submitted to arXiv.22
采集信息与校验
- 资料类别
- 学术论文
- 采集内容
- 全文文本
- PDF 页码
- 第 1–22 页 / 共 22 页;第 1 / 1 段
- 整份 PDF 校验
- a35914f361bac479cbbbf855329a55f6d11355a3879e185e739656a339d72a5b
- 作者
- Mubashar Iqbal; Hifsa Asif; Saddam Hussain Khan; Umme Zahoora; Asifullah Khan
- 标识 / 标准编号
- arxiv:2609.04820
- 来源版本
- v3
- 发布日期
- 2026-09-04 07:17 UTC
- 来源更新时间
- 2026-10-31 18:34 UTC
- 首次入库
- 2026-11-05 18:15 UTC
- 本版本入库更新
- 2026-11-05 18:15 UTC
- 来源 PDF 文档组
- PDF-05ff116ae646b0ba1ebe9de9acd045d0f16757a429f1057672303aa0b4f27821
- PDF 原件字节 SHA-256
- a35914f361bac479cbbbf855329a55f6d11355a3879e185e739656a339d72a5b
完整来源元数据
{
"actual_download_url": "https://arxiv.org/pdf/2609.04820v3",
"authors": [
"Mubashar Iqbal; Hifsa Asif; Saddam Hussain Khan; Umme Zahoora; Asifullah Khan"
],
"completeness": "complete_text",
"content_level": "full_text",
"discovery_authors": [
"Iqbal, Mubashar",
"Asif, Hifsa",
"Khan, Saddam Hussain",
"Zahoora, Umme",
"Khan, Asifullah"
],
"empty_pages": [],
"extractor": "pypdf-6.19.0",
"fallback_pdf_url": "https://arxiv.org/pdf/2609.04820v3",
"fulltext_rejection": "missing ltx_document title/section structure",
"identifiers": [
"arxiv:2609.04820"
],
"landing_page": "https://arxiv.org/abs/2609.04820v3",
"page_count": 22,
"page_parts": [
[
1,
0,
3413,
0,
3413
],
[
2,
0,
3240,
3415,
6655
],
[
3,
0,
4201,
6657,
10858
],
[
4,
0,
2103,
10860,
12963
],
[
5,
0,
2565,
12965,
15530
],
[
6,
0,
2008,
15532,
17540
],
[
7,
0,
2827,
17542,
20369
],
[
8,
0,
1746,
20371,
22117
],
[
9,
0,
1888,
22119,
24007
],
[
10,
0,
3043,
24009,
27052
],
[
11,
0,
1974,
27054,
29028
],
[
12,
0,
1933,
29030,
30963
],
[
13,
0,
2197,
30965,
33162
],
[
14,
0,
1238,
33164,
34402
],
[
15,
0,
2638,
34404,
37042
],
[
16,
0,
3188,
37044,
40232
],
[
17,
0,
2706,
40234,
42940
],
[
18,
0,
3068,
42942,
46010
],
[
19,
0,
4001,
46012,
50013
],
[
20,
0,
3839,
50015,
53854
],
[
21,
0,
4738,
53856,
58594
],
[
22,
0,
1316,
58596,
59912
]
],
"page_range": [
1,
22
],
"parent_source": "https://arxiv.org/pdf/2609.04820",
"pdf_group_id": "PDF-05ff116ae646b0ba1ebe9de9acd045d0f16757a429f1057672303aa0b4f27821",
"pdf_parser_sandbox": "bounded_process_v1",
"pdf_repair_provenance": {
"candidates": [],
"coordinate_candidates": [],
"original_bytes_modified": false,
"original_sha256": "a35914f361bac479cbbbf855329a55f6d11355a3879e185e739656a339d72a5b",
"resource_profile": "default",
"resource_retry_reasons": [],
"schema": "ict-strict-pdf-text-repair-provenance-v1",
"strategy": "original-strict",
"strict": true,
"text_metadata_identical": false,
"visual_equivalence_claimed": false
},
"pdf_revision": "a35914f361bac479cbbbf855329a55f6d11355a3879e185e739656a339d72a5b",
"pdf_syntax_warnings": {
"object_header_whitespace": 0
},
"pdf_title": "Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attribution",
"rolling_atom_sha256": "950dbce0a7a492ee2bc09b36d4fc2e9788673ffaae227e2208b8b0041fe50b25",
"segment_count": 1,
"segment_index": 1,
"source_updated_at": "2026-10-31T18:34:44+00:00",
"total_pages": 22,
"version_label": "v3"
}{
"format": "native_pdf",
"pdf_artifact_sha256": "a35914f361bac479cbbbf855329a55f6d11355a3879e185e739656a339d72a5b",
"source_assertions": {
"external_id": "arxiv:2609.04820",
"published_at": "2026-09-04T07:17:09Z",
"source_url": "https://arxiv.org/pdf/2609.04820",
"structured_metadata": {},
"title": "1Introduction"
}
}原文版本历史与校验
| 版本 | 入库更新时间 | 来源发布日期 | 校验标识 |
|---|
| v1 · 正在查看 | 2026-11-05 18:15 UTC | 2026-09-04 07:17 UTC | ae4a79488297bb9f275213b6ebd30c8f34a652c2615021aa5618710beb29b998 |
可引用分片 · 50 段
CHK-72e1ee4d7411245e2d5643e0
http://doi.org/10.32604/cmc.2026.000000
ARTICLE
Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family
Attribution
Mubashar Iqbal1,2, Hifsa Asif 1, Saddam Hussain Khan 4, Umme Zahoora 5 and Asifullah
Khan1,2,3, *
1Pattern Recognition Lab, DCIS, Pakistan Institute of Engineering and Applied Sciences (PIEAS), Nilore, Islamabad, Pakistan
2Deep Learning Lab, Center for Mathematical Sciences, PIEAS, Nilore, Islamabad, Pakistan
3PIEAS Artificial Intelligence Center (PAIC), Nilore, Islamabad, Pakistan
4Interdisciplinary Research Center for Smart Mobility and Logistics, King Fahd University of Petroleum & Minerals, Dhahran
31261, Saudi Arabia
5Department of Creative Technology, AIR University, E9 Campus, Islamabad, Pakistan.
*Corresponding Author: Asifullah Khan. Email: asif@pieas.edu.pk
Version November 3, 2026 submitted to Comput Mater Contin
ABSTRACT:Sandbox execution and memory forensics are among the most resources intensive stages of malware
triage. Static analysis can scale to millions of files while dynamic and memory analysis require minutes per sample.
Because multimodal ransomware detectors often apply every modality to every sample, costs and latency rise even
when static evidence suffice.We proposea cost aware Hierarchical Multi Agent System (HMAS) that frames evidence
acquisition as a budgeted sequential decision problem enabling timely ransomware detection.
CHK-acb24c813e298f4892bca02c
st aware Hierarchical Multi Agent System (HMAS) that frames evidence
acquisition as a budgeted sequential decision problem enabling timely ransomware detection. Specialist agents
generate schema validated risk signals for each modality while domain controllers aggregate evidence and coordinate
analysis. The orchestrator starts with static evidence and escalates only if confidence is low or signals disagree. A
locally hosted language model provides a limited, accoutable review without replacing the deterministic pipeline.
Experiments on 16 ransomware families show 94.12% binary accuracy (F1 0.9376, ROC-AUC 0.9989). For multi class
family attribution, it achieves 98.90% accuracy (macro-F1 0.9748). The system resolves 57.95% of the samples using
static analysis alone whhile only 6.21% require the full pipeline. Compared with exhaustive cost of 12.0 units,the
proposed system reduces te average cost to 6.724 units, representing approximately 44% saving. Zero day experiments
further examine generalization to unseen ransomware families. Additional evaluations examine cost sensitivity and
component level contribution. LLM-assisted review provides only marginal improvement in F1 while introducing
additional computational overhead. Overall, the results show the potential of adaptive hierarchical multi agent
CHK-c4870c1e49b37474c560786a
ly marginal improvement in F1 while introducing
additional computational overhead. Overall, the results show the potential of adaptive hierarchical multi agent
orchestration to balance ransomware detection performance, family attribution analysis cost and decision latency.
KEYWORDS:Ransomware; hierarchical multi-agent systems; cost aware classification; malware triage; family
attribution
1 Introduction
Ransomware is still one of the biggest threat classes of malware due to its direct impact on data
availability [1,2]. Security analysts process a large volume of sample streams. They are required to make a
decision for every sample (i) whether it is ransomware (ii) the family to which it belongs as it will determine
a response playbook [3]. For any malware sample, there are three types of evidence that are available at
differing costs and delays. The cost of static analysis of sample is low and it causes less delay. Dynamic
Preprint version. Submitted to arXiv.1
arXiv:2609.04820v3 [cs.CR] 31 Oct 2026
analysis is the process of running the sample in a sandbox and is prone to evasion [4]. Memory forensics is
used to capture volatile artifacts like injected code and unpacked payloads but it also needs acquisition
and offline processing incuring additional cost and delay[5,6]. Recent detectors are able to enhance the
CHK-47c3405336cf7fb95a00ab22
de and unpacked payloads but it also needs acquisition
and offline processing incuring additional cost and delay[5,6]. Recent detectors are able to enhance the
accuracy by integrating these modalities [7,8] but they treat all modalities equally and do not consider cost
of acquisition of modalities or latency caused after execution of each modality. In operational environments
dynamic and memory analysis increase time to triage a sample. therefore, question is not just which
model is most accurate but also how much costly and delayed evidence is obtained in a certain model. So
it becomes a sequential classification problem [ 9–11]. It is widely studied in machine learning but not
explored in ransomware detection and family attribution.
1.1 Problem statement
Let a sample𝑥 have evidence available through modalities ={𝑆,𝐷,𝑀} (static, dynamic, memory)
with acquisition costs𝐶𝑆 ≪𝐶 𝐷≲𝐶 𝑀. A strategy𝐴⊆ yields evidence𝐸𝐴, a detection decision𝐷 and,
for ransomware, a family𝐹. We seek a per-sample strategy that maximizes decision utility net of acquisition
cost,
𝐴∗(𝑥)=argmax
𝐴 [𝑈(𝐷,𝐹∣𝐸 𝐴)−𝜆𝐶(𝐴) ],(1)
where𝜆 sets the exchange rate between reliability and cost. Because𝑈 depends on the unseen label,𝐴∗
cannot be computed directly; it must be approximated from the current evidence state (Section 3).
1.2 Gap and contributions
CHK-8bc3c4a1254923181d4f3f5b
use𝑈 depends on the unseen label,𝐴∗
cannot be computed directly; it must be approximated from the current evidence state (Section 3).
1.2 Gap and contributions
Prior ransomware work optimizes detection or attribution accuracy for a fixed modality set [7,12–15].
Cascaded and budgeted classifiers [10,11,16] decide when to stop, but have not been studied for ransomware
with specialis agent structure and family attribution. Multi agent frameworks for cyber security usually
follow fixed workflows [17–19]. We list our contributions as under.
1. A cost aware hierarchical multi agent architecture in which provenance preserving outputs make
every decision auditable.
2. An escalation policy driven by calibrated confidence and within controller disagreement with an
internal unit acquisition cost model and separately reported decision latency.
3. A bounded LLM review layer restricted to a three action set and evaluated by ablation
4. An empirical evaluation on the available train test split and leave one out and standalone held out
family (zero day) testing
Proposed HMAS is traiaged efficient and we test whether it preserves detection quality at lower acquisition
cost.
1.3 Relation to our earlier work
Our earlier multimodal multi agent ransomware study [19] fuses static, dynamic and network agents
CHK-6a68f08cc0e3daa81e013383
y at lower acquisition
cost.
1.3 Relation to our earlier work
Our earlier multimodal multi agent ransomware study [19] fuses static, dynamic and network agents
through a learned transformer to maximize family attribution accuracy, acquiring all modalities for every
sample. Proposed HMAS differs in objective, mechanism and evaluation.
The paper is organized as follows. Section 2 reviews related work. In Section 3 We formulized problem
and theat model. We discuss proposed cost aware HMAS in Section 4. Section 5 details the implementation.
Section 6 discusses the evaluation protocol. In Section 7 the results are shown. Section 8 includes the
discussion and threats to validity and Section 9 concludes our work on HMAS.
Preprint version. Submitted to arXiv.2
2 Related Work
Recent surveys highlight the use of machine learning techniques instead of traditional signature
based approaches for ransomware detection . However, ransomware family attribution is still challenging
due to variations among samples of same family [2,20]. Authors have used explainable dynamic analysis
models in [12], early detection from pre attack API calls [14], zero-shot early detection [13], transformer
models in combination with assembly language functions [15] and fused byte alongwith API features [7].
Cost sensitive ensembles for imbalanced ransomware data is also proposed in [ 21]. Further, structured
CHK-49eeb85d039325f31a68b16e
unctions [15] and fused byte alongwith API features [7].
Cost sensitive ensembles for imbalanced ransomware data is also proposed in [ 21]. Further, structured
heat map learning for multi family classification is explored in [22]. Iqbal et al. [23] combined signature
based techniques with API driven behavioral analysis for early ransomware detection, while Ghourabi
and Chouaib [24] employed LLM embeddings and ensemble learning to improve detection. LLM assisted
pre training has also been applied to ransomware semantics [ 25]. Although these approaches improve
detection through complementary classifiers, inference time selection of analysis modalities under explicit
acquisition budgets is not explored well.
Fusing static and dynamic features improves robustness [8]. Steadman et al. [26] showed the benefits
of combining visual and structural representations for polymorphic malware detection, while Wu et al. [27]
proposed multi source feature fusion using behavioral information and self attention. These studies support
the value of complementary evidence but fusion alone does not establish whether every modality must be
acquired for each sample. Fixed pipelines can therefore incur unnecessary analysis costs on easy cases.
Robustness analyses of full detection system further show that operational choices around the classifier
matter as much as the classifier itself [28].
CHK-9118e7be7f721e596cb997b2
y cases.
Robustness analyses of full detection system further show that operational choices around the classifier
matter as much as the classifier itself [28].
Process level volatile memory features support ransomware detection [5] and LLMs combined with
Volatility can triage ransomware processes in memory dumps [6]. Memory evidence is particularly valuable
when other modalities are inconclusive but its acquisition and processing costs mandates selective use to
avoid cost and reduce latency in decisions.
Cascaded classifier also trade accuracy against feature evaluation cost [9,10] adaptive gating routes
easy instances to inexpensive models [11] and deep reinforcement learning can acquire costly features
sequentially [16]. Selective classification abstains when confidence is low [ 29], while calibration [ 30]
and conformal prediction [31] provide foundations for assessing prediction confidence. HMAS draws on
these principles for ransomware triage, where the “features” correspond to entire analysis modalities with
substantially different acquisition costs.
LLM agents and multi-agent frameworks are increasingly applied to security tasks [ 32], including
hierarchical planning with task-specific agents [33], hierarchical multi-agent AI for cyber-physical systems
[17], hierarchical multi-agent reinforcement learning for network defense [18], and GPT-4-assisted malware
CHK-cc9ba2527193c3b0dff3800c
erarchical multi-agent AI for cyber-physical systems
[17], hierarchical multi-agent reinforcement learning for network defense [18], and GPT-4-assisted malware
dynamic analysis [34]. Alsubait [35] further combined LLM-based threat analysis with multi-agent rein-
forcement learning for autonomous cybersecurity detection and response. These developments demonstrate
the potential of coordinated agents for security analysis, but agent coordination and cost-aware evidence
acquisition address distinct operational requirements. Our framework uses AutoGen [ 36] only for the
reviewer; evidence generation and routing remain deterministic.
Malware classification results can be inflated by spatial and temporal bias [37], while concept drift
degrades family classifiers [38]. Common pitfalls in security machine learning [39] include data leakage
and unrealistic evaluation splits. We therefore identify family-disjoint and temporally separated evaluations
as important follow-up protocols alongside the reported random-split results.
Overall, existing research has advanced ransomware detection, multimodal feature fusion, memory
forensics, and agent-based cybersecurity analysis. However, their combination does not necessarily provide
Preprint version. Submitted to arXiv.3
an inference-time mechanism for balancing evidence acquisition cost, classification confidence, and family
attribution.
CHK-bb3d1d7f1a2b986e0239b75e
Preprint version. Submitted to arXiv.3
an inference-time mechanism for balancing evidence acquisition cost, classification confidence, and family
attribution. HMAS addresses this integration problem through hierarchical routing across static, dynamic,
and memory analysis, with optional LLM-assisted review and explicit cost-aware evaluation. Table 1
positions HMAS against representative approaches.
Table 1:Positioning of HMAS. “Budget-aware” means the method decides at inference time which evidence to
acquire.
Method Modalities Budget-aware Family
attrib.
Memory
evidence
Audit trace
XRan [12] Dynamic No No No Explanations
RansoGuard [14] Dynamic (early) Partially (early
stop)
No No No
Pulse [15] Static (assembly) No No No No
RansomFormer [7] Static + dynamic No No No No
volGPT [6] Memory No Process-
level
Yes LLM text
MMMA-RA [19] Static + dynamic +
network
No Yes No Agent trace
HMAS (this work) Static + dynamic +
memory
Yes Yes Yes Typed trace
3 Problem Formulation and Threat Model
Let𝑌𝑑 ∈{0,1} be the binary label (1 = ransomware) and𝑌𝑓 ∈ the family for ransomware samples.
Given acquired evidence𝐸𝐴 the system outputs ̂𝑌𝑑 =𝑓 𝑑(𝐸𝐴)and ̂𝑌𝑓 =𝑓 𝑓(𝐸𝐴).
3.1 Measured cost model
For modality𝑖we define
𝐶𝑖 =𝛼𝑇 𝑖+𝛽𝑅 𝑖+𝛾𝑄 𝑖,(2)
where𝑇𝑖 denotes acquisition plus analysis time in the cost model definition,𝑅𝑖 is the resource weighted
CHK-7c73b34f455da8da8319229f
ost model
For modality𝑖we define
𝐶𝑖 =𝛼𝑇 𝑖+𝛽𝑅 𝑖+𝛾𝑄 𝑖,(2)
where𝑇𝑖 denotes acquisition plus analysis time in the cost model definition,𝑅𝑖 is the resource weighted
compute footprint (CPU seconds and memory seconds, normalized), and𝑄𝑖 is the queueing/occupancy time
of a scarce resource (a sandbox VM slot or memory acquisition host). For a strategy𝐴,𝐶(𝐴)= ∑𝑖∈𝐴𝐶𝑖, and
cost reduction relative to exhaustive analysis is
𝐶𝑅= 𝐶exh−𝐶 adaptive
𝐶exh
×100.(3)
The reported comparative acquisition costs are internal units rather than direct measurements of wall clock
acquisition time or analyst effort. Decision latency is reported separately.
3.2 Calibrated confidence, stopping, and escalation
After each modality the controller yields a risk score𝑠∈[0,1] . We calibrate scores per modality on a
validation split and define confidenceConf =max(𝑠,1−𝑠) and predictive entropy𝐻. Acquisition stops
when
Conf≥𝜏 𝑐 ∧𝐻≤𝜏 𝐻 ∧𝜎 agents≤𝜏 𝜎,(4)
Preprint version. Submitted to arXiv.4
where𝜎agents is the standard deviation of child agent risk scores inside the controller (disagreement).
Otherwise the orchestrator considers the next modality. The expected utility criterion
𝐸𝑈𝑖 =E[Δ𝑄 𝑖]−𝜆𝐶 𝑖 (5)
motivates the design, withΔ𝑄𝑖 the expected gain in decision quality from modality𝑖. In theimplemented
policy, Eq. (5) is approximated by threshold rules on(Conf,𝐻,𝜎) whose values, together with𝜆, are tuned
CHK-ad502ccadb914d79d06a348f
n in decision quality from modality𝑖. In theimplemented
policy, Eq. (5) is approximated by threshold rules on(Conf,𝐻,𝜎) whose values, together with𝜆, are tuned
on a validation split only (Section 6); we compare against a learned value of information gate as a stronger
alternative in the ablation.
3.3 Threat model
The adversary controls the sample. It may pack or obfuscate code (degrading static evidence), detect
sandboxes or delay execution (degrading dynamic evidence), and tamper with memory artifacts (degrading
memory evidence). We additionally consider a routing aware adversary who knows that confident static
scores short circuit analysis and perturbs static features to fall below the benign short circuit threshold,
thereby suppressing escalation. Infrastructure compromise and prompt injection against the LLM reviewer
are out of scope. The reviewer receives only structured, schema validated agent outputs and its output
space is restricted to three actions.
4 Cost Aware Hierarchical Multi Agent Framework
Fig. 1 gives an end to end overview of the proposed framework, from data preparation and multimodal
feature extraction through HMAS inference and decision output to the final evaluation. The following
subsections describe each stage in turn. The HMAS has four levels (Fig. 2). A Level-0 Meta Orchestrator;
CHK-54a214c360e62f4bd3345ac5
decision output to the final evaluation. The following
subsections describe each stage in turn. The HMAS has four levels (Fig. 2). A Level-0 Meta Orchestrator;
Level-1 domain controllers (static, dynamic, memory), Level-2 specialist agents and Level-1.5 LLM reviewer.
The runtime decision flow is shown in Fig. 3.
At level 2, each agent returns an immutable, schema validated record that contains agent name, sample
ID, model version, risk score in [0,1] , latency and evidence fields. Static agents are based on Entropy,
Import Profiler and Opcode/CFG. Dynamic agents consists of API Profiler, Process Monitor and Artifact
Hunter. Memory agent reports memory risk, cryptographic material, C2 URLs, unpacked payload hashes
and anomaly scores.
At level 1, controllers aggregate child scores with fixed weights (static: entropy 0.30, imports 0.40,
opcode/CFG 0.30; dynamic: API 0.35, process 0.40, artifact 0.25; memory: weight 1.0), execute children
concurrently, and raise an escalation flag when child scores disagree (Eq. 4). We compare these fixed weights
against learned weights in the ablation.
Preprint version. Submitted to arXiv.5
1) Data
Ransomware &
Benign Samples
Preprocessing &
Data Splits
2) Feature Extraction
Static
Features
Dynamic
Features
Memory
Features
3) HMAS Inference
Manager
(Routing)
Controllers
(S / D / M)
Specialist
Agents
LLM Reviewer
(Selective )
Score Fusion
CHK-81e786b36b5adc29174c84ba
Features
Dynamic
Features
Memory
Features
3) HMAS Inference
Manager
(Routing)
Controllers
(S / D / M)
Specialist
Agents
LLM Reviewer
(Selective )
Score Fusion
& Decision
4) Decision Output
Detection
(Ransomware /
Benign)
Family
Attribution
Confidence , Cost &
Execution Trace
5) Evaluation
Predictive Performance
Detection
Acc, P, R, F1 · ROC -AUC · PR -AUC · FPR @TPR
Family Attribution
Multiclass Acc · Macro -P/R/F1 · Per-class
Calibration
ECE · Brier score
Efficiency & Safety
Cost & Efficiency
Cost · Latency (mean, p95) · Throughput · CPU / RSS
Routing Safety
Route distribution · Per -route Acc , FN, FP
LLM Reviewer
Invocation rate · Calls · Latency · Cost
Robustness & Validity
Statistical Testing
Paired McNemar 's test (p-value)
Sensitivity Analysis
λ-sweep · Threshold (τ) sweep
Generalization
Leave-one-family-out accuracy
Static Dynamic Memory Selective / conditional Data flow
Figure 1:HMAS architecture: feature extraction pipeline (left), hierarchical decision pipeline (right), and the optional
LLM reasoning layer.
1) Feature Extraction Pipeline 2) Hierarchical Multi-Agent System Pipeline
Static Features Dynamic Features
Sample Ingest
Parallel Extractor
(PE, OPC, CFG)
Merge
Static Features
Sample Collection
VM Guest Pool
(×24)
CAPEV2
Execution
Dynamic
Features
Memory
Features
Manager
Static Dynamic Exhaustive Full
Controller
CHK-b69e282aec236b94761f138a
Merge
Static Features
Sample Collection
VM Guest Pool
(×24)
CAPEV2
Execution
Dynamic
Features
Memory
Features
Manager
Static Dynamic Exhaustive Full
Controller
Static Controller Dynamic Controller Memory Controller
Specialist Agents
Entropy Agent
Import Agent
Opcode / CFG
Agent
API Profiler
Agent
Process Monitor
Agent
Artifact Hunter
Agent
Memory Agent
(Injection, Hollowing,
Shellcode, Anti-Analysis,
Crypto Specific URLs)
LLM Reasoning
Manager Advocate
Skeptic
Static path Dynamic path Memory path Decision / control LLM reasoning Data flow
Figure 2:HMAS architecture: feature extraction pipeline (left), hierarchical decision pipeline (right), and the optional
LLM reasoning layer.
Preprint version. Submitted to arXiv.6
Evidence
Repositories
Static
Evidence
Dynamic
Evidence
Network
Evidence
Memory
Evidence
Meta-Orchestrator
Route
Static
Evidence
Static Controller
(Entropy, Imports,
Opcode/CFG, )
Sufficient
confidence?
No
Dynamic Controller
(API, Processes,
Behavior, )
Memory Controller
(Processes, DLLs,
Strings, Crypto, )
Normalize & Fuse Scores
F(E A) = Σ i A w i s i
Case-Level Decision
Ransomware / Benign
Family Attribution
(if ransomware)
Yes
LLM Reasoning Layer
(Selective)
Confirm / Revise /
Request escalation
Low confidence /
Conflict / Other
escalation
criteria
Final Output
(Both Retained )
Deterministic Decision
LLM-Review ed Decision
Confidence , Scores
CHK-cdabea7e4ffff628ee7220c7
ion
Low confidence /
Conflict / Other
escalation
criteria
Final Output
(Both Retained )
Deterministic Decision
LLM-Review ed Decision
Confidence , Scores
Cost, Latency ,
#Invocations
Execution Trace
Control / data flow Optional / conditional Static modality Dynamic modality Network modality
Memory modality Fusion / decision LLM reasoning Output / trace
Figure 3:Runtime pipeline: static evidence is processed first; the Meta-Orchestrator escalates on insufficient
confidence or disagreement, fuses the acquired scores, and invokes the bounded reviewer.
The orchestrator begins with static evidence. A static score below 0.20 terminates as benign and
above 0.70 as malicious. On the other hand, ambiguous scores or controller disagreement trigger escalation
to dynamic and then memory evidence if available. Acquired scores are combined by weighted fusion
renormalized over the executed modalities. Then fused score maps to verdict bands (benign, suspicious,
malicious, ransomware) and assigned a binary label. Algorithm 1 summarizes the procedure.
For severe conflict cases, a locally hosted small LLM runs a Manager/Advocate/Skeptic exchange over
the structured evidence at Level 1.5. It returns one of three actions, producing a reviewed binary verdict̂𝑌(1)
𝑑
that is retained alongside. Its invocation rate, override rate and net effect are also measured and reported.
CHK-2898c2f2b3198a4af32dd805
tions, producing a reviewed binary verdict̂𝑌(1)
𝑑
that is retained alongside. Its invocation rate, override rate and net effect are also measured and reported.
The family classifier𝐹 operates exclusively on the pre review evidence𝐸 and the deterministic verdict
̂𝑌(0)
𝑑 . Typed outputs (ControllerOutput, FusionOutput and HmasCaseOutput) preserve intermediate agent
outputs. It enabls each final decision to be traced to the underlying agent evidence, routing and escalation
decisions, computational cost and latency. When review is invoked, the reviewer prompt, response and
resulting decisions are also retained.
5 Implementation
HMAS is implemented in Python with an asynchronous execution model. Typed messages use Pydantic,
specialist models use scikit learn, XGBoost, LightGBM and PyTorch. The LLM reviewer uses AutoGen [36]
with a locally hosted model via Ollama (Table 2). Dynamic evidence is generated in a CAPEv2 sandbox
with a pool of 24 guest VMs, and memory evidence from memory dumps processed with Volatility based
extraction (Fig. 4).
Preprint version. Submitted to arXiv.7
Algorithm 1Cost aware hierarchical decision procedure
Require:Sample𝑥; available domains𝐃; controllers𝐂; family classifier𝐹; optional reviewer𝑅
Ensure:Binary verdict, family, confidence, audit trace
1:𝐸←∅;𝑄←∅;𝑑←static if available else first available
2:repeat
3:Run𝐶 𝑑 on𝑥 𝑑 then collect child outputs.
CHK-b899e768f9ba620381f6fe56
Ensure:Binary verdict, family, confidence, audit trace
1:𝐸←∅;𝑄←∅;𝑑←static if available else first available
2:repeat
3:Run𝐶 𝑑 on𝑥 𝑑 then collect child outputs. Also compute calibrated𝑠 𝑑,Conf,𝐻,𝜎
4:𝐸←𝐸∪{𝐶 𝑑 output};𝑄←𝑄∪{𝑑}
5:ifEq. (4) holdsorno domain remainsthen break
6:else𝑑←next available domain
7:end if
8:untilstopped
9:𝑠 final ←weighted_fusion(𝐸)renormalized over𝑄; map to verdict band
10:Deterministic binary verdict ̂𝑌(0)
𝑑 ; if ransomware, apply𝐹to𝐸to obtain the family label, else family←Benign
11:ifsevere conflictthen
12:Query𝑅with structured evidence; accept onlyConfirm,EscalateOneTier,DowngradeOneTier
13:Record reviewed binary verdict ̂𝑌(1)
𝑑 separately⊳family label isnotrecomputed
14:end if
15:return ̂𝑌(0)
𝑑 , ̂𝑌(1)
𝑑 (if𝑅enabled), family label, scores,𝑄, measured costs and latencies, trace
Evidence Generation
Static Feature
Extraction
Static
Evidence
CAPEv2 Sandbox
(24 guest VMs)
Dynamic
Evidence
Memory Dumps +
Volatility-based
extraction
Memory
Evidence
HMAS Runtime · Python asyncio
Manager (Routing)
Controllers (Static / Dynamic / Memory)
Specialist Agents
scikit-learn
XGBoost
LightGBM
PyTorch
Score Fusion & Decision
Typed inter-agent messages (Pydantic)
Optional Reviewer
Ollama
(locally hosted
model)
AutoGen
Manager
Advocate
Skeptic
Figure 4:HMAS implementation stack: evidence generation (CAPEv2 sandbox with 24 guest VMs), the asynchronous
CHK-ced1bed6bacc843fb3b6e597
ly hosted
model)
AutoGen
Manager
Advocate
Skeptic
Figure 4:HMAS implementation stack: evidence generation (CAPEv2 sandbox with 24 guest VMs), the asynchronous
Python runtime with Pydantic-typed messages and scikit-learn, XGBoost, LightGBM and PyTorch specialist models,
and the AutoGen [36] reviewer on a local Ollama-hosted model (Table 2).
Preprint version. Submitted to arXiv.8
Table 2:Reviewer LLM configuration.
Item Setting
Backend Ollama + AutoGen ( AssistantAgent,
RoundRobinGroupChat)
Models Phi-3 Mini; Qwen2.5-3B
Context / output 4096 / 512 tokens
Sampling𝑇=0.1 , top-𝑝=0.85, top-𝑘=20, repetition penalty 1.05, seed
42
Input / output Structured agent evidence / one of three actions
6 Experimental Protocol
6.1 Dataset and splits
Experiments were performed using a subset of the RanDS dataset [40], an open collection containing
104,616 ransomware samples representing 533 families and 110,788 benign samples targeting Windows
Portable Executable (PE) files. From this collection, 8,013 ransomware samples from 16 families and 8,015
benign samples (Fig. 5) were selected for the study. Static, dynamic and memory features are extracted
as described in [42]. Family sizes are strongly imbalanced. We evaluate the system under two protocols.
(P1) Random: stratified 70/10/20 train/validation/test. (P2) The closest available evidence for cross family
CHK-348300ab6948e9d3082994f3
anced. We evaluate the system under two protocols.
(P1) Random: stratified 70/10/20 train/validation/test. (P2) The closest available evidence for cross family
generalization is a leave-one-family-out standalone evaluation.
Benign
GandCrab
LockBitZeppelinWannaCry
Cerber
Sodinokibi
BabukContiAkira
Phobos
HiveQilin
BlackCatDarkSide
RyukClop
102
103
Number of samples
6209
17361708
1299
379
212 211
170
123 115
70
52 43 36 33
25
18
Figure 5:Class distribution (16 ransomware families and benign).
6.2 Compared policies
• Single modality: B1 static-only, B2 dynamic-only, B3 memory-only (each with its best tuned model).
•HMAS: deterministic (H0) and with LLM review (H1), SD HMAS(Fixed), SDM HMAS (Fixed)
6.3 Metrics
To measure performance in terms of detection accuracy, precision, recall, F1, ROC-AUC, PR-AUC, FPR,
TPR, and false negative rate are used. Similarly for family attribution accuracy, macro precision/recall/F1,
and per-family F1 are used. For calibration of agents, ECE [30] and Brier score per modality are used. To
Preprint version. Submitted to arXiv.9
Table 3:Binary detection at full scale policies
Policy Acc. Prec. Rec. F1 ROC-AUC Avg.
modalities
B1 Static-only 0.9130 0.9988 0.8273 0.9050 0.9983 1.00
B2 Dynamic-only 0.9329 0.9642 0.8994 0.9307 0.9883 1.00
B3 Memory-only 0.5002 1.0000 0.0005 0.0010 0.7644 1.00
SD HMAS (Fixed) 0.9647 0.9993 0.9302 0.9635 0.9995 2.00
CHK-fad3d57f4da296a88e1d3937
mic-only 0.9329 0.9642 0.8994 0.9307 0.9883 1.00
B3 Memory-only 0.5002 1.0000 0.0005 0.0010 0.7644 1.00
SD HMAS (Fixed) 0.9647 0.9993 0.9302 0.9635 0.9995 2.00
SDM HMAS (fixed) 0.9401 0.9993 0.8811 0.9364 0.9995 3.00
H0 HMAS (deterministic) 0.9412 0.9993 0.8831 0.9376 0.9989 0.618
H1 HMAS + LLM review 0.9420 0.9474 0.9361 0.9417 0.9989 0.618
measure efficiency, we used modeled internal acquisition cost (Eq. 2), cost reduction (Eq. 3), median and
95th-percentile time to decision, average number of acquired modalities, andthroughput(samples/hour)
from a discrete event simulation of a 24-slot sandbox pool and one memory analysis host under Poisson
arrivals at several loads.
7 Results
7.1 RQ1: Detection accuracy versus acquisition cost
Table 3 reports binary detection for single modality baseline alongwith fixed HMAS scenarios. Two
findings stand out among the fixed and single modality baselines. First, B3 (memory only) is not an
informative classifier. It predicts almost every case negative (4 true positives out of 8,016 ransomware
cases, ROC-AUC 0.76 indicates the underlying score does rank samples somewhat. Second, SD HMAS
(fixed static+dynamic fusion) has a higher F1 (0.9635) than both SDM HMAS (exhaustive, 0.9364, which
adds the uninformative memory score) and H0 (0.9376, which adds memory only when escalation triggers).
CHK-f7b7899ee28fd3ac6a1f2367
1 (0.9635) than both SDM HMAS (exhaustive, 0.9364, which
adds the uninformative memory score) and H0 (0.9376, which adds memory only when escalation triggers).
Adding memory evidence under the current fixed weight fusion rule does not help and mildly hurts binary
F1 relative to stopping at dynamic evidence consistent with B3’s near chance standalone performance.
Comparing H0 and H1 shows the reviewer’s effect. Results show that enabling locally hosted LLM
moves 330 previously missed ransomware cases to correctly detected (recall0.8831→0.9361 ) at the cost
of 320 previously correct benign cases becoming false alarms (precision 0.9993→0.9474 ). These two
groups are disjoint by construction – true-label counts are identical between H0 and H1 (𝑇𝑁+𝐹𝑃=6,209 ,
𝐹𝑁+𝑇𝑃= 6,230 in both) – so the reviewer is not simply noisier than the deterministic pipeline, it is
systematically biased toward escalating rather than downgrading final decisions. The net F1 change is
small (+0.0041) because the two effects largely offset. Whether this trade is worthwhile depends on the
relative operational cost of a missed ransomware sample versus a false alarm, which this evaluation does
not quantify. It comes at a steep resource cost.
In addition to detection performance, HMAS is evaluated in terms of analysis cost to assess the
efficiency of adaptive evidence acquisition.
CHK-a60262e28dcc47c25b91a55a
teep resource cost.
In addition to detection performance, HMAS is evaluated in terms of analysis cost to assess the
efficiency of adaptive evidence acquisition. Rather than measuring monetary expenses or execution time
directly, we employ a normalized computational cost model that assigns predefined weights to specialist
agent execution and LLM interactions. For each analyzed sample, the total cost is defined as
𝐶𝑖 = ∑
𝑎∈𝑖
𝑤𝑎+5𝑁 mgr
𝑖 +5𝑁 rev
𝑖 ,(6)
Preprint version. Submitted to arXiv.10
where 𝑖 denotes the specialist agents invoked for sample𝑖,𝑤𝑎 represents the assigned cost of agent𝑎,
and𝑁mgr
𝑖 and𝑁rev
𝑖 denote the numbers of manager and advocate/skeptic LLM turns, respectively. Each
LLM turn contributes five normalized cost units.
For comparison, static only, static plus dynamic, and exhaustive analysis are assigned fixed costs of 4,
10, and 12 units per sample, respectively. The average cost of a policy is computed over the 𝑁= 12,439
evaluated samples as
𝐶= 1
𝑁
𝑁
∑
𝑖=1
𝐶𝑖. (7)
The relative cost reduction compared with exhaustive analysis is
𝑆= (1− 𝐶policy
𝐶exhaustive)×100%.(8)
Table 4 summarizes the average and total modeled costs of the evaluated policies.
Table 4:Comparison of normalized analysis costs across policies.
Policy Avg. cost Total cost Savings (%)
(units) (units)
Static-only 4.000 49,756 66.7
Static + Dynamic 10.000 124,390 16.7
CHK-cf4b52bd480a970c9ebb9dc0
ized analysis costs across policies.
Policy Avg. cost Total cost Savings (%)
(units) (units)
Static-only 4.000 49,756 66.7
Static + Dynamic 10.000 124,390 16.7
Exhaustive Analysis 12.000 149,268 0.0
Full HMAS 6.724 83,636 44.0
The adaptive routing mechanism enables HMAS to avoid unnecessary analysis stages for samples that
can be classified with sufficient confidence using less expensive evidence. Specifically, 56.05% of samples are
processed using static analysis alone, 39.62% require static and dynamic analysis, and only 4.33% proceed
through the full analysis pipeline.
Consequently, HMAS achieves an average modeled cost of 6.724 units per sample, corresponding to
approximately 44.0% lower cost than exhaustive analysis. Although static only analysis has the lowest
cost, it achieves lower classification performance, as shown in Tables 3 and 5. HMAS combines selective
evidence acquisition with improved binary detection and ransomware family identification, demonstrating
a favorable trade off between classification performance and modeled analysis cost.
These results quantify savings under the predefined cost model instead of measured reductions in
runtime, energy consumption or monetary expenditure.
Preprint version. Submitted to arXiv.11
4 6 8 10 12
Mean internal analysis cost (units)
0.6
0.7
0.8
0.9
1.0Multiclass macro-F1Static only
HMAS
Static + Dynamic
Exhaustive
CHK-038666b8f0ed1188f1dd50d8
sion. Submitted to arXiv.11
4 6 8 10 12
Mean internal analysis cost (units)
0.6
0.7
0.8
0.9
1.0Multiclass macro-F1Static only
HMAS
Static + Dynamic
Exhaustive
Multiclass macro-F1 vs. analysis cost
Figure 6:Computational cost versus multiclass macro-F1 for HMAS and baseline analysis strategies
7.2 RQ2: Family attribution
Table 5 shows the separately evaluated 16 ransomware families and one benign. The binary and
multiclass accuracy figures does not represent a single hierarchy of predictions on identical samples.
Multiclass accuracy (0.9890) exceeds binary accuracy (0.9412). They are therefore interpreted as separately
evaluated outputs, not as the accuracy of a single end-to-end binary-gated family verdict. A matched-
prediction reconciliation is required before claiming end-to-end hierarchical accuracy.
Table 5:Family attribution
Policy MC Acc. Macro-P Macro-R Macro-F1
B1 Static-only 0.9076 0.9765 0.6264 0.7022
B2 Dynamic-only 0.8950 0.8893 0.7502 0.7888
B3 Memory-only 0.5001 0.0833 0.0562 0.0383
SDM HMAS(Fixed) 0.9338 0.9806 0.7341 0.8204
H0 HMAS 0.9890 0.9887 0.9890 0.9748
H1 HMAS + LLM review 0.9419 0.9473 0.9361 0.9417
Family attribution is where cost aware HMAS shows its clearest best supported gain over every single
or fixed modality HMAS. Macro-F1 rises from 0.70 (static only) and 0.82 (exhaustive) to 0.98 in case of
CHK-3e6cadae93e5dbb286b1fba4
hows its clearest best supported gain over every single
or fixed modality HMAS. Macro-F1 rises from 0.70 (static only) and 0.82 (exhaustive) to 0.98 in case of
deterministic low cost HMAS and every one of the 17 classes individually exceeds 0.93 F1. The memory
only model (B3) is again uninformative for attribution (macro-F1 0.038, i.e., it essentially never assigns the
correct family) which matters because memory evidence is exactly what HMAS adds on the hardest 6.21%
of cases.
7.2.1 Comparative Multiclass Classification Performance
To investigate the contribution of HMAS, it was compared with three alternative analysis techniques.
Table 7 summarizes their multiclass classification performance and computational requirements.
Preprint version. Submitted to arXiv.12
Table 6:Comparison of per-class F1-scores across different analysis policies.
Class Support Static S+D Exhaustive HMAS
Akira 125 0.252 0.619 0.5800.988
Babuk 191 0.155 0.525 0.5080.953
Benign 5,810 0.909 0.780 0.7660.993
BlackCat 37 0.879 0.679 0.6040.972
Cerber 223 0.709 0.578 0.5410.956
Clop 17 0.583 0.692 0.6920.938
Conti 126 0.573 0.578 0.5540.942
DarkSide 33 0.553 0.533 0.5330.954
GandCrab 1,902 0.975 0.730 0.6640.993
Hive 57 0.879 0.578 0.5780.958
LockBit 1,765 0.948 0.651 0.6350.984
Phobos 79 0.881 0.689 0.6550.975
Qilin 411.0000.453 0.4231.000
Ryuk 26 0.556 0.632 0.6320.939
CHK-e5c2a36cc891343373cd3300
ve 57 0.879 0.578 0.5780.958
LockBit 1,765 0.948 0.651 0.6350.984
Phobos 79 0.881 0.689 0.6550.975
Qilin 411.0000.453 0.4231.000
Ryuk 26 0.556 0.632 0.6320.939
Sodinokibi 219 0.947 0.661 0.6270.984
WannaCry 396 0.150 0.637 0.6130.997
Zeppelin 1,392 0.972 0.641 0.6180.983
S+D: Static + Dynamic. Bold values indicate the highest F1-score for each class.
Table 7:Multiclass performance and computational efficiency of HMAS and alternative analysis strategies
Method Acc. Macro-F1 Cost Latency
(%) (units) (ms)
Static only 90.20 0.7011 4.00 15.39
Static + Dynamic 73.29 0.6267 10.00 239.29
Exhaustive 71.22 0.6013 12.00 242.78
Full HMAS 98.85 0.9712 6.72 107.11
The proposed HMAS achieved a multiclass macro-F1 of 0.97, compared with 0.70, 0.62 and 0.60 for
static-only, static and dynamic, and exhaustive analysis respectively. These results correspond to absolute
macro-F1 improvements of approximately 27.00, 34.45, and 36.98 %, respectively. The improvement over
exhaustive analysis is calculated as
Δ𝐹1=𝐹1 HMAS−𝐹1 Exhaustive
=0.9712−0.6013=0.3699.
(9)
The observed improvement suggests that adaptive multi-agent orchestration provides a more effective
classification strategy than indiscriminately executing all available analysis stages. In particular, HMAS
combines selective analysis execution with coordinated decision-making, enabling the system to avoid
CHK-20bb2a97b39140df8246de64
ecuting all available analysis stages. In particular, HMAS
combines selective analysis execution with coordinated decision-making, enabling the system to avoid
unnecessary processing while maintaining strong multiclass discrimination. However, these results are
obtained from the reported multiclass ablation evaluation, rather than from matched zero-day tests. Thus,
they establish a comparative advantage in the evaluated multiclass setting but do not quantify a zero-day-
specific F1 improvement over the competing methods.
Preprint version. Submitted to arXiv.13
7.3 RQ3: Cost and latency
Table 8 reports the internal cost unit and measured mean inference latency logged by the pipeline.
Table 8:Internal cost units and mean/p95 inference latency, default threshold, seed 42
Policy Mean cost (units) Cost redn. vs.
exhaustive Mean latency (ms) p95 latency (ms)
B1 Static-only 4.00 66.67% 15.67 16.08
SD HMAS (Fixed) 10.00 16.67% 245.52 255.50
SDM HMAS 12.00 0% 249.28 259.29
H0 HMAS 6.65 44.6% 111.34 218.30
Table 9:Throughput observations by agent-pool-size bucket
Agent pool size𝑛(cases) Mean latency (ms) Throughput (samples/s)
3 7209 37.47 26.69
6 4457 213.47 4.68
7 773 211.34 4.73
The cost unit results are internally consistent with the routing distribution:0.5795×4+0.3583×10+
0.0621×12=6.65 , matching the logged mean cost exactly. The throughput buckets in Table 9 correspond
CHK-c797fc280554495ae06911f4
nsistent with the routing distribution:0.5795×4+0.3583×10+
0.0621×12=6.65 , matching the logged mean cost exactly. The throughput buckets in Table 9 correspond
to the same three routes (agent pool size 3 = static-only route, 6 = static+dynamic, 7 = full pipeline).
0 50 100 150 200 250
Mean decision latency (ms)
0.6
0.7
0.8
0.9
1.0Multiclass macro-F1
Static only
Static + Dynamic
Exhaustive
HMAS
Classification quality versus decision latency
Figure 7:Comparison of multiclass macro-F1 and decision latency across analysis strategies.
Preprint version. Submitted to arXiv.14
7.3.1 Computational Cost Reduction
In addition to classification performance, computational efficiency is particularly important for intru-
sion detection systems operating under limited processing resources or strict response-time requirements.
The computational cost reduction relative to exhaustive analysis is defined as
𝑅𝐶 = 𝐶Exhaustive−𝐶HMAS
𝐶Exhaustive
×100,(10)
where𝐶 denotes the average computational cost in the relative units defined by the experimental framework.
Using the measured values,
𝑅𝐶 = 12.00−6.7237
12.00 ×100=43.97%.(11)
Thus, HMAS reduces the average computational cost by approximately 43.97% relative to exhaustive
analysis. This reduction is achieved through adaptive selection of analysis stages. Specifically, 56.05% of the
CHK-820f72d01c58642ad56c5915
by approximately 43.97% relative to exhaustive
analysis. This reduction is achieved through adaptive selection of analysis stages. Specifically, 56.05% of the
evaluated cases were processed using static analysis alone, 39.62% required combined static and dynamic
analysis, and only 4.33% required the complete pipeline. These routing proportions indicate that HMAS
avoids exhaustive processing for approximately 95.67% of the evaluated cases.
The results suggest that selective multi-agent orchestration can reduce redundant computation, partic-
ularly when the available evidence is sufficient for an earlier decision.
7.3.2 Decision Latency Analysis
The reduction in computational cost was accompanied by a decrease in average decision latency.
HMAS required an average of 107.11 ms per decision, compared with 242.78 ms for exhaustive analysis.
The relative latency reduction is given by
𝑅𝐿 = 𝐿Exhaustive−𝐿HMAS
𝐿Exhaustive
×100,(12)
where𝐿is average decision latency.
𝑅𝐿 = 242.78−107.11
242.78 ×100≈55.88%.(13)
So we cay say that HMAS achieves approximately 55.88% lower average decision latency as compared to
exhaustive analysis. Although static only analysis remains the fastest configuration, its multiclass macro-F1
is substantially lower than that of HMAS. This shows the trade off between computational efficiency and
classification quality.
CHK-a94db30438815f4e0ad70a38
uration, its multiclass macro-F1
is substantially lower than that of HMAS. This shows the trade off between computational efficiency and
classification quality. HMAS balances multiclass classification performance and time to decision.
The comparative ablation experiments also show that HMAS achieves substantially higher multiclass
macro-F1 while reducing both computational cost and decision latency relative to exhaustive analysis.
These characteristics are relevant to machine learning based intrusion detection where detection quality
must be balanced against processing overhead and response time constraints. Overall, the results support
the effectiveness of HMAS as a computationally efficient multiclass ransomware analysis framework and
provide an initial assessment of its zero day detection behavior.
Preprint version. Submitted to arXiv.15
7.4 RQ4: Adaptive Routing Efficiency and Error Analysis
To evaluate the effectiveness of the proposed adaptive orchestration mechanism, the routing decisions
and corresponding classification outcomes were analyzed using 12,439 case level predictions. Table 10
summarizes the distribution of samples across the three analysis routes, together with their corresponding
classification accuracy, false negatives (FN), and false positives (FP). The results demonstrate that HMAS
CHK-123cf01f9807ece09ce8d45c
e analysis routes, together with their corresponding
classification accuracy, false negatives (FN), and false positives (FP). The results demonstrate that HMAS
Table 10:Adaptive routing distribution and classification outcomes for HMAS.
Analysis route Samples Share (%) Accuracy FN FP
Static only 7209 57.95 0.9900 71 1
Static + Dynamic 4457 35.83 0.9493 225 1
Full pipeline 773 6.21 0.4386 432 2
can substantially reduce the requirement for exhaustive multimodal analysis through adaptive execution.
Specifically, 57.95% of samples were classified using static analysis alone, while an additional 35.83% required
combined static and dynamic analysis. 93.79% of the evaluated samples were processed without invoking the
complete analysis pipeline. Only 6.21% required additional memory based analysis. This shows the potential
of hierarchical multi agent orchestration to reduce computational overhead by selectively allocating analysis
resources.
The static only route achieved an accuracy of 99.00% with 71 false negatives and one false positive.
Similarly, the static plus dynamic achieved 94.93% accuracy with 225 false negatives and one false positive.
These results indicate that the earlier analysis stages provide reliable classification outcomes.
Although the escalation mechanism concentrates computational resources on samples requiring
CHK-0f1f1240970c12a30716306c
e earlier analysis stages provide reliable classification outcomes.
Although the escalation mechanism concentrates computational resources on samples requiring
additional analysis, the classification outcomes indicate that increasing the number of analysis modalities
does not necessarily improve decision reliability. The weak standalone performance of memory based
analysis suggests that its contribution to multimodal fusion requires further investigation. In particular,
confidence aware modality weighting may help prevent weak or uninformative features from adversely
affecting the final classification decision.
A matched evaluation of alternative fusion strategies on the same escalated samples would be required
to isolate these effects. Overall, the routing results demonstrate the computational benefits of HMAS while
identifying opportunities to improve the reliability of its final escalation stage. These findings motivate
further refinement of modality specific confidence estimation and adaptive fusion for robust intrusion
detection.
7.5 RQ5: Ablation and sensitivity
Table 11 show an ablation study. It shows accuracy, true negatives, false positive for all samples w.r.t
static only, dynamic only, memory only, adaptive routing, full HMAS with out LLM and with LLM.
Table 11:Leave-one-component-out
Row label (as logged)𝑛Acc. TN FP FN/TP
CHK-aca0d7346ede86ed55aeed39
only, dynamic only, memory only, adaptive routing, full HMAS with out LLM and with LLM.
Table 11:Leave-one-component-out
Row label (as logged)𝑛Acc. TN FP FN/TP
“static” (= B1 static-only) 12439 0.9130 6203 6 1076/5154
“dynamic” (= B2 dynamic-only) 12439 0.9329 6001 208 627/5603
“memory” (= B3 memory-only) 12439 0.4994 6209 0 6227/3
−adaptive routing (= SDM HMAS (Fixed)) 12439 0.9401 6205 4 741/5489
−LLM review (= H0) 12439 0.9412 6205 4 728/5502
Preprint version. Submitted to arXiv.16
Table 12 shows the objective𝑈−𝜆𝐶 (Eq. 1, accuracy minus𝜆 times internal cost units). For H0 versus
B1, the equality0.9412−6.65𝜆=0.9130−4𝜆 occurs at𝜆≈0.01064 . H0 has higher accuracy-adjusted utility
for0≤𝜆<0.01064 , while B1 is preferable for𝜆>0.01064 under this particular objective. Thus, the selected
grid values (𝜆=0,0.1,0.5,1 ) do not resolve the crossover interval. The objective measures binary accuracy
and internal acquisition cost; it does not incorporate family attribution or asymmetric false-negative harm.
Table 12:Objective valueAcc−𝜆⋅costat selected𝜆(seed 42, default threshold).
𝜆B1 Static-only SD HMAS SDM HMAS H0 HMAS
0.0 0.9130 0.9647 0.9401 0.9412
0.1 0.5130 -0.0353 -0.2599 0.2765
0.5 -1.0870 -4.0353 -5.0599 -2.3823
1.0 -3.0870 -9.0353 -11.0599 -5.7058
7.6 RQ6: Value of the LLM reviewer
A second run enabled the LLM reviewer for the main evaluation; the separate zero-day comparison
CHK-cb0a440a59d803cdec44986f
870 -9.0353 -11.0599 -5.7058
7.6 RQ6: Value of the LLM reviewer
A second run enabled the LLM reviewer for the main evaluation; the separate zero-day comparison
reported below did not invoke the LLM. The reviewer was invoked on 31.1% of the 12,439 cases, averaging
1.48 LLM calls per invoked case. Table 13 reports its cost. The binary accuracy/precision/recall trade-off is
discussed in Section 7.1 (Table 3)
Table 13:Cost of enabling the LLM reviewer, default threshold, single run (seed 42,𝑛=12,439).
Quantity H0 (deterministic) H1 (LLM-enabled)
Mean cost (internal units) 6.65 14.07
Mean decision latency 111 ms 6,639 ms
p95 decision latency 218 ms 22,751 ms
Invocation rate – 31.1%
Mean LLM calls per invoked case – 1.48
Enabling the reviewer roughly doubles mean analysis cost (6.65→14.07 units) and raises p95 latency
by two orders of magnitude (218 ms→22.75 s), for a net binary F1 change of +0.0041 (Section 7.1).
7.7 Zero-Day Ransomware Detection and Computational Efficiency
7.7.1 Zero-Day Evaluation Protocol
To investigate the effectiveness of the proposed Hierarchical Multi-Agent System against previously
unseen ransomware, experiments were conducted across 16 ransomware families. Each family was consid-
ered separately in the zero-day evaluation, allowing the detection capability to be examined under different
ransomware characteristics and sample distributions.
CHK-dd14a4708517bebe8ebaedd6
red separately in the zero-day evaluation, allowing the detection capability to be examined under different
ransomware characteristics and sample distributions. The standalone held-out-family evaluation focuses on
two complementary aspects: (i) the ability to detect ransomware samples belonging to previously unseen
families, and (ii) the classification performance and computational efficiency of HMAS relative to alternative
analysis strategies in a separate comparative experiment.
7.7.2 Detection of Previously Unseen Ransomware
Table 14 shows the binary detection performance obtained for 16 zero day ransomware families. The
results reveal variation in detection capability across families.
Preprint version. Submitted to arXiv.17
Table 14:Standalone zero day binary detection performance across previously unseen ransomware families.
Family Samples Recall (%) F1
Akira 399 33.58 0.503
Babuk 600 30.17 0.464
BlackCat 128 39.84 0.570
Cerber 730 36.30 0.533
Clop 58 29.31 0.453
Conti 449 35.41 0.523
DarkSide 111 28.83 0.448
GandCrab 6204 58.64 0.739
Hive 188 43.09 0.602
LockBit 6110 60.67 0.755
Phobos 262 54.58 0.706
Qilin 149 63.76 0.779
Ryuk 85 42.35 0.595
Sodinokibi 779 52.76 0.691
WannaCry 1311 27.61 0.433
Zeppelin 4695 62.75 0.771
Among the evaluated families Qilin achieved the highest binary F1-score of 0.779, followed by Zeppelin
(0.771) and LockBit (0.755).
CHK-0cb0c9bfdc914914aae9b177
33
Zeppelin 4695 62.75 0.771
Among the evaluated families Qilin achieved the highest binary F1-score of 0.779, followed by Zeppelin
(0.771) and LockBit (0.755). GandCrab and Phobos also demonstrated relatively strong detection performance
achieving F1-scores of 0.73 and 0.70 respectively. On the other hand WannaCry, DarkSide and Clop
exhibited comparatively lower detection performance with F1-scores of 0.43, 0.44 and 0.45 respectively.
The unweighted macro-average binary recall across the 16 families was approximately 43.73%, whereas
the sample-weighted recall was approximately 55.07%. This difference reflects the unequal distribution of
samples among the evaluated ransomware families. These findings demonstrate that the detection capability
varies substantially across unseen families. Although several families exhibit good results, the lower recall
observed for other families indicates that zero day generalization remain challenging. Furthermore the
zero day reports assign the generic label zeroday detected to the held out samples. Therefore, the reported
perfect unknown class classification scores cannot be interpreted as evidence of successful identification of
the exact unseen ransomware family. Accordingly, binary detection recall and F1 are used as the primary
zero-day performance indicators.
8 Discussion and Threats to Validity
CHK-9d5fe65d0ea6045fd2124495
en ransomware family. Accordingly, binary detection recall and F1 are used as the primary
zero-day performance indicators.
8 Discussion and Threats to Validity
The experimental findings show the potential of the proposed hierarchical multi agent system (HMAS)
to balance ransomware detection performance, family attribution and computational efficiency through
adaptive evidence acquisition. HMAS selectively escalates analysis based on the available evidence and
routing decisions thus minimizing time to final decision in a critical system in case of a possible intrusion.
HMAS achieves higher binary F1 than exhaustive analysis with low cost and less decision latency.
Its main advantage is shown in multiclass ransomware family attribution. HMAS achieves a macro-F1 of
0.9748, compared with 0.7022–0.8204 for the evaluated fixed configurations (Table 5). This corresponds to
an absolute improvement of approximately 15.44–27.26 % highlighting the effectiveness of adaptive multi
agent coordination for family level ransomware classification.
The routing analysis also shows the benefits of selective modality execution in terms of cost and
latency. HMAS resolves approximately 93.8% of evaluated cases using static or combined static–dynamic
evidence and it avoids full pipeline processing for the most samples. The static-only route achieves 99.0%
Preprint version. Submitted to arXiv.18
CHK-10d1296416bcdf7d1184514d
tic–dynamic
evidence and it avoids full pipeline processing for the most samples. The static-only route achieves 99.0%
Preprint version. Submitted to arXiv.18
accuracy, while the static–dynamic route achieves 94.93% accuracy. Moreover, the static stage short circuit
error rate is limited to 1.14%. It indicates that early termination can be effective for cases meeting the
corresponding routing criteria.
These findings support the suitability of adaptive evidence acquisition for resource conscious intrusion
detection environments where comprehensive analysis may introduce unnecessary overhead in terms of
cost and delay. Nevertheless, the results also indicate that adaptive routing must be accompanied by reliable
confidence estimation, particularly for samples requiring additional analysis.
The cost sensitivity analysis provides further insight into the operating conditions under which HMAS
is preferable to simpler alternatives. Under the binary accuracy–cost objectiveAcc−𝜆𝐶 , HMAS exceeds
static-only analysis for0≤𝜆<0.01064 (Table 12). This finding indicates that the preferred analysis strategy
depends on the relative importance assigned to classification accuracy and computational expenditure.
The binary accuracy–cost objective does not capture the operational value of ransomware family
attribution or the consequences of missed ransomware detections.
CHK-d39a5204cbe85ec8fb46c1aa
The binary accuracy–cost objective does not capture the operational value of ransomware family
attribution or the consequences of missed ransomware detections. The substantially higher multiclass
macro-F1 achieved by HMAS therefore represents an additional benefit.
The LLM assisted agent introduces a further trade off between detection sensitivity and resource
consumption. Incorporating LLM review improves binary recall by 5.3 %, although precision decreases by
5.2%. The reviewer also increases computational cost and raises decision latency to 22.75 s per case.
In the evaluated configuration, LLM assisted review reduces family attribution macro-F1 from 0.9748
to 0.9417. Consequently, the deterministic HMAS configuration currently provides the more favorable
balance for applications prioritizing accurate family attribution and low latency operation. It is obvious
from results that locally hosted is only benificial for high risks cases where cost may not matter. From an
operational perspective, the proposed framework offers a flexible foundation for security operations centers
(SOCs) and digital forensics and incident response (DFIR) workflows. The ability to terminate analysis
early for high-confidence cases can reduce processing requirements and quick action to patch, while more
complex cases can be escalated for additional inspection.
CHK-39c9ea94dbb1d888c9c2bbd5
ly for high-confidence cases can reduce processing requirements and quick action to patch, while more
complex cases can be escalated for additional inspection.
Overall, the findings establish adaptive multi-agent orchestration as a promising approach for cost-
aware ransomware analysis, particularly for fine-grained family attribution under computational constraints.
Addressing the identified limitations through improved modality calibration, robust fusion, selective LLM
invocation, and stronger zero-day evaluation will further support its application in practical intrusion
detection environments. ‘
9 Conclusion
This study presented a cost aware hierarchical multi agent system (HMAS) for ransomware detection
and family attribution, formulating multimodal evidence acquisition as a budgeted sequential decision
process. Deterministic HMAS achieved 94.12% binary detection accuracy (F1 = 0.9376) and, in a separately
reported 17-class evaluation, 98.90% classification accuracy (macro-F1 = 0.9748).
Proposed HMAS resolved approximately 93.8% of cases using static or combined static–dynamic
evidence instead of running full ehxaustive pipeline. This selective processing reduced internal analysis cost
by 44.6% compared with exhaustive evaluation, while maintaining strong overall classification performance.
CHK-de010a596979d3366c6743d4
selective processing reduced internal analysis cost
by 44.6% compared with exhaustive evaluation, while maintaining strong overall classification performance.
The inclusion of a locally hosted LLM introduced a performance–efficiency trade off. Although LLM agent
increased binary recall by 5.3% yet it reduced precision by 5.2 %, approximately doubled mean analysis cost
and increased decision latency to 22.75 s per case. These findings suggest that LLM assistance may not be
very useful in case of intrusions where time and cost are utmost important.
Preprint version. Submitted to arXiv.19
Overall, the results also demonstrate the potential of hierarchical multi agent orchestration to balance
ransomware detection, family attribution and time to execute an analysis.
10 Statements
Acknowledgement:All work is done on an NVIDIA DGX system. We thank the Pattern Recognition Lab (DCIS),
the PIEAS Artificial Intelligence Center (PAIC), and the Center for Mathematical Sciences (CMS), PIEAS for providing
computing resources.
Availability of Data and Materials:The data and supporting materials are available from the corresponding author
upon request.
Ethics Approval:This study did not involve human or animal subjects. All malware samples were analyzed in
isolated and air gapped virtual machines.
Conflicts of Interest:The authors declare no conflicts of interest.
References
1.
CHK-f578b5c128614cb459dc297a
All malware samples were analyzed in
isolated and air gapped virtual machines.
Conflicts of Interest:The authors declare no conflicts of interest.
References
1. Beaman C, Barkworth A, Akande TD, Hakak S, Khan MK. Ransomware: Recent advances, analysis, challenges
and future research directions. Computers & Security. 2021;111:102490. DOI: 10.1016/j.cose.2021.102490.
2. Oz H, Aris A, Levi A, Uluagac AS. A survey on ransomware: Evolution, taxonomy, and defense solutions. ACM
Computing Surveys. 2022;54(11s):238. DOI: 10.1145/3514229.
3. Connolly LY, Wall DS. The rise of crypto-ransomware in a changing cybercrime landscape: Taxonomising
countermeasures. Computers & Security. 2019;87:101568. DOI: 10.1016/j.cose.2019.101568.
4. Egele M, Scholte T, Kirda E, Kruegel C. A survey on automated dynamic malware-analysis techniques and tools.
ACM Computing Surveys. 2012;44(2):6. DOI: 10.1145/2089125.2089126.
5. Arfeen A, Khan MA, Zafar O, Ahsan U. Process based volatile memory forensics for ransomware detection.
Concurrency and Computation: Practice and Experience. 2022;34(4):e6672. DOI: 10.1002/cpe.6672.
6. Oh DB, Kim D, Kim HK. volGPT: Evaluation on triaging ransomware process in memory forensics
with large language model. Forensic Science International: Digital Investigation. 2024;49:301756. DOI:
10.1016/j.fsidi.2024.301756.
7. Alzahrani S, Xiao Y, Asiri S, Alasmari N, Li T.
CHK-f688418de2a5ae25385983d9
del. Forensic Science International: Digital Investigation. 2024;49:301756. DOI:
10.1016/j.fsidi.2024.301756.
7. Alzahrani S, Xiao Y, Asiri S, Alasmari N, Li T. RansomFormer: A cross-modal transformer architecture for
ransomware detection via the fusion of byte and API features. Electronics. 2025;14(7):1245. DOI: 10.3390/electron-
ics14071245.
8. Zhang S, Su H, Liu H, Yang W. MPDroid: A multimodal pre-training Android malware detection method with
static and dynamic features. Computers & Security. 2025;150:104262. DOI: 10.1016/j.cose.2024.104262.
9. Trapeznikov K, Saligrama V. Supervised sequential classification under budget constraints. In: Proceedings
of the 16th International Conference on Artificial Intelligence and Statistics (AISTATS); 2013 Apr 29–May
1; Scottsdale, AZ, USA. Proceedings of Machine Learning Research. 2013;31:581–589. Available from: https:
//proceedings.mlr.press/v31/trapeznikov13a.html.
10. Xu Z, Kusner MJ, Weinberger KQ, Chen M, Chapelle O. Classifier cascades and trees for minimizing feature
evaluation cost. Journal of Machine Learning Research. 2014;15:2113–2144. Available from: https://www.jmlr.org/
papers/v15/xu14a.html.
11. Nan F, Saligrama V. Adaptive classification for prediction under a budget. In: Advances in Neural Information
Processing Systems 30; 2017 Dec 4–9; Long Beach, CA, USA. p. 4727–4737.
12. Gülmez S, Kakisim AG, Sogukpinar I.
CHK-e5f216c8b8f854cc75b21cfc
der a budget. In: Advances in Neural Information
Processing Systems 30; 2017 Dec 4–9; Long Beach, CA, USA. p. 4727–4737.
12. Gülmez S, Kakisim AG, Sogukpinar I. XRan: Explainable deep learning-based ransomware detection using
dynamic analysis. Computers & Security. 2024;139:103703. DOI: 10.1016/j.cose.2024.103703.
13. Cen M, Deng X, Jiang F, Doss R. Zero-Ran Sniff: A zero-day ransomware early detection method based on
zero-shot learning. Computers & Security. 2024;142:103849. DOI: 10.1016/j.cose.2024.103849.
14. Cen M, Jiang F, Doss R. RansoGuard: A RNN-based framework leveraging pre-attack sensitive APIs for early
ransomware detection. Computers & Security. 2025;104293. DOI: 10.1016/j.cose.2024.104293.
Preprint version. Submitted to arXiv.20
15. Gaber M, Ahmed M, Janicke H. Zero day ransomware detection with Pulse: Function classification with Trans-
former models and assembly language. Computers & Security. 2025;148:104167. DOI: 10.1016/j.cose.2024.104167.
16. Janisch J, Pevný T, Lisý V. Classification with costly features using deep reinforcement learning. In: Proceedings
of the AAAI Conference on Artificial Intelligence. 2019;33(1):3959–3966. DOI: 10.1609/aaai.v33i01.33013959.
17. Ferraro A, Galli A, Moscato V, Orlando GM, Russo D. Hierarchical multi-agent AI framework for cybersecurity in
cyber-physical systems. Computer Networks. 2026;288:112556.
CHK-c4724f8de4bf098a8208e817
Galli A, Moscato V, Orlando GM, Russo D. Hierarchical multi-agent AI framework for cybersecurity in
cyber-physical systems. Computer Networks. 2026;288:112556. DOI: 10.1016/j.comnet.2026.112556.
18. Singh AV, Rathbun E, Graham E, Oakley L, Boboila S, Chin P, Oprea A. Hierarchical multi-agent reinforcement
learning for cyber network defense. Reinforcement Learning Journal. 2025;6:790–810.
19. Wadood A, Iqbal M, Khan A. Multimodal multi-agent ransomware analysis using AutoGen. arXiv:2601.20346
[Preprint]. 2026. Available from: https://arxiv.org/abs/2601.20346.
20. Ispahany J, Islam MR, Islam MZ, Khan MA. Ransomware detection using machine learning: A review, research
limitations and future directions. IEEE Access. 2024;12:68785–68813. DOI: 10.1109/ACCESS.2024.3397921.
21. Zahoora U, Khan A, Rajarajan M, Khan SH, Asam M, Jamal T. Ransomware detection using deep learning based
unsupervised feature extraction and a cost sensitive Pareto ensemble classifier. Scientific Reports. 2022;12:15647.
DOI: 10.1038/s41598-022-19443-7.
22. El Rhayati O, Essadeq H, El Beqqali O, Tairi H. Structured heatmap learning for multi-family malware classification.
Journal of Cybersecurity and Privacy. 2025;5(3):72.
23. Iqbal A, Hussain M, Riaz Q, Khalid M, Mumtaz R, Jung K. Enhancing ransomware detection with machine
learning techniques and effective API integration. Computers, Materials & Continua.
CHK-0abdc5604b739091ef02260e
z Q, Khalid M, Mumtaz R, Jung K. Enhancing ransomware detection with machine
learning techniques and effective API integration. Computers, Materials & Continua. 2025;85(1):1693–1714. DOI:
10.32604/cmc.2025.064260.
24. Ghourabi A, Chouaib H. A ransomware detection approach based on LLM embedding and ensemble learning.
Computers, Materials & Continua. 2026;87(1):98. DOI: 10.32604/cmc.2026.074505.
25. Zhou C, Liu Y, Meng W, Tao S, Tian W, Yao F, et al. SRDC: Semantics-based ransomware detection and clas-
sification with LLM-assisted pre-training. In: Proceedings of the AAAI Conference on Artificial Intelligence.
2025;39(27):28566–28574. DOI: 10.1609/aaai.v39i27.35080.
26. Steadman P, Jenkins P, Rathore RS, Hewage C. A multi-modal deep learning framework for robust polymorphic
malware detection. Computers, Materials & Continua. 2026;88(3):86. DOI: 10.32604/cmc.2026.083998.
27. Wu X, Wan L, Ren J, Zhang B. WAFDect: A malware detection model based on multi-source feature fusion.
Computers, Materials & Continua. 2026;88(1):49. DOI: 10.32604/cmc.2026.077928.
28. Ponte A, Trizna D, Demetrio L, Biggio B, Ogbu IT. SLIFER: Investigating performance and robustness of malware
detection pipelines. Computers & Security. 2025;150:104264.
29. Geifman Y, El-Yaniv R. Selective classification for deep neural networks. In: Advances in Neural Information
CHK-950b4e15de7cfd629929a54c
elines. Computers & Security. 2025;150:104264.
29. Geifman Y, El-Yaniv R. Selective classification for deep neural networks. In: Advances in Neural Information
Processing Systems 30; 2017 Dec 4–9; Long Beach, CA, USA. p. 4878–4887.
30. Guo C, Pleiss G, Sun Y, Weinberger KQ. On calibration of modern neural networks. In: Proceedings of the 34th
International Conference on Machine Learning (ICML); 2017 Aug 6–11; Sydney, Australia. Proceedings of Machine
Learning Research. 2017;70:1321–1330. Available from: https://proceedings.mlr.press/v70/guo17a.html.
31. Angelopoulos AN, Bates S. A gentle introduction to conformal prediction and distribution-free uncertainty
quantification. arXiv:2107.07511 [Preprint]. 2021. Available from: https://arxiv.org/abs/2107.07511.
32. Xu H, Wang S, Li N, Wang K, Zhao Y, Chen K, et al. Large language models for cyber security: A systematic
literature review. ACM Transactions on Software Engineering and Methodology. 2025. DOI: 10.1145/3769676.
33. Fang R, Bindu R, Gupta A, Zhan Q, Kang D. Teams of LLM agents can exploit zero-day vulnerabilities.
arXiv:2406.01637 [Preprint]. 2024. Available from: https://arxiv.org/abs/2406.01637.
34. Yan P, Tan S, Wang M, Huang J. Prompt engineering-assisted malware dynamic analysis using GPT-4. IEEE
Transactions on Dependable and Secure Computing. 2025;22(6):7712–7728. DOI: 10.1109/TDSC.2025.3599004.
35. Alsubait T.
CHK-c5a96027083c8166a8b8a5e9
alware dynamic analysis using GPT-4. IEEE
Transactions on Dependable and Secure Computing. 2025;22(6):7712–7728. DOI: 10.1109/TDSC.2025.3599004.
35. Alsubait T. A large language model-driven autonomous framework for intelligent cyber threat detection and
response. Computers, Materials & Continua. 2026;89(1):34. DOI: 10.32604/cmc.2026.083550.
36. Wu Q, Bansal G, Zhang J, Wu Y, Li B, Zhu E, et al. AutoGen: Enabling next-gen LLM applications via multi-agent
conversation. In: Proceedings of the Conference on Language Modeling (COLM); 2024 Oct 7–9; Philadelphia, PA,
USA.
Preprint version. Submitted to arXiv.21
37. Pendlebury F, Pierazzi F, Jordaney R, Kinder J, Cavallaro L. TESSERACT: Eliminating experimental bias in malware
classification across space and time. In: Proceedings of the 28th USENIX Security Symposium; 2019 Aug 14–16;
Santa Clara, CA, USA. p. 729–746.
38. Jiang Y, Li G, Li S, Guo Y. BenchMFC: A benchmark dataset for trustworthy malware family classification under
concept drift. Computers & Security. 2024;139:103706. DOI: 10.1016/j.cose.2024.103706.
39. Arp D, Quiring E, Pendlebury F, Warnecke A, Pierazzi F, Wressnegger C, Cavallaro L, Rieck K. Pitfalls in machine
learning for computer security. Communications of the ACM. 2024;67(11):104–112. DOI: 10.1145/3643456.
40. Alzahrani S, Xiao Y, Asiri S.
CHK-3ad522c5089793d4eaba80e3
k K. Pitfalls in machine
learning for computer security. Communications of the ACM. 2024;67(11):104–112. DOI: 10.1145/3643456.
40. Alzahrani S, Xiao Y, Asiri S. RanDS: A large-scale open dataset of raw binaries and extracted features for
ransomware research. Computers & Security. 2026;167:104909. DOI: 10.1016/j.cose.2026.104909.
41. Suciu O, Coull SE, Johns J. Exploring adversarial examples in malware detection. In: Proceedings of the IEEE
Security and Privacy Workshops (SPW); 2019 May 19–23; San Francisco, CA, USA. DOI: 10.1109/SPW.2019.00015.
42. Iqbal M, et al. A multi-modal static, dynamic & memory feature dataset for Windows ransomware detection.
Version 1.0. Zenodo; 2026 Oct 26. DOI: 10.5281/zenodo.23640635.
Preprint version. Submitted to arXiv.22
补充资料