CONFLLVM:一种在低层代码中实现数据保密的加密器
CONFLLVM: A Compiler for Enforcing Data Confidentiality in Low-Level Code
摘要:
我们提出了一个仪表编译器,用于在低级别的应用程序(例如,用C编写的)中执行数据保密性的存在下,一个积极的对手。在我们的方法中,程序员通过在源代码中的顶层定义上编写轻量级注释来标记秘密数据。然后,编译器使用静态流分析,结合高效的运行时检测、自定义内存布局和自定义控制流完整性检查,即使在存在低级攻击的情况下也能防止数据泄漏。我们已经实现了我们的方案作为LLVM编译器的一部分。我们在SPEC微基准测试中评估了它的性能,并在更大的实际应用程序(包括OpenLDAP,大约300KLoC)上评估了在保护密码等敏感数据时重构应用程序所需的程序员开销。我们发现,我们的仪器引入的性能开销是适度的(平均12%的SPEC),和程序员的努力端口OpenLDAP只有约160 LoC。
英文摘要:
We present an instrumenting compiler for enforcing data confidentiality in low-level applications (e.g. those written in C) in the presence of an active adversary. In our approach, the programmer marks secret data by writing lightweight annotations on top-level definitions in the source code. The compiler then uses a static flow analysis coupled with efficient runtime instrumentation, a custom memory layout, and custom control-flow integrity checks to prevent data leaks even in the presence of low-level attacks. We have implemented our scheme as part of the LLVM compiler. We evaluate it on the SPEC micro-benchmarks for performance, and on larger, real-world applications (including OpenLDAP, which is around 300KLoC) for programmer overhead required to restructure the application when protecting the sensitive data such as passwords. We find that performance overheads introduced by our instrumentation are moderate (average 12% on SPEC), and the programmer effort to port OpenLDAP is only about 160 LoC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。