VOOZH about

URL: https://thenewstack.io/intel-sgx-not-so-safe-after-all-aepic-leak/

⇱ Intel SGX: Not So Safe After All, ÆPIC Leak - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-08-16 06:00:10
Intel SGX: Not So Safe After All, ÆPIC Leak
Hardware / Security

Intel SGX: Not So Safe After All, ÆPIC Leak

At last week’s 2022 Black Hat Security Conference another Intel CPU-based security hole was uncovered: ÆPIC Leak.
Aug 16th, 2022 6:00am by Steven J. Vaughan-Nichols
👁 Featued image for: Intel SGX: Not So Safe After All, ÆPIC Leak
Featured image by tumbledore from Pixabay.   

Intel’s Software Guard Extensions (SGX) memory encryption technology sounded like such a good idea back in 2015. This set of security instructions would enable programmers to set up protected private memory regions, called enclaves. Within them, data and code would be decrypted as needed. Oh well, it was a nice idea while it lasted. Over half-a-dozen vulnerabilities, including one Spectre variation, soon appeared. And now, at the 2022 Black Hat Security Conference, another CPU-based security hole has been uncovered: ÆPIC Leak.

This one, dug up by European graduate students and an AWS researcher, is a new Intel architectural CPU bug that can leak data without using a side channel. It’s in a word, “Bad!”

Affected CPUs

According to the researchers, with exploits using their discovery, secrets can be leaked from the processor on most 10th, 11th, and 12th generation Intel CPUs. This includes Sunny Cove microarchitecture designs such as Intel’s 10th generation Ice Lake CPUs; its current third generation Xeon scalable server CPUs (Ice Lake SP); and new 12th generation Alder Lake CPUs (Golden Cove). Intel, however, claims that the Alder Lake CPUs aren’t affected.

The ÆPIC Leak works by sampling data transferred between the L2 and last-level cache. This includes SGX enclave data, from the super queue. An attacker can target data in use, such as register values and memory loads, and data at rest, e.g., SGX-enclave data pages. So this end-to-end attack extracts AES-NI, RSA, and even SGX attestation keys from enclaves within a few seconds.

Unlike the infamous transient execution attacks Meltdown and Spectre, ÆPIC Leak is an architectural bug. An attacker can get to the sensitive data without relying on a noisy, side channel. That makes attacks potentially easier to pull up.

Good News

The good news is that pulling such an attack off requires admin or root privilege. In addition, on clouds with virtual machines (VM), hypervisors don’t allow direct access to the local hardware’s Advanced Programmable Interrupt Controller (APIC). Thus, the nightmare security case of cloud-based VMs being cracked can’t happen.

It’s a different story for systems using SGX-based memory encryption for secure, isolated environments. There are at least two techniques, Cache Line Freezing and Enclave Shaking, which can snatch AES-NI keys and RSA keys from Intel’s IPP library and the Intel SGX sealing and remote attestation keys.

Fixing the Problem

Intel is working on fixing this problem. It begins with Intel creating an updated Intel SGX Software Development Kit (SDK) that helps mitigate potential exposure. Intel also recommends users update to the latest firmware. Microcode to address the problem is already available for Linux. The Trusted Computing Base (TCB) recovery for ÆPIC Leak, however, won’t be available until March 7, 2023.

That’s all to the good, but I agree with the researchers. “The only short-term mitigations for ÆPIC Leak are to disable APIC MMIO or not rely on SGX.”

While its Common Vulnerability Scoring System (CVSS) score is only 6.0, for people that rely on SGX for security, it’s much nastier.

It’s also worth pointing out that Intel has already depreciated SGX on some processor families. This depreciation has already caused one unexpected side effect. Consumer users of Intel’s 11th and 12th-gen CPUs can’t watch UHD Blu-ray content in 4K because its digital rights management (DRM) “protection” won’t work without SGX. It’s possible that enterprise software programs may also have trouble without SGX.

TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
Amazon Web Services is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Golden.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.