跳到主要导航 跳到搜索 跳到主要内容

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

  • University of Electronic Science and Technology of China
  • Singapore Management University
  • ByteDance Ltd.

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

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 Büchi 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).

源语言英语
主期刊名FSE Companion - Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering
编辑Marcelo d�Amorim
出版商Association for Computing Machinery, Inc
440-451
页数12
ISBN(电子版)9798400706585
DOI
出版状态已出版 - 10 7月 2024
活动32nd ACM International Conference on the Foundations of Software Engineering, FSE Companion - Porto de Galinhas, 巴西
期限: 15 7月 202419 7月 2024

出版系列

姓名FSE Companion - Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering

会议

会议32nd ACM International Conference on the Foundations of Software Engineering, FSE Companion
国家/地区巴西
Porto de Galinhas
时期15/07/2419/07/24

指纹

探究 'Property-Based Testing for Validating User Privacy-Related Functionalities in Social Media Apps' 的科研主题。它们共同构成独一无二的指纹。

引用此