GuaNary: Efficient Buffer Overflow Detection In Virtualized Clouds Using Intel EPT-based Sub-Page Write Protection Support

Author:

Bitchebe Stella1ORCID,Kone Yves2ORCID,Olivier Pierre3ORCID,Boukhobza Jalil4ORCID,Bromberg Yérom-David5ORCID,Hagimont Daniel2ORCID,Tchana Alain6ORCID

Affiliation:

1. McGill University, Montreal, Canada

2. Toulouse INP, Toulouse, France

3. University of Manchester, Manchester, United Kingdom

4. ENSTA Bretagne, Brest, France

5. University of Rennes, Rennes, France

6. Grenoble INP, Grenoble, France

Abstract

Buffer overflow is a widespread memory safety violation in C/C++, reported as the top vulnerability in 2022. Secure memory allocators are generally used to protect systems against attacks that may exploit buffer overflows. Existing allocators mainly rely on two types of countermeasures to prevent or detect overflows: canaries and guard pages, each with pros and cons in terms of detection latency and memory footprint. This paper follows the Out of Hypervisor (OoH) trend for virtualized cloud applications. It introduces GuaNary, a novel safety guard against overflows allowing synchronous detection at a low memory footprint cost. OoH is a new virtualization research axis introduced in 2022 advocating the exposure of hardware features for virtualization to the guest OS so that its processes can take advantage of them. Based on the OoH principle, GuaNary leverages Intel Sub-Page write Permission (SPP), a recent hardware virtualization feature that allows to write-protect guest memory at the granularity of 128B (namely, sub-page) instead of 4KB. We implement a software stack, LeanGuard, which promotes the utilization of SPP from inside virtual machines by new secure allocators that use GuaNary. Our evaluation shows that for the same number of protected buffers, LeanGuard consumes 8.3x less memory than SlimGuard, a state-of-the-art secure allocator. Furthermore, for the same memory consumption, LeanGuard protecting 25x more buffers than SlimGuard.

Funder

Microsoft Research

Google

UK?s EPSRC

NEC

EPSRC/Innovate UK

ANR

Publisher

Association for Computing Machinery (ACM)

Reference7 articles.

1. 2017. Intel EPT-Based Sub-page Write Protection Support. https://lwn.net/Articles/ 736322/.

2. Akritidis and Periklis. 2010. Cling: A Memory Allocator to Mitigate Dangling Pointers. 177--192.

3. Stella Bitchebe and Alain Tchana. 2022. Out of Hypervisor (OoH): Efficient Dirty Page Tracking in Userspace Using Hardware Virtualization Features. In Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis (Dallas, Texas) (SC '22). IEEE Press, Article 87, 14 pages.

4. SlimGuard

5. Otto Moerbeek. 2009. A new malloc (3) for OpenBSD. In Proceedings of the 2009 European BSD Conference, Vol. 9.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3