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

Researchers develop malicious AI ‘worm’ targeting generative AI systems

2 min read - Researchers have created a new, never-seen-before kind of malware they call the "Morris II" worm, which uses popular AI services to spread itself, infect new systems and steal data. The name references the original Morris computer worm that wreaked havoc on the internet in 1988.The worm demonstrates the potential dangers of AI security threats and creates a new urgency around securing AI models.New worm utilizes adversarial self-replicating promptThe researchers from Cornell Tech, the Israel Institute of Technology and Intuit, used what’s…

Passwords, passkeys and familiarity bias

5 min read - As passkey (passwordless authentication) adoption proceeds, misconceptions abound. There appears to be a widespread impression that passkeys may be more convenient and less secure than passwords. The reality is that they are both more secure and more convenient — possibly a first in cybersecurity.Most of us could be forgiven for not realizing passwordless authentication is more secure than passwords. Thinking back to the first couple of use cases I was exposed to — a phone operating system (OS) and a…

DOD establishes Office of the Assistant Secretary of Defense for Cyber Policy

2 min read - The federal government recently took a new step toward prioritizing cybersecurity and demonstrating its commitment to reducing risk. On March 20, 2024, the Pentagon formally established the new Office of the Assistant Secretary of Defense for Cyber Policy to supervise cyber policy for the Department of Defense. The next day, President Joe Biden announced Michael Sulmeyer as his nominee for the role.“In standing up this office, the Department is giving cyber the focus and attention that Congress intended,” said Acting…

Topic updates

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