Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Anomaly-based Malware Detection using Hardware Features

Adrian Tang, Simha Sethumadhavan|arXiv (Cornell University)|Mar 7, 2014
Advanced Malware Detection TechniquesComputer Science15 citations
TL;DR

This paper proposes unsupervised anomaly-based malware detection using hardware performance counters (HPCs) to detect exploit-stage malware without relying on signatures. By modeling normal program behavior via power-transformed, temporally aggregated HPC data and applying unsupervised machine learning, the approach detects subtle deviations caused by malicious code execution with near-perfect accuracy in real-world Windows/x86 systems running IE and Adobe PDF Reader.

ABSTRACT

Recent works have shown promise in using microarchitectural execution patterns to detect malware programs. These detectors belong to a class of detectors known as signature-based detectors as they catch malware by comparing a program's execution pattern (signature) to execution patterns of known malware programs. In this work, we propose a new class of detectors - anomaly-based hardware malware detectors - that do not require signatures for malware detection, and thus can catch a wider range of malware including potentially novel ones. We use unsupervised machine learning to build profiles of normal program execution based on data from performance counters, and use these profiles to detect significant deviations in program behavior that occur as a result of malware exploitation. We show that real-world exploitation of popular programs such as IE and Adobe PDF Reader on a Windows/x86 platform can be detected with nearly perfect certainty. We also examine the limits and challenges in implementing this approach in face of a sophisticated adversary attempting to evade anomaly-based detection. The proposed detector is complementary to previously proposed signature-based detectors and can be used together to improve security.

Motivation & Objective

  • To develop a novel class of hardware-based malware detectors that do not require known malware signatures to detect novel or zero-day exploits.
  • To investigate whether microarchitectural execution anomalies caused by malware exploitation are detectable using low-level hardware features such as performance counters.
  • To overcome the challenge of detecting small deviations in highly skewed HPC distributions through statistical and temporal signal enhancement.
  • To evaluate the feasibility and robustness of anomaly-based detection in real-world, production environments under realistic attack scenarios.
  • To explore the complementarity of this approach with existing signature-based detectors for improved overall malware defense.

Proposed method

  • The method uses hardware performance counters (HPCs) to collect microarchitectural features from normal program executions of vulnerable applications like Internet Explorer and Adobe PDF Reader.
  • It applies the power transform (e.g., Box-Cox) to stabilize variance and amplify small deviations in heavily skewed HPC distributions.
  • Temporal aggregation of multiple HPC samples over time windows is used to improve signal-to-noise ratio and detect consistent behavioral anomalies.
  • Unsupervised machine learning models (e.g., clustering or reconstruction-based methods) are trained on normal execution profiles to learn baseline behavior.
  • Anomalies are detected by measuring deviation from the learned normal profile using statistical distance metrics or reconstruction error.
  • The approach is evaluated on real-world Windows/x86 systems under controlled exploitation of known vulnerabilities.

Experimental results

Research questions

  • RQ1Can unsupervised anomaly detection using hardware performance counters reliably detect malware exploitation during the initial execution phase, before payload delivery?
  • RQ2To what extent can small, subtle deviations in microarchitectural features be amplified and detected despite the highly skewed distribution of HPC data?
  • RQ3How effective is the proposed method in detecting real-world exploits in widely used, complex software like IE and Adobe PDF Reader?
  • RQ4How does the detector perform under evasion attempts by sophisticated adversaries seeking to mimic normal behavior?
  • RQ5Can this anomaly-based approach complement existing signature-based detectors to improve overall malware detection coverage and early warning capability?

Key findings

  • The proposed anomaly-based detector successfully detects malware exploitation in real-world Windows/x86 systems with nearly perfect certainty, achieving high detection accuracy for exploits targeting Internet Explorer and Adobe PDF Reader.
  • The power transform effectively amplifies small deviations in HPC data, enabling reliable detection despite the positive skewness of the underlying distributions.
  • Temporal aggregation of multiple HPC samples significantly improves the signal-to-noise ratio, making subtle anomalies more discernible.
  • The method is robust against evasion attempts to some extent, though sophisticated adversaries may still attempt to mimic normal behavior by carefully tuning microarchitectural characteristics.
  • The detector is complementary to signature-based systems and can serve as an early warning mechanism by identifying exploitation before payload execution.
  • The study demonstrates that automated, data-driven learning of program behavior from hardware features is feasible and effective for security monitoring.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.