Rust for Embedded Systems: Current State and Open Problems
Open Access
- 2 December 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2296-2310
Abstract
Embedded software is used in safety-critical systems such as medical devices and autonomous vehicles, where software defects, including security vulnerabilities, have severe consequences. Most embedded codebases are developed in unsafe languages, specifically C/C++, and are riddled with memory safety vulnerabilities. To prevent such vulnerabilities, Rust, a performant memory-safe systems language, provides an optimal choice for developing embedded software. Rust interoperability enables developing Rust applications on top of existing C codebases. Despite this, even the most resourceful organizations continue to develop embedded software in C/C++. This paper performs the first systematic study to holistically understand the current state and challenges of using Rust for embedded systems. Our study is organized across three research questions. We collected a dataset of 6,408 Rust embedded software spanning various categories and 6 Static Application Security Testing (SAST) tools. We performed a systematic analysis of our dataset and surveys with 225 developers to investigate our research questions. We found that existing Rust software support is inadequate, SAST tools cannot handle certain features of Rust embedded software, resulting in failures, and the prevalence of advanced types in existing Rust software makes it challenging to engineer interoperable code. In addition, we found various challenges faced by developers in using Rust for embedded systems development.Keywords
All Related Versions
Funding Information
- NSF (National Science Foundation) (CNS-2340548)
- Rolls-Royce
- Defense Advanced Research Projects Agency (N6600120C4031, N66001222403)
This publication has 60 references indexed in Scilit:
- Architecture and security of SCADA systems: A reviewInternational Journal of Critical Infrastructure Protection, 2021
- Intelligence, security, and vehicular sensor networks in internet of things (IoT)-enabled smart-cities: An overviewComputers and Electrical Engineering, 2020
- A Survey of Machine and Deep Learning Methods for Internet of Things (IoT) SecurityIEEE Communications Surveys & Tutorials, 2020
- Cybersecurity for industrial control systems: A surveyComputers & Security, 2020
- An improved random forest classifier for multi-class classificationInformation Processing in Agriculture, 2016
- Development of low-cost electronic training boards based on universal microcontroller2016
- Industrial power and energy metering – a state-of-the-art reviewJournal of Cleaner Production, 2013
- Safety certification of airborne software: An empirical studyReliability Engineering & System Safety, 2012
- Certification of software for real-time safety-critical systems: state of the artInnovations in Systems and Software Engineering, 2009
- Adding run‐time checking to the portable C compilerSoftware: Practice and Experience, 1992