{"id":4784,"date":"2024-08-08T17:33:36","date_gmt":"2024-08-08T22:33:36","guid":{"rendered":"https:\/\/www.darkreading.com\/endpoint-security\/memory-safety-is-key-to-preventing-hardware-hacks"},"modified":"2024-08-08T17:33:36","modified_gmt":"2024-08-08T22:33:36","slug":"memory-safety-is-key-to-preventing-hardware-hacks","status":"publish","type":"post","link":"https:\/\/ddi.mohflo.net\/index.php\/2024\/08\/08\/memory-safety-is-key-to-preventing-hardware-hacks\/","title":{"rendered":"Memory Safety Is Key to Preventing Hardware Hacks"},"content":{"rendered":"<div class=\"media_block\"><a href=\"https:\/\/i0.wp.com\/eu-images.contentstack.com\/v3\/assets\/blt6d90778a997de1cd\/blt0b7c955babca975e\/65cfe038761e9f040a6e1d6c\/chipcheck-Science_Photo_Library-alamy.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?w=640&#038;ssl=1\" class=\"media_thumbnail\"><\/a><\/div>\n<div><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?w=640&#038;ssl=1\" class=\"ff-og-image-inserted\"><\/div>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The Spectre and Meltdown vulnerabilities in 2018 exposed computer memory as an easy target for hackers to inject malicious code and steal data. The aftermath spurred the adoption of memory-safe chips and programming tools to secure a computer&#8217;s cache and RAM, where data is temporarily stored as programs are being executed.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Microsoft is accelerating efforts to protect memory in its Windows systems from errors such as buffer overflows, which allow hackers to inject malicious code or steal data from memory. The company is transitioning many system applications to the Rust programming language, which the company hopes will solve memory safety issues caused by code written in C++. C++ is not memory safe and can create buffer overflows.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Separately, a group of chip makers in June established a consortium named CHERI Alliance, which is creating a secure hardware architecture to protect data stored in memory.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Memory-safe architectures and programming languages eliminate potential avenues for human programmer error, says James Sanders, an analyst at TechInsights. &#8220;It&#8217;s exceedingly easy in languages like C and C++ to inadvertently introduce a memory-safety related vulnerability, even for highly-skilled, formally-educated programmers, in development scenarios that enforce &#8216;best practices&#8217;,&#8221; Sanders says.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">About three-quarters of the bugs that Microsoft fixes are from the memory safety category, says Dave Weston, vice president of enterprise and OS security at Microsoft.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Microsoft is initially transitioning system firmware and software that manages PC hardware from C++ to Rust. The shift to Rust is part of a program called Secure Future Initiative, which intends to make hardware reliable and safe, Weston said.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The company has made a security chip called Pluton &#8212; which authenticates users and protects biometric data &#8212; mandatory in its new AI PCs.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;We have ported our real-time operating system that runs on top of Pluton to be Rust based,&#8221; Weston said.<\/span><\/p>\n<h2 class=\"ContentText ContentText_variant_h2 ContentText_align_left\" data-testid=\"content-text\" id=\"CHERI's Goal to Mitigate Risks\">CHERI&#8217;s Goal to Mitigate Risks<\/h2>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The CHERI (Capability, Hardware, Enhanced RISC Instructions) Alliance creates a hardware and software protection model for memory. The alliance&#8217;s goal is to mitigate risks of memory errors and hacks, which are commonly patched by software and hardware makers.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">CHERI creates a memory audit layer by encoding data which is verified every time memory is accessed, said Franz Fuchs, a researcher at the University of Cambridge, during a <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=KaaybzPTgUw\" rel=\"noopener\">presentation at the RISC-V Summit Europe<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> in June.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The tagged data describes the memory region, the type of memory, the capabilities and other information, based on which it verifies and authorizes access to data in memory.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The University of Cambridge has developed memory-safe chip architectures based on these designs. It has also developed memory-safe operating systems and programming tools.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;CHERI gives you a lot of primitives for building a memory safe operating system, regardless of the language you&#8217;re building,&#8221; Microsoft&#8217;s Weston said.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">But the challenges include developers not having a security-first mindset, experts said. Windows was built on C++, and developers are not motivated to shift to Rust programming language.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Also, side-channel attacks on CPUs and GPUs won&#8217;t go away, which will leave memory vulnerable, said Daniel Gruss, professor in Information Security at the Graz University of Technology.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;As much safety as Rust in the kernel will bring us, we&#8217;ll just move on to the next type of bug. We still have memory safety bugs today,&#8221; Gruss said.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Hackers are also finding ways to break into newer memory types used in modern processors such as GPUs, said Jim McGregor, principal analyst at Tirias Research.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;The instruction set is different for GPUs, which might pose some challenges. However, memory is memory, so reading memory contents would be the same,&#8221; McGregor said.<\/span><\/p>\n<p><a href=\"https:\/\/www.darkreading.com\/endpoint-security\/memory-safety-is-key-to-preventing-hardware-hacks\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Spectre and Meltdown vulnerabilities in 2018 exposed computer memory<\/p>\n","protected":false},"author":12,"featured_media":4785,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[809],"class_list":["post-4784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-dark-reading"],"featured_image_urls":{"full":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=1800%2C1013&ssl=1",1800,1013,false],"thumbnail":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?resize=150%2C150&ssl=1",150,150,true],"medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=300%2C169&ssl=1",300,169,true],"medium_large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=640%2C360&ssl=1",640,360,true],"large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=640%2C360&ssl=1",640,360,true],"1536x1536":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=1536%2C864&ssl=1",1536,864,true],"2048x2048":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=1800%2C1013&ssl=1",1800,1013,true],"chromenews-featured":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=1024%2C576&ssl=1",1024,576,true],"chromenews-large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?resize=825%2C575&ssl=1",825,575,true],"chromenews-medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?resize=590%2C410&ssl=1",590,410,true]},"author_info":{"display_name":"Dark Reading","author_link":"https:\/\/ddi.mohflo.net\/index.php\/author\/darkreading\/"},"category_info":"<a href=\"https:\/\/ddi.mohflo.net\/index.php\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","tag_info":"Uncategorized","comment_count":"0","jetpack_featured_media_url":"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/memory-safety-is-key-to-preventing-hardware-hacks.png?fit=1800%2C1013&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/comments?post=4784"}],"version-history":[{"count":0,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4784\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media\/4785"}],"wp:attachment":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media?parent=4784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/categories?post=4784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/tags?post=4784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}