March 9, 2017 By Larry Loeb 2 min read

Software Guard Extensions (SGX) are essentially an isolation mechanism. Like an RSA key, it tries to protect code and data from modification or disclosure, even if all privileged software is considered malicious.

Now, Intel added the SGX to its hardware starting with Skylake models in an effort to get a protective fence nailed down around data as it floats through the cloud.

The SGX Concept

The idea was that if you stored the keys inside this special enclave memory area, it would be encrypted and kept isolated from the rest of the chip through Intel’s hardware. Even if attackers got into the enclave somehow, they would find data encrypted and useless — or so Intel thought.

But five people at Graz University of Technology in Austria came up with a way to hose SGX. They devised an attack method that utilizes the first known SGX malware, which they also developed.

These researchers wrote a paper, titled “Malware Guard Extension: Using SGX to Conceal Cache Attacks,” that gets into the details of how they operate the malware. To make their point, they showed it working both in a native environment and across multiple Docker cloud containers.

The malware was a key-stealing proof of concept (PoC) that was directed at another co-located, secured enclave. The malware used SGX against itself, keeping its existence secret from other software processes by hiding inside of the SGX isolation.

Recovering the RSA Key

The researchers reported that the PoC malware was able to recover RSA keys by monitoring the cache access patterns of an RSA signature process in a semisynchronous attack. They found that a “Prime+Probe cache side-channel” attack could get 96 percent of an RSA private key from just one single trace, according to the paper.

SecurityWeek noted that the attack could extract the full RSA private key from 11 traces within five minutes of operation. Once the attackers have the private key, the enclave can be decrypted.

Researchers were able to come up with “highly accurate” timings within an enclave without access to the native time stamp counter. In fact, they reported that the method they used to replace the timer is even more accurate than if they had access to the native counter.

There is no easy mitigation for this problem. A comprehensive solution may require changes to the enclave, operating system and hardware itself. Until a resolution is found, this is a serious and ubiquitous vulnerability, and SGX is making it undetectable.

More from

What NIST’s post-quantum cryptography standards mean for data security

2 min read - Data security is the cornerstone of every business operation. Today, the security of sensitive data and communication depends on traditional cryptography methods, such as the RSA algorithm. While such algorithms secure against today’s threats, organizations must continue to look forward and begin to prepare against upcoming risk factors.The National Institute of Standards and Technology (NIST) published its first set of post-quantum cryptography (PQC) standards. This landmark announcement is an important marker in the modern cybersecurity landscape, cementing the indeterminate future…

Best practices on securing your AI deployment

4 min read - As organizations embrace generative AI, there are a host of benefits that they are expecting from these projects—from efficiency and productivity gains to improved speed of business to more innovation in products and services. However, one factor that forms a critical part of this AI innovation is trust. Trustworthy AI relies on understanding how the AI works and how it makes decisions.According to a survey of C-suite executives from the IBM Institute for Business Value, 82% of respondents say secure and…

Has BlackCat returned as Cicada3301? Maybe.

4 min read - In 2022, BlackCat ransomware (also known as ALPHV) was among the top malware types tracked by IBM X-Force. The following year, the threat actor group added new tools and tactics to enhance BlackCat's impact. The effort paid off — literally. In March 2024, BlackCat successfully compromised Change Healthcare and received a ransom payment of $22 million in Bitcoin. But here's where things get weird: Immediately after taking payment, BlackCat closed its doors, citing "the feds" as the reason for the…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today