Apps on mobile phones manipulate all sorts of data, including sensitive data, leading to privacy-related concerns. Recent regulations like the European GDPR provide rules for the processing of personal and sensitive data, like that no such data may be leaked without the consent of the user. Researchers have proposed sophisticated approaches to track sensitive data within mobile apps, all of which rely on specific lists of sensitive source and sink API methods. The data flow analysis results greatly depend on these lists' quality. Previous approaches either used incomplete hand-written lists that quickly became outdated or relied on machine learning. The latter, however, leads to numerous false positives, as we show. This paper introduces CoDoC, a tool that aims to revive the machine-learning approach to precisely identify privacy-related source and sink API methods. In contrast to previous approaches, CoDoC uses deep learning techniques and combines the source code with the documentation of API methods. Firstly, we propose novel definitions that clarify the concepts of sensitive source and sink methods. Secondly, based on these definitions, we build a new ground truth of Android methods representing sensitive source, sink, and neither (i.e., no source or sink) methods that will be used to train our classifier. We evaluate CoDoC and show that, on our validation dataset, it achieves a precision, recall, and F1 score of 91% in 10-fold cross-validation, outperforming the state-of-the-art SuSi when used on the same dataset. However, similarly to existing tools, we show that in the wild, i.e., with unseen data, CoDoC performs poorly and generates many false positive results. Our findings, together with time-tested results of previous approaches, suggest that machine-learning models for abstract concepts such as privacy fail in practice despite good lab results.
翻译:手机上应用了各种数据, 包括敏感数据, 导致与隐私有关的关注。 欧洲GDPR 等近期条例为处理个人和敏感数据提供了规则。 欧洲GDPR 等近期条例为处理个人和敏感数据提供了规则, 比如, 未经用户同意, 此类数据不得泄漏。 研究人员提出了在移动应用程序中跟踪敏感数据的复杂方法。 与以往方法相比, 计算机应用了深度学习技术, 并将源代码与 API 方法的文档合并起来。 首先, 我们提出了新的定义, 澄清了敏感源和汇方法的概念。 其次, 根据这些定义, 我们构建了一个代表敏感源、 汇、 以及( i. DoC ) 的新的地面真相。 本文介绍了CoDoC, 这个工具旨在恢复机器学习方法, 以精确识别与隐私相关源和 API 方法。 与以前的方法相比, CoDoC 使用了深度学习技术, 并且将源、 将源或汇的源、 显示我们现有的数据排序结果, 将显示我们现有的数据排序方法一起, 将显示我们目前使用的轨道、 和排序数据的结果。