Skip to content

Intel® SGX SDK 2.31

Latest

Choose a tag to compare

@bgotowal bgotowal released this 02 Dec 20:35
4ebd066

Intel® Software Guard Extensions SDK (Intel® SGX SDK)

  • Intel® Software Guard Extensions SDK
    • [BREAKING] Removed the OpenSSL/SGXSSL crypto build option (USE_OPT_LIBS=0), deprecated in 2.30. The Intel® Cryptography Primitives Library (CPL) is now the only sgx_tcrypto backend.
      • The default build, the sgx_tcrypto API/ABI and the sgx_tcrypto.h header are unchanged, so enclave sources need no edits.
      • Only builds that explicitly passed USE_OPT_LIBS=0 are affected: the flag now aborts the build with a migration hint. USE_OPT_LIBS=1 is still accepted.
    • Updated the Intel® Cryptography Primitives Library dependency to 2.3.0 and re-enabled the AVX-512 IFMA variant that was temporarily disabled in 2.30.
    • Extended sgx_ql_qv_supplemental_t to supplemental data version 3.6: appended the TDQE SVN (sgx_tdqe_svn), the TD Migration fields (tdx_vmid, tdx_td_id, tdx_init_*, tdx_curr_*) and tee_report_type. Consumers that allocate this structure by sizeof() should rebuild against the updated headers.
    • Improved the start-up synchronization of the untrusted switchless workers. The change is in the static libsgx_uswitchless.a; applications using switchless calls must be relinked to pick it up.
    • uRTS: stricter validation of ELF relocation data when loading an enclave.
    • Trusted pthread library: improved thread descriptor lifetime management; a failed pthread_create() OCALL now aborts the enclave.
    • Protected FS and trusted crypto: additional scrubbing of sensitive buffers on error paths and on destruction.
    • C++ runtime: improved exception handling under heap exhaustion.
    • Trusted Verification Library (TVL): stricter input validation for QAE appraisal.
    • Intel® SGX debugger (sgx-gdb): improved XSAVE handling; the uRTS debugger hooks are now exported.
    • Removed the liburts_internal.so build artifact; AESM now uses the regular uRTS from libsgx-urts.
  • Build and packaging
    • The build no longer downloads the patched prebuilt GNU binutils toolset. CVE-2020-0551 mitigation builds use the system assembler, and make reports an early configuration error if it lacks the required options. The last published package remains available for legacy operating systems.
    • Added WERROR=0 to opt out of the blanket -Werror, for building with compilers newer than the validated ones. Warnings are still reported and -Werror=format-security stays in force.
    • make preparation now fully honors OFFLINE_BUILD=1.
    • The SDK installer no longer needs binutils (objdump) on the target system.
    • Untrusted binaries keep the Intel® CET (IBT/SHSTK) note at link time and carry a deterministic build-id. Release builds of libsgx_utls.a, libtdx_tls.a, the simulation libraries and sgx_encrypt no longer carry debug information.
    • Build output is one short line per step by default; pass V=1 for the full command lines.
    • The sgx-enclave-runtime install target now selects the udev rule by the build host's systemd version, like libsgx-enclave-common. On systemd 248 or later it installs 94-sgx-enclave.rules instead of 91-sgx-enclave.rules (MODE=0666), so /dev/sgx_enclave keeps systemd's default permissions (0660, group sgx).
    • Removed the unused single .spec file sgx-enclave-runtime RPM packaging. The regular rpm_enclave_runtime / rpm_psw_pkg flow is unaffected.
    • Split the README into README.md, BUILDING.md and INSTALL.md.
  • Sample projects
    • SampleAttestedTLS now builds against Intel® SGX SSL 3.5.9 (OpenSSL 3.5.9, previously 3.0.20) and verifies the checksum of the downloaded OpenSSL archive.
  • Other changes
    • Removed Debian* 10 support. Debian 10 reached end of life on June 30, 2024 💬 Debian announcement.
    • Security hardening and bug fixes.

Note

Migrating from USE_OPT_LIBS=0 (OpenSSL/SGXSSL crypto build option).

  • If you built with USE_OPT_LIBS=0 only to get a working SDK → drop the flag and build the default (make sdk).
    The sgx_tcrypto API and sgx_tcrypto.h header are identical; no enclave source changes are required, only the backing implementation (CPL instead of OpenSSL) differs.
  • If you need OpenSSL's wider libcrypto inside the enclave → build the standalone Intel SGX SSL project (intel/intel-sgx-ssl) from source and link it into your enclave.
    This is independent of how the SDK was built, coexists with the CPL-based SDK, and is demonstrated by the SampleAttestedTLS sample.

📦  Download information

   (click to expand)

Downloads

Ubuntu* Debian* RHEL* CentOS*
Stream
SUSE* Anolis OS* Azure
Linux*
SDK installer - 22.04
- 24.04
- 26.04
- 12
- 13
- 9.6
- 9.8
- 10.0
- 10.2
- 9
- 10
- 15.7
- 16
- 8.10 - 3.0
Local repo
DEB/RPM packages
- 22.04
- 24.04
- 26.04
- 12
- 13
- 9.6
- 9.8
- 10.0
- 10.2
- 9
- 10
- 15.7
- 16
- 8.10 - 3.0

💡 TIP: Ubuntu* packages are also served from the live Intel® SGX APT repository at https://download.01.org/intel-sgx/sgx_repo/ubuntu.