arXiv:2611.03774cs.CRNov 2026

Manuscript Offprint

arXiv:2611.03774

What Malware Actually Does: An Empirical Analysis of Post-Infection Behavior Across Malware Families

Emmanuela Andam, Emanuel S. Grant, Naima Kaabouch

Emmanuela Andam¹, Emanuel S. Grant², and Naima Kaabouch¹,²

¹Artificial Intelligence Research (AIR) Center, University of North Dakota, Grand Forks, ND, USA

²School of Electrical Engineering and Computer Science, University of North Dakota, Grand Forks, ND, USA

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Abstract—Most malware detection research focuses on identifying whether a file is malicious before it executes. Far less attention goes to what happens after infection. This paper presents an empirical analysis of post-infection malware behavior across 37 families, grounded in dynamic sandbox execution using CAPEv2. Behavioral traces are modeled as heterogeneous graphs with five node types and seven typed edge relationships, preserving relational structure that flat feature vectors discard. A voting ensemble trained on graph-derived structural features achieves 94.44% accuracy and MCC of 0.863, outperforming a flat behavioral baseline by 7.4 percentage points in MCC. A multiclass classifier distinguishes 24 malware families, and a per-family behavioral fingerprint analysis characterizes post-infection activity across registry, network, process, and API dimensions. An LLM explanation layer generates analyst-readable reports with MITRE ATT&CK mappings grounded in observed behavioral evidence. The full pipeline is deployed as HeteroScan at https://ama-andam.github.io/heteroscan.

Index Terms—malware analysis, behavioral analysis, heterogeneous graphs, dynamic analysis, sandbox, CAPE, post-infection behavior, ensemble classification, multiclass family classification, LLM explanation, MITRE ATT&CK

I. INTRODUCTION

The number of Internet of Things devices keeps growing. By 2030, connected devices are expected to exceed 32 billion [1], including not only embedded sensors and routers but also the Windows-based workstations, healthcare systems, and enterprise endpoints that form the operational backbone of critical infrastructure. Attackers have followed that growth closely. This expansion includes not only embedded sensors and routers but also the Windows-based workstations, healthcare systems, and enterprise endpoints that form the operational backbone of critical infrastructure. In the first half of 2019, researchers recorded over 100 million IoT-targeted incidents, seven times the count from the same period in 2018 [2]. At least 64 distinct malware families now target these devices [3], and the malware itself has become more capable over time. The number of device-specific exploits doubled annually after 2017 [4], and families that once ran simple DDoS operations

Figure

Fig. 1. Existing detection approaches classify executables as malicious or benign at the perimeter but do not analyze post-infection behavior. This work addresses the gap by empirically characterizing what malware actively does inside a compromised system.

have expanded into ransomware, cryptominers, and persistent spyware [5]. Malware no longer targets one platform or one sector. In 2025, IoT attacks increased by 400%, Linux infections rose by 35%, and cryptojacking incidents surged by 659% [6]. Ransomware spread across desktops, mobile devices, cloud systems, and industrial infrastructure in the same year. The threat is no longer confined; it is everywhere, and it is adaptive.

Despite this growth, the defenses most widely deployed were not designed for it. Signature-based detection, the approach built into most endpoint tools, works by matching known malware patterns against a database of prior samples. Against catalogued threats, it is fast and accurate. Against new variants and obfuscated code, it falls apart. Empirical evaluations place zero-day detection rates as low as 8.2% for signature-only systems [7], and a few bytes of mutation can bypass byte-pattern matching entirely [8]. Machine learning models trained on static features face the same problem from a different angle: they generalize from historical distributions that may not reflect the variants attackers release today [9].

Dynamic sandbox analysis gets further than static methods. By executing a suspicious sample in isolation and recording what it does at runtime, sandboxes can surface process creation, file and registry changes, API call sequences, and command-and-control traffic that static inspection cannot observe [10], [11]. One large-sample study found suspicious runtime activity in 95% of analyzed samples [12]. Even so, most research that uses dynamic analysis asks only one question: is this sample malicious? The behavioral telemetry

Figure

Fig. 2. HeteroScan pipeline: Windows executables (malicious and benign) are submitted to the CAPE sandbox, behavioral reports are parsed into heterogeneous graphs, structural features are extracted for ensemble classification, and an LLM generates analyst-readable behavioral reports.

collected during execution reveals much more than a binary verdict. It shows what the malware is actively doing to a compromised system, and that information rarely becomes the main object of study.

That gap matters in practice. Knowing a device is infected is only the starting point for incident response. Analysts need to understand what happened after infection: which processes were spawned, which files were created or encrypted, which registry keys were written for persistence, and which external endpoints were contacted. Most behavioral analysis tools answer this by producing flat API call logs or aggregate feature vectors, losing the relational structure between entities. The fact that a specific process wrote to a specific registry key while simultaneously connecting to a non-standard external port carries meaning that a list of API frequencies does not capture.

Prior work on behavioral malware analysis has largely relied on two approaches: flat feature vectors extracted from sandbox logs, and homogeneous API call graphs where all behavioral signals collapse into a single node type. Singh et al. [13] and Jain et al. [11] show that sandbox-derived behavioral features fed into tree-based classifiers achieve strong detection rates, but flattening execution telemetry into vectors loses the relational structure between entities. Graph-based approaches address part of this by modeling API call sequences as directed graphs [14]–[16], achieving up to 98.86% accuracy, but treating all entities as the same node type discards the semantic distinctions between processes, files, registry keys, and network endpoints. Heterogeneous graph neural networks have shown promise in network intrusion detection [17], [18], where modeling multiple entity types improves detection over homogeneous baselines, yet this formulation remains largely absent from post-infection malware behavioral analysis. On the explanation side, recent work shows that LLMs can generate human-readable behavioral summaries from sandbox reports [19] and static code [20], reducing analyst workload during incident response. Our work combines these directions: we model post-infection behavior as a heterogeneous graph

across five entity types and seven relationship types, classify using an ensemble trained on graph-derived features, and generate analyst-readable explanations through an LLM layer grounded in observed behavioral evidence. This study extends our prior work on malware detection, which addressed few-shot detection of emerging variants [21] and multi-class malware classification using structured state-space models [22]; the present study is part of a broader investigation of malware detection and behavioral analysis [23], shifting focus from detection to post-infection behavioral characterization.

This paper addresses that gap directly. We focus on what malware actually does once it is inside a system, analyzing samples from multiple malware families through dynamic sandbox execution. The contributions of this paper are as follows:

  • A heterogeneous behavioral graph construction pipeline that models post-infection behavior across multiple entity types and relationship types
  • An empirical characterization of post-infection behavioral patterns across a range of malware families
  • A classification framework trained and evaluated on behavioral graph features extracted from sandbox-analyzed executables
  • An LLM-based explanation layer that produces natural language behavioral summaries and maps detected behaviors to MITRE ATT&CK techniques

References (26)