Mobile Ransomware Detection Leveraging Swarm Intelligence and Machine Learning: A KELM-Based Approach

Ruba Abu Khurma, Moutaz Alazab, Yaning Xiao, Keshav Sood, Shui Yu, Tony Jan, Mohd Asif Shah, Saurav MallikResearch Square 2024

TL;DR

Researchers have developed a high-performance hybrid model for Android ransomware detection that combines the speed of Kernel Extreme Learning Machines (KELM) with the "hunting" efficiency of Sand Cat Swarm Optimization (SCSO). By integrating a logarithmic spiral operator from Moth Flame Optimization, the system achieves near-perfect detection rates while significantly reducing the computational burden on mobile devices through feature optimization and cloud offloading.

What Problem Does This Paper Address?

Android dominates the global smartphone market, making it a prime target for ransomware—malware that encrypts user data and demands payment for its release. Traditional security measures often rely on "signatures" (digital fingerprints of known threats), but modern attackers use obfuscation and polymorphism to bypass these filters.

While Machine Learning (ML) offers a more flexible "anomaly-based" approach, it faces two major hurdles:

  1. High Dimensionality: Mobile apps generate hundreds of potential features (permissions, API calls), many of which are redundant or noisy.
  2. Hyperparameter Tuning: Algorithms like KELM require precise internal settings to work effectively, which is often a "black box" process.

The authors tackle these issues by creating a system that simultaneously selects the most important features and tunes the ML model's parameters using nature-inspired swarming logic.

Methods

The paper introduces a hybrid framework called SCSO-MFO-KELM. The architecture is built on three pillars:

  • Kernel Extreme Learning Machine (KELM): Unlike deep neural networks that require massive datasets and long training times, KELM is a single-layer model known for its extreme speed and efficiency with smaller datasets. It handles the actual classification (Ransomware vs. Benign).
  • Sand Cat Swarm Optimization (SCSO): This is a metaheuristic algorithm inspired by how sand cats forage and detect low-frequency sounds in the desert. In this paper, the "cats" search the mathematical space for the optimal subset of features and the best KELM hyperparameters.
  • The MFO Logarithmic Operator: To prevent the "cats" from getting stuck in local optima (mathematical dead ends), the researchers hybridized SCSO with a spiral search pattern from the Moth Flame Optimization (MFO) algorithm. This ensures a better balance between exploring new areas of the search space and exploiting known good solutions.

The proposed system is designed to run on a cloud platform. Mobile devices extract features from apps and send them to the cloud, offloading the heavy computational work to preserve the phone's battery and performance.

Datasets

The study utilized a balanced dataset of 1,000 Android applications:

  • 500 Ransomware samples: Collected from specialized security projects like Koodous, VirusTotal, HelDroid, and RansomProper.
  • 500 Benign samples: Obtained directly from the official Google Play Store.

The researchers extracted 314 features per app, consisting of 131 distinct Android permissions and 199 API packages. After initial frequency analysis, they eliminated features that appeared in less than 2% of the samples to reduce noise.

Key Insights and Ideas

  • Simultaneous Optimization is Key: Most researchers perform feature selection and hyperparameter tuning as separate steps. This paper argues that doing them together (using the SCSO swarm) leads to a more "harmonized" model where the features and the algorithm are perfectly matched.
  • The "Spiral" Advantage: Standard swarm algorithms often converge too quickly on a mediocre solution. By adding the MFO logarithmic spiral, the algorithm mimics a more sophisticated hunting pattern, allowing it to "circle back" and find better global solutions.
  • Identifying the "Red Flags": The study performed a significance analysis to see which features actually matter. They found that permissions like WAKE_LOCK (keeping the processor on) and BODY_SENSORS, along with API calls like ORG-XML-SAX, were high-significance indicators of malicious intent.
  • Efficiency via Reduction: The model achieved a 61.2% reduction in the number of features required, proving that you don't need all the data to make an accurate decision—you just need the right data.

Key Results

The hybrid SCSO-MFO-KELM model demonstrated exceptional performance across multiple metrics, outperforming traditional classifiers like Naive Bayes, Random Forest, and standard KNN:

  • Accuracy: Reached 100% in the final comparative evaluation (Table 9).
  • Feature Reduction: Reduced the average number of features from 314 down to approximately 132.
  • Speed: The model trained significantly faster than deep learning alternatives (e.g., 20 seconds vs. 80 seconds for a standard DNN on similar hardware).
  • False Alarm Rate: Achieved a very low False Alarm (FA) rate (0.010), which is critical for preventing user frustration with "crying wolf" security apps.

Limitations and Future Work

While the results are impressive, the authors note several areas for further exploration:

  • Scalability: The model was tested on a dataset of 1,000 samples. Its performance on "Big Data" scales (millions of apps) remains to be seen.
  • Scope of Malware: The current study focuses specifically on ransomware. Future work aims to expand the detection capabilities to include Trojans, Botnets, and Spyware.
  • Evolving Threats: As attackers develop "zero-day" ransomware that specifically tries to evade ML models, the authors suggest exploring even more sophisticated deep learning architectures and metaheuristic algorithms to stay one step ahead.

Summary updated

Abstract

<title>Abstract</title> Mobile dependence amplifies privacy risks associated with advanced malware threats such as ransomware, Trojan horses, botnet and spyware. Ransomware, in particular, encrypts those portable devices, demanding payment for access, presenting a critical challenge for user privacy, economic stability, and corporate trust. This paper proposes an effective strategy leveraging machine learning and swarm intelligence. Our strategy incorporates the Kernel Extreme Learning Machine (KELM) for efficient data processing and a Sand Cat Swarm Optimization (SCSO) algorithm for optimal parameter selection. The paper also highlights the most important features for accurate detection and shows the potential risks associated with these threats, such as unauthorized access to personal information , changes to phone and network data, and gaining deep control over the device. While the KELM algorithm is used to classify the mobile applications (apps) as either ransomware or non-ransomware, the SCSO functionality looks for the best features and ideal values for the KELM hyperparameters. To evaluate the effectiveness of the proposed system, we used a dataset comprising 1000 real-world samples collected from diverse platforms including Koodous, Virus Total, HelDroid, and RansomProper security projects, as well as benign applications obtained from the official Google Play Store. The experiments were then divided into two parts: the evaluation of the SCSO swarm size and the inquiries into the hybridization of the logarithmic operator. To identify ransomware, the optimal SCSO version with the KELM is utilized, and its efficacy is contrasted with other traditional machine learning methods. When compared to other algorithms, the suggested (SCSO-KELM) performs better in terms of several evaluation metrics, including promising convergence characteristics. The proposed method outperforms others in various metrics.
BibTeX
@inproceedings{khurma2024mobile,
  author = {Ruba Abu Khurma and Moutaz Alazab and Yaning Xiao and Keshav Sood and Shui Yu and Tony Jan and Mohd Asif Shah and Saurav Mallik},
  title = {{Mobile Ransomware Detection Leveraging Swarm Intelligence and Machine Learning: A KELM-Based Approach}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-5302086/v1},
}
Figure