[Paper Review] HeNet: A Deep Learning Approach on Intel$^\circledR$ Processor Trace for Effective Exploit Detection
HeNet is a hierarchical deep learning model that uses Intel® Processor Trace (Intel® PT) to convert low-level control flow traces into time-series images for malware detection. By applying transfer learning on these images and ensembling results across trace segments, HeNet achieves 100% accuracy and 0% false positive rate in detecting ROP attacks against Adobe® Reader, outperforming classical machine learning methods and demonstrating robustness against adversarial perturbations in dynamic execution traces.
This paper presents HeNet, a hierarchical ensemble neural network, applied to classify hardware-generated control flow traces for malware detection. Deep learning-based malware detection has so far focused on analyzing executable files and runtime API calls. Static code analysis approaches face challenges due to obfuscated code and adversarial perturbations. Behavioral data collected during execution is more difficult to obfuscate but recent research has shown successful attacks against API call based malware classifiers. We investigate control flow based characterization of a program execution to build robust deep learning malware classifiers. HeNet consists of a low-level behavior model and a top-level ensemble model. The low-level model is a per-application behavior model, trained via transfer learning on a time-series of images generated from control flow trace of an execution. We use Intel$^\circledR$ Processor Trace enabled processor for low overhead execution tracing and design a lightweight image conversion and segmentation of the control flow trace. The top-level ensemble model aggregates the behavior classification of all the trace segments and detects an attack. The use of hardware trace adds portability to our system and the use of deep learning eliminates the manual effort of feature engineering. We evaluate HeNet against real-world exploitations of PDF readers. HeNet achieves 100\% accuracy and 0\% false positive on test set, and higher classification accuracy compared to classical machine learning algorithms.
Motivation & Objective
- To address the limitations of static and API-based dynamic malware detection, which are vulnerable to obfuscation and adversarial inputs.
- To develop a portable, scalable malware detection system that leverages hardware-generated control flow traces for improved robustness.
- To eliminate manual feature engineering by using low-level control flow packets as input for deep learning models.
- To improve detection accuracy and reduce false positives through hierarchical ensemble learning on image-converted control flow traces.
- To evaluate the model’s resilience against adversarial attacks by analyzing perturbations in control flow behavior.
Proposed method
- Convert Intel® PT-generated control flow trace packets into a sequence of 2D pixel images representing instruction execution paths.
- Train a low-level deep neural network via transfer learning on high-resolution image sequences derived from control flow traces to model application-specific behavior.
- Use a top-level ensemble model to aggregate predictions across all trace segments and detect anomalies indicating malicious execution.
- Apply convex combination of high-resolution and low-resolution models to optimize accuracy and false positive rate, with hyperparameter α tuned for optimal performance.
- Leverage the fine-grained nature of indirect and conditional branch traces to capture subtle deviations from normal program behavior.
- Utilize ResNet-based architectures trained on image sequences to classify benign vs. malicious control flow patterns.
Experimental results
Research questions
- RQ1Can control flow traces generated by Intel® PT be effectively transformed into image representations suitable for deep learning-based malware classification?
- RQ2Does a hierarchical ensemble model combining transfer-learned behavior models improve detection accuracy and reduce false positives compared to classical machine learning approaches?
- RQ3How robust is the HeNet model to adversarial perturbations in control flow that preserve application functionality but alter execution paths?
- RQ4Can the use of hardware-based tracing improve portability and scalability of malware detection systems across different operating systems and hardware platforms?
- RQ5What is the optimal trade-off between model resolution and performance in the ensemble of low- and high-resolution models?
Key findings
- HeNet achieved 100% detection accuracy and 0% false positive rate on a test set of real-world ROP attacks against Adobe® Reader.
- The ensemble model with convex combination (α = 0.5) achieved 98.31% accuracy and 0.29% false positive rate, outperforming both the high-resolution and low-resolution models individually.
- The high-resolution model (224×224×3) achieved 98.1% accuracy and 0.73% false positive rate, while the low-resolution model (28×28×3) achieved 97.6% accuracy and 0.22% false positive rate.
- Transfer learning enabled rapid convergence of the low-level behavior model, with training stabilizing within 10 epochs.
- The system demonstrated high portability and extensibility due to the use of hardware-level control flow traces, independent of OS or software stack.
- The model showed strong resilience to adversarial control flow manipulation, as the fine-grained behavior modeling makes it difficult to inject malicious transfers without detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.