Incorporating Android Code Smells into Java']Java Static Code Metrics for Security Risk Prediction of Android Applications

被引:5
|
作者
Gong, Ai [1 ]
Zhong, Yi [1 ,4 ]
Zou, Weiqin [2 ,3 ]
Shi, Yangyang [1 ]
Fang, Chunrong [1 ]
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
[2] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing, Peoples R China
[3] Minist Ind & Informat Technol, Key Lab Safety Crit Software NUAA, Nanjing, Peoples R China
[4] Chongqing Univ Posts & Telecom, Coll Mobile Telecommun, Chongqing, Peoples R China
基金
中国国家自然科学基金; 国家重点研发计划;
关键词
Android code smells; !text type='Java']Java[!/text] code metrics; Android security;
D O I
10.1109/QRS51102.2020.00017
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the wide-spread use of Android applications in people's daily life, it becomes more and more important to timely identify the security problems of these applications. To enrich existing studies in guarding the security and privacy of Android applications, we attempted to predict the security risk levels of Android applications. Specifically, we proposed an approach that incorporated Android code smells into traditional Java code metrics to predict how secure an Android application is. With an evaluation of our technique on 3,680 Android applications, we found that: (1) Android code smells could help improve the performance of security risk prediction of Android applications; (2) By building a Random Forest model based on Android code smells and Java code metrics, we could achieve an Area Under Curve (AUC) of 0.97; (3) Android code smells such as member ignoring method (MIM) and leaking inner class (LIC) have a relatively-large influence on Android security risk prediction, to which developers should pay more attention during their application development.
引用
收藏
页码:30 / 40
页数:11
相关论文
共 50 条
  • [21] An Empirical Study on Code Smells Co-occurrences in Android Applications
    Hamdi, Oumayma
    Ouni, Ali
    AlOmar, Eman Abdullah
    Mkaouer, Mohamed Wiem
    2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING WORKSHOPS (ASEW 2021), 2021, : 26 - 33
  • [22] Instrumenting Android and Java']Java Applications as Easy as abc
    Arzt, Steven
    Rasthofer, Siegfried
    Bodden, Eric
    RUNTIME VERIFICATION, RV 2013, 2013, 8174 : 364 - 381
  • [23] A Catalog of Object-Relational Mapping Code Smells for Java']Java
    Loli, Samuel
    Teixeira, Leopoldo
    Cartaxo, Bruno
    34TH BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING, SBES 2020, 2020, : 82 - 91
  • [24] ESC/Java']Java2 as a tool to ensure security in the source code of Java']Java applications
    Schubert, Aleksy
    Chrzaszcz, Jacek
    SOFTWARE ENGINEERING TECHNIQUES: DESIGN FOR QUALITY, 2006, 227 : 337 - +
  • [25] Taxonomy of security weaknesses in Java']Java and Kotlin Android apps
    Mazuera-Rozo, Alejandro
    Escobar-Velasquez, Camilo
    Espitia-Acero, Juan
    Vega-Guzman, David
    Trubiani, Catia
    Linares-Vasquez, Mario
    Bavota, Gabriele
    JOURNAL OF SYSTEMS AND SOFTWARE, 2022, 187
  • [26] An Empirical Study of the Performance Impacts of Android Code Smells
    Hecht, Geoffrey
    Moha, Naouel
    Rouvoy, Romain
    2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), 2016, : 59 - 69
  • [27] A Static Code Smell Detector for SQL Queries Embedded in Java']Java Code
    Nagy, Csaba
    Cleve, Anthony
    2017 IEEE 17TH INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM), 2017, : 147 - 152
  • [28] An empirical study of Android behavioural code smells detection
    Prestat, Dimitri
    Moha, Naouel
    Villemaire, Roger
    EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (07)
  • [29] Android Source Code Smells: A Systematic Literature Review
    Fawad, Muhammad
    Rasool, Ghulam
    Palma, Francis
    SOFTWARE-PRACTICE & EXPERIENCE, 2024,
  • [30] An empirical study of Android behavioural code smells detection
    Dimitri Prestat
    Naouel Moha
    Roger Villemaire
    Empirical Software Engineering, 2022, 27