hottub.patents
US 12,657,287 B2#3215922 Most CitedActiveUnited States (USPTO)Utility

System and method for loading enclave-aware executables

0Forward Citations (#3215922 Global)
0.0/yrCitation Velocity (#3215922 Global)
0.00Citation PageRank (#3215922 Global)
36Prior Art Cited
17Claims (3 Indep. · 14 Dep.)
21Drawings / Sheets

Abstract

Ways for enhancing security in computing environments through automating the execution of enclaves are provided. A system includes an enclave-aware loader, an enclave-aware Application Binary Interface (eABI), an eABI-aware runtime, a usermode process, and an enclave-aware executable including protected and unprotected sections. The enclave-aware loader may analyze the enclave-aware executable, create an instance of an enclave in the memory, add a portion of the enclave-aware executable into the enclave, and initialize the enclave. The enclave-aware loader may provision the usermode process to interoperate with the enclave. The enclave-aware loader may load the protected sections into the enclave, and the unprotected sections into common memory. The enclave-aware loader may load the eABI-aware runtime into memory and initialize for interoperability between the eABI and the enclave. The system may also include an enclave-aware compiler that may translate generic source code into an enclave-aware executable.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 0.

Claims (17 — 3 Independent, 14 Dependent)

  1. Claim 1Independent Claim

    A system for enhancing security in a computing environment that supports an enclave, the system comprising: an enclave-aware processor; a memory in communication with the enclave-aware processor, the memory including an enclave-aware loader and a usermode process; and an enclave-aware executable, the enclave-aware executable including an executable compiled to be added to the enclave and operate within the enclave; wherein: the enclave-aware loader is configured to load an unprotected section into a common memory; and the enclave-aware loader is further configured to: facilitate a loading of the enclave-aware executable within the enclave, analyze the enclave-aware executable, create an instance of an enclave in the memory, add a portion of the enclave-aware executable into the enclave, initialize the enclave, and provision the usermode process to interoperate with the enclave; and the enclave is configured to interoperate with the usermode process.

  2. Claim 2Depends on #1

    The system of claim 1, further comprising an enclave-aware Application Binary Interface (eABI), a common virtual address space, the common virtual address space including the common memory, and a pseudo library, wherein: the enclave-aware processor is configured to execute a restricted instruction; the enclave-aware loader is configured to analyze the pseudo library, create an instance of a pseudo enclave in the common memory, add a portion of the pseudo library into the pseudo enclave, and initialize the pseudo enclave; and the pseudo enclave is configured to execute the restricted instruction and interoperate with the usermode process via the eABI.

  3. Claim 3Depends on #2

    The system of claim 2, wherein the enclave-aware executable includes a section, the section including a member selected from a group consisting of a protected text section, an unprotected text section, a protected data section, an unprotected data section, and combinations thereof, wherein: the enclave-aware loader is configured to load a portion of the protected text section into the enclave when the enclave-aware executable includes the protected text section, load a portion of the protected data section into the enclave when the enclave-aware executable includes the protected data section, load a portion of the unprotected text section into the common memory when the enclave-aware executable includes the unprotected text section, and load a portion of the unprotected data section into the common memory when the enclave-aware executable includes the unprotected data section; and the enclave-aware executable is configured to run within the common virtual address space.

  4. Claim 4Depends on #1

    The system of claim 1, further comprising an eABI-aware runtime, wherein: the enclave-aware loader is further configured to load the eABI-aware runtime into memory, and initialize the eABI-aware runtime; and the eABI-aware runtime is configured to interoperate with the enclave.

  5. Claim 5Depends on #1

    The system of claim 1, further comprising an eABI-aware library and an eABI-aware executable, the eABI-aware library including a published symbol, and the eABI-aware executable including an external symbol dependency, wherein: the enclave-aware loader is further configured to resolve the external symbol dependency to the published symbol; and the external symbol dependency is configured to access the published symbol.

  6. Claim 6Depends on #1

    The system of claim 1, further comprising a data security mode, the data security mode including a member selected from a group consisting of a plaintext mode, an encryption mode, a validation mode, an encryption with validation mode, and combinations thereof.

  7. Claim 7Depends on #1

    The system of claim 1, further comprising a certificate, and an enclave-compatible cryptographic key associated with the certificate, wherein the enclave-aware loader is further configured to verify the enclave is initialized with the enclave-compatible cryptographic key associated with the certificate.

  8. Claim 8Depends on #7

    The system of claim 7, further comprising a computing environment, a certificate-based public key infrastructure, and a production mode, the production mode including an active state, wherein the computing environment is configured to trust every certificate via the certificate-based public key infrastructure when the production mode is in the active state.

  9. Claim 9Depends on #1

    The system of claim 1, further comprising an enclave-aware Application Binary Interface (eABI) and a generic source code, wherein: the memory further includes an enclave-aware compiler configured to translate a portion of the generic source code into the enclave-aware executable, the enclave-aware executable including enclave-aware instructions configured to interoperate with an enclave, and processor instructions configured to interoperate between the enclave and the usermode process via the eABI; and the enclave-aware processor is configured to execute the processor instructions and the enclave-aware instructions.

  10. Claim 10Depends on #1

    The system of claim 1, the memory further including an eABI-aware runtime, wherein the usermode process is configured to interoperate with the enclave via the eABI-aware runtime.

  11. Claim 11Depends on #1

    The system of claim 1, further comprising an enclave-aware Application Binary Interface (eABI) and a generic source code, wherein: the enclave-aware processor is configured to execute processor instructions and enclave-aware instructions; the memory further includes an enclave-aware compiler and an eABI-aware runtime; the enclave-aware compiler is configured to translate a portion of the generic source code into the enclave-aware executable, the enclave-aware executable including enclave-aware instructions and processor instructions; the enclave-aware instructions configured to interoperate with an enclave; the processor instructions configured to interoperate between the enclave and the usermode process via the eABI; and the usermode process is configured to interoperate with the enclave via the eABI-aware runtime.

  12. Claim 12Depends on #1

    The system of claim 1, further comprising a production mode, the production mode including an active state, wherein the computing environment is configured to trust every enclave via the enclave-aware loader when the production mode is in the active state.

  13. Claim 13Independent Claim

    A non-transitory computer-readable medium storing enclave-aware instructions that, when executed by an enclave-aware processor, cause the enclave-aware processor to: analyze an enclave-aware executable via an enclave-aware loader, the enclave-aware executable including an executable compiled to be added to an enclave and operate within the enclave, the enclave-aware loader configured to load a protected section of the enclave-aware executable into the enclave, the enclave-aware loader further configured to load an unprotected section into a common memory; create an instance of the enclave inside a usermode process via the enclave-aware loader; load the protected section of the enclave-aware executable into the enclave via the enclave-aware loader; and initialize the enclave; wherein the enclave interoperates with the usermode process.

  14. Claim 14Independent Claim

    A system for enhancing security in a computing environment that supports an enclave, the system comprising: an enclave-aware processor, the enclave-aware processor is configured to execute processor instructions and enclave-aware instructions; the enclave-aware instructions configured to interoperate with the enclave; an enclave-aware Application Binary Interface (eABI); a memory in communication with the enclave-aware processor, the memory including an enclave-aware loader, a usermode process, and an eABI-aware runtime; a common virtual address space, the common virtual address space including a common memory; an enclave-aware executable including: an executable compiled to be added to the enclave and operate within the enclave, a certificate, an enclave-compatible cryptographic key associated with the certificate, and a section, the section including a member selected from a group consisting of a protected text section including an enclave-aware instruction, an unprotected text section, a protected data section, an unprotected data section, and combinations thereof; a data security mode including a member selected from a group consisting of a plaintext mode, an encryption mode, a validation mode, an encryption with validation mode, and combinations thereof; and a production mode including an active state, wherein the computing environment is configured to trust every certificate via a certificate-based public key infrastructure when the production mode is in the active state; wherein: the enclave-aware loader is configured to facilitate a loading of the enclave-aware executable within the enclave by: analyzing the enclave-aware executable, creating an instance of the enclave in the memory, loading a portion of the protected text section into the enclave when the enclave-aware executable includes the protected text section, load a portion of the protected data section into the enclave when the enclave-aware executable includes the protected data section, load a portion of the unprotected text section into the common memory when the enclave-aware executable includes the unprotected text section, and load a portion of the unprotected data section into the common memory when the enclave-aware executable includes the unprotected data section, initializing the enclave, and verifying the enclave is initialized with the enclave-compatible cryptographic key associated with the certificate; the enclave-aware loader is further configured to: load the eABI-aware runtime into the memory, and initialize the eABI-aware runtime; the eABI-aware runtime is configured to interoperate with the enclave; the enclave is configured to interoperate with the usermode process; and the usermode process is configured to interoperate with the enclave via the eABI-aware runtime.

  15. Claim 15Depends on #14

    The system of claim 14, further comprising a pseudo library in the common memory, wherein: the enclave-aware processor is configured to execute a restricted instruction; the enclave-aware loader is configured to analyze the pseudo library, create an instance of a pseudo enclave in the common memory, add a portion of the pseudo library into the pseudo enclave, and initialize the pseudo enclave; and the pseudo enclave is configured to execute the restricted instruction and interoperate with the usermode process via the eABI.

  16. Claim 16Depends on #15

    The system of claim 15, wherein: the enclave-aware executable further comprising an external symbol dependency; the pseudo library further comprising a published symbol; the enclave-aware loader is further configured to resolve the external symbol dependency to the published symbol; and the external symbol dependency is configured to access the published symbol.

  17. Claim 17Depends on #14

    The system of claim 14, further comprising a generic source code, wherein: the memory further includes an enclave-aware compiler; and the enclave-aware compiler is configured to translate a portion of the generic source code into the enclave-aware executable, the enclave-aware executable including an enclave-aware instruction and a processor instruction.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Application No. 63/565,907, filed on Mar. 15, 2024. The entire disclosure of the above application is incorporated herein by reference. FIELD The present technology relates to secure computation, computer security, and data protection within computing environments, and, more particularly, to ways for securely managing partitioned executable code and data within isolated memory regions. INTRODUCTION This section provides background information related to the present disclosure which is not necessarily prior art. Computer programs may represent a substantial investment in development resources, a return on which may be realized only if the programs are believed to be both useful and secure by end-users. Trusted Execution Environments (TEEs) may be used to ensure that programs are utilized in their intended manner by providing confidentiality and integrity guarantees to end-users. Unfortunately, retrofitting support for TEEs after a program has already been completed may be time-consuming and creates substantial risk. Furthermore, it may be nearly impossible to add support for TEEs to a software library developed by an autonomous organization. TEEs guarantee that code and data are protected with respect to confidentiality and integrity. One technology which provides TEEs is memory enclaves. Enclaves may provide a secure, partitioned container for executing trusted code on a computer that is running less trusted code outside of enclaves. Instructions executing outside an enclave may not access content inside the enclave ( FIG. 1 ). Instructions executing inside an enclave may access data both inside and outside the enclave. One such enclave technology is provided by Intel ® and is called Intel ® Software Guard Extensions (SGX) enclave technology. Other enclave technologies include AMD ® Secure Encrypted Virtualization (SEV) enclave technology, ARM ® TrustZone ® isolation tech

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (10)

  • Tsai et al, Graphene-SGX: A Practical Library OS for Unmodified Applications on SGX, 2017, USENIX Association, 15 Pages total (Year: 2017).
  • Lind, Glamdring: Automatic Application Partitioning for Intel SGX, 2017, USENIX Association, 15 Pages Total (Year: 2017).
  • Intel
  • ®
  • SGX Software Guard Extensions Overview. https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html.
  • Intel
  • ®
  • Software Guard Extensions Programming Reference. Oct. 2014. https://www.intel.com/content/dam/develop/external/US/en/documents/329298-002-629101.pdf.
  • Intel
  • ®