An LLM-Enhanced Code-Space Adversarial Attack Method Against Malware Detection Models

Adversarial attacks on machine learning–based malware detection models could enable attackers to craft evasive malware variants that remain functional while bypassing detection. However, existing methods primarily focus on feature-space adversarial attacks, lacking effective mapping from feature-space to code-space (i.e., the modifications of source code of malware to implement the adversarial attacks), which limits its practical application. To address this issue, this paper proposes an LLM (Large Language Model) enhanced code-space adversarial attack method against the dynamic malware detection models, achieving end-to-end generation of executable and source code-level adversarial samples. First, we apply a feature-space adversarial attack algorithm to perturb the feature vectors and pinpoint the changes of dynamic behaviors (e.g., API calls). Second, we propose a prompt mechanism guided by the dynamic behavior changes and code generation hints to automatically modify the source code of malware samples by leveraging an LLM. Experiments on five types of typical malware demonstrate that the proposed method can effectively modify the source code of malware based on the adversarial perturbations, and consistently outperforms existing approaches in terms of evasion capability and functionality retention.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2026-05-22
DOI
https://doi.org/10.1142/s0218194026500427
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An LLM-Enhanced Code-Space Adversarial Attack Method Against Malware Detection Models

Duman Imanmadi, Jiefan Qiu, Mingqi Lv, Akhylbek Kurishbayev et al.
International Journal of Software Engineering and Knowledge Engineering
Advanced Malware Detection Techniques
article

An LLM-Enhanced Code-Space Adversarial Attack Method Against Malware Detection Models

Duman Imanmadi, Jiefan Qiu, Mingqi Lv, Akhylbek Kurishbayev, Tiantian Zhu, Shengduo Gan, Jinyin Chen, Huan Zeng, Tieming Chen
article en

Abstract

Adversarial attacks on machine learning–based malware detection models could enable attackers to craft evasive malware variants that remain functional while bypassing detection. However, existing methods primarily focus on feature-space adversarial attacks, lacking effective mapping from feature-space to code-space (i.e., the modifications of source code of malware to implement the adversarial attacks), which limits its practical application. To address this issue, this paper proposes an LLM (Large Language Model) enhanced code-space adversarial attack method against the dynamic malware detection models, achieving end-to-end generation of executable and source code-level adversarial samples. First, we apply a feature-space adversarial attack algorithm to perturb the feature vectors and pinpoint the changes of dynamic behaviors (e.g., API calls). Second, we propose a prompt mechanism guided by the dynamic behavior changes and code generation hints to automatically modify the source code of malware samples by leveraging an LLM. Experiments on five types of typical malware demonstrate that the proposed method can effectively modify the source code of malware based on the adversarial perturbations, and consistently outperforms existing approaches in terms of evasion capability and functionality retention.

International Journal of Software Engineering and Knowledge Engineering
Twitter (United States) (US)
Peace, Justice and strong institutions
Openalex Percentile: Top 3%
Advanced Malware Detection Techniques
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.