Filament:为Rust设计的Denning式信息流控制
Filament: Denning-Style Information Flow Control for Rust
AI总结:
Filament是Rust中无需编译器修改的Denning式静态信息流控制库,通过类型推断实现细粒度显式流检查,引入pc_block!轻量构造实现隐式流控制,并提供fcall!和mcall!宏支持与标准库及第三方库的安全互操作。
摘要:
现有基于语言的信息流控制(IFC)工具面临根本性矛盾:Denning式系统通过变量层面跟踪显式和隐式流通常需要编译器修改,而更粗粒度的方法,包括最近的Cocoon,避免编译器修改但施加更严格的编程模型。我们提出了Filament,一个为Rust设计的Denning式静态IFC库,无需编译器修改。Filament解决了构建实用IFC库的三个关键挑战。首先,它通过利用Rust的类型推断实现了细粒度显式流检查,同时最小化注解开销。其次,它引入pc_block!,一种轻量级构造,通过编译时程序计数器标签强制隐式流,而无需编译器支持。第三,它提供了fcall!和mcall!宏,以支持与标准库和第三方库的无缝安全互操作。我们的评估显示,Filament的编译时间开销极小,仅需适度的注解。此外,与Cocoon相比,Filament提供了一个更宽容的编程模型,减少了频繁需要逃避安全检查的豁免需求。
英文摘要:
Existing language-based information-flow control (IFC) tools face a fundamental tension: Denning-style systems that track explicit and implicit flows at the variable level typically require compiler modifications, while more coarse-grained approaches, including recent work Cocoon, avoid compiler changes but impose more restrictive programming models. We present Filament, a Denning-style static IFC library for Rust that requires no compiler modifications. Filament addresses three key challenges in building a practical IFC library for Rust. First, it enables fine-grained explicit-flow checking with minimal annotation overhead by leveraging Rust's type inference. Second, it introduces pc_block!, a lightweight construct for enforcing implicit flows via a compile-time program counter label, without requiring compiler support. Third, it provides fcall! and mcall! macros to support seamless and safe interoperability with standard and third-party libraries. Our evaluation shows that Filament incurs negligible compile-time overhead and requires only modest annotations. Moreover, compared to Cocoon, Filament offers a more permissive programming model, reducing the need for frequent escape hatches that bypass security checks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。