Menu
Heartbleed exposes weaknesses in hardware design

Heartbleed exposes weaknesses in hardware design

Heartbleed highlights memory and cache architecture weaknesses, but a DHS-funded project proposes changes

Heartbleed may have been a software bug, but it highlighted glaring weaknesses in existing hardware architectures, which remain vulnerable to memory-bound attacks, a university researcher said this week.

Data is vulnerable to hackers when in transit or in computer memory, said Ruby Lee, professor of engineering at Princeton University's Department of Electrical Engineering, at a presentation to the Hot Chips conference.

The weakness is in the memory and cache, or secondary memory where data temporarily resides before being sent for processing or storage.

"This is correctly functioning hardware -- with no bugs -- but it is leaking out information," said Lee, who was chief architect and one of the lead processor developers at Hewlett-Packard before joining Princeton.

Securing memory was a hot discussion topic among chip experts at the forum, and Heartbleed sparked discussions on how hackers could access data from memory, storage and interconnects. Chip makers talked about hardware being the first line of defense against such attacks, and proposed techniques to scramble data and secure keys within a chip. A research project at Princeton funded by the U.S. Department of Homeland Security recommended a new architecture that could secure memory and cache.

Heartbleed exposed a critical defect in affected versions of the OpenSSL software library, which enables secure communication over the Internet and networks. Heartbleed affected servers, networking gear and appliances, and hardware makers have since issued patches to protect systems.

Heartbleed was a "side-channel" attack that determined the availability of systems, and hackers could take advantage of defects in OpenSSL to read cache. It would be possible for attackers to steal important data such as passwords, private keys and other identify information from memory and cache, Lee said.

"Lots of people have talked about the attacks, but very few people have talked about the solutions," Lee said. "The hardware is still leaking out your secret keys all the time. Every single piece of hardware that has a cache is vulnerable to cache-side channel leakage."

The weak link is the fixed memory addresses of cache. Attackers can effectively re-create the use of cache by a victim and map bits of keys to specific parts of memory used. Attackers can then extract data from the tracked memory addresses to reconstruct keys.

"Because there's a fixed memory address ... the attacker can look backwards and figure out which memory addresses the victim used," Lee said. "Then he can devise the whole key."

Attackers will be able to "read out the crown jewel of primary keys -- the symmetric keys used for encryption and the private keys that are used for identity in the digital world that you should protect," Lee said.

It's difficult to launch software attacks on hardware, but side-channel attacks can be dangerous, Lee said. An exposed system could be left vulnerable by other bugs like Heartbleed.

"If the attacker can attack fixed systems, it's easier. Once he finds a path, he can attack 80 percent of the system and ... when he comes back, he can find the same path in," Lee said.

To mitigate such attacks, Lee and researchers at Princeton have reconstructed cache architecture so tracks left by the victim are effectively wiped out, making it difficult to carry out side-channel attacks. The cache architecture, called Newcache, could replace the exposed cache and memory in systems today.

"[DHS] would very much like the industry to adopt some of these techniques," Lee said.

Newcache is structured like regular cache, but has dynamic and randomized cache mapping that will make it harder for attackers to correlate memory usage to key bits. That will make it hard for hackers to map the cache and extract data.

"You want to be a moving target so that the attacker ... can't get in the next hour or in an identically configured system," Lee said.

Newcache is ready to implement, and the additional security measures won't hurt performance, Lee said. Memory typically slows down when new features -- like ECC for error correction -- are added. But benchmarks of Newcache actually showed improvements in system performance, Lee said.

"The secure caches are much bigger, they aren't any more power hungry, and with clever circuit design, aren't any slower than your conventional caches," Lee said.

It could take years for chip and system makers to change memory features, but Lee said chip makers need to start thinking about securing data within systems, Lee said.

Memory security should be a priority, Newcache or not, Lee said.

"Most of the security is done in a reactive mode. When an attack happens, people scramble to find a defense and close up a hole," Lee said. "You've got to think ahead."

Agam Shah covers PCs, tablets, servers, chips and semiconductors for IDG News Service. Follow Agam on Twitter at @agamsh. Agam's e-mail address is agam_shah@idg.com

Follow Us

Join the New Zealand Reseller News newsletter!

Error: Please check your email address.

Tags securityhardware systemsU.S. Department of Homeland Security

Featured

Slideshows

Arrow exclusively introduces Tenable Network Security to A/NZ channel

Arrow exclusively introduces Tenable Network Security to A/NZ channel

Arrow Electronics introduced Tenable Network Security to local resellers in Sydney last week, officially launching the distributor's latest security partnership across Australia and New Zealand. Representing the first direct distribution agreement locally for Tenable specifically, the deal sees Arrow deliver security solutions directly to mid-market and enterprise channel partners on both sides of the Tasman.

Arrow exclusively introduces Tenable Network Security to A/NZ channel
Examining the changing job scene in the Kiwi channel

Examining the changing job scene in the Kiwi channel

Typically, the New Year brings new opportunities for personnel within the Kiwi channel. 2017 started no differently, with a host of appointments, departures and reshuffles across vendor, distributor and reseller businesses. As a result, the job scene across New Zealand has changed - here’s a run down of who is working where in the year ahead…

Examining the changing job scene in the Kiwi channel
​What are the top 10 tech trends for New Zealand in 2017?

​What are the top 10 tech trends for New Zealand in 2017?

Digital Transformation (DX) has been a critical topic for business over the last few years and IDC is now predicting a step change as DX reaches macroeconomic levels. By 2020 a DX economy will emerge and it will become the core of what New Zealand industries focus on. From the board level through to the C-Suite, Kiwi organisations must be prepared to think and act digital when the DX economy emerges in 2017.

​What are the top 10 tech trends for New Zealand in 2017?
Show Comments