Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
abstract

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

Published: 13 June 2024 Publication History
  • Get Citation Alerts
  • 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.

    References

    [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]
    Beichen Liu, Pierre Olivier, and Binoy Ravindran. 2019. SlimGuard: A Secure and Memory-Efficient Heap Allocator. In Proceedings of the 20th International Middleware Conference (Davis, CA, USA) (Middleware '19). Association for Computing Machinery, New York, NY, USA, 1--13. https://doi.org/10.1145/3361525.3361532
    [5]
    Otto Moerbeek. 2009. A new malloc (3) for OpenBSD. In Proceedings of the 2009 European BSD Conference, Vol. 9.
    [6]
    Gene Novark and Emery D. Berger. 2010. DieHarder: Securing the Heap. In Proceedings of the 17th ACM Conference on Computer and Communications Security (Chicago, Illinois, USA) (CCS '10). Association for Computing Machinery, New York, NY, USA, 573--584. https://doi.org/10.1145/1866307.1866371
    [7]
    Jonathan Woodruff, Robert N.M. Watson, David Chisnall, Simon W. Moore, Jonathan Anderson, Brooks Davis, Ben Laurie, Peter G. Neumann, Robert Norton, and Michael Roe. 2014. The CHERI Capability Model: Revisiting RISC in an Age of Risk. SIGARCH Comput. Archit. News, Vol. 42, 3 (june 2014), 457--468. https://doi.org/10.1145/2678373.2665740

    Index Terms

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

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image ACM SIGMETRICS Performance Evaluation Review
        ACM SIGMETRICS Performance Evaluation Review  Volume 52, Issue 1
        SIGMETRICS '24
        June 2024
        104 pages
        ISSN:0163-5999
        DOI:10.1145/3673660
        • Editor:
        • Bo Ji
        Issue’s Table of Contents
        • cover image ACM Conferences
          SIGMETRICS/PERFORMANCE '24: Abstracts of the 2024 ACM SIGMETRICS/IFIP PERFORMANCE Joint International Conference on Measurement and Modeling of Computer Systems
          June 2024
          120 pages
          ISBN:9798400706240
          DOI:10.1145/3652963
        Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        Published: 13 June 2024
        Published in SIGMETRICS Volume 52, Issue 1

        Check for updates

        Author Tags

        1. buffer overflow detection
        2. intel spp
        3. secure heap memory allocator
        4. virtualized clouds

        Qualifiers

        • Abstract

        Funding Sources

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • 0
          Total Citations
        • 20
          Total Downloads
        • Downloads (Last 12 months)20
        • Downloads (Last 6 weeks)9
        Reflects downloads up to 10 Aug 2024

        Other Metrics

        Citations

        View Options

        Get Access

        Login options

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media