{"id":124892,"date":"2015-05-02T13:00:56","date_gmt":"2015-05-02T11:00:56","guid":{"rendered":"http:\/\/mybroadband.co.za\/news\/?p=124892"},"modified":"2015-04-30T15:39:17","modified_gmt":"2015-04-30T13:39:17","slug":"cloud-security-reaches-silicon","status":"publish","type":"post","link":"https:\/\/mybroadband.co.za\/news\/security\/124892-cloud-security-reaches-silicon.html","title":{"rendered":"Cloud security reaches silicon"},"content":{"rendered":"<p>In the last 10 years, computer security researchers have shown that malicious hackers don\u2019t need to see your data in order to steal your data.<\/p>\n<p>From the pattern in which your computer accesses its memory banks, adversaries can infer a <strong><a title=\"Cryptography\" href=\"http:\/\/newsoffice.mit.edu\/2009\/cryptography\" target=\"_blank\">shocking amount<\/a><\/strong> about what\u2019s stored there.<\/p>\n<p>The risk of such attacks is particularly acute in the cloud, where you have no control over whose applications are sharing server space with yours.<\/p>\n<p>An antagonist could load up multiple cloud servers with small programs that do nothing but spy on other people\u2019s data.<\/p>\n<p>Two years ago, researchers in the group of MIT\u2019s Srini Devadas, the Edwin Sibley Webster Professor in MIT\u2019s Department of Electrical Engineering and Computer Science, <strong><a title=\"MIT News\" href=\"http:\/\/newsoffice.mit.edu\/2013\/protecting-data-in-the-cloud-0702\" target=\"_blank\">proposed<\/a><\/strong> a method for thwarting these types of attacks by disguising memory-access patterns.<\/p>\n<p>Now, they\u2019ve begun to implement it in hardware.<\/p>\n<p>In March, at the Architectural Support for Programming Languages and Operating Systems conference, they presented the layout of a custom-built chip that would use their scheme, which is now moving into fabrication.<\/p>\n<p>And at the IEEE International Symposium on Field-Programmable Custom Computing Machines in May, they will describe some additional improvements to the scheme, which they\u2019ve tested on reconfigurable chips.<\/p>\n<p>The principle behind the scheme is that, whenever a chip needs to fetch data from a particular memory address, it should query a bunch of other addresses, too, so that an adversary can\u2019t determine which one it\u2019s really interested in.<\/p>\n<p>Naturally, this requires shipping much more data between the chip and memory than would otherwise be necessary.<\/p>\n<p>To minimize the amount of extra data needed, the researchers store memory addresses in a data structure known as a \u201ctree.\u201d<\/p>\n<p>A family tree is a familiar example of a tree, in which each \u201cnode\u201d (a person\u2019s name) is attached to only one node above it (the node representing the person\u2019s parents) but may connect to several nodes below it (the person\u2019s children).<\/p>\n<p>Every address is randomly assigned to a path through the tree \u2014 a sequence of nodes stretching from the top of the tree to the bottom, with no backtracking.<\/p>\n<p>When the chip requires the data stored at a particular address, it also requests data from all the other nodes on the same path.<\/p>\n<p>In earlier work, researchers in Devadas\u2019 group were able to prove that pulling data from a single path was as confounding to an adversary as if the chip had pulled data from every single memory address in use \u2014 every node of the tree.<\/p>\n<div id=\"attachment_124896\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a  data-lightbox=\"post-image\" href=\"http:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2015\/04\/Memory-access-protocol.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-124896\" class=\"size-full wp-image-124896\" src=\"http:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2015\/04\/Memory-access-protocol.jpg\" alt=\"A new memory-access protocol assigns every memory address to a single path (green) through a data structure known as a tree. But a given node of the tree will often lie along multiple paths (blue). Source: MIT News\" width=\"600\" height=\"400\" srcset=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2015\/04\/Memory-access-protocol.jpg 600w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2015\/04\/Memory-access-protocol-250x166.jpg 250w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-124896\" class=\"wp-caption-text\">A new memory-access protocol assigns every memory address to a single path (green) through a data structure known as a tree. But a given node of the tree will often lie along multiple paths (blue). Source: Christine Daniloff\/MIT<\/p><\/div>\n<p><strong>Breaking the logjam<\/strong><\/p>\n<p>After reading data from a path, however, the chip also has to write data to the whole path; otherwise, an adversary could determine which node was the one of interest. But the chip rarely stores data in the same node that it read it from.<\/p>\n<p>Nodes often lie on multiple paths: To take the most basic example, the single node at the top, or root, of the tree lies on every path.<\/p>\n<p>When the chip writes a block of data to memory, it pushes it as far down the tree as it can, which means finding the last vacancy before the block\u2019s assigned path branches off from path that was just read.<\/p>\n<p>\u201cThe root of the tree is a lot smaller than the bottom of tree,\u201d says Albert Kwon, an MIT graduate student in electrical engineering and computer science and one of the papers\u2019 co-authors.<\/p>\n<p>\u201cSo intuitively, you want to push down as far as you can toward the bottom, so that there\u2019s no congestion at the top.\u201d<\/p>\n<p>In writing data, the chip still has to follow the sequence of nodes in the path; otherwise, again, an adversary might be able to infer something about the data being stored.<\/p>\n<p>In previous attempts at similar systems, that meant sorting the memory addresses according to their ultimate locations in the tree.<\/p>\n<p>\u201cSort is not easy to do in hardware,\u201d says Chris Fletcher, another graduate student in Devadas\u2019 group and first author on the new paper. \u201cSo by the time you\u2019ve sorted everything, you\u2019ve taken a real performance hit.\u201d<\/p>\n<p>In the chip described in their latest paper, Fletcher, Devadas, Kwon, and their co-authors \u2014 Ling Ren, also an MIT graduate student in electrical engineering and computer science, and colleagues at the University of Connecticut, the University of California at Berkeley, and the Qatar Computing Research Institute \u2014 took a different approach.<\/p>\n<p>They gave their chip an extra memory circuit, with storage slots that can be mapped onto the sequence of nodes in any path through the tree.<\/p>\n<p>Once a data block\u2019s final location is determined, it\u2019s simply stored at the corresponding slot in the circuit. All of the blocks are then read out in order.<\/p>\n<p><strong>Stockpiled secrets<\/strong><\/p>\n<p>The new chip features another trick to improve efficiency: Rather than writing data out every time it reads data in, it writes only on every fifth read.<\/p>\n<p>On the other reads, it simply discards all of the decoy data. When it finally does write data back out, it will have, on average, five extra blocks of data to store on the last path it read.<\/p>\n<p>But there are generally enough vacancies in the tree to accommodate the extra blocks. And when there aren\u2019t, the system\u2019s ordinary protocols for pushing data as far down the tree as possible can handle the occasional logjam at the top.<\/p>\n<p>Today\u2019s chips have small, local memory banks called caches in which they store frequently used data; for applications that use caching efficiently, all that extra reading and writing generally increases computation time by only about 20 percent.<\/p>\n<p>For applications that don\u2019t use caching efficiently, computation time can increase fivefold, or even more.<\/p>\n<p>But according to the researchers, one of the advantages of their scheme is that the circuits that implement it can simply be added to existing chip designs, without much retooling. The extra layer of security can then be switched on and off as needed.<\/p>\n<p>Some cloud applications may use it all the time; others may opt against it entirely; still others may activate it only when handling sensitive information, such as credit card numbers.<\/p>\n<p>\u201cThis is groundbreaking work,\u201d says Elaine Shi, an assistant professor of computer science at the University of Maryland who has studied similar security schemes. \u201cFor many years, this kind of secure algorithm has been prohibitive.<\/p>\n<p>This is basically the first time they\u2019ve shown that you can achieve this 2x overhead. Previously, the overhead would be ridiculous, maybe in the tens of thousands. They built this thing and show that for, a class of benchmarks, the average slowdown is only 2x.\u201d<\/p>\n<p>\u201cIf you think about Java versus C, the slowdown is probably more than 2x,\u201d she says. \u201cTwo-x is nothing. Plus, you only have to incur it for part of the code that touches sensitive data, like credit card numbers or genomic data.\u201d<\/p>\n<p><em>Reprinted with permission of <a title=\"MIT News\" href=\"http:\/\/newsoffice.mit.edu\/\" target=\"_blank\"><strong>MIT News<\/strong><\/a><\/em><\/p>\n<h3 class=\"my-4\">More security news<\/h3>\n<p><strong><a href=\"http:\/\/mybroadband.co.za\/news\/security\/122884-nsa-wanted-to-stop-eavesdropping-on-phone-calls.html\">NSA wanted to stop eavesdropping on phone calls<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/mybroadband.co.za\/news\/security\/122858-british-airways-passenger-accounts-hacked.html\">British Airways passenger accounts hacked<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/mybroadband.co.za\/news\/security\/122576-south-african-hacking-challenge.html\">South African hacking challenge<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>System for defending against memory-access attacks implemented in chips, writes Larry Hardesty from MIT News<\/p>\n","protected":false},"author":340941,"featured_media":77034,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[4214,727,35,463],"class_list":["post-124892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-cloud","tag-cloud-computing","tag-headline","tag-security-2"],"_links":{"self":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/124892"}],"collection":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/users\/340941"}],"replies":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/comments?post=124892"}],"version-history":[{"count":2,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/124892\/revisions"}],"predecessor-version":[{"id":124902,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/124892\/revisions\/124902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media\/77034"}],"wp:attachment":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media?parent=124892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/categories?post=124892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/tags?post=124892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}