← Latest papers
💻 computer science

Image-Based Malware Family Classification: A Corrected, Controlled Comparison of CNN, CNN-to-LSTM and Fully Connected Networks

This study presents a corrected, controlled comparison of CNN, ANN, and CNN-to-LSTM architectures for image-based malware family classification, demonstrating that CNNs achieve high accuracy (94.24%) while ANNs fail significantly and the addition of an LSTM stage provides no statistically significant improvement over CNNs alone.

Original author: Abiola Richie Imafidon

Published 2026-11-25
📖 5 min read🧠 Deep dive

Original author: Abiola Richie Imafidon

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 author. For technical accuracy, refer to the original paper. Read full disclaimer

In the shadow of the digital world, a constant battle plays out between those who write malicious software and those who try to stop it. This malicious software, known as malware, is designed to steal secrets, lock up files for ransom, or turn computers into mindless workers for a criminal network. For decades, defenders have relied on a simple strategy: keeping a massive list of known bad files and checking every new file against that list. But criminals are clever; they take an existing piece of malware, wrap it in a new layer, or change a few lines of code to create a fresh variant that looks different to a computer but acts the same. Traditional lists struggle with these new faces. To solve this, researchers have turned to a different way of seeing the problem. Instead of looking at the invisible code, they convert the raw data of a file into a picture. When the millions of tiny numbers that make up a program are arranged as shades of gray, they form a unique texture, much like the grain of wood or the pattern of a fingerprint. These images reveal the family a piece of malware belongs to, even if the criminal has tried to disguise it. This visual approach allows computers to learn the shape of danger without needing to understand the complex language of code.

A recent study set out to find the best way for a computer to learn these shapes. The researchers gathered a collection of nearly nine thousand images, each representing a different Windows malware file from nine distinct families. These families ranged from large, common groups to very small, rare ones. The team then tested three different types of artificial intelligence designs to see which could sort these images into their correct families most accurately. The first design was a fully connected network, a type of system that looks at an image by flattening it into a single long list of numbers, ignoring how the pixels sit next to each other. The second was a convolutional neural network, a system specifically built to recognize patterns and textures in images, much like the human eye recognizes a face by its features rather than a list of dots. The third design was a hybrid approach that took the output of the second system and passed it through a layer designed to remember sequences, hoping this extra step would catch subtle details the first system missed.

The results were clear and decisive. The system designed to recognize patterns in images, the convolutional network, proved to be the most effective tool. It correctly identified the family of the malware in more than ninety-four percent of the cases. It was particularly skilled at spotting the most common families, getting almost every single one right, and it performed well even on the smaller, rarer groups. In stark contrast, the system that flattened the images into a list performed terribly. It managed to guess correctly only about thirty percent of the time, a score barely better than simply guessing the most common family for every single file. This failure happened because the system lost the spatial arrangement of the data; by breaking the picture apart, it could no longer see the textures that defined the malware families. It essentially gave up and started guessing the most likely answer for everything, which worked for the big groups but failed completely for the rest.

The researchers also tested whether adding the sequence-remembering layer to the successful image system would make it even better. They found that this extra step provided no real benefit. The system with the extra layer performed almost exactly the same as the image system alone, with any tiny difference falling within the normal range of random variation seen in computer experiments. This suggests that once the image system has done its job of recognizing the visual patterns, there is no hidden sequence of events left to analyze in that specific format. The study also took the time to correct a mistake from an earlier version of this work, where the computer's guesses had been accidentally matched with the wrong labels, making the results look far worse than they actually were. Once fixed, the data confirmed that the image-based approach is robust and reliable for this specific task.

The study does have its boundaries. The tests were run on a specific set of older files, and the researchers did not check if these systems could tell the difference between a malicious file and a safe, normal file. They also did not test how well the systems would hold up if the malware was specifically designed to trick the computer or if the files were heavily compressed. Furthermore, the images were resized to a standard size, which might have distorted some of the details in the largest files. Despite these limits, the findings offer a clear path forward. They show that for sorting malware into families based on their visual structure, a system that understands patterns is essential, while a system that ignores the layout of the data is ineffective. The work also highlights the importance of careful checking in computer science, proving that even a small error in how results are read can lead to a completely wrong conclusion. By clarifying which tools work and which do not, this research helps build a stronger foundation for the next generation of digital defense.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →