Skip to content

About

A machine learning system for classifying Android package name as legitimate or suspicious/malicious. Designed to filter suspicious apps early in the analysis pipeline, reducing computational load on heavy analysis operations. This is only a single or atomic part of a larger Machine Learning Architecture Proof of Concept for Filtering Android App.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Android Package Manager Info Filtering

A machine learning system for classifying Android package names as legitimate or suspicious/malicious. Designed to filter suspicious apps early in the analysis pipeline, reducing computational load on heavy analysis operations. This is only a single or atomic part of a larger Machine Learning Architecture Proof of Concept for Filtering Android Application, the basic idea is to utilize the Android's Built-In Package Manager Information Readily available for decision making for identifying hignly suspicious Application for further deep analysis, requiring heavy operation such as unpacking the applications, parsing operations of dex and other compenents. Refer to the Package Manager API Reference for list of available information that can be obtained.



Summary Table

Rank Model Architecture Accuracy Precision Recall F1-Score ROC-AUC Size Status
1 Feature-Enhanced LSTM ✨ Multi-input with 21 features 87.42% 92.99% 80.92% 86.54% 0.9428 3.44 MB ✅ DEPLOY
2 CNN 1D Convolution 87.39% 94.84% 79.07% 86.24% 0.9430 5.04 MB ✅ DEPLOY
3 Dummy LSTM Baseline LSTM 86.86% 93.47% 79.26% 85.78% 0.9389 3.16 MB ✅ Fallback
4 CNN+LSTM Hybrid CNN+LSTM 86.73% 91.47% 81.02% 85.93% 0.9364 2.23 MB ✅ Fallback
5 BiLSTM Bidirectional LSTM 86.64% 93.57% 78.68% 85.48% 0.9365 7.70 MB ⚠️ Alternative
6 Transformer Attention-based 83.52% 88.97% 76.53% 82.28% 0.9099 8.11 MB ❌ Not recommended
7 XGBoost Gradient Boosting 74.62% 80.52% 64.96% 71.91% 0.8341 0.77 MB ⚠️ Lightweight

Documents


Notes:

  • Modernize for TF2.0 and rerun To Add Transformer in Comparison.
  • Transformer is a relatively new (2024) model, while transformer is designed and best applied for Large Data Sets, it has shown good performance, obviously the model is not the best appleid in this case, added for the sake seeing of how transformer performs.
  • xgboost is added as baseline for stacking xgboost with lstm, these stacked models are not included here and requires GPU for training.
  • base_model is only an artifacts, it uses a different vocabulary, its practically the older version of the dummy model but, this new dummy model is synchronized with other model to use the same vocabulary.

About

A machine learning system for classifying Android package name as legitimate or suspicious/malicious. Designed to filter suspicious apps early in the analysis pipeline, reducing computational load on heavy analysis operations. This is only a single or atomic part of a larger Machine Learning Architecture Proof of Concept for Filtering Android App.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages