arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.11507cs.CR
收藏

现实世界JavaScript中信息流动的实证研究

An Empirical Study of Information Flows in Real-World JavaScript

Cristian-Alexandru Staicu, Daniel Schoepe, Musard Balliu, Michael Pradel, Andrei Sabelfeld

摘要:

信息流分析可防止秘密或不可信的数据流入公共或可信的接收器。现有的机制涵盖了广泛的选项,从轻量级的污点分析到重量级的信息流控制(也考虑隐式流)。动态分析在JavaScript等语言中特别流行,它面临着是否要投资于分析由于不执行特定分支而导致的流(所谓的隐藏隐式流)的问题。本文讨论的问题是如何常见的不同类型的流在现实世界中的程序,这些流是多么重要,以执行安全策略,以及如何成本是考虑这些流。我们在一项实证研究中解决了这些问题,该研究分析了56个现实世界中的JavaScript程序,这些程序存在各种安全问题,如代码注入漏洞,拒绝服务漏洞,内存泄漏和隐私泄漏。这项研究是基于一个国家的最先进的动态信息流分析和形式化的核心。我们发现,隐式流是昂贵的跟踪许可,标签蠕变,和运行时开销。我们发现一个轻量级的污点分析是足够的大多数研究的安全问题,而对于一些隐私相关的代码,有时需要可观察的跟踪。相比之下,我们没有发现任何证据表明,跟踪隐藏的隐式流揭示了其他错过的安全问题。我们的研究结果有助于证券分析师和分析设计师了解信息流分析的成本效益权衡,并提供经验证据,以具有成本效益的方式分析隐式流是一个相关的问题。

英文摘要:

Information flow analysis prevents secret or untrusted data from flowing into public or trusted sinks. Existing mechanisms cover a wide array of options, ranging from lightweight taint analysis to heavyweight information flow control that also considers implicit flows. Dynamic analysis, which is particularly popular for languages such as JavaScript, faces the question whether to invest in analyzing flows caused by not executing a particular branch, so-called hidden implicit flows. This paper addresses the questions how common different kinds of flows are in real-world programs, how important these flows are to enforce security policies, and how costly it is to consider these flows. We address these questions in an empirical study that analyzes 56 real-world JavaScript programs that suffer from various security problems, such as code injection vulnerabilities, denial of service vulnerabilities, memory leaks, and privacy leaks. The study is based on a state-of-the-art dynamic information flow analysis and a formalization of its core. We find that implicit flows are expensive to track in terms of permissiveness, label creep, and runtime overhead. We find a lightweight taint analysis to be sufficient for most of the studied security problems, while for some privacy-related code, observable tracking is sometimes required. In contrast, we do not find any evidence that tracking hidden implicit flows reveals otherwise missed security problems. Our results help security analysts and analysis designers to understand the cost-benefit tradeoffs of information flow analysis and provide empirical evidence that analyzing implicit flows in a cost-effective way is a relevant problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑