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

CheckedCBox:面向增量空间存储安全的基于CASIC的类型定向程序划分

CheckedCBox: Type Directed Program Partitioning with Checked C for Incremental Spatial Memory Safety

Liyi Li, Arunkumar Bhattar, Le Chang, Mingwei Zhu, Aravind Machiry

摘要:

空间内存安全违规仍然是C程序的一个主要问题。Anchoked-C是一种安全的C语言方言,并扩展了它的指针类型和注释,以向后兼容的方式保证空间内存安全,允许检查指针和常规(未检查)指针类型的混合。然而,未经检查的代码漏洞可能会违反经检查的代码的空间安全保证。我们提出了一个灵活的,类型导向的程序分区机制,以masked-C,通过增强masked-C类型系统与污染的类型,使灵活的分区的程序到检查和未检查的区域,在这样的方式,未检查的区域代码不会影响空间安全检查区域。我们形式化我们的类型系统,并证明了非崩溃和非暴露性质的一个良好的类型化的PockedCBox程序。我们以一种可配置的方式实现了WebkedCBox,这使我们能够使用现有的沙箱机制(例如WebAssembly)来执行程序。因此,在这样做的过程中,通过有效地分区程序,AnchikedCBox已经防止了四个已知的漏洞。

英文摘要:

Spatial memory safety violation is still a major issue for C programs. Checked-C is a safe dialect of C and extends it with Checked pointer types and annotations that guarantee spatial memory safety in a backward-compatible manner, allowing the mix of checked pointers and regular (unchecked) pointer types. However, unchecked code vulnerabilities can violate the checked code's spatial safety guarantees. We present CheckedCBox, which adds a flexible, type-directed program partitioning mechanism to Checked-C, by enhancing the Checked-C type system with tainted types that enable flexible partitioning of the program into checked and unchecked regions, in a manner such that unchecked region code does not affect the spatial safety in the checked region. We formalize our type system and prove the non-crashing and non-exposure properties of a well-typed CheckedCBox program. We implemented CheckedCBox in a configurable manner, which enables us to use existing sandbox mechanisms (eg WebAssembly) to execute programs. Consequently, in doing so, CheckedCBox has prevented four known vulnerabilities by efficiently partitioning the program.

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

↑