Taxonomy of Security-related Issues in Android Apps : An Empirical Study
Full text
This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Taxonomy of Security-related Issues in Android Apps : An Empirical Study © 2024 Copyright held by the owner/author(s). Published version Das, Teerath; Ali, Adam; Mikkonen, Tommi Das, T., Ali, A., & Mikkonen, T. (2024). Taxonomy of Security-related Issues in Android Apps : An Empirical Study. In R. Yedida, & T. Menzies (Eds.), RENE '24 : Proceedings of the 2024 Workshop on Replications and Negative Results (pp. 8-14). ACM. https://doi.org/10.1145/3695750.3695824 2024
Taxonomy of Security-related Issues in Android Apps: An Empirical Study Teerath Das Faculty of Information Technology University of Jyväskylä Jyväskylä, Finland [email protected] Adam Ali Faculty of Computing Mohammad Ali Jinnah University Karachi, Pakistan [email protected] Tommi Mikkonen Faculty of Information Technology University of Jyväskylä Jyväskylä, Finland [email protected] ABSTRACT Smart applications (apps) have become the primary means of obtaining digital services in many aspects of our daily lives, such as health care, e-banking, online shopping, etc. With the growing number of smart apps being created, the likelihood of security vulnerabilities has increased significantly. Smartphone developers remain vigilant about security concerns during their mobile app development, installation, and maintenance. This paper presents a large-scale empirical study examining critical security issues in open-source Android apps obtained from GitHub. We analyzed 111,224 commits across 2,187 apps and identified 689 commits explicitly related to security issues. Additionally, we utilized the cardsorting approach to construct a taxonomy/catalog of ten distinct categories of security-related issues. According to our findings, the most frequent security-related problem in our dataset was related to permission issues, accounting for 370 instances (53.7%), followed by Login, with 160 instances, representing 23.22%. On the other hand, Privacy and Framework issues were less frequent, with only 5 (0.72%) and 3 (0.43%) instances, respectively, in our dataset. Moreover, our taxonomy also included 71 sub-categories/sub-themes, with permission issues having the highest number of sub-categories (23) and Framework issues with the lowest numbers (2). Developers discussed permission sub-categories, such as camera permission, WiFi permissions, storage permission, WRITE/READ_PHONE_STATE permission, and location permission, among others, in their code commits. The insights gained from our study provide a foundation for comprehending the primary security concerns from the viewpoints of both researchers and software practitioners. CCS CONCEPTS •General and reference → Empirical studies;•Security and privacy →Software and application security. KEYWORDS Android Apps, Security Issues, Taxonomy, Card sorting ACM Reference Format: Teerath Das, Adam Ali, and Tommi Mikkonen. 2024. Taxonomy of Securityrelated Issues in Android Apps: An Empirical Study. In 39th IEEE/ACM This work is licensed under a Creative Commons Attribution International 4.0 License. RENE ’24, October 27-November 1, 2024, Sacramento, CA, USA © 2024 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-1249-4/24/10. https://doi.org/10.1145/3695750.3695824 International Conference on Automated Software Engineering Workshops (ASEW ’24), October 27-November 1, 2024, Sacramento, CA, USA. ACM, New York, NY, USA, 7 pages. https://doi.org/10.1145/3695750.3695824 1 INTRODUCTION Over the past few years, Android apps have become an essential component of our everyday routines, catering to almost every facet of our life such as fulfilling the entertainment needs, enabling seamless communication, proving e banking services, and keeping track of our well-being, among others. The Android mobile phone market has witnessed a remarkable surge, commanding a significant portion of the overall smartphone industry with 3.553 million apps only published in Google Play Store with a market share of US $31.6 billion as of Q3 2022 1 . Hence, if an app’s security is compromised or breached, it is natural for the end-user to uninstall the app or switch to similar alternatives. Thus, developers must prioritize building security-aware apps to survive in the highly competitive market. By doing so, they can ensure that their apps provide a secure and trustworthy user experience, leading to higher user satisfaction and retention rates. Moreover, due to its open-source nature, Android OS has become a popular target for malicious actors, making Android apps vulnerable. Research 2 shows that every year, around 500 bad smells are discovered in the Android OS, which can led to negatively impact Android apps. Securing apps is of paramount importance, and a significant amount of research has been conducted in this field. For example Erşahin et al. [ 9 ] have explored the security landscape for web applications, while Marin et al. [ 14 ] have proactively approached the development of iOS apps. Egele et al. [ 7 ] have presented a comprehensive overview of privacy leaks within the iOS ecosystem. Regarding security of Android, Fu et al. [ 10 ] conducted a survey of Android app security from an architectural perspective, whereas Li et al. [ 13 ] compared static analysis tools for scanning application code at the inter-language level. Babu et al. [ 12 ] study exploits related to inter-process communication among Android apps. To our knowledge, Mazuera et al. [ 15 ] analyzed security-related commits to construct a taxonomy of security issues using 681 commits from 315 Android and Kotlin applications and surveyed 43 app developers to validate the taxonomy. In the paper, we replicate the study discussed in [ 5 ], but the context/focus of our study is security of Android apps, whereas. in [ 5 ], authors analyzed performance issues in Android apps. 1 How Many Apps In Google Play Store? (Apr 2023): "https://www.bankmycell.com/blog/number-of-google-play-store-apps/" 2 CVE Details, accessed on 25th July 2022: "https://www.cvedetails.com/product/19997/Google- Android.html?vendor_id=1224" 8
ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA Teerath et al. In this paper, we conducted a large scale empirical study to analyze the security-related commits in open-source Android apps by exploiting both qualitative and quantitative approaches. We formulated a comprehensive taxonomy of security issues that are harmful for health of Android apps from a dataset of 689 commits Additionally, the study explores the 71 sub-categories/sub-themes of security issues that fall under this taxonomy. The resulting taxonomy can serve as a valuable checklist for developers and researchers to understand better and address app security issues. The key contributions of our study are: • We replicate the study of [ 5 ] with focus on security issues, and extended the taxonomy[ 4 ], discusses well-defined set of categories and sub-categories for security-related commits in open-source Android apps, allowing for a more organized and structured analysis of such commits. • The replication package 3 provides all the essential scripts, data, and diagrams required to replicate the study. 2 STUDY DESIGN The goal of this study is to investigate the commits of open-source Android apps with the purpose to the prepare the dataset and taxonomy of the issues with respect to security-related aspects. The study has been conducted from the viewpoint of software practitioner’s and researchers. The context of the study focuses on Android apps that can be downloaded for free from the Google Play Store and whose versioning history can be tracked/maintained on GitHub. This study aims to address the following research questions: RQ1: To what extent do security issues of Android apps are distributed over app categories in GitHub commits? RQ1 is more related to quantitative investigation of security issues in Android apps. The aim is to evaluate how the identified security issues are distributed across app categories. Further, the goal is to analyze whether certain app categories tend to prone more security issues than others and whether they exhibit any specific patterns. RQ2: What concerns do developers document in their commits when dealing with security problems of Android apps? The rationale behind research question RQ2 is to explore the different types of security concerns that developers address in their commits of Android apps. The aim is to develop a detailed taxonomy of security-related issues that both developers and researchers can use to gain a deeper understanding of the security considerations of Android apps. Our study focuses on open-source Android apps publicly available on the Google Play Store, that have well-maintained versioning histories on GitHub. By adopting this approach, we ensure that the apps selected for analysis are genuine and not mere dummy or toy apps. We chose to study Android apps because of their large user base and free availability. Figure 1 represents the multitude of steps we go through to detect security-related commits in open-source Android apps. We started with step I, which involved using the dataset of 2,669 Android apps that had been previously documented in [ 5 ][ 6 ]. The authors of the study [ 5 ] collected this dataset using a systematic 3Replication Package: "https://zenodo.org/record/7716400#.ZAssAHZBxPY" Dataset (2,669 apps) Accessible Filter (2,187 apps) Commits Extraction (111,224 commits) Regular Expression (47,361 commits) Card Sorting (689 commits) Final Dataset (689 security commits) GitHub API Fdroid Wikipedia GitHub I II III IV VVI Figure 1: Security Commits Extraction Process approach, which involved using a python script to extract potential repositories from different sources such as Github, Fdroid, and Wikipedia. This approach aimed to identify all the possible freely available Android apps with source code maintained on GitHub. After applying various filtering steps, the authors arrived at a final dataset of 2,669 apps. To further refine this dataset for our study, we carried out steps II through VI. In step II, we refined this dataset by checking how many apps are currently accessible/available compared to the apps in step II. This step was crucial to mitigate the possibility of including apps removed from the Google Play Store, Github, or whose webpages were no longer available. To achieve this aim, we developed a dedicated python script that leveraged the HTTP request module to check whether the webpage of each app was currently accessible or not. As a result, we obtained a dataset of 2,187 apps that are currently functional/accessible on Github and are published on the Google Play Store. The step III was focused on extracting the commits for each Github repository and stored them in a CSV file. To accomplish this task, we exploited the Github API 4 using the python script. This step yielded 111,224 commits from 2,187 open-source Android apps. Each commit includes a unique identifier, repository name, and commit message. In step IV, our main objective is to identify security-related commits by filtering them based on specific keywords. To achieve this goal, we formulated a regular expression in Python that searches for these keywords in each commit. Our script identified a commit as security-related if it contained any of the following keywords: Authentication, Database, Decryption, Encryption, Framework, Login, Networking, Permission, Security, Privacy, Unauthorized and User interface. The keywords used in the regular expression were carefully selected based on state-of-the-art studies [ 2 ] [ 11 ][ 18 ][ 15 ][ 1 ]. The idea here is to select all the possible keywords to identify the security issues. After applying the regular expression to 111,124 commits resulted in identifying a total of 47,361 security-related commits. At this point, we did not filter the false positives and there are commits which are not actually discussing the security issues. Therefore, step V aims at filtering out false positives identified 4GitHub Rest API https://docs.github.com/en/rest 9
Taxonomy of Security-related Issues in Android Apps: An Empirical Study ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA in step IV and retain only relevant security-related commits. We used a card-sorting [ 17 ] approach to classify the security commits into different categories. The open card-sorting technique [ 17 ] was employed to identify security concerns by sorting commits into relevant groups. The process involved two phases: in the first phase, we assigned representative keywords to each commit, while in the second phase, we grouped the commits into meaningful clusters with descriptive titles. To reduce the potential biases, all three authors were involved in this activity. Initially, the first author selected 100 random instances of issues and applied card sorting to them. Then, the remaining two authors each randomly took the same set of 100 issues (50 each) and independently followed the same process. After labeling from all the authors, there were slight differences in the identified categories. These discrepancies were resolved through rigorous discussion and consensus among all three authors, resulting in a final set of categories. The level of agreement between the first and second authors, as well as the first and third authors, was evaluated using Cohen Kappa agreement [ 3 ]. The value of cohen Kappa is more than 0.90 (90%), which is considered as a very good agreement. Finally, the first author labeled all 689 instances in our dataset and created the taxonomy. To mitigate the potential biases, the remaining two authors each labeled half of the dataset commits. The outcome of this step is 689 commits specific to security issues (see section III). Step VI is the final step of our data preparation process for addressing RQ1 and RQ2. The resulting dataset includes each issue’s unique Github ID, repository name, Google Play Store ID, and commit message. The card sorting approach we used in Step V allowed us to establish ten categories, which provide meaningful insight into the security concerns addressed by developers in their commits. 3 RESULTS AND DISCUSSION In this section, we presents the results obtained by addressing the research questions outlined in Section II. RQ1: To what extent do security issues of Android apps are distributed over app categories in GitHub commits? To answer this research question, we analyzed the ratio of securityrelated commits (sCommits) to the total number of commits (tCommits) identified in our dataset. Specifically, we identified 689 security commits (0.62%) out of 111,224 commits. Our findings indicate that at least one security-related concern was detected in 274 (12.5%) apps in our dataset. Table 1 reports the distribution of security issues over various app categories. Further, Table 1 shows the various app categories considered in our study, total commits (tCommits), and security commits (sCommits) for each app category. It can be observed that Books & Reference (2.5%) app category has the most recurrent security issues in our dataset. We assume that this mainly includes apps with more data encryption or login-incorporated activities, which can introduce security vulnerabilities if not implemented properly. Then, we have Media & Video (1.28%) app category with more security issues. We conjecture that this mainly deals with images, video, and live user sessions. Further, app categories such as Education (0.74%) and Tools (0.61%) have sufficient security issues. This may be because Education apps have relatively longer online sessions, which provides more opportunities for hackers Table 1: Distribution of Security Commits to various App Categories. App Category tCommits sCommits Books & Reference 2149 54 (2.51%) Media & Video 2185 28 (1.28%) Education 7593 56 (0.74%) Travel & Local 10505 67 (0.64%) Tools 19575 120 (0.61%) Health and Fitness 1705 10 (0.59%) Games 15833 79 (0.5%) Productivity 7323 30 (0.41%) News & Magazines 1211 3 (0.25%) to potentially access and exploit users’ personal information. On the other hand, Tool apps may have security issues because they contain various features and functions that are meant to enhance the user experience. Interestingly, the Games (0.50%) and Travel & Local (0.64%) app categories exhibited a relatively lower number of security issues. We presume that such apps may contain more sensitive information about end users, like personal information, prompting developers to prioritize security measures. Thus, our analysis indicates that the distribution of security issues is not solely dependent on the nature of apps (app categories), but may vary based on other factors, such as the sensitivity of the information processed by the apps. It is noteworthy that our observation identified several apps with a high number of security issues in our dataset. Table 2 lists the top ten apps with the most security-related issues, including their app categories, the total number of security issues for each app, and their percentages. Intriguingly, our analysis revealed that the apps with the most security issues were not limited to any specific app category. To gain further insights, we conducted a detailed analysis of an app, namely zom/Zom-Android, which had the highest number of security issues (i.e., 62). Our investigation showed that out of 62 commits, 22 commits addressed encryption issues, 13 commits were related to login and permission management each, four commits focused on both decryption and generic security issues, while two commits pertained to privacy and 1 issue emphasized database, authentication, network, and framework each. These findings suggest that the security issues in the Customization category encompass almost all identified security issue categories and align with the app’s capabilities. Additionally, our analysis of the other top 10 apps indicated that the security-related issues did not exhibit any specific patterns. RQ2: What concerns do developers document in their commits when dealing with security problems of Android apps? Table 3 presents the ten security categories that were identified through card sorting, along with a representative commit message for each category and the frequency of security commits (sCommit) for each category. As reported in Table 3, permission issues (370, 53.7%) are the most frequent in our dataset, followed by Login issues (160, 23.22%). Developers are particularly concerned about permission issues in their source code, as these relate to accessing the permission of different components of apps, such as camera 10
ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA Teerath et al. Taxonomy of Security Issues in Android Apps Authentication (7) Database (4) Decryption (3) Encryption (5) Framework (2) Login (9) Generic Security (10)Network (4) Permission (23) Privacy (4) Fingerprint Authentication Google Authentication HTTP Authentication Server Authentication Authentication Cookie Connection Authentication GUI Authentication SQL injection attack Consistent Database DB export Database Interface Bypass Decryption Key OTR Decryption Error Password Decryption AESGCM Encryption OMEMO MUC Encryption Chat/Message Delivery Encryption Assymetric Encryption AES Encryption Binary of Gradle instead of Malwar Framework to Request Permissions at Runtime Passwords Leaked Clears Passwords on Screen of Password Reset Feature Password Prompt Password Protection Keystore Password in Gradle Properties Empty/Null Password Tweak Password Entry Bad Password TLS Implementation Server Certificate Issues AuthKey Form Server Cipher Suites JSON logging for Security Reasons Keyguard Unlocking Security Billing Security Class NetworkSecurityConfig Security Vulnerability with Broadcasts XmppConnection Force Security Security Verification Backported Security Patches GPS Security Exception SSL Security Provider Permissions for SDK 23+ NETWORK_STATE Permission READ_PHONE_STATE Permission WiFi permissions Camera Permission MUC Permissions Runtime Permissions Receiver Permission Permission Violates GooglePlay Policies WRITE/READ_EXTERNAL_STORAGE Permission Android M Permissions Audio Permission Network Permissions Administrator Permission Unnecessary Permission Permission Data Location Permissions Unused Permissions Permission for HTTP User Permissions File Permissions Internet Permission WAKE_LOCK Permission Privacy Leaks Privacy Icon Privacy Policy Privacy Leaks Privacy Policy Privacy Options for Data Sharing Figure 2: Detailed Taxonomy of Security-related issues. 11
Taxonomy of Security-related Issues in Android Apps: An Empirical Study ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA Table 2: Top apps with the maximum number of security commits Google play Store ID App Categories #Count zom/Zom-Android Customization 62 (1.36%) bpellin/keepassdroid Books & Reference 52 (4.35%) AntennaPod/AntennaPod Travel & Local 44 (0.59%) prey/prey-android-client Media & Video 44 (0.59%) arpitkh96/AmazeFileManager Social 18 (0.37%) antoniy/Gidder Games 12 (11.32%) BOINC/boinc Games 11 (0.03%) Pozzoooo/travelWeather Travel & Local 11 (1.8%) spacecowboy/NotePad Photography 11 (0.66%) permission, WiFi permissions, storage permission, etc.. On the other hand, Login issues pertain to password-related activities of Android apps such as passwords leaked, empty/null password, Tweak password entry, bad password, and username password, etc. Moreover, we observed that some issues (53, 7.69%) were related to Generic security in the projects without any explicit indication of the underlying reason. Security issues can be associated with any software system component, such as security verification, security vulnerabilities with broadcasts, and JSON logging for security reasons. The representative commit for this issue is "add new strings for security verification and lock." which addresses the security concern associated with adding new strings for verification. The dataset contained a sufficient number of Encryption (50, 7.25%) and Authentication (43, 6.24%) issues. The encryption issues primarily focused on encryption with QR codes, AESGCM encryption, password encryption, and asymmetric encryption. An example of encryption issue is "Connected encryption with qr code for easier public key sharing, can now enable encryption". In contrast, Authentication issues relate to system authentication, such as fingerprint authentication, Google authentication, HTTP authentication, and server authentication. The representative commit for an authentication issue is "show correct message on bearer authentication error". Few issues in our dataset focused on the Network (10, 1.45%) of the software systems. These issues mainly discuss about network issues were cipher suites, server certificate issues, and TLS implementation. An example commit for a Network issue is related to "ffor now, show toast instead of dialog #370 - when there is a cert issue, don’t give the user an option to override -in the future we’ll have a better UI/UX for handling MITM attacks or other unexpected server certificate issues.". Then, we encountered Database (9, 1.30%) and Framework (3, 0.43%) issues, occurred less frequently in our dataset. Database issues are primarily focused on SQL injection attacks, consistent databases, and database interfaces.Framework issues pertain to various platform dependency issues in Android apps. Furthermore, we conducted a more in-depth analysis of the commits in each identified category and found 71 subcategories or sub-themes distributed across ten categories. These subcategories provide insight into the key topics developers discussed in their commits. Figure 2 shows that the permission category (23) has the most subcategories, followed by the Generic security (10) issue category. The permission subcategory covers issues related to camera Table 3: Identified Security-related issues Categories Security Category Representative Commit sCommit Permission Tried to isolate the permission management in a separate class, not really happy with the naming and dependencies, but I believe its a step ahead. 370 (53.7%) Login encode the username and passwords. long standing bug. 160 (23.22%) Generic Security add new strings for security verification and lock. 53 (7.69%) Encryption Connected encryption with qr code for easier public key sharing, can now enable encryption 50 (7.25%) Authentication show correct message on bearer authentication error 43 (6.24%) Decryption don’t auto-refresh when there is an error decryption as this can cause problems the otr engine will handle the errors and requery on its own 11 (1.59%) Network ffor now, show toast instead of dialog #370 - when there is a cert issue, don’t give the user an option to override -in the future we’ll have a better UI/UX for handling MITM attacks or other unexpected server certificate issues. 10 (1.45%) Database initial fixes to reduce SQL injection attack risks though unlikely, it is possible for an app to use intents to cause a local, on-device SQL injection attack. a remote user could also cause a sql injection. we are working on changes to improve parsing and use of parameterized inputs to all queries 9 (1.30%) Privacy don’t automatically linkify in chat windows of accounts running on Tor. In order to prevent privacy leaks, disable linkification on chats for accounts that are running through Tor. For those how are foolhardy enough to want linkifying on, they can enable a preference.. All of the @Override decorators were put there Eclipse Android mode... 5 (0.72%) Framework update gradle wrapper to include gradle binary pinning Dominik Schuermann adding this handy feature to make sure you’re actually getting the binary of gradle instead of malware: https://github.com/gradle/gradle/pull/448 3 (0.43%) permission, WiFi permissions, storage permission, runtime permission, and location permissions, among others. The Generic Generic security concerns include security verification, XmppConnection force security, security vulnerability with broadcasts, NetworkSecurityConfig, billing security class, keyguard unlocking security, and 12
ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA Teerath et al. JSON logging for security reasons. In contrast, the Framework issue category has fewer subcategories in our dataset (2), which include Framework to Request Permissions at Runtime and Binary of Gradle instead of Malwar. For a detailed taxonomy of subcategories, refer to Figure 2. The dataset and taxonomy proposed in this study have significant implications for three key stakeholders: researchers, developers, and end users. For researchers, the taxonomy provides insight into the primary security concerns in open-source projects, which can help identify potential new research directions such as patterns of issues, causes, and their possible solutions. For developers, the taxonomy serves as a checklist that both novice and senior-level developers can use to analyze and prevent critical security issues in their development that could harm their apps in the long run. Finally, end-users can utilize the taxonomy to understand the type of security issues that may arise in the apps currently installed on their smartphones. 4 RELATED WORK Several studies have been conducted in the past, that highlight security issues in Android apps. For instance, Enck et al. [ 8 ] conducted a comprehensive review of security concerns related to Android apps. They explored vulnerabilities and potential attacks that could be exploited to breach the security of these apps. Moreover, the paper outlines strategies developers can adopt to address and mitigate these security challenges. Few studies have focused on analyzing security issues by examining commits. For instance, Alejandro et al. [ 15 ] conducted an empirical investigation where they manually reviewed 681 commits made by developers to Java and Kotlin apps to rectify security flaws. Their study aimed to create a taxonomy that sheds light on various software security weaknesses that can affect Java and Kotlin Android apps. A similar study was performed by Das et al. [ 5 ], but the context was performance issues in Android apps. Our study focus on categories of security-related issues, but also performed a more deeper analysis by reporting the 71 sub categories/sub themes of security issues that developers documented in their GitHub commits. Additionally, one study [ 20 ] focused on automatically detecting security issues in bug reports and GitHub commits. Yaqin Zhou et al. [ 20 ] utilized a K-fold stacking classifier to demonstrate a high potential for identifying vulnerabilities by leveraging the latent information in commit messages and bug reports of open-source projects hosted on platforms such as GitHub, JIRA, and Bugzilla. Many studies have focused on investigating security issues on GitHub. For example, Reis et al. [ 16 ] created a comprehensive database named Secbench that contains numerous actual security vulnerabilities obtained from GitHub. Their study involved analyzing 248 projects comprising nearly 2 million commits to identify 16 distinct vulnerability patterns, creating a database containing 682 authentic security vulnerabilities. Another study by Zahedi et al. [ 19 ] aimed to gain insights into the occurrence of security issues and their primary themes and topics using a mixed-methods approach involving topic modeling techniques and qualitative analysis. Additionally, a study conducted sentiment analysis of security discussions in GitHub, revealing that approximately 10% of all discussions on GitHub pertain to security-related topics and discussions related to security elicit more negative emotions than other types of discussions. In our study, we performed a large scale study on analyzing security issues from the 111, 224 GitHub commits extracted from 2,187 open-source Android apps. 5 THREATS TO VALIDITY The reliance on keyword matching to identify security-related commits raises concerns about the construct validity of the findings. Our study assumes that a commit containing specific keywords should be deemed a security-related commit. However, this approach could miss some security-related commits as some keywords might be overlooked. To counteract this threat, we incorporate all the potential keywords from the previous studies. Additionally, false positives were reduced by manually reviewing the extracted commits. External validity threats primarily challenge the generalizability of our findings regarding the representation of various app categories studied. To mitigate this risk, we utilized a substantial dataset of 111,224 commits from 2,187 apps belonging to a wide range of app categories developed as part of real-world projects, and all apps are available on the Google Play store and publicly accessible. Another external validity threat is that we only analyzed and reviewed English language commits, which could introduce bias but is justifiable as English is widely used as the international language of communication. 6 CONCLUSION AND FUTURE WORK In this study, we utilized an empirical approach to explore the security concerns present in Android apps. Specifically, we analyzed the GitHub commits of all 2,187 apps and identified 111,224 commits. Finally, we constructed a taxonomy of these security-related commits through a card-sorting process. Initially, we identified 689 security-related commits (0.62% of the total 111,224 commits) in our dataset. Moreover, we formulated a taxonomy of ten distinct security issues, identified from the developers’ GitHub commits. The most prevalent issue in our dataset was related to Permissions (370, 53.7%), followed by Login issues (160, 23.22%). Permission issues are primarily focused on app permissions, making them a key concern for developers in their source code. Conversely, Privacy and Framework issues were relatively rare, with five (0.72%) and three instances (0.43%), respectively. We also examined 71 sub-categories/sub-themes, which are distributed across ten categories. Among them, permission issues (23) were identified and studied with sub-categories such as camera permission, WiFi permissions, storage permission, READ_PHONE_STATE permission, and location permission, among others, in our dataset. It will be an interesting future work to conduct an interview or survey-based study to validate the taxonomy from the actual software developers. By doing so, we will be able to validate the identified categories and refine the taxonomy based on new categories suggested by the developers. Moreover, future studies can conduct an in-depth analysis of code changes for each identified security category to identify patterns in how developers address these issues in their source code. 13
Taxonomy of Security-related Issues in Android Apps: An Empirical Study ASEW ’24, October 27-November 1, 2024, Sacramento, CA, USA REFERENCES [1] Data security: https://www.imperva.com/learn/data-security/data-security/. [2] Sen Chen, Yuxin Zhang, Lingling Fan, Jiaming Li, and Yang Liu. Ausera: Automated security vulnerability detection for android apps. In 37th IEEE/ACM International Conference on Automated Software Engineering, pages 1–5, 2022. [3] Jacob Cohen. Weighted kappa: nominal scale agreement provision for scaled disagreement or partial credit. Psychological bulletin, 70(4):213, 1968. [4] Teerath Das, Adam Ali, and Tommi Mikkonen. Investigation of security-related commits in android apps. In Proceedings of the 27th International Conference on Evaluation and Assessment in Software Engineering, EASE ’23, page 259–260, New York, NY, USA, 2023. Association for Computing Machinery. [5] Teerath Das, Massimiliano Di Penta, and Ivano Malavolta. A quantitative and qualitative investigation of performance-related commits in android apps. In 2016 IEEE International Conference on Software Maintenance and Evolution (ICSME), pages 443–447. IEEE, 2016. [6] Teerath Das et al. Investigating performance issues in mobile apps. 2020. [7] Manuel Egele, Christopher Kruegel, Engin Kirda, and Giovanni Vigna. Pios: Detecting privacy leaks in ios applications. 01 2011. [8] William Enck, Damien Octeau, Patrick D McDaniel, and Swarat Chaudhuri. A study of android application security. In USENIX security symposium, volume 2, 2011. [9] Buket Erşahin and Mustafa Erşahin. Web application security. South Florida Journal of Development, 3(4):4194–4203, Jul. 2022. [10] Chengzhou Fu, Chang Huang, Yong Tang, Weiquan Zeng, Dahao Wang, and Chengzhe Yuan. Survey on android applications security. In Qiaohong Zu and Bo Hu, editors, Human Centered Computing, pages 92–103, Cham, 2016. Springer International Publishing. [11] Shivi Garg and Niyati Baliyan. Android security assessment: A review, taxonomy and research gap study. Computers & Security, 100:102087, 2021. [12] Babu Khadiranaikar, Pavol Zavarsky, and Yasir Malik. Improving android application security for intent based attacks. In 2017 8th IEEE Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), pages 62–67, 2017. [13] Ziqing Li and Guiling Feng. Inter-language static analysis for android application security. In 2020 IEEE 3rd International Conference on Information Systems and Computer Aided Education (ICISCAE), pages 647–650, 2020. [14] Madalina Marin, Costin Carabas, Razvan Deaconescu, and Nicolae Tapus. Proactive secure coding for ios applications. pages 1–5, 10 2019. [15] Alejandro Mazuera-Rozo, Camilo Escobar-Velásquez, Juan Espitia-Acero, David Vega-Guzmán, Catia Trubiani, Mario Linares-Vásquez, and Gabriele Bavota. Taxonomy of security weaknesses in java and kotlin android apps. Journal of Systems and Software, 187:111233, 2022. [16] Sofia Reis and Rui Abreu. Secbench: A database of real security vulnerabilities. In SecSE@ ESORICS, pages 69–85, 2017. [17] D. Spencer. Card sorting (1st ed.), doi=https://www.perlego.com/book/1257069/cardsorting-designing-usable-categories-pdf. 2009. [18] Wei Wang, Meichen Zhao, Zhenzhen Gao, Guangquan Xu, Hequn Xian, Yuanyuan Li, and Xiangliang Zhang. Constructing features for detecting android malicious applications: issues, taxonomy and directions. IEEE access, 7:67602–67631, 2019. [19] Mansooreh Zahedi, Muhammad Ali Babar, and Christoph Treude. An empirical study of security issues posted in open source projects. 2018. [20] Yaqin Zhou and Asankhaya Sharma. Automated identification of security issues from commit messages and bug reports. In Proceedings of the 2017 11th joint meeting on foundations of software engineering, pages 914–919, 2017. 14