Introduction
Malware detection remains a critical challenge in cybersecurity as authors increasingly use packing and obfuscation to evade static analysis. Dynamic analysis—executing suspicious files in isolated "sandboxes" to record their behavior—provides a more robust alternative. However, the resulting behavioral reports are often massive JSON files that traditionally require extensive manual feature engineering by human experts. This process is time-consuming, difficult to scale, and often fails to generalize across different sandbox environments.
Neurlux addresses this bottleneck by treating dynamic analysis reports as natural language documents. By leveraging deep learning architectures, Neurlux automates the extraction of malicious patterns directly from raw report text, achieving high accuracy without the need for manual feature selection.
Methodology
The core philosophy of Neurlux is to eliminate the reliance on human-defined features. As shown in Figure 1, while traditional methods (b) require complex feature counting and stacking, Neurlux (a) processes cleaned reports through an end-to-end neural network.
Neural Architecture
The Neurlux model utilizes a sophisticated multi-layered architecture designed to capture both local patterns and long-term behavioral sequences:
- Trainable Word Embeddings: Raw tokens from the reports (e.g., file paths, API calls) are mapped to 256-dimensional vectors. Unlike standard NLP, these embeddings are trained from scratch to capture the unique semantics of malware behavior.
- CNN and BiLSTM Layers: A Convolutional Neural Network (CNN) identifies local n-gram patterns, while a Bidirectional Long Short-Term Memory (BiLSTM) network captures the temporal context of actions over time.
- Hierarchical Attention Mechanism: The model employs two levels of attention—word-level and sentence-level. This allows the network to prioritize highly suspicious actions (like process injection) while ignoring routine background noise common to benign software.
Experimental Results
The researchers evaluated Neurlux using the Ember dataset (42,000 samples) and a private Vendor dataset (27,540 samples). The model demonstrated exceptional performance across several key metrics:
- Detection Accuracy: Neurlux achieved a validation accuracy of 96.8% on the Ember dataset.
- Cross-Sandbox Generalization: One of the most significant findings was the model's robustness. When trained on reports from one sandbox (e.g., VendorSandbox) and tested on another (e.g., Cuckoo), Neurlux maintained 86.7% accuracy. In contrast, traditional "Bag-of-Words" models like MalDy saw their accuracy drop to 40% in the same scenario.
- Zero-Day Detection: In "leave-one-family-out" testing, the model successfully identified 100% of samples from a previously unseen malware family, indicating it learns generalized malicious behaviors rather than specific signatures.
- Operational Efficiency: With an average inference time of 8.21 milliseconds per sample, Neurlux is suitable for high-throughput production environments.
Discussion and Limitations
While Neurlux represents a significant advancement, it is not without limitations. Its effectiveness is tied to the quality of the dynamic analysis report; if malware employs sandbox evasion techniques and refuses to execute its payload, the model will have no behavioral data to analyze. Furthermore, like all deep learning models, it may be susceptible to adversarial attacks where attackers attempt to "poison" reports with benign-looking sequences.
Despite these challenges, Neurlux proves that treating malware behavior as a "story" told through logs is a powerful paradigm for automated threat detection, significantly reducing the burden on security researchers.
Summary updated