Prompt Engineering-assisted Malware Dynamic Analysis Using GPT-4
Not on the map. Why?
Abstract (arXiv)
Dynamic analysis methods effectively identify shelled, wrapped, or obfuscated malware, thereby preventing them from invading computers. As a significant representation of dynamic malware behavior, the API (Application Programming Interface) sequence, comprised of consecutive API calls, has progressively become the dominant feature of dynamic analysis methods. Though there have been numerous deep learning models for malware detection based on API sequences, the quality of API call representations produced by those models is limited. These models cannot generate representations for unknown API calls, which weakens both the detection performance and the generalization. Further, the concept drift phenomenon of API calls is prominent. To tackle these issues, we introduce a prompt engineering-assisted malware dynamic analysis using GPT-4. In this method, GPT-4 is employed to create explanatory text for each API call within the API sequence. Afterward, the pre-trained language model BERT is used to obtain the representation of the text, from which we derive the representation of the API sequence. Theoretically, this proposed method is capable of generating representations for all API calls, excluding the necessity for dataset training during the generation process. Utilizing the representation, a CNN-based detection model is designed to extract the feature. We adopt five benchmark datasets to validate the performance of the proposed model. The experimental results reveal that the proposed detection algorithm performs better than the state-of-the-art method (TextCNN). Specifically, in cross-database experiments and few-shot learning experiments, the proposed model achieves excellent detection performance and almost a 100% recall rate for malware, verifying its superior generalization performance. The code is available at: github.com/yan-scnu/Prompted_Dynamic_Detection.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 19 of its 54 references that are in the map. First posted on arXiv 13 Dec 2023.
Builds on
19 of 54 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
7 more
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2023The Dawn of LMMs: Preliminary Explorations with GPT-4V(ision)cited by 677
- 2020Learning under Concept Drift: A Reviewcited by 470
- 2023PromptCARE: Prompt Copyright Protection by Watermark Injection and Verificationcited by 30
- 2019Dynamic Malware Analysis with Feature Engineering and Feature Learningcited by 23
- 2021Malware Classification Using Long Short-Term Memory Modelscited by 7
- 2021An Ensemble of Pre-trained Transformer Models For Imbalanced Multiclass Malware Classificationcited by 5
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 2.
7 papers.
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
- 2024DoLLM: How Large Language Models Understanding Network Flow Data to Detect Carpet Bombing DDoScited by 4
- 2025OntoLogX: Ontology-Guided Knowledge Graph Extraction from Cybersecurity Logs with Large Language Modelscited by 3
- 2025Tell-Tale Watermarks for Explanatory Reasoning in Synthetic Media Forensicscited by 1
- 2026Moirae: A Multimodal Agent Collaborative Framework for Dynamic Android Malware Detectioncited by 0
- 2026Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attributioncited by 0
- 2026Cost-Aware Hierarchical Multi-Agent Ransomware Detection and Family Attribution4 Sep 2026
- 2026Moirae: A Multimodal Agent Collaborative Framework for Dynamic Android Malware Detection28 Aug 2026
- 2025OntoLogX: Ontology-Guided Knowledge Graph Extraction from Cybersecurity Logs with Large Language Models1 Oct 2025
- 2025Tell-Tale Watermarks for Explanatory Reasoning in Synthetic Media Forensics6 Sep 2025
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysis5 Feb 2025
- 2024DoLLM: How Large Language Models Understanding Network Flow Data to Detect Carpet Bombing DDoS13 May 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024