journal article·2025-03-01Open access

AndroCom: A Real-World Android Applications’ Vulnerability Dataset to Assist with Automatically Detecting Vulnerabilities

Kaya Arikan, Ercan Yilmaz

Applied Sciences· Volume 15· Issue 5

Abstract

In the realm of software development, quality reigns supreme, but the ever-present danger of vulnerabilities threatens to undermine this fundamental principle. Insufficient early vulnerability identification is a key factor in releasing numerous apps with compromised security measures. The most effective solution could be using machine learning models trained on labeled datasets; however, existing datasets still struggle to meet this need fully. Our research constructs a vulnerability dataset for Android application source code, primarily based on the Common Vulnerabilities and Exposures (CVE) system, using data derived from real-world developers’ vulnerability-fixing commits. This dataset was obtained by systematically searching such commits on GitHub using well-designed keywords. This study created the dataset using vulnerable code snippets from 366,231 out of 2.9 million analyzed repositories. All scripts used for data collection, processing, and refinement and the generated dataset are publicly available on GitHub. Experimental results demonstrate that fine-tuned Support Vector Machine and Logistic Regression models trained on this dataset achieve an accuracy of 98.71%, highlighting their effectiveness in vulnerability detection.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Malware Detection Techniques · Software Testing and Debugging Techniques · Web Application Security Vulnerabilities

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Aselsan Inc., 06200 Ankara, Türkiye

Department of Information Security Engineering, Graduate School of Natural and Applied Sciences, Gazi University, 06560 Ankara, Türkiye

Department of Electrical and Electronics Engineering, Faculty of Technology, Gazi University, 06560 Ankara, Türkiye

References (46)

Show source-provided references
1. (2024, September 08). Number of Monthly Android App Releases Worldwide 2024. Available online: https://www.statista.com/statistics/1020956/android-app-releases-worldwide/.
2. (2024, September 08). Market Share of Mobile Operating Systems Worldwide from 2009–2024. Available online: https://www.statista.com/statistics/272698/global-market-share-held-by-mobile-operating-systems-since-2009/.
3. Muhammad, Z., Anwar, Z., Javed, A.R., Saleem, B., Abbas, S., and Gadekallu, T.R. (2023). Smartphone Security and Privacy: A Survey on APTs, Sensor-Based Attacks, Side-Channel Attacks, Google Play Attacks, and Defenses. Technologies, 11.10.3390/technologies11030076 ↗
4. Analyzing security issues of android mobile health and medical applications10.1093/jamia/ocab131 ↗
5. Harer, J.A., Kim, L., Russell, R.L., and Ozdemir, O. (2018). Automated software vulnerability detection with machine learning. arXiv.
6. Tang, G., Meng, L., Wang, H., Ren, S., Wang, Q., and Yang, L. (2020, January 11–13). A Comparative Study of Neural Network Techniques for Automatic Software Vulnerability Detection. Proceedings of the 2020 International Symposium on Theoretical Aspects of Software Engineering (TASE), Hangzhou, China.10.1109/TASE49443.2020.00010 ↗
7. Kupsch, J.A., and Mill, B.P. (2009). Manual vs. Automated Vulnerability Assessment: A Case Study, Computer Sciences Department, University of Wisconsin.
8. Chen, Y., Ding, Z., Alowain, L., Chen, X., and Wagner, D. (2023). DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection. arXiv.10.1145/3607199.3607242 ↗
9. Application security code analysis: A step towards software assurance
10. Li, K., Chen, S., Fan, L., Feng, R., Liu, H., Liu, C., Liu, Y., and Chen, Y. (2023, January 3–9). Comparison and Evaluation on Static Application Security Testing (SAST) Tools for Java. Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2023, San Francisco, CA, USA.10.1145/3611643.3616262 ↗
11. Modeling Vulnerability Discovery Process in Major Cryptocurrencies10.33851/JMIS.2022.9.3.191 ↗
12. (2024, September 14). GitHub on BigQuery: Analyze All the Open Source Code, Google Cloud Blog. Available online: https://cloud.google.com/blog/topics/public-datasets/github-on-bigquery-analyze-all-the-open-source-code.
13. Chakraborty, S., Krishna, R., Ding, Y., and Ray, B. (2020). Deep Learning based Vulnerability Detection: Are We There Yet?. arXiv.
14. Defendroid: Real-time Android code vulnerability detection via blockchain federated neural network with XAI
15. Towards predictive analysis of android vulnerability using statistical codes and machine learning for IoT applications10.1016/j.comcom.2020.02.078 ↗
16. Rahman, A., Pradhan, P., Partho, A., and Williams, L. (2017, January 22–23). Predicting Android Application Security and Privacy Risk with Static Code Metrics. Proceedings of the 2017 IEEE/ACM 4th International Conference on Mobile Software Engineering and Systems (MOBILESoft), Buenos Aires, Argentina.10.1109/MOBILESoft.2017.14 ↗
17. Foley, S.N., Gollmann, D., and Snekkenes, E. (2017). VuRLE: Automatic Vulnerability Detection and Repair by Learning from Examples. Computer Security–ESORICS 2017, Springer International Publishing.
18. Vulvet: Vetting of Vulnerabilities in Android Apps to Thwart Exploitation10.1145/3376121 ↗
19. Vulnerability Prediction From Source Code Using Machine Learning10.1109/ACCESS.2020.3016774 ↗
20. Zhuo, L., Zhimin, G., and Cen, C. (2017, January 21–23). Research on Android Intent Security Detection Based on Machine Learning. Proceedings of the 2017 4th International Conference on Information Science and Control Engineering (ICISCE), Changsha, China.10.1109/ICISCE.2017.124 ↗
21. Pang, Y., Xue, X., and Wang, H. (2017, January 2–4). Predicting Vulnerable Software Components through Deep Neural Network. Proceedings of the 2017 International Conference on Deep Learning Technologies, ICDLT’17, Chengdu, China.10.1145/3094243.3094245 ↗
22. Extracting rules for vulnerabilities detection with static metrics using machine learning10.1007/s13198-020-01036-0 ↗
23. Taxonomy of security weaknesses in Java and Kotlin Android apps10.1016/j.jss.2022.111233 ↗
24. Zhou, Y., and Sharma, A. (2017, January 4–8). Automated identification of security issues from commit messages and bug reports. Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, ESEC/FSE, Paderborn, Germany.10.1145/3106237.3117771 ↗
25. Perl, H., Arp, D., and Fahl, S. (2015, January 12–16). VCCFinder: Finding Potential Vulnerabilities in Open-Source Projects to Assist Code Audits. Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA.10.1145/2810103.2813604 ↗
26. Hölbl, M., Rannenberg, K., and Welzer, T. (2020). Code Between the Lines: Semantic Analysis of Android Applications. ICT Systems Security and Privacy Protection, Springer International Publishing.10.1007/978-3-030-58201-2 ↗
27. Challande, A., David, R., and Renault, G. (2022, January 24–27). Building a Commit-level Dataset of Real-world Vulnerabilities. Proceedings of the Twelfth ACM Conference on Data and Application Security and Privacy, CODASPY ’22, Baltimore, MD, USA.10.1145/3508398.3511495 ↗
28. Senanayake, J., Kalutarage, H., Al-Kadri, M.O., Piras, L., and Petrovski, A. (2024, January 14–16). Labelled Vulnerability Dataset on Android Source Code (LVDAndro) to Develop AI-Based Code Vulnerability Detection Models. Proceedings of the 20th International Conference on Security and Cryptography, Kunming, China. Available online: https://www.scitepress.org/Link.aspx?doi=10.5220/0012060400003555.10.5220/0012060400003555 ↗
29. Wang, C., Zhang, L., Zhao, K., Ding, X., and Wang, X. (2021). AdvAndMal: Adversarial Training for Android Malware Detection and Family Classification. Symmetry, 13.10.3390/sym13061081 ↗
30. DroidEnemy: Battling adversarial example attacks for Android malware detection10.1016/j.dcan.2021.11.001 ↗
31. GAN based enGine for Modifying Android Malware10.1016/j.softx.2022.100977 ↗
32. Rathore, H., Nikam, P., Sahay, S.K., and Sewak, M. (2021, January 18–22). Identification of Adversarial Android Intents using Reinforcement Learning. Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Visual.10.1109/IJCNN52387.2021.9534142 ↗
33. Machine Learning for Android Malware Detection: Mission Accomplished? A Comprehensive Review of Open Challenges and Future Perspectives10.1016/j.cose.2023.103654 ↗
34. Zhou, Y. (2025, January 15). Zhejiang University. Yajin’s Homepage. Available online: https://yajin.org.
35. (2025, January 15). The Drebin Dataset. Available online: https://web.archive.org/web/20161029112333/https://www.sec.cs.tu-bs.de/~danarp/drebin/index.html.
36. Gómez, A., and Muñoz, A. (2023). Deep Learning-Based Attack Detection and Classification in Android Devices. Electronics, 12.10.3390/electronics12153253 ↗
37. Android source code vulnerability detection: A systematic literature review10.1145/3556974 ↗
38. (2025, January 13). CVSS v3.1 Specification Document. FIRST—Forum of Incident Response and Security Teams. Available online: https://www.first.org/cvss/v3.1/specification-document.
39. (2025, January 14). NVD-Home, Available online: https://nvd.nist.gov/.
40. Gabel, M., Yang, J., Yu, Y., Goldszmidt, M., and Su, Z. (2010, January 17–21). Scalable and systematic detection of buggy inconsistencies in source code. Proceedings of the ACM International Conference on Object Oriented Programming Systems Languages and Applications, OOPSLA ’10, Reno/Tahoe, NV, USA.10.1145/1869459.1869475 ↗
41. (2024, November 17). (PDF) Hidden Technical Debt in Machine Learning Systems. Available online: https://www.researchgate.net/publication/319769912_Hidden_Technical_Debt_in_Machine_Learning_Systems.
42. Jebnoun, H., Braiek, H.B., Rahman, M.M., and Khomh, F. (2020, January 29–30). The Scent of Deep Learning Code: An Empirical Study. Proceedings of the 17th International Conference on Mining Software Repositories, MSR ’20, Seoul, Republic of Korea.10.1145/3379597.3387479 ↗
43. (2025, February 08). Google Colab. Available online: https://colab.research.google.com/.
44. Bisong, E. (2019). Introduction to Scikit-learn. Building Machine Learning and Deep Learning Models on Google Cloud Platform: A Comprehensive Guide for Beginners, Apress.10.1007/978-1-4842-4470-8 ↗
45. (2025, February 08). Pandas Documentation—Pandas 2.2.3 Documentation. Available online: https://pandas.pydata.org/docs/index.html.
46. Krutz, D.E., Mirakhorli, M., Malachowsky, S.A., Ruiz, A., Peterson, J., Filipski, A., and Smith, J. (2015, January 16–17). A Dataset of Open-Source Android Applications. Proceedings of the 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories, Florence, Italy.10.1109/MSR.2015.79 ↗