arXiv:2609.04820cs.CRSep 2026

Manuscript Offprint

arXiv:2609.04820

Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attribution

Mubashar Iqbal, Asifullah Khan

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

Abstract

Ransomware detection and family attribution require analysis of different modalities because it can use packing, obfuscation, process manipulation and runtime evasion techniques. However, conventional multimodal usually uses all available modalities for every sample resulting in unnecessary computational cost and increased latency. In this paper, we present a Cost Aware Hierarchical Multi-Agent System (HMAS) for adaptive ransomware detection. The proposed architecture organizes specialized agents into hierarchical domain controllers coordinated by a Meta Orchestrator. Static analysis is used as the initial low-cost modality while additional dynamic and memory modality is selectively used when confidence is insufficient or specialist agents exhibit disagreement. A cost model incorporates modality use and processing overhead. It enables the orchestration policy to balance analysis performance against computational cost. A locally deployed large language model provides verification for selected difficult cases without replacing the deterministic pipeline.

Experimental evaluation compares adaptive HMAS with static only, static plus dynamic and exhaustive analysis policies across binary ransomware detection and multiclass family attribution. The complete HMAS achieved 96.57% accuracy, 0.96 F1-score and 0.99 ROC-AUC for binary detection. It also achieved 0.90 macro-F1 for family attribution. At the same time, the HMAS reduced average analysis cost by 43.97% relative to exhaustive analysis and substantially reduced average analysis latency except for the case where LLM is used. Routing analysis showed that 56.05% of cases were resolved using static evidence alone. Only 4.33% required the complete evidence pipeline. These findings demonstrate that adaptive HMAS can provide accuracy cost tradeoff for ransomware analysis while retaining support for heterogeneous and incomplete modalities.

Keywords

Ransomware; Hierarchical Multi-Agent Systems; Adaptive Modality Acquisition; Static Analysis; Dynamic Analysis; Memory Forensics; Family Attribution; Cost-Aware Detection

  1. Introduction

One of the most disruptive type of malware is ransomware due to its impact on data and services [1]. Modern ransomware uses advanced techniques like evasion, lateral movement and process manipulation to make detection and family attribution difficult [2]. Detection identifies malicious behavior and attribution links samples to specific families, which aids incident response but requires more detailed evidence [3]. Static analysis is fast and cheap, dynamic analysis reveals runtime behavior, and memory analysis uncovers volatile artifacts. Combining these provides better insights but each modality adds extra computational cost and processing time. Therefore, using all modalities for every sample is inefficient. [4].

References (24)