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
This paper introduces CyberGuard, a web-based malware detection and mitigation system developed at the University of Port Harcourt that utilizes machine learning on PE header and API call features, and evaluates its performance across three datasets to demonstrate the critical importance of temporal validation, regular retraining, and a risk-based quarantine policy for maintaining detection efficacy against evolving threats.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Computers are powerful tools, but they are also vulnerable to invisible intruders. These intruders, known as malware, are programs designed to steal data, lock files, or take control of a machine. For decades, the primary defense against them has been a simple matching game: security software keeps a list of known bad programs and blocks anything that looks exactly like them. However, this method fails when a bad program changes its appearance just enough to avoid the list. A newer approach uses machine learning, where a computer program studies thousands of examples to learn the subtle patterns that separate safe software from dangerous code. The challenge for experts is not just building a detector that works well on old data, but creating one that remains accurate as new threats emerge and deciding exactly what to do when a suspicious file is found.
Researchers at the University of Port Harcourt in Nigeria set out to build and test a system called CyberGuard to address these challenges. They created a web-based tool that can examine Windows computer files without ever running them, a safety measure that prevents the file from causing harm during the check. The system reads the file's internal structure, converts that information into a long list of numbers, and uses a mathematical model to score how likely the file is to be malicious. If the score is high, the system can automatically move the file to a secure, locked storage area where it cannot be executed, or it can flag it for a human expert to review. The team then tested the methods behind this system using three different public collections of data to see how well the technology holds up over time and how it handles different types of file information.
The researchers first examined how well various computer learning algorithms could spot malware using only the static information found in a file's header, which is like the label on a package. They compared ten different methods using a dataset of over five thousand files. The results showed that three specific types of tree-based algorithms performed the best, correctly identifying nearly 99.2 percent of the malicious files while mistakenly flagging only about 1.1 percent of safe files. The algorithm currently used in the deployed CyberGuard system, a simpler linear model, was less accurate, missing more threats and raising more false alarms. A closer look at the data revealed a surprising shortcut: the system was partly relying on a specific field called a checksum, which is a digital signature often found in safe files from large software companies but rarely in malware. This meant the system was learning to recognize where the safe files came from rather than just what malware looks like, a flaw that could cause it to miss new threats or flag safe files from smaller developers.
To see if these detectors would survive the test of time, the team moved to a second experiment using a massive collection of files gathered over eight years, from 2013 to 2020. They simulated a real-world scenario where a security system is trained on old data and then asked to judge new files that arrive years later. When they froze a model trained only on 2013 data and tested it on files from 2020, its ability to catch malware dropped significantly, falling from an AUC of 0.98 down to about 0.59 for some methods. This decline happened because the nature of malware changed over the years, and the old model could not recognize the new patterns. However, when the researchers updated the model every year with new data, its performance recovered, catching about 86 percent of the new threats. This proved that a security system cannot be set and forgotten; it must be regularly retrained to stay effective.
The final part of the study looked at whether the system could identify the specific family of a virus, such as ransomware or spyware, by analyzing the sequence of commands the file tries to execute. This is harder than simply spotting that a file is bad. Using a dataset of thousands of command sequences, the best algorithms managed to correctly group the malware into its family about 65 percent of the time. While this is far better than random guessing, it means that about one in three files will be misidentified. The researchers noted that different families often behave in similar ways, making them difficult to distinguish without running the file in a controlled environment, which the web-based system avoids for safety.
Based on these findings, the authors proposed a practical strategy for handling suspicious files that balances safety with efficiency. Instead of a simple yes-or-no decision, they suggested a three-tier approach. Files that are clearly dangerous are automatically locked away. Files that are clearly safe are allowed to pass. But for the uncertain middle ground, the system sends the file to a human analyst for review. This ensures that the system does not block legitimate software too often, while still catching the vast majority of threats. The study concludes that while machine learning is a powerful tool for cybersecurity, its success depends on using the right algorithms, constantly updating the training data to match new threats, and having a clear plan for what to do when the computer is unsure. For organizations in Nigeria and beyond, this means that a web-based scanner can be a valuable second opinion, but only if it is maintained with fresh data and a clear understanding of its limits.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.