Early Detection of Windows Crypto‐Ransomware Based on API Sequences and Deep Learning
ABSTRACT Ransomware attacks continue to cause substantial losses to individuals and organizations. Dynamic detection executes samples in a controlled environment and monitors run time behavior, making it suitable for identifying ransomware before destructive encryption begins. This paper proposes API‐RED, a Windows ransomware detection model based on API call sequences. API‐RED uses a domain‐specific BERT‐style encoder trained from scratch on Windows API sequences to generate contextual API embeddings and derive attention‐based API groups. These representations are then processed by a CNN‐BiLSTM feature extractor to capture local API‐group patterns and long‐range sequence dependencies. We evaluate API‐RED using 200 benign samples, 478 ransomware samples, and a public dataset. The proposed model achieves an accuracy of 98.82%, a precision of 98.59%, a recall of 97.02%, and an F1‐score of 97.80%, outperforming the compared baseline methods. Ablation experiments further confirm the contribution of the API‐domain encoder, API grouping, CNN, and BiLSTM components.
Authors
- Zhonghui Zhai
- Jiqiang Zhai (ORCID: https://orcid.org/0000-0003-1591-1627)
- X F Wang
- Hailu Yang (ORCID: https://orcid.org/0000-0002-7774-0520)
- Hong Miao (ORCID: https://orcid.org/0009-0002-1422-9327)
Institutions
- Harbin University of Science and Technology (CN)
- Harbin University (CN)
- Guangdong Police College (CN)
Publication Details
- Journal
- Concurrency and Computation Practice and Experience
- Published
- 2026-07-24
- DOI
- https://doi.org/10.1002/cpe.70813
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Department of Education, Heilongjiang Province