arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.18135cs.CR
收藏

将 Rust 引入太空安全关键系统

Bringing Rust to Safety-Critical Systems in Space

Lukas Seidel, Julian Beier

AI总结:

本文为在太空安全关键系统中使用 Rust 提供建议,包括全面概述、部分重写 C 系统的程序、修复卫星协议漏洞,并新增 PowerPC 编译器目标配置,以提升系统安全性与适用性。

摘要:

安全关键航空航天系统的开发传统上由 C 语言主导。其语言特性使得意外引入内存安全问题从而导致未定义行为或安全漏洞变得轻而易举。Rust 语言旨在大幅降低引入缺陷的可能性,从而生成整体上更安全、更可靠的代码。然而,由于其相对较短的生命周期,安全关键环境中的行业采用仍然不足。本工作为在 Rust 中开发安全关键太空系统提供了一套建议。我们的建议基于我们为更安全、更可靠的航空航天系统所做的多方面贡献的见解:我们提供了对将 Rust 适配到安全关键系统编程的持续努力的全面概述,强调其增强系统稳健性的潜力。接下来,我们介绍了一种在 C 语言系统中部分重写为 Rust 的程序,提供了一条无需全面系统改造即可提高安全性的务实路径。在执行我们的重写案例研究期间,我们在一个流行的开源卫星通信协议中识别并修复了三个先前未发现的漏洞。最后,我们引入了一种用于裸机 PowerPC 的新 Rust 编译器目标配置。借此,我们旨在扩大 Rust 在面向太空项目中的适用性,因为该架构在该领域很常见,例如在詹姆斯·韦伯太空望远镜中。

英文摘要:

The development of safety-critical aerospace systems is traditionally dominated by the C language. Its language characteristics make it trivial to accidentally introduce memory safety issues resulting in undefined behavior or security vulnerabilities. The Rust language aims to drastically reduce the chance of introducing bugs and consequently produces overall more secure and safer code. However, due to its relatively short lifespan, industry adaption in safety-critical environments is still lacking. This work provides a set of recommendations for the development of safety-critical space systems in Rust. Our recommendations are based on insights from our multi-fold contributions towards safer and more secure aerospace systems: We provide a comprehensive overview of ongoing efforts to adapt Rust for safety-critical system programming, highlighting its potential to enhance system robustness. Next, we introduce a procedure for partially rewriting C-based systems in Rust, offering a pragmatic pathway to improving safety without necessitating a full system overhaul. During the execution of our rewriting case study, we identify and fix three previously undiscovered vulnerabilities in a popular open-source satellite communication protocol. Finally, we introduce a new Rust compiler target configuration for bare metal PowerPC. With this, we aim to broaden Rust's applicability in space-oriented projects, as the architecture is commonly encountered in the domain, e.g., in the James Webb Space Telescope.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑