Property-Based Testing for Validating User Privacy-Related Functionalities in Social Media Apps

被引:0
作者
Sun, Jingling [1 ]
Su, Ting [2 ]
Sun, Jun [3 ]
Li, Jianwen [2 ]
Wang, Mengfei [4 ]
Pu, Geguang [2 ]
机构
[1] Univ Elect Sci & Technol China, Chengdu, Peoples R China
[2] East China Normal Univ, Shanghai, Peoples R China
[3] Singapore Management Univ, Singapore, Singapore
[4] ByteDance, Beijing, Peoples R China
来源
COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024 | 2024年
关键词
Property-based testing; Android app testing; Non-crashing bugs; CHECKING;
D O I
10.1145/3663529.3663863
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Social media apps implement many user privacy-related functionalities. For example, TikTok allows users to upload videos that record their daily activities and specify which users can view these videos. Ensuring the correctness of these functionalities is thus crucial. Otherwise, it may threaten the users' privacy or disrupt user experience. Due to the lack of appropriate automated testing techniques, manual testing remains the primary practice for validating these functionalities, which is cumbersome, error-prone, and inadequate. To this end, we adapt property-based testing to validate such functionalities against the properties described by the given privacy specifications. Our key idea is that privacy specifications can be transformed into the Buchi automata, which can (1) determine whether the app has reached unexpected states, and (2) guide the testing process. To support the application of our approach, we implemented an automated GUI testing tool, PDTDROID, which can detect the app behaviors that are inconsistent with the privacy specifications. Our evaluation on TikTok, involving 125 real privacy specifications, shows that PDTDROID can efficiently validate privacy-related functionality and reduce manual effort by an average of 95.2% before each app release. Our further experiments on six popular social media apps show the generability and applicability of PDTDROID. PDTDROID has found 22 previously unknown inconsistencies issues in these extensively tested apps (including four user privacy leakage bugs, nine user privacy-related functional bugs, and nine specification issues).
引用
收藏
页码:440 / 451
页数:12
相关论文
共 83 条
  • [1] Andersson C, 2002, 2002 INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING, PROCEEDINGS, P37, DOI 10.1109/ISESE.2002.1166923
  • [2] [Anonymous], 2015, P 2015 INT S SOFTWAR, P83
  • [3] Arzt S, 2014, ACM SIGPLAN NOTICES, V49, P259, DOI [10.1145/2666356.2594299, 10.1145/2594291.2594299]
  • [4] Aung Win Zaw Zarni, 2013, International Journal of Scientific & Technology Re-search, V2, P228
  • [5] Azim T, 2013, ACM SIGPLAN NOTICES, V48, P641, DOI [10.1145/2509136.2509549, 10.1145/2544173.2509549]
  • [6] COVERT: Compositional Analysis of Android Inter-App Permission Leakage
    Bagheri, Hamid
    Sadeghi, Alireza
    Garcia, Joshua
    Malek, Sam
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (09) : 866 - 886
  • [7] Towards Model Checking Android Applications
    Bai, Guangdong
    Ye, Quanqi
    Wu, Yongzheng
    Botha, Heila
    Sun, Jun
    Liu, Yang
    Dong, Jin Song
    Visser, Willem
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2018, 44 (06) : 595 - 612
  • [8] Bartocci Ezio, 2018, Lectures on Runtime. Verification Introductory and Advanced Topics. LNCS 10457, P1, DOI 10.1007/978-3-319-75632-5_1
  • [9] Brunello A., 26 INT S TEMP REPR R, V147
  • [10] Consistency Analysis of Data-Usage Purposes in Mobile Apps
    Bui, Duc
    Yao, Yuan
    Shin, Kang G.
    Choi, Jong-Min
    Shin, Junbum
    [J]. CCS '21: PROCEEDINGS OF THE 2021 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2021, : 2824 - 2843