Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3698062.3698079acmotherconferencesArticle/Chapter ViewAbstractPublication PageswsseConference Proceedingsconference-collections
research-article

Finding bugs in embedded external device drivers using emulation

Published: 08 December 2024 Publication History

Abstract

Embedded devices use not only the microcontrollers, but also external devices to realize their functions. Due to lack of external device driver, developers may implement their own one, which can easily cause bugs. Once bugs are injected, debugging is often performed using physical devices, and such debugging is one of the difficulties in embedded development. Emulation is a technique for detecting bugs without physical devices. However, to our best knowledge, no studies focused its capability of detecting bugs in external device driver. As external devices can be modeled by describing state transitions and constraints, it is possible to detect bugs in the operation of external devices. In this paper, we propose a method for detecting bugs based on constraints of state transitions by emulating the operation of a microcontroller including external devices. We also confirmed that the proposed method can detect bugs using firmware with intentionally injected bugs.

References

[1]
Abraham A Clements, Eric Gustafson, Tobias Scharnowski, Paul Grosen, David Fritz, Christopher Kruegel, Giovanni Vigna, Saurabh Bagchi, and Mathias Payer. 2020. HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation. In In Proceedings of the 29th USENIX Security Symposium. 1201–1218. https://www.usenix.org/conference/usenixsecurity20/presentation/clements
[2]
Eric Gustafson, Marius Muench, Chad Spensky, Nilo Redini, Aravind Machiry, Yanick Fratantonio, Davide Balzarotti, Aurélien Francillon, Yung Ryn Choe, Christophe Kruegel, and Giovanni Vigna. 2019. Toward the Analysis of Embedded Firmware through Automated Re-hosting. In In Proceedings of the 22nd International Symposium on Research in Attacks, Intrusions and Defenses (RAID 2019). 135–150. https://www.usenix.org/conference/raid2019/presentation/gustafson
[3]
Microchip Technology Inc.[n. d.]. MCP2517FD External CAN FD Controller with SPI Interface. https://www.microchip.com/en-us/product/mcp2517fd
[4]
Sandia National Laboratories. [n. d.]. HALucinator. https://github.com/sandialabs/halucinator
[5]
Amir Makhshari and Ali Mesbah. 2021. IoT Bugs and Development Challenges. In In Proceedings of the 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE). 460–472.
[7]
Christopher Wright, William A. Moeglein, Saurabh Bagchi, Milind Kulkarni, and Abraham A. Clements. 2022. Challenges in Firmware Re-Hosting, Emulation, and Analysis. Comput. Surveys 54, 1 (1 2022), 1–36.
[8]
Wei Zhou, Lan Zhang, Le Guan, Peng Liu, and Yuqing Zhang. 2022. What Your Firmware Tells You Is Not How You Should Emulate It: A Specification-Guided Approach for Firmware Emulation. In In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security (Los Angeles, CA, USA). 3269–3283.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
WSSE '24: Proceedings of the 2024 The 6th World Symposium on Software Engineering (WSSE)
September 2024
289 pages
ISBN:9798400717086
DOI:10.1145/3698062
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 08 December 2024

Check for updates

Author Tags

  1. embedded devices
  2. bug detection
  3. IoT system
  4. emulation

Qualifiers

  • Research-article

Conference

WSSE 2024

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 5
    Total Downloads
  • Downloads (Last 12 months)5
  • Downloads (Last 6 weeks)5
Reflects downloads up to 31 Dec 2024

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Full Text

View this article in Full Text.

Full Text

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media