Dynamic malware detection based on supervised contrastive learning

IF 4 3区 计算机科学 Q1 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
Shumian Yang, Yongqi Yang, Dawei Zhao, Lijuan Xu, Xin Li, Fuqiang Yu, Jiarui Hu
{"title":"Dynamic malware detection based on supervised contrastive learning","authors":"Shumian Yang,&nbsp;Yongqi Yang,&nbsp;Dawei Zhao,&nbsp;Lijuan Xu,&nbsp;Xin Li,&nbsp;Fuqiang Yu,&nbsp;Jiarui Hu","doi":"10.1016/j.compeleceng.2025.110108","DOIUrl":null,"url":null,"abstract":"<div><div>Application Programming Interface (API) calls record interactions between a program and the operating system or other programs during runtime. Due to this precise tracking capability, API call information is extensively utilized in malware detection. However, most approaches only focus on the API names or simply combine them with API parameters, leading to insufficient semantic information extraction. Additionally, with the continuous development of network technology, the behavioral feature differences between malware and benign software are gradually blurring, which makes it difficult to detect hard samples (e.g., well-disguised or atypical malware) in static analysis or simple behavioral patterns. Therefore, in this paper, we propose DMASCL, a framework that utilizes <u>D</u>ynamic <u>M</u>alware Analysis based on <u>A</u>PI calls and <u>S</u>upervised <u>C</u>ontrastive <u>L</u>earning techniques, which encodes semantic as well as statistical features in each sample, dynamically compares samples from different categories, learns inter-sample differences and performs classification. In particular, we combine API names with API parameters to construct API sentences containing rich semantic information, and propose a hybrid feature encoder for obtaining the semantics and statistical features of API parameters. We then apply supervised contrastive learning techniques for further feature learning, utilizing Gaussian noise to construct contrast tasks. The model is optimized by combining cross-entropy loss for classification with supervised contrastive loss to reinforce relationships between samples, thus enhancing the model’s ability to recognize malicious behavior. Our method achieves a 98.42% F1-score and a 98.03% recall in Dataset 1. It achieves a 99.59% F1-score and a 98.86% recall in Dataset 2. The experimental results show an increase in accuracy of 1.05% and 2.27%, respectively, compared to the state-of-the-art method.</div></div>","PeriodicalId":50630,"journal":{"name":"Computers & Electrical Engineering","volume":"123 ","pages":"Article 110108"},"PeriodicalIF":4.0000,"publicationDate":"2025-02-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers & Electrical Engineering","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0045790625000515","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

Abstract

Application Programming Interface (API) calls record interactions between a program and the operating system or other programs during runtime. Due to this precise tracking capability, API call information is extensively utilized in malware detection. However, most approaches only focus on the API names or simply combine them with API parameters, leading to insufficient semantic information extraction. Additionally, with the continuous development of network technology, the behavioral feature differences between malware and benign software are gradually blurring, which makes it difficult to detect hard samples (e.g., well-disguised or atypical malware) in static analysis or simple behavioral patterns. Therefore, in this paper, we propose DMASCL, a framework that utilizes Dynamic Malware Analysis based on API calls and Supervised Contrastive Learning techniques, which encodes semantic as well as statistical features in each sample, dynamically compares samples from different categories, learns inter-sample differences and performs classification. In particular, we combine API names with API parameters to construct API sentences containing rich semantic information, and propose a hybrid feature encoder for obtaining the semantics and statistical features of API parameters. We then apply supervised contrastive learning techniques for further feature learning, utilizing Gaussian noise to construct contrast tasks. The model is optimized by combining cross-entropy loss for classification with supervised contrastive loss to reinforce relationships between samples, thus enhancing the model’s ability to recognize malicious behavior. Our method achieves a 98.42% F1-score and a 98.03% recall in Dataset 1. It achieves a 99.59% F1-score and a 98.86% recall in Dataset 2. The experimental results show an increase in accuracy of 1.05% and 2.27%, respectively, compared to the state-of-the-art method.
求助全文
约1分钟内获得全文 求助全文
来源期刊
Computers & Electrical Engineering
Computers & Electrical Engineering 工程技术-工程:电子与电气
CiteScore
9.20
自引率
7.00%
发文量
661
审稿时长
47 days
期刊介绍: The impact of computers has nowhere been more revolutionary than in electrical engineering. The design, analysis, and operation of electrical and electronic systems are now dominated by computers, a transformation that has been motivated by the natural ease of interface between computers and electrical systems, and the promise of spectacular improvements in speed and efficiency. Published since 1973, Computers & Electrical Engineering provides rapid publication of topical research into the integration of computer technology and computational techniques with electrical and electronic systems. The journal publishes papers featuring novel implementations of computers and computational techniques in areas like signal and image processing, high-performance computing, parallel processing, and communications. Special attention will be paid to papers describing innovative architectures, algorithms, and software tools.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信