Robot Technology News
ROBO SPACE
Eliminating Memory Safety Vulnerabilities with Rust and AI
illustration only
Eliminating Memory Safety Vulnerabilities with Rust and AI
by Clarence Oxford
Los Angeles CA (SPX) Aug 02, 2024

Memory safety vulnerabilities remain the most common type of disclosed software flaws, primarily affecting a computer's memory in two significant ways. Programming languages like C permit direct memory manipulation, often leading to accidental errors that can corrupt memory. Additionally, undefined behaviors in programming languages can cause unpredictable program behavior, as the language standard does not specify how the program should react under certain conditions.

After over two decades of dealing with memory safety issues in C and C++, the consensus among software engineers is clear: relying on bug-finding tools is insufficient. The Office of the National Cyber Director has emphasized the need for proactive measures to eliminate memory safety vulnerabilities and mitigate potential attacks.

While memory-safe programming languages are known to resolve these issues, rewriting extensive legacy code has been a daunting task. Developed in the 1970s, the C language is pervasive, powering everything from smartphones to space vehicles. The Department of Defense, in particular, relies heavily on long-standing systems built with C.

Recently, the rise of the Rust programming language and advancements in machine learning, including large language models (LLMs), have presented new opportunities for addressing these challenges. DARPA's Translating All C to Rust (TRACTOR) program aims to leverage these innovations to automate the translation of legacy C code to Rust significantly.

"You can go to any of the LLM websites, start chatting with one of the AI chatbots, and all you need to say is 'here's some C code, please translate it to safe idiomatic Rust code,' cut, paste, and something comes out, and it's often very good, but not always," said Dr. Dan Wallach, DARPA program manager for TRACTOR. "The research challenge is to dramatically improve the automated translation from C to Rust, particularly for program constructs with the most relevance."

The goal of TRACTOR is to produce Rust code that matches the quality and style of that created by skilled Rust developers, thereby eliminating memory safety vulnerabilities in C programs.

Wallach expects proposals incorporating innovative software analysis methods, such as static and dynamic analysis, combined with large language models. The program will host public competitions throughout its duration to evaluate the performance of these LLM-powered solutions.

"Rust forces the programmer to get things right," said Wallach. "It can feel constraining to deal with all the rules it forces, but when you acclimate to them, the rules give you freedom. They're like guardrails; once you realize they're there to protect you, you'll become free to focus on more important things."

DARPA will sponsor a Proposers Day on Aug. 26, 2024, available for in-person and virtual attendance. Participants must register by Aug. 19, 2024. More details and registration information can be found at SAM.Gov.

Research Report:The Case for Memory Safe Roadmaps

Related Links
Defense Advanced Research Projects Agency
All about the robots on Earth and beyond!

Subscribe Free To Our Daily Newsletters
Tweet

RELATED CONTENT
The following news reports may link to other Space Media Network websites.
ROBO SPACE
Musk's superhuman vision promise is dangerous: researchers
Paris (AFP) July 30, 2024
Researchers have criticised billionaire Elon Musk for promising that his brain implant technology could eventually provide patients with vision superior to normal human sight. Musk has long promised that his Neuralink company was working on implants that could restore sight to blind people, telling his 190 million followers on X in March that the product would be called "Blindsight". He said the product was already working in monkeys, adding: "Resolution will be low at first, like early Nintendo ... read more

ROBO SPACE
Tengden Completes Test Flight of China's Largest Cargo Drone

ELTA North America Excels in Pentagon Drone Defense Swarm Test

Russia says drones, missiles shot down over Kursk region

Russia says destroyed 76 Ukrainian drones

ROBO SPACE
Chile's largest steelmaker suspends production, blames China

UCLA Engineers Develop Shape-Shifting Metamaterial Inspired by Classic Toys

NASA Project Pioneers Future of Rocket Manufacturing

Waste into gold: Oyster shells repurposed as magic 'Seawool'

ROBO SPACE
Achieving quantum memory in the hard X-ray range

China's top chipmaker reports Q2 plunge in profits

New substrate material for flexible electronics could help combat e-waste

New Milestone in Secure Communication Achieved Using Artificial Atoms

ROBO SPACE
Fire at cooling tower of Zaporizhzhia nuclear plant

Russian nuclear delegation in Burkina to discuss mooted plant

Sweden and US sign cooperation pact on nuclear energy

Singapore, US sign civil nuclear cooperation pact

ROBO SPACE
US defense chief says 9/11 suspects should stand trial

US scraps plea deal with 9/11 mastermind: Pentagon

U.S. Treasury sanctions 3 in Africa for financing Islamic State

Iraq hangs 10 convicted of 'terrorism': security and health sources

ROBO SPACE
China plans to adopt volume-based emissions reduction targets

Japan schoolkids wilt in under-insulated classrooms

Net zero goal critical to Earth's stability: study

Air New Zealand scraps 2030 emissions targets

ROBO SPACE
Buffalo develops world's highest-performance superconducting wire segment

New Understanding of Neutron Damage in Thyristors Boosts Fusion Reactor Safety

New Study Highlights Ancient Technology's Role in Future Clean Energy

Self-Healing and Biodegradable Energy Device Unveiled by DGIST Researchers

ROBO SPACE
Shenzhou XVIII Crew Conducts Emergency Drill on Tiangong Space Station

Beijing Unveils 'Rocket Street' to Boost Commercial Space Sector

Shenzhou XVII Crew Shares Post-Mission Insights with Media

Shenzhou XVIII Crew Successfully Completes Second Spacewalk

Subscribe Free To Our Daily Newsletters




The content herein, unless otherwise known to be public domain, are Copyright 1995-2024 - Space Media Network. All websites are published in Australia and are solely subject to Australian law and governed by Fair Use principals for news reporting and research purposes. AFP, UPI and IANS news wire stories are copyright Agence France-Presse, United Press International and Indo-Asia News Service. ESA news reports are copyright European Space Agency. All NASA sourced material is public domain. Additional copyrights may apply in whole or part to other bona fide parties. All articles labeled "by Staff Writers" include reports supplied to Space Media Network by industry news wires, PR agencies, corporate press officers and the like. Such articles are individually curated and edited by Space Media Network staff on the basis of the report's information value to our industry and professional readership. Advertising does not imply endorsement, agreement or approval of any opinions, statements or information provided by Space Media Network on any Web page published or hosted by Space Media Network. General Data Protection Regulation (GDPR) Statement Our advertisers use various cookies and the like to deliver the best ad banner available at one time. All network advertising suppliers have GDPR policies (Legitimate Interest) that conform with EU regulations for data collection. By using our websites you consent to cookie based advertising. If you do not agree with this then you must stop using the websites from May 25, 2018. Privacy Statement. Additional information can be found here at About Us.