arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.08461cs.CRcs.SE
收藏

Polytope:C++应用程序的实用内存访问控制

Polytope: Practical Memory Access Control for C++ Applications

Ioannis Agadakos, Manuel Egele, William Robertson

摘要:

设计和实现安全的软件无疑比以往任何时候都更加重要。然而,尽管对特权分离程序进行了多年的研究,但实际上仍然很难做到这一点,而且这种努力可能需要多年的劳动密集型工程才能取得成果。同时,新的进程内隔离原语使强数据隔离和特权隔离从性能角度看更具吸引力。然而,用进程内安全边界代替经过时间考验的进程边界,为微妙但毁灭性的特权泄漏打开了大门。在这项工作中,我们提出了Polytope,一种C++语言扩展,旨在使更广泛的开发人员能够有效地进行权限分离。Polytope定义了一种编码为C++11属性的策略语言,将代码和数据分隔到不同的程序分区中。修改后的Clang前端将源代码级策略作为元数据节点嵌入LLVM IR中。LLVM通道解释嵌入的策略,并使用代码对IR进行仪表化,以使用英特尔MPK实施源代码级策略。运行时支持库管理分区、保护键、动态内存操作和间接调用目标特权。评估表明,Polytope提供了与以前的系统相同的保护,具有较低的注释负担和相当的性能开销。Polytope还使得与预期策略相矛盾的特权泄漏无法表达。

英文摘要:

Designing and implementing secure software is inarguably more important than ever. However, despite years of research into privilege separating programs, it remains difficult to actually do so and such efforts can take years of labor-intensive engineering to reach fruition. At the same time, new intra-process isolation primitives make strong data isolation and privilege separation more attractive from a performance perspective. Yet, substituting intra-process security boundaries for time-tested process boundaries opens the door to subtle but devastating privilege leaks. In this work, we present Polytope, a language extension to C++ that aims to make efficient privilege separation accessible to a wider audience of developers. Polytope defines a policy language encoded as C++11 attributes that separate code and data into distinct program partitions. A modified Clang front-end embeds source-level policy as metadata nodes in the LLVM IR. An LLVM pass interprets embedded policy and instruments an IR with code to enforce the source-level policy using Intel MPK. A run-time support library manages partitions, protection keys, dynamic memory operations, and indirect call target privileges. An evaluation demonstrates that Polytope provides equivalent protection to prior systems with a low annotation burden and comparable performance overhead. Polytope also renders privilege leaks that contradict intended policy impossible to express.

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

↑