Rust for Embedded Systems: Current State, Challenges and Open Problems
Authors:
Preprint
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 2,836 RUST embedded software spanning various categories and 5 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
This publication has 12 references indexed in Scilit:
- SafeDrop: Detecting Memory Deallocation Bugs of Rust Programs via Static Data-flow AnalysisACM Transactions on Software Engineering and Methodology, 2023
- Detecting Vulnerability on IoT Device Firmware: A SurveyIEEE/CAA Journal of Automatica Sinica, 2022
- Embedded fuzzing: a review of challenges, tools, and solutionsCybersecurity, 2022
- Translating C to safer RustProceedings of the ACM on Programming Languages, 2021
- Architecture and security of SCADA systems: A reviewInternational Journal of Critical Infrastructure Protection, 2021
- How do programmers use unsafe rust?Proceedings of the ACM on Programming Languages, 2020
- Intelligence, security, and vehicular sensor networks in internet of things (IoT)-enabled smart-cities: An overviewComputers and Electrical Engineering, 2020
- How Usable Are Rust Cryptography APIs?2018
- 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