Do Fear the REAPIR: Adversarial Malware from API Replacement

As the security industry increasingly uses machine learning in its malware detection pipelines, the threat of carefully crafted adversarial inputs designed to bypass detection has become worrying. A promising approach to malware detection is examining API calls, as they show insights into the program behavior, and nearly all malicious activities require interfacing with the operating system in some way. Researchers have thus examined the threat of adversarial examples against API-call-based malware detectors, with attacks that rely entirely upon the insertion of additional API calls into the malware. While this is effective against malware classifiers, the inserted API calls are non-functional and thus can be removed before detection is attempted, making the attacks fail in the context of a comprehensive malware detection pipeline. In this work, we present REAPIR (Resource-efficient API call Replacements), a framework to generate adversarial malware by replacing existing API calls with other ones with similar functionality instead of inserting inert ones. Since substituted calls perform real functions, they cannot be detected and removed. Using REAPIR, we were able to evade a 97 % accurate classifier 82 % of the time. In addition to being computationally efficient, our attack is also query efficient, being able to evade detection 60 % of time with only ten queries to the target model. Our work highlights the need to develop classifiers robust against this type of adversarial attack.

Authors

Institutions

Publication Details

Published
2025-06-30
DOI
https://doi.org/10.1109/eurospw67616.2025.00013
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

Do Fear the REAPIR: Adversarial Malware from API Replacement

Matthew Wright, Rayan Mosli, Yin Pan, Sirapat Thianphan et al.
Advanced Malware Detection Techniques
article

Do Fear the REAPIR: Adversarial Malware from API Replacement

Matthew Wright, Rayan Mosli, Yin Pan, Sirapat Thianphan, Luke Kurlandski
article en

Abstract

As the security industry increasingly uses machine learning in its malware detection pipelines, the threat of carefully crafted adversarial inputs designed to bypass detection has become worrying. A promising approach to malware detection is examining API calls, as they show insights into the program behavior, and nearly all malicious activities require interfacing with the operating system in some way. Researchers have thus examined the threat of adversarial examples against API-call-based malware detectors, with attacks that rely entirely upon the insertion of additional API calls into the malware. While this is effective against malware classifiers, the inserted API calls are non-functional and thus can be removed before detection is attempted, making the attacks fail in the context of a comprehensive malware detection pipeline. In this work, we present REAPIR (Resource-efficient API call Replacements), a framework to generate adversarial malware by replacing existing API calls with other ones with similar functionality instead of inserting inert ones. Since substituted calls perform real functions, they cannot be detected and removed. Using REAPIR, we were able to evade a 97 % accurate classifier 82 % of the time. In addition to being computationally efficient, our attack is also query efficient, being able to evade detection 60 % of time with only ten queries to the target model. Our work highlights the need to develop classifiers robust against this type of adversarial attack.

King Abdulaziz University (SA)
Openalex Percentile: Top 72%
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.

Do Fear the REAPIR: Adversarial Malware from API Replacement — Matthew Wright, Rayan Mosli, et al. · (2025) | TGRS Research Map | TGRS