Malware Detection based on API calls

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fellicious, Christofer, Bischof, Manuel, Mayer, Kevin, Eikenberg, Dorian, Hausotte, Stefan, Reiser, Hans P., Granitzer, Michael
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913696220971008
author Fellicious, Christofer
Bischof, Manuel
Mayer, Kevin
Eikenberg, Dorian
Hausotte, Stefan
Reiser, Hans P.
Granitzer, Michael
author_facet Fellicious, Christofer
Bischof, Manuel
Mayer, Kevin
Eikenberg, Dorian
Hausotte, Stefan
Reiser, Hans P.
Granitzer, Michael
contents Malware attacks pose a significant threat in today's interconnected digital landscape, causing billions of dollars in damages. Detecting and identifying families as early as possible provides an edge in protecting against such malware. We explore a lightweight, order-invariant approach to detecting and mitigating malware threats: analyzing API calls without regard to their sequence. We publish a public dataset of over three hundred thousand samples and their function call parameters for this task, annotated with labels indicating benign or malicious activity. The complete dataset is above 550GB uncompressed in size. We leverage machine learning algorithms, such as random forests, and conduct behavioral analysis by examining patterns and anomalies in API call sequences. By investigating how the function calls occur regardless of their order, we can identify discriminating features that can help us identify malware early on. The models we've developed are not only effective but also efficient. They are lightweight and can run on any machine with minimal performance overhead, while still achieving an impressive F1-Score of over 85\%. We also empirically show that we only need a subset of the function call sequence, specifically calls to the ntdll.dll library, to identify malware. Our research demonstrates the efficacy of this approach through empirical evaluations, underscoring its accuracy and scalability. The code is open source and available at Github along with the dataset on Zenodo.
format Preprint
id arxiv_https___arxiv_org_abs_2502_12863
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Malware Detection based on API calls
Fellicious, Christofer
Bischof, Manuel
Mayer, Kevin
Eikenberg, Dorian
Hausotte, Stefan
Reiser, Hans P.
Granitzer, Michael
Cryptography and Security
Machine Learning
Malware attacks pose a significant threat in today's interconnected digital landscape, causing billions of dollars in damages. Detecting and identifying families as early as possible provides an edge in protecting against such malware. We explore a lightweight, order-invariant approach to detecting and mitigating malware threats: analyzing API calls without regard to their sequence. We publish a public dataset of over three hundred thousand samples and their function call parameters for this task, annotated with labels indicating benign or malicious activity. The complete dataset is above 550GB uncompressed in size. We leverage machine learning algorithms, such as random forests, and conduct behavioral analysis by examining patterns and anomalies in API call sequences. By investigating how the function calls occur regardless of their order, we can identify discriminating features that can help us identify malware early on. The models we've developed are not only effective but also efficient. They are lightweight and can run on any machine with minimal performance overhead, while still achieving an impressive F1-Score of over 85\%. We also empirically show that we only need a subset of the function call sequence, specifically calls to the ntdll.dll library, to identify malware. Our research demonstrates the efficacy of this approach through empirical evaluations, underscoring its accuracy and scalability. The code is open source and available at Github along with the dataset on Zenodo.
title Malware Detection based on API calls
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2502.12863