Transformer-Based API Call Sequence Modeling for Dynamic Malware Detection

Dynamic malware detection is based on analyzing behavioral patterns captured in execution logs. In this study, we propose a hybrid deep learning approach that integrates neural networks for feature extraction with BERT for API call sequence classification to detect and classify malware. We utilize execution logs generated from the Speakeasy emulator, which provides behavioral reports for 93,533 32-bit Portable Executables (PEs). Our methodology begins with data preprocessing and filtering, followed by feature extraction driven by neural networks to capture meaningful representations of malware behavior. The extracted features are then fed into a BERT-based sequence classifier trained on ordered API call sequences to identify malware types. Experimental results demonstrate an overall accuracy of 85% on the test dataset. The model achieves improvements in F1-score for clean files (0.91) and significant enhancements for various malware types, including Trojan (0.83), Backdoor (0.90), and Ransomware (0.85). These findings highlight the effectiveness of combining neural feature extraction with transformer-based sequence learning for dynamic malware detection.

Authors

Institutions

Publication Details

Published
2025-03-22
DOI
https://doi.org/10.1109/southeastcon56624.2025.10971600
Citations
1
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
1.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Transformer-Based API Call Sequence Modeling for Dynamic Malware Detection

Adel Elmaghraby, Noureldin Said Youssef, Nour Elbaraway
1 citations
Advanced Malware Detection Techniques
1.49
article

Transformer-Based API Call Sequence Modeling for Dynamic Malware Detection

Adel Elmaghraby, Noureldin Said Youssef, Nour Elbaraway
article en
1 citations

Abstract

Dynamic malware detection is based on analyzing behavioral patterns captured in execution logs. In this study, we propose a hybrid deep learning approach that integrates neural networks for feature extraction with BERT for API call sequence classification to detect and classify malware. We utilize execution logs generated from the Speakeasy emulator, which provides behavioral reports for 93,533 32-bit Portable Executables (PEs). Our methodology begins with data preprocessing and filtering, followed by feature extraction driven by neural networks to capture meaningful representations of malware behavior. The extracted features are then fed into a BERT-based sequence classifier trained on ordered API call sequences to identify malware types. Experimental results demonstrate an overall accuracy of 85% on the test dataset. The model achieves improvements in F1-score for clean files (0.91) and significant enhancements for various malware types, including Trojan (0.83), Backdoor (0.90), and Ransomware (0.85). These findings highlight the effectiveness of combining neural feature extraction with transformer-based sequence learning for dynamic malware detection.

University of Louisville (US)
Openalex Percentile: Top 20%
Advanced Malware Detection Techniques
1.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.