Rust is a modern systems programming language that ensures memory safety by enforcing ownership and borrowing rules at compile time. While the unsafe keyword allows programmers to bypass these restrictions, it introduces significant risks. Various approaches for isolating unsafe code to protect safe Rust from vulnerabilities have been proposed, yet these methods provide only fixed isolation boundaries and do not accommodate expressive policies that require sandboxing both safe and unsafe code. This paper presents SandCell for flexible and lightweight isolation in Rust by leveraging existing syntactic boundaries. SandCell allows programmers to specify which components to sandbox with minimal annotation effort, enabling fine-grained control over isolation. The system also introduces novel techniques to minimize overhead when transferring data between sandboxes. Our evaluation demonstrates SandCell's effectiveness in preventing vulnerabilities across various Rust applications while maintaining reasonable performance overheads.


翻译:Rust是一种现代系统编程语言,通过在编译时强制执行所有权和借用规则来确保内存安全。虽然unsafe关键字允许程序员绕过这些限制,但这会引入重大风险。目前已有多种隔离不安全代码以保护安全Rust免受漏洞影响的方案被提出,但这些方法仅提供固定的隔离边界,无法支持需要对安全和unsafe代码同时进行沙盒隔离的灵活策略。本文提出SandCell,通过利用现有语法边界实现Rust中灵活轻量的隔离机制。SandCell允许程序员以最小标注代价指定需要沙盒化的组件,实现对隔离机制的细粒度控制。该系统还引入了创新技术以最小化沙盒间数据传输的开销。我们的评估表明,SandCell在保持合理性能开销的同时,能有效防止各类Rust应用中的安全漏洞。

0
下载
关闭预览

相关内容

Rust 是一种注重高效、安全、并行的系统程序语言。
《边缘计算网络安全最佳实践概述》
专知会员服务
39+阅读 · 2022年7月6日
Xsser 一款自动检测XSS漏洞工具
黑白之道
14+阅读 · 2019年8月26日
AnDOSid - 适用于黑客的Android应用程序
黑白之道
11+阅读 · 2019年3月14日
ProxyDroid - 适用于黑客的Android应用程序
黑白之道
55+阅读 · 2019年3月9日
介绍WAF以及过滤机制
黑白之道
22+阅读 · 2019年2月5日
放弃 RNN/LSTM 吧,因为真的不好用!望周知~
人工智能头条
19+阅读 · 2018年4月24日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 2月6日
VIP会员
相关VIP内容
《边缘计算网络安全最佳实践概述》
专知会员服务
39+阅读 · 2022年7月6日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员