Cocoon: Static Information Flow Control in Rust
Ada Lamba, Max Taylor, Vincent Beardsley, Jacob Bambeck, Michael D. Bond, Zhiqiang Lin
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Paralegal: Practical Static Analysis for Privacy Bugs 引用了 Sesame: Practical End-to-End Privacy Compliance with Policy Containers and Privacy Regions
- Paralegal: Practical Static Analysis for Privacy Bugs 引用了 Modular information flow through ownership
- Carapace: Static-Dynamic Information Flow Control in Rust 引用了 Sesame: Practical End-to-End Privacy Compliance with Policy Containers and Privacy Regions
- Carapace: Static-Dynamic Information Flow Control in Rust 引用了 Modular information flow through ownership
- Carapace: Static-Dynamic Information Flow Control in Rust 引用了 Co-Inflow: Coarse-grained Information Flow Control for Java-like Languages
- Carapace: Static-Dynamic Information Flow Control in Rust 引用了 Retrofitting Fine Grain Isolation in the Firefox Renderer
- Sesame: Practical End-to-End Privacy Compliance with Policy Containers and Privacy Regions 引用了 Modular information flow through ownership
- Sesame: Practical End-to-End Privacy Compliance with Policy Containers and Privacy Regions 引用了 Retrofitting Fine Grain Isolation in the Firefox Renderer
- Sound Enforcement of Dynamic Release Information Flow Policy 引用了 Carapace: Static-Dynamic Information Flow Control in Rust
- A Type System for Safe Intermittent Computing 引用了 Modular information flow through ownership
引用它的顶会 Paper4
- Carapace: Static-Dynamic Information Flow Control in RustVincent Beardsley, Chris Xiong, Ada Lamba, Michael D. BondOOPSLA 2025 · 3 次引用
- Paralegal: Practical Static Analysis for Privacy BugsJustus Adam, Carolyn Zech, Livia Zhu, Sreshtaa Rajesh 等OSDI 2025 · 2 次引用
- Sesame: Practical End-to-End Privacy Compliance with Policy Containers and Privacy RegionsKinan Dak Albab, Artem Agvanian, Allen Aby, Corinn Tiffany 等SOSP 2024 · 2 次引用
- Sound Enforcement of Dynamic Release Information Flow PolicyJeffrey Ching, Danfeng ZhangOOPSLA 2026
它引用的 Paper5
- Viaduct: an extensible, optimizing compiler for secure distributed programsCosku Acay, Rolph Recto, Joshua Gancher, Andrew C. Myers 等PLDI 2021 · 25 次引用
- A Type System for Safe Intermittent ComputingMilijana Surbatovich, Naomi Spargo, Limin Jia, Brandon LuciaPLDI 2023 · 13 次引用
- Modular information flow through ownershipWill Crichton, Marco Patrignani, Maneesh Agrawala, Pat HanrahanPLDI 2022 · 13 次引用
- Co-Inflow: Coarse-grained Information Flow Control for Java-like LanguagesJian Xiang, Stephen ChongS&P 2021 · 12 次引用
- Retrofitting Fine Grain Isolation in the Firefox RendererShravan Narayan, Craig Disselkoen, Tal Garfinkel, Nathan Froyd 等USENIX Security 2020
相关 Paper
- A Type System for Optimizing Dynamic IFCDaniel Galán Pascual, François Hublet, Srđan Krstić, Roman Fischer 等OOPSLA 2026
- TRust: A Compilation Framework for In-process Isolation to Protect Safe Rust against Untrusted CodeInyoung Bang, Martin Kayondo, Hyungon Moon, Yunheung PaekUSENIX Security 2023
- Rusted Types: Static Detection of Rust Type Confusion BugsZeyang Zhuang, Wei Meng, Michael R. LyuICSE 2026
- Securing Mixed Rust with Hardware CapabilitiesJason Zhijingcheng Yu, Fangqi Han, Kaustab Choudhury, Trevor E. Carlson 等CCS 2025 · 1 次引用
- Quest Complete: The Holy Grail of Gradual SecurityTianyu Chen, Jeremy G. SiekPLDI 2024 · 6 次引用
