跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2107.12867 (cs)
[提交于 2021年7月28日]

标题:From Library Portability to Para-rehosting: Natively Executing Microcontroller Software on Commodity Hardware

作者:Wenqiang Li, Le Guan, Jingqiang Lin, Jiameng Shi, Fengjun Li
查看论文《From Library Portability to Para-rehosting: Natively Executing Microcontroller Software on Commodity Hardware》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Finding bugs in microcontroller (MCU) firmware is challenging, even for device manufacturers who own the source code. The MCU runs different instruction sets than x86 and exposes a very different development environment. This invalidates many existing sophisticated software testing tools on x86. To maintain a unified developing and testing environment, a straightforward way is to re-compile the source code into the native executable for a commodity machine (called rehosting). However, ad-hoc re-hosting is a daunting and tedious task and subject to many issues (library-dependence, kernel-dependence and hardware-dependence). In this work, we systematically explore the portability problem of MCU software and propose pararehosting to ease the porting process. Specifically, we abstract and implement a portable MCU (PMCU) using the POSIX interface. It models common functions of the MCU cores. For peripheral specific logic, we propose HAL-based peripheral function replacement, in which high-level hardware functions are replaced with an equivalent backend driver on the host. These backend drivers are invoked by well-designed para-APIs and can be reused across many MCU OSs. We categorize common HAL functions into four types and implement templates for quick backend development. Using the proposed approach, we have successfully rehosted nine MCU OSs including the widely deployed Amazon FreeRTOS, ARM Mbed OS, Zephyr and LiteOS. To demonstrate the superiority of our approach in terms of security testing, we used off-the-shelf dynamic analysis tools (AFL and ASAN) against the rehosted programs and discovered 28 previously-unknown bugs, among which 5 were confirmed by CVE and the other 19 were confirmed by vendors at the time of writing.
评论: 18 pages, 4 figures, Network and Distributed Systems Security (NDSS) Symposium 2021
主题: 程序设计语言 (cs.PL); 密码学与安全 (cs.CR); 分布式、并行与集群计算 (cs.DC); 软件工程 (cs.SE)
引用方式: arXiv:2107.12867 [cs.PL]
  (或者 arXiv:2107.12867v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2107.12867
相关 DOI: https://doi.org/10.14722/ndss.2021.24308

提交历史

来自:Wenqiang Li
[v1] 2021年7月28日 星期三 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-07
切换浏览方式为:
cs
cs.CR
cs.DC
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站