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

Mir:针对JavaScript中动态库折衷的自动量化存储缩减

Mir: Automated Quantifiable Privilege Reduction Against Dynamic Library Compromise in JavaScript

Nikos Vasilakis, Cristian-Alexandru Staicu, Grigoris Ntousakis, Konstantinos Kallas, Ben Karel, André DeHon, Michael Pradel

摘要:

第三方库简化了大规模软件系统的开发。但是,它们执行时的权限通常比完成任务所需的权限大得多。这种额外的特权通常在运行时通过动态危害被利用,即使这些库不是恶意的。Mir通过在库边界引入细粒度的读写执行(RWX)权限模型来解决这个问题。导入库的每个字段都由一组权限管理,开发人员可以在导入库时表达这些权限。为了在程序执行期间强制执行这些权限,Mir转换库及其上下文以添加运行时检查。由于权限可能会让开发人员不知所措,Mir的权限推断通过分析库的消费者如何使用库来生成默认权限。Mir的JavaScript原型应用于50个流行的库,证明了RWX权限模型结合了简单性和强大性:它足够简单,可以自动推断99.33%的所需权限,它足够表达,可以抵御16种真正的威胁,它足够有效,可以在实践中使用(1.93%的开销),并且它可以实现特权减少的新量化。

英文摘要:

Third-party libraries ease the development of large-scale software systems. However, they often execute with significantly more privilege than needed to complete their task. This additional privilege is often exploited at runtime via dynamic compromise, even when these libraries are not actively malicious. Mir addresses this problem by introducing a fine-grained read-write-execute (RWX) permission model at the boundaries of libraries. Every field of an imported library is governed by a set of permissions, which developers can express when importing libraries. To enforce these permissions during program execution, Mir transforms libraries and their context to add runtime checks. As permissions can overwhelm developers, Mir's permission inference generates default permissions by analyzing how libraries are used by their consumers. Applied to 50 popular libraries, Mir's prototype for JavaScript demonstrates that the RWX permission model combines simplicity with power: it is simple enough to automatically infer 99.33% of required permissions, it is expressive enough to defend against 16 real threats, it is efficient enough to be usable in practice (1.93% overhead), and it enables a novel quantification of privilege reduction.

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

↑