XMD: An Expansive Hardware-telemetry based Mobile Malware Detector to enhance Endpoint Detection

Harshit Kumar, Biswadeep Chakraborty, Sudarshan Sharma, Saibal Mukhopadhyay · DOI

TL;DR

Traditional hardware-based malware detectors rely solely on CPU performance counters, leaving a blind spot for general-purpose malware that interacts with other subsystems. XMD overcomes this limitation by fusing thread-level CPU telemetry with system-wide "non-core" telemetry (GPU, memory, network, and power), boosting mobile malware detection F1-scores from ~0.70 to over 0.90 on real-world Android applications.

What Problem Does This Paper Address?

Hardware-based Malware Detectors (HMDs) have emerged as a tamper-resistant, low-overhead alternative to traditional software-based endpoint security. However, existing HMDs suffer from a major architectural limitation: they focus almost exclusively on the CPU core by monitoring Hardware Performance Counters (HPCs).

This narrow focus restricts the detector's "attack space." CPU counters excel at catching malware with prominent microarchitectural side-channels (like cache attacks), but they often miss general-purpose malware (such as adware or info-stealers) that behaves normally on the CPU but exhibits anomalous behavior elsewhere in the System-on-Chip (SoC). Furthermore, prior research frequently evaluated HMDs using synthetic benchmarks as benign data, which artificially inflates accuracy and fails to reflect the messy reality of daily smartphone usage.

Comprehensive cross-stack monitoring comparing software-based approaches with XMD's expansive hardware telemetry fusion.

Methods

The authors introduce XMD (Expansive Malware Detector), a framework that monitors a comprehensive suite of both core and non-core hardware signals:

  1. Thread-level Profiling (Core): Traditional HPCs tracking CPU cycles, instructions, and cache references.
  2. System-wide Profiling (Non-core/GLOBL): Dynamic Voltage and Frequency Scaling (DVFS) states for the GPU, memory channels, and system buses, alongside SYSFS nodes tracking network traffic (bytes sent/received) and overall device power consumption.

Mathematical Foundation

To justify why adding more channels helps, the authors leverage the manifold hypothesis. They mathematically prove that fusing orthogonal telemetry channels increases the "solution volume" of a linear classifier. In simple terms, projecting the data into a higher-dimensional space makes the boundary between benign and malicious behavior significantly cleaner and more separable.

Fig. 2: 2-D visualization of Benign [green] vs. Malware [red] classification using manifolds: (a) candidate hyperplanes that can separate the benign and malware manifolds, (b) classifi- cation task with overlapping manifolds, (c) solution space of the hyperplanes for case-a (easier classification problem) and for case-b (difficult classification problem).

Pipeline and Fusion

As shown below, XMD processes these diverse data streams using distinct feature engineering pipelines:

  • GLOBL features undergo a windowed Fast Fourier Transform (FFT) followed by Principal Component Analysis (PCA) to capture frequency-domain signatures.
  • HPC features are aggregated into time-series histograms.

XMD then utilizes a late-stage fusion approach, training individual Random Forest base-classifiers on each channel and combining their outputs via either an Ensemble majority vote or Stacked Generalization (Logistic Regression).

Fig. 3: Creating the classifiers: (a) Feature engineering steps for GLOBL channels, (b) feature engineering steps for the HPC groups, (c) Late stage fusion for merging the decisions of the base detectors

Datasets

The authors curated the STD-Dataset to evaluate XMD under realistic conditions:

  • Malware: 1,033 real-world samples from AndroZoo (collected Dec 2019 – June 2021), spanning 54 families categorized by AVClass (predominantly grayware and adware).
  • Benign: 723 real-world Android applications from the Google Play Store (no synthetic benchmarks).

Data was collected on a bare-metal Google Pixel 3 smartphone. Crucially, processes were not pinned to specific CPU cores during execution, allowing realistic context-switching and measurement noise to enter the dataset. A Logcat-based filter was implemented to ensure apps actually ran in the foreground for at least 15 seconds.

Key Insights and Ideas

  • The "Real-World" Penalty: When evaluated against actual Play Store apps rather than synthetic benchmarks, CPU-only detectors performed poorly (F1-scores of 0.66–0.76). This confirms that traditional HPC-only approaches struggle with the diverse behavioral profiles of real-world benign software.
  • Network Telemetry is King: Standalone channel analysis revealed that network traffic indicators (channel-12 and channel-13) yielded the highest individual F1-scores (~0.86–0.89). This makes intuitive sense, as most modern mobile malware relies heavily on Command and Control (C2) servers for data exfiltration and ad-fraud.
  • More Time $\neq$ Better Detection: Sensitivity analysis showed that extending the data collection window beyond 40 seconds provided diminishing returns. The most distinct hardware signatures manifest within the first minute of application execution.

Key Results

  • Performance Boost: Fusing non-core telemetry with HPCs elevated the classifier's predictive accuracy to an F1-score of 0.90–0.93, marking a 32.91% improvement over CPU-only baselines for in-distribution data.
  • Beating Commercial AVs: XMD achieved a top detection rate of 86.54% with a low 2.9% false positive rate. On the exact same malware dataset, the best-performing signature-based commercial Anti-Virus engine on VirusTotal topped out at an 80% detection rate.

Limitations and Future Work

Despite its strengths, XMD has a few notable limitations:

  1. User-Land Noise & Collusion: Because system-wide DVFS and network nodes capture global states rather than thread-isolated metrics, a sophisticated attacker could attempt a "collusion attack," using a separate benign thread to inject noise and mask malicious hardware signatures.
  2. Scalability of Bare-Metal Collection: Collecting data on physical devices is slow and difficult to scale compared to virtualized sandboxes. However, virtual machines introduce timing distortions that invalidate low-level hardware telemetry.
  3. Desktop Portability: The global profiling approach works on mobile devices because users typically interact with only one or two foreground apps at a time. Porting XMD to desktop environments—where dozens of heavy processes run concurrently—will require developing process-level tracking for non-core devices.

Summary updated

BibTeX
@article{kumar2023xmd,
  author = {Harshit Kumar and Biswadeep Chakraborty and Sudarshan Sharma and Saibal Mukhopadhyay},
  title = {{XMD: An Expansive Hardware-telemetry based Mobile Malware Detector to enhance Endpoint Detection}},
  journal = {IEEE Transactions on Information Forensics and Security},
  year = {2023},
  url = {https://openreview.net/forum?id=0I468MEeyG},
}
Figure