arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.00097cs.PL
收藏

Cocoon:Rust 中的静态信息流控制

Cocoon: Static Information Flow Control in Rust

Ada Lamba, Max Taylor, Vincent Beardsley, Jacob Bambeck, Michael D. Bond, Zhiqiang Lin

AI总结:

本文提出Cocoon,一个基于Rust类型系统和过程宏的静态IFC库,无需修改语言或编译器,实现非干扰性强制,增加编译时间但不影响性能,并在两个真实程序中验证了其效用。

摘要:

信息流控制(IFC)通过强制非干扰性来提供机密性,确保高密级值不能影响低密级值。先前的工作引入了细粒度的IFC方法,这些方法修改编程语言并使用非标准编译工具,引入运行时开销,或报告虚假的机密泄漏——所有这些都阻碍了采用。本文介绍了Cocoon,一个用于静态基于类型的IFC的Rust库,它使用未经修改的Rust语言和编译器。Cocoon的关键洞察在于利用Rust的类型系统和过程宏来建立一个强制非干扰性的效果系统。性能评估表明,使用Cocoon会增加编译时间,但对应用程序性能没有影响。为了展示Cocoon的实用性,我们对两个流行的Rust程序进行了改造,即Spotify TUI客户端和Mozilla的Servo浏览器引擎,使用Cocoon来强制有限的机密性策略。

英文摘要:

Information flow control (IFC) provides confidentiality by enforcing noninterference, which ensures that high-secrecy values cannot affect low-secrecy values. Prior work introduces fine-grained IFC approaches that modify the programming language and use nonstandard compilation tools, impose run-time overhead, or report false secrecy leaks -- all of which hinder adoption. This paper presents Cocoon, a Rust library for static type-based IFC that uses the unmodified Rust language and compiler. The key insight of Cocoon lies in leveraging Rust's type system and procedural macros to establish an effect system that enforces noninterference. A performance evaluation shows that using Cocoon increases compile time but has no impact on application performance. To demonstrate Cocoon's utility, we retrofitted two popular Rust programs, the Spotify TUI client and Mozilla's Servo browser engine, to use Cocoon to enforce limited confidentiality policies.

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

↑