On Manually Reverse Engineering Communication Protocols of Linux-Based IoT Systems

Authors:

Abstract
IoT security and privacy has raised grave concerns. Efforts have been made to design tools to identify and understand vulnerabilities of IoT systems. Most of the existing protocol security analysis techniques rely on a well understanding of the underlying communication protocols. In this paper, we systematically present the first manual reverse engineering framework for discovering communication protocols of embedded Linux based IoT systems. We have successfully applied our framework to reverse engineer a number of IoT systems. As an example, we present a detailed use of the framework reverse-engineering the WeMo smart plug communication protocol by extracting the firmware from the flash, performing static and dynamic analysis of the firmware and analyzing network traffic. The discovered protocol exposes severe design flaws that allow attackers to control or deny the service of victim plugs. Our manual reverse engineering framework is generic and can be applied to both read-only and writable Embedded Linux filesystems.
Funding Information
  • National Key Research and Development Program of China (2018YFB0803400, 2018YFB2100300, 2017YFB1003000)
  • U.S. National Science Foundation (Award 1643835, Award 1931871, Award 1915780)
  • U.S. Department of Energy (DEEE0009152)
  • National Natural Science Foundation of China (62072103, 62072102, 62072098, 62022024, 61972088, 61702097, 61632008, 61532013)
  • Jiangsu Provincial Natural Science Foundation for Excellent Young Scholars (BK20190060)
  • Jiangsu Provincial Key Laboratory of Network and Information Security (BM2003201)
  • Key Laboratory of Computer Network and Information Integration of Ministry of Education of China (93K-9)
  • Collaborative Innovation Center of Novel Software Technology and Industrialization