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

如何在不具备内存安全性的情况下保护现有C和C++软件

How to Secure Existing C and C++ Software without Memory Safety

Úlfar Erlingsson

AI总结:

本文提出利用现有低开销编译器和运行时机制,组合使用以消除内存损坏软件的大多数执行交错,从而在不修改代码或建立内存安全的前提下,显著提升C/C++软件抵御远程代码执行攻击的安全性。

摘要:

软件内存安全最重要的安全优势很容易表述:对于C和C++软件,攻击者可以利用大多数漏洞和缺陷来完全、不受约束地控制软件行为,而对于内存安全软件中的大多数缺陷,情况并非如此。幸运的是,这种安全优势——大多数缺陷不会让攻击者获得完全控制——可以在不修改C/C++软件的情况下实现,且无需针对每个应用程序付出额外努力。这并不需要试图建立内存安全;相反,只需消除内存损坏软件可以执行的组合方式中的大多数即可。为了消除这些交错执行,已经存在实用的编译器和运行时机制,它们开销很小,且不需要特殊硬件或平台支持。这里描述的每种机制已经在生产环境中大规模使用,至少在一个平台上。通过在开发工具链中支持它们的组合使用,所有C和C++软件针对远程代码执行攻击的安全性可以迅速且显著地提高。

英文摘要:

The most important security benefit of software memory safety is easy to state: for C and C++ software, attackers can exploit most bugs and vulnerabilities to gain full, unfettered control of software behavior, whereas this is not true for most bugs in memory-safe software. Fortunately, this security benefit -- most bugs don't give attackers full control -- can be had for unmodified C/C++ software, without per-application effort. This doesn't require trying to establish memory safety; instead, it is sufficient to eliminate most of the combinatorial ways in which software with corrupted memory can execute. To eliminate these interleavings, there already exist practical compiler and runtime mechanisms that incur little overhead and need no special hardware or platform support. Each of the mechanisms described here is already in production use, at scale, on one or more platforms. By supporting their combined use in development toolchains, the security of all C and C++ software against remote code execution attacks can be rapidly, and dramatically, improved.

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

↑