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

Protecting your digital assets from non-human identity attacks

4 min read - Untethered data accessibility and workflow automation are now foundational elements of most digital infrastructures. With the right applications and protocols in place, businesses no longer need to feel restricted by their lack of manpower or technical capabilities — machines are now filling those gaps.The use of non-human identities (NHIs) to power business-critical applications — especially those used in cloud computing environments or when facilitating service-to-service connections — has opened the doors for seamless operational efficiency. Unfortunately, these doors aren’t the…

Communication platforms play a major role in data breach risks

4 min read - Every online activity or task brings at least some level of cybersecurity risk, but some have more risk than others. Kiteworks Sensitive Content Communications Report found that this is especially true when it comes to using communication tools.When it comes to cybersecurity, communicating means more than just talking to another person; it includes any activity where you are transferring data from one point online to another. Companies use a wide range of different types of tools to communicate, including email,…

Research finds 56% increase in active ransomware groups

4 min read - Any good news is welcomed when evaluating cyber crime trends year-over-year. Over the last two years, IBM’s Threat Index Reports have provided some minor reprieve in this area by showing a gradual decline in the prevalence of ransomware attacks — now accounting for only 17% of all cybersecurity incidents compared to 21% in 2021. Unfortunately, it’s too early to know if this trendline will continue. A recent report released by Searchlight Cyber shows that there has been a 56% increase in…

Topic updates

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