[Paper Review] Early Detection of In-Memory Malicious Activity based on Run-time Environmental Features
This paper presents a novel, low-overhead machine learning-based system for early in-memory malware detection on Windows by analyzing real-time runtime environmental logs. By leveraging curated process-level telemetry—including memory state, process behavior, and system calls—the model achieves high-precision detection with minimal false positives and near-zero performance impact, enabling mitigation before malicious actions execute.
In recent years malware has become increasingly sophisticated and difficult to detect prior to exploitation. While there are plenty of approaches to malware detection, they all have shortcomings when it comes to identifying malware correctly prior to exploitation. The trade-off is usually between false positives, causing overhead, preventing normal usage and the risk of letting the malware execute and cause damage to the target. We present a novel end-to-end solution for in-memory malicious activity detection done prior to exploitation by leveraging machine learning capabilities based on data from unique run-time logs, which are carefully curated in order to detect malicious activity in the memory of protected processes. This solution achieves reduced overhead and false positives as well as deployment simplicity. We implemented our solution for Windows-based systems, employing multi disciplinary knowledge from malware research, machine learning, and operating system internals. Our experimental evaluation yielded promising results. As we expect future sophisticated malware may try to bypass it, we also discuss how our solution can be extended to thwart such bypassing attempts.
Motivation & Objective
- To address the challenge of detecting sophisticated in-memory malware before exploitation, where traditional signature- and heuristic-based methods often fail.
- To reduce false positives and system overhead in protecting critical resources, especially in high-security environments.
- To enable real-time detection by analyzing runtime environmental features extracted from protected processes.
- To design a non-intrusive, deployable solution that integrates seamlessly with existing systems without requiring memory dumps or VM sandboxes.
Proposed method
- The system collects and processes real-time runtime logs from protected processes, capturing both static and dynamic environmental variables.
- A machine learning model is trained on a large dataset of logs from real-world workloads and actual malware attacks collected via a kernel-level agent.
- Features include process metadata, memory layout, system calls, and execution context, selected for relevance to in-memory attack patterns.
- The model uses a threshold-based rating system to balance early detection timing against false positive rates, enabling configurable sensitivity.
- The detector operates in real time, querying minimal runtime logs to infer imminent malicious activity and trigger mitigation before exploitation.
- The architecture supports extension to counter evasion techniques, including moving target defense mechanisms.
Experimental results
Research questions
- RQ1Can runtime environmental features extracted from protected processes enable early detection of in-memory malware before exploitation?
- RQ2How can a machine learning model trained on real-world logs achieve low false positive rates while maintaining high detection accuracy?
- RQ3To what extent does the proposed solution reduce system overhead compared to memory dump or sandbox-based approaches?
- RQ4How effective is the system in detecting diverse malware families, including fileless and zero-day attacks?
- RQ5Can the detection mechanism be extended to resist evasion attempts by advanced malware?
Key findings
- The system achieved high detection accuracy for in-memory attacks with minimal false positives, as validated across diverse malware families including ransomware, exploit kits, and fileless malware.
- The solution demonstrated near-zero performance overhead, with CPU and memory usage of the agent remaining below 1% under continuous logging.
- The model successfully detected malicious activity in the target process before any harmful operation was executed, enabling real-time mitigation.
- The use of runtime logs instead of memory dumps or VM analysis reduced detection latency and system resource consumption significantly.
- The threshold-based rating system allowed tuning for early warning intervals with controlled false positive rates, supporting deployment in high-security environments.
- The architecture is extensible and can be enhanced with moving target defense techniques to counter advanced evasion strategies.
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.