← Latest papers
💻 computer science

Proactive Ransomware Family Detection from Pre-Encryption API Behavior Using ANN–LightGBM Stacking

This study demonstrates that a heterogeneous ANN–LightGBM stacking model utilizing 23 pre-encryption Windows API indicators can achieve high accuracy (95.20%) in classifying ransomware families and benign software, offering a proactive defense mechanism that outperforms standalone neural architectures while highlighting the need for further external validation.

Original authors: Omar Said Kamel¹, Hamada Nayel¹˒², Rasha Orban¹

Published 2026-08-25
📖 4 min read☕ Coffee break read

Original authors: Omar Said Kamel¹, Hamada Nayel¹˒², Rasha Orban¹

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

In the digital world, a specific type of malicious software known as ransomware acts as a digital hostage-taker. Once it infiltrates a computer, it locks away the user's files, demanding payment for their release. For years, security experts have tried to stop these attacks by looking for the unique digital fingerprints of known bad programs. However, criminals are constantly changing these fingerprints, making old methods less effective. A more modern approach involves watching how a program behaves the moment it starts running. Before a ransomware program begins its destructive work of encrypting files, it must first perform a series of preparatory steps, such as checking the computer's settings or looking for other programs. These early actions leave a trail of digital footprints that can reveal the program's true nature before any damage is done. The challenge lies in distinguishing these suspicious early steps from the normal, harmless actions that every computer program performs daily.

A team of researchers at Benha University set out to solve this problem by creating a system that can identify different families of ransomware based on these very early behaviors. They focused on a specific window of time: the moments before the actual file encryption begins. To do this, they gathered a collection of 3,432 computer programs, including five distinct types of ransomware and a group of safe, benign programs. Each program was analyzed for 23 specific actions it took when it first started. These actions involved the program asking the computer for information about its own name, checking the network, looking at the registry, or trying to access memory. The researchers turned these observations into a simple list of yes-or-no indicators, creating a compact profile for each program.

The researchers then tested several different types of artificial intelligence models to see which one could best learn from these short lists of actions. They tried five different neural network designs, which are computer systems inspired by the human brain, including some that are typically used for processing long sequences of data like speech or text. They also tested a method that removed a few of the less important actions to see if a smaller list would make the AI smarter. The results showed that for this specific type of short, simple data, the most straightforward neural network design actually performed the best on its own, correctly identifying the program type about 94 percent of the time. Interestingly, the more complex models designed for long sequences did not offer a significant advantage, suggesting that for this specific task, a simpler approach was more effective.

To push the accuracy even higher, the team combined two different types of AI models into a single, layered system. They used the straightforward neural network to make an initial guess about the program's identity, and then passed that guess to a second, powerful tree-based model to refine the final decision. This combined approach, known as stacking, improved the system's performance, raising the accuracy to just over 95 percent. The system was particularly good at distinguishing between the different families of ransomware, with AUC scores ranging from 0.92 to 0.99 for each specific type. However, the system still made some mistakes, occasionally confusing a safe program with a ransomware family or mixing up two different types of ransomware with each other.

The study concludes that watching these early, low-level actions is a viable way to catch ransomware before it causes harm, and that combining different AI methods can make detection more reliable. Yet, the researchers are careful to note that this success was achieved in a controlled environment using a specific set of known programs. The system has not yet been tested against new, unseen types of ransomware or in the chaotic, real-time environment of a busy corporate network. While the results are promising, the work serves as a strong proof of concept rather than a finished product ready for immediate deployment. It demonstrates that with the right data and a smart combination of tools, it is possible to spot the subtle signs of a digital attack before the first file is locked.

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 →