跳到主要导航 跳到搜索 跳到主要内容

Empowering IoT Security: Automated Identification of Standard Library Functions in RTOS Firmware with LLM and RAG

  • Zhihan Zheng
  • , Yu An Tan
  • , Zihan Chen
  • , Zheng Lu
  • , Weizhi Meng
  • , Shuo Wang*
  • *此作品的通讯作者
  • Beijing Institute of Technology
  • Lancaster University

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

Reverse engineering embedded firmware for real-time operating systems (RTOSs) is a formidable challenge in Internet of Things security. The common practice of stripping symbolic information from firmware to optimize performance and storage makes identifying standard library functions exceptionally difficult, creating a significant bottleneck for functional analysis and vulnerability discovery. This article introduces a novel, automated method for identifying these functions in RTOS firmware by leveraging large language models (LLMs). Our approach operates directly on raw binary code, requiring no symbolic or debugging information, and demonstrates broad generalizability across diverse hardware architectures and compilers. At its core, the method combines retrieval-augmented generation (RAG) to enhance identification accuracy with a newly designed adaptive iterative screening algorithm (AISA), which optimizes analysis efficiency by prioritizing candidate functions based on a weighted score of call frequency, call depth, and address proximity to reduce token costs. We validated our method through rigorous experimentation on Zephyr RTOS firmware spanning nine architectures (e.g., ARM, MIPS, RISC-V). The results are compelling: our approach achieves a 90.59% accuracy rate in identifying standard library function names. Moreover, its application to commercial Internet of Things (IoT) firmware confirms its high efficiency, identifying functions significantly faster and more economically than traditional heuristic techniques. This work contributes a powerful, general-purpose, and cost-effective solution for automated firmware analysis.

源语言英语
页(从-至)23876-23889
页数14
期刊IEEE Internet of Things Journal
卷13
期11
DOI
出版状态已出版 - 1 6月 2026
已对外发布是

学术指纹

探究 'Empowering IoT Security: Automated Identification of Standard Library Functions in RTOS Firmware with LLM and RAG' 的科研主题。它们共同构成独一无二的学术指纹。

引用此

Baidu
map