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 Daniel6ORCID,Tchana Alain7ORCID

Affiliation:

1. McGill University, Montreal, PQ, Canada

2. IRIT, Toulouse, France

3. The University of Manchester, Manchester, United Kingdom

4. ENSTA Bretagne, Brest, France

5. University of Rennes, INRIA, Rennes, France

6. University of Toulouse, Toulouse, France

7. Grenoble INP, Grenoble, France

Abstract

Write buffer overflow is a widespread and prevalent memory safety violation in C/C++, reported as the top vulnerability in 2022 and 2023. 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 write overflows: canaries and guard pages, each with pros and cons in terms of detection latency and memory footprint. For virtualized cloud applications, this paper follows the Out of Hypervisor (OoH) trend and introduces GuaNary, a safety guard against write 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.3× less memory than SlimGuard, a recent state-of-art secure allocator. Further, for the same memory consumption, LeanGuard allows protecting 25× more buffers than SlimGuard.

Funder

EPSRC/Innovate

Google

Microsoft Research

New Research

ANR

UK?s

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Networks and Communications,Hardware and Architecture,Safety, Risk, Reliability and Quality,Computer Science (miscellaneous)

Reference68 articles.

1. [n. d.]. Checkpoint Restore In Userspace. https://criu.org/Main_Page. Accessed: 2023-03-09. [n. d.]. Checkpoint Restore In Userspace. https://criu.org/Main_Page. Accessed: 2023-03-09.

2. [n. d.]. Chunk Overlap Attack. https://ctf-wiki.mahaloz.re/pwn/linux/glibc-heap/chunk_extend_overlapping/. Accessed: 2022-05--29. [n. d.]. Chunk Overlap Attack. https://ctf-wiki.mahaloz.re/pwn/linux/glibc-heap/chunk_extend_overlapping/. Accessed: 2022-05--29.

3. [n. d.]. Fast Bin Attack. https://guyinatuxedo.github.io/28-fastbin_attack/explanation_fastbinAttack/index.html. Accessed: 2022-05--29. [n. d.]. Fast Bin Attack. https://guyinatuxedo.github.io/28-fastbin_attack/explanation_fastbinAttack/index.html. Accessed: 2022-05--29.

4. [n. d.]. A garbage collector for c and c. https://www.hboehm.info/gc/. Accessed: 2023-03-09. [n. d.]. A garbage collector for c and c. https://www.hboehm.info/gc/. Accessed: 2023-03-09.

5. [n. d.]. Github : Security Vulnerabilities. https://github.com/GrapheneOS/hardened_malloc. [n. d.]. Github : Security Vulnerabilities. https://github.com/GrapheneOS/hardened_malloc.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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