Abstract
Machine learning (ML)-based methods have recently become attractive for detecting security vulnerability exploits. Unfortunately, state-of-the-art ML models like long short-term memories (LSTMs) and transformers incur significant computation overheads. This overhead makes it infeasible to deploy them in real-time environments. We propose a novel ML-based exploit detection model, ML-FEED, that enables highly efficient inference without sacrificing performance. We develop a novel automated technique to extract vulnerability patterns from the Common Weakness Enumeration (CWE) and Common Vulnerabilities and Exposures (CVE) databases. This feature enables ML-FEED to be aware of the latest cyber weaknesses. Second, it is not based on the traditional approach of classifying sequences of application programming interface (API) calls into exploit categories. Such traditional methods that process entire sequences incur huge computational overheads. Instead, ML-FEED operates at a finer granularity and predicts the exploits triggered by every API call of the program trace. Then, it uses a state table to update the states of these potential exploits and track the progress of potential exploit chains. ML-FEED also employs a feature engineering approach that uses natural language processing-based word embeddings, frequency vectors, and one-hot encoding to detect semantically-similar instruction calls. Then, it updates the states of the predicted exploit categories and triggers an alarm when a vulnerability fingerprint executes. Our experiments show that ML-FEED is 72.9x and 75,828.9x faster than state-of-the-art lightweight LSTM and transformer models, respectively. We trained and tested ML-FEED on 79 real-world exploit categories. It predicts categories of exploit in real-time with 98.2% precision, 97.4% recall, and 97.8% F1 score. These results also outperform the LSTM and transformer baselines.
Introduction
In the rapidly evolving landscape of cybersecurity, real-time exploit detection remains a critical challenge. While deep learning models such as LSTMs and Transformers have demonstrated high accuracy in recognizing complex patterns within program execution traces, their practical deployment is often hindered by extreme latency. These models typically process entire sequences of API calls to classify behavior as malicious, a "sequence-heavy" approach that introduces significant computational overhead. Furthermore, traditional rule-based systems, while fast, are often brittle and fail to recognize "semantically similar" attacks where attackers obfuscate function calls to evade detection.
To address these limitations, we present ML-FEED (Machine Learning Framework for Efficient Exploit Detection). ML-FEED shifts the detection paradigm from heavy sequence-based processing to per-instruction analysis, enabling real-time performance without compromising on detection accuracy.
The ML-FEED Architecture
ML-FEED utilizes a hybrid architecture that combines a lightweight machine learning classifier with a deterministic state-table-based sequence monitor. This design offloads the "memory" of an attack from the neural network to a simple state table, eliminating the need for expensive recursive or attention-based computations.
The framework operates in two primary stages:
- The ML Classifier: A compact, fully connected neural network analyzes individual API calls. It utilizes a 151-dimensional feature vector that integrates NLP embeddings (FastText) to capture the semantic meaning of API names, one-hot encoding for categorical data like scopes, and frequency vectors for I/O tracking.
- The Sequence Monitor: This component maintains a dynamic state table. When the ML classifier identifies an API call as a potential step in an exploit, the monitor updates the corresponding "exploit chain." An alarm is triggered only when a complete "vulnerability fingerprint" is executed.
Automated Vulnerability Pattern Extraction
A key innovation of ML-FEED is its ability to stay current with emerging threats through an automated intelligence pipeline. The system scrapes the CWE and CVE databases, converting text-based descriptions into System Dependence Graphs (SDGs). These SDGs are then transformed into actionable vulnerability fingerprints that the sequence monitor uses to track exploit progress.
This automated approach ensures that the system can adapt to new vulnerabilities without requiring manual rule engineering, providing resilience against the "threat of the day."
Experimental Evaluation
We evaluated ML-FEED using the Juliet Test Suite for Java, generating over 1.3 million instruction sequences across 79 exploit categories. The framework was also tested against real-world attack traces in popular Java libraries like Apache Druid and XStream (e.g., CVE-2021-25646).
Performance and Efficiency
The results demonstrate a massive leap in efficiency:
- Inference Speed: ML-FEED is 72.9x faster than a lightweight LSTM and 75,828.9x faster than a GPT-2 Transformer model.
- Model Size: With 2,500x fewer parameters than the Transformer baseline, the model size is a mere 970.5 KB.
- Accuracy: Despite its small footprint, ML-FEED achieved 98.2% precision and 97.4% recall, outperforming both deep learning baselines.
Conclusion
ML-FEED demonstrates that real-time exploit detection does not require massive, computationally expensive models. By combining per-instruction ML classification with a state-table monitor and automated vulnerability ingestion, we achieve unprecedented speedups while maintaining state-of-the-art accuracy. Future work will focus on improving detection for system-dependent attacks like Denial of Service (DoS) and refining context-aware sensitivity models for data leakage prevention.
Summary updated