Malware Detection, Classification and Mitigation Using Machine Learning Algorithms: A Comparative Study on PE Header, Temporal and API Call Datasets with a Risk Based Quarantine Policy

Malware detectors built with machine learning often report accuracy above 99 percent, yet such figures rarely say how the detector will perform on next year's malware or what should happen to a flagged file. This paper presents CyberGuard, a web based malware detection, classification and mitigation system developed at the University of Port Harcourt, Nigeria, which parses Windows Portable Executable (PE) files statically without executing them, converts them to 2,381 EMBER features, scores them with a machine learning model, maps malicious files to a category, recommends a response and can lock suspicious files in a read only quarantine vault. We then evaluate the methods the system depends on with three public datasets. On 5,207 files of the ClaMP PE header dataset, ten algorithms were compared with five fold cross validation: Random Forest, LightGBM and XGBoost reached about 99.2 percent accuracy with a ROC AUC of 0.999 and false positive rates near 1.1 percent, while logistic regression, the algorithm in the deployed engine, reached 96.0 percent with 4.3 percent false positives. A single feature audit showed that the header checksum alone separates the classes with a ROC AUC of 0.81, a shortcut that reflects how benign files were collected. On 43,641 files of the Brazilian malware dataset collected from 2013 to 2020, a random split suggested that LightGBM detects 97.8 percent of malware at a 1 percent false positive rate, but a model frozen after 2013 detected only 76.3 percent on average from 2015 to 2020, and logistic regression fell to 59.0 percent by 2020; yearly retraining raised the averages to 86.1 and 78.8 percent. On the Mal API 2019 dataset, after removing 643 duplicate and 48 conflicting API call sequences, eight algorithms assigned malware to eight families with at most 65.5 percent accuracy (LightGBM, macro F1 0.667). We propose a three band mitigation policy that quarantines files above a threshold set at a 1 percent benign false positive rate, sends uncertain files to an analyst and allows the rest, together with a family based response playbook aligned with NIST guidance and MITRE ATT&CK, and we give recommendations for replacing the deployed engine, reporting accuracy on time ordered data and retraining regularly.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-24
DOI
https://doi.org/10.21203/rs.3.rs-11816869/v1
Primary Topic
Advanced Malware Detection Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Malware Detection, Classification and Mitigation Using Machine Learning Algorithms: A Comparative Study on PE Header, Temporal and API Call Datasets with a Risk Based Quarantine Policy

Nnaemeka Kingsley Ugwumba, Clement Barisua Ndeekor, Ubuara Precious Oghenero
1 links
Research Square
Advanced Malware Detection Techniques
preprint

Malware Detection, Classification and Mitigation Using Machine Learning Algorithms: A Comparative Study on PE Header, Temporal and API Call Datasets with a Risk Based Quarantine Policy

Nnaemeka Kingsley Ugwumba, Clement Barisua Ndeekor, Ubuara Precious Oghenero
preprint en

Abstract

Malware detectors built with machine learning often report accuracy above 99 percent, yet such figures rarely say how the detector will perform on next year's malware or what should happen to a flagged file. This paper presents CyberGuard, a web based malware detection, classification and mitigation system developed at the University of Port Harcourt, Nigeria, which parses Windows Portable Executable (PE) files statically without executing them, converts them to 2,381 EMBER features, scores them with a machine learning model, maps malicious files to a category, recommends a response and can lock suspicious files in a read only quarantine vault. We then evaluate the methods the system depends on with three public datasets. On 5,207 files of the ClaMP PE header dataset, ten algorithms were compared with five fold cross validation: Random Forest, LightGBM and XGBoost reached about 99.2 percent accuracy with a ROC AUC of 0.999 and false positive rates near 1.1 percent, while logistic regression, the algorithm in the deployed engine, reached 96.0 percent with 4.3 percent false positives. A single feature audit showed that the header checksum alone separates the classes with a ROC AUC of 0.81, a shortcut that reflects how benign files were collected. On 43,641 files of the Brazilian malware dataset collected from 2013 to 2020, a random split suggested that LightGBM detects 97.8 percent of malware at a 1 percent false positive rate, but a model frozen after 2013 detected only 76.3 percent on average from 2015 to 2020, and logistic regression fell to 59.0 percent by 2020; yearly retraining raised the averages to 86.1 and 78.8 percent. On the Mal API 2019 dataset, after removing 643 duplicate and 48 conflicting API call sequences, eight algorithms assigned malware to eight families with at most 65.5 percent accuracy (LightGBM, macro F1 0.667). We propose a three band mitigation policy that quarantines files above a threshold set at a 1 percent benign false positive rate, sends uncertain files to an analyst and allows the rest, together with a family based response playbook aligned with NIST guidance and MITRE ATT&CK, and we give recommendations for replacing the deployed engine, reporting accuracy on time ordered data and retraining regularly.

Research Square
University of Port Harcourt (NG)
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.

Laika access coming soon