Open Access iconOpen Access

ARTICLE

MemHookNet: Real-Time Multi-Class Heap Anomaly Detection with Log Hooking

Siyi Wang, Yan Zhuang*, Zhizhuang Zhou, Xinhao Wang, Menglan Li

School of Cyber Science and Engineering, Zhengzhou University, Zhengzhou, 450002, China

* Corresponding Author: Yan Zhuang. Email: email

Computers, Materials & Continua 2025, 85(2), 3041-3066. https://doi.org/10.32604/cmc.2025.067636

Abstract

Heap memory anomalies, such as Use-After-Free (UAF), Double-Free, and Memory Leaks, pose critical security threats including system crashes, data leakage, and remote exploits. Existing methods often fail to handle multiple anomaly types and meet real-time detection demands. To address these challenges, this paper proposes MemHookNet, a real-time multi-class heap anomaly detection framework that combines log hooking with deep learning. Without modifying source code, MemHookNet non-intrusively captures memory operation logs at runtime and transforms them into structured sequences encoding operation types, pointer identifiers, thread context, memory sizes, and temporal intervals. A sliding-window Long Short-Term Memory (LSTM) module efficiently filters out suspicious segments, which are then transformed into pointer access graphs for classification using a GATv2-based model. Experimental results demonstrate that MemHookNet achieves 82.2% accuracy and 81.5% recall with an average inference time of 15 ms, outperforming DeepLog and GLAD-PAW by 11.7% in accuracy and reducing latency by over 80%.

Keywords

Use-after-free detection; heap memory vulnerabilities; log analysis; memory leak detection; graph neural network

Cite This Article

APA Style
Wang, S., Zhuang, Y., Zhou, Z., Wang, X., Li, M. (2025). MemHookNet: Real-Time Multi-Class Heap Anomaly Detection with Log Hooking. Computers, Materials & Continua, 85(2), 3041–3066. https://doi.org/10.32604/cmc.2025.067636
Vancouver Style
Wang S, Zhuang Y, Zhou Z, Wang X, Li M. MemHookNet: Real-Time Multi-Class Heap Anomaly Detection with Log Hooking. Comput Mater Contin. 2025;85(2):3041–3066. https://doi.org/10.32604/cmc.2025.067636
IEEE Style
S. Wang, Y. Zhuang, Z. Zhou, X. Wang, and M. Li, “MemHookNet: Real-Time Multi-Class Heap Anomaly Detection with Log Hooking,” Comput. Mater. Contin., vol. 85, no. 2, pp. 3041–3066, 2025. https://doi.org/10.32604/cmc.2025.067636



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 1212

    View

  • 579

    Download

  • 0

    Like

Share Link