arrow
Return

LLM-Based Unknown Function Automated Modeling in Sensor-Driven Systems for Multi-Language Software Security Verification

delete2025-04-24
delete0
delete
OA
AI
L
Liangjun Deng
钟琦 cover
钟琦 (Qi Zhong) *
J
Jingcheng Song
H
Hang Lei
李文娟 cover
李文娟 (Wenjuan Li)
DOI:10.3390/s25092683delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The rapid expansion of the Internet of Things (IoT) has made software security and reliability a critical concern. With multi-language programs running on edge computing, embedded systems, and sensors, each connected device represents a potential attack vector, threatening data integrity and privacy. Symbolic execution is a key technique for automated vulnerability detection. However, unknown function interfaces, such as sensor interactions, limit traditional concrete or concolic execution due to uncertain function returns and missing symbolic expressions. Compared with system simulation, the traditional method is to construct an interface abstraction layer for the symbolic execution engine to reduce the cost of simulation. Nevertheless, the disadvantage of this solution is that the manual modeling of these functions is very inefficient and requires professional developers to spend hundreds of hours. In order to improve efficiency, we propose an LLM-based automated approach for modeling unknown functions. By fine-tuning a 20-billion-parameter language model, it automatically generates function models based on annotations and function names. Our method improves symbolic execution efficiency, reducing reliance on manual modeling, which is a limitation of existing frameworks like KLEE. Experimental results primarily focus on comparing the usability, accuracy, and efficiency of LLM-generated models with human-written ones. Our approach was integrated into one verification platform project and applied to the verification of smart contracts with distributed edge computing characteristics. The application of this method directly reduces the manual modeling effort from a month to just a few minutes. This provides a foundational validation of our method's feasibility, particularly in reducing modeling time while maintaining quality. This work is the first to integrate LLMs into formal verification, offering a scalable and automated verification solution for sensor-driven software, blockchain smart contracts, and WebAssembly systems, expanding the scope of secure IoT development.
Keywords:
WebAssembly
vulnerability verification
symbolic execution
LLM
sensors

Journal

Sensors cover
Sensors
IF:
3.5
Papers:
7.2W
Citations:
20.9W

Organization

E
Educ Univ Hong Kong
Scholars:
193
Papers: 163
Citations: 42
C
City Univ Macau
Scholars:
202
Papers: 208
Citations: 107
L
linyi university
Scholars:
4.4K
Papers: 3.2K
Citations: 62
U
University of Electronic Science and Technology of China
Scholars:
5.5K
Papers: 2.2K
Citations: 4.0W
researcher View more organizations
Cited Papers

Cited Papers

Two Mechanisations of WebAssembly 1.0
err2021-11-10
err0
errOAAI
errConrad Watt; Xiaojia Rao; Jean Pichon-Pharabod; Martin Bodin; Philippa Gardner
errShare
errSave
A Comprehensive Bibliometric Assessment on Software Testing (2016–2021)
err2022-06-24
err0
errOAAI
errShehnila Zardari; Sana Alam; Hamad Abosaq Al Salem; Mana Saleh Al Reshan; Asadullah Shaikh; Aneeq Fayyaz Karim Malik; Muhammad Masood ur Rehman; Haralambos Mouratidis
errShare
errSave
Formal Verification Platform as a Service: WebAssembly Vulnerability Detection Application
err2023-01-01
err0
errOAAI
errLiangJun Deng; Hang Lei; Zheng Yang; WeiZhong Qian; XiaoYu Li; Hao Wu; Sihao Deng; RuChao Sha; WeiDong Deng
errShare
errSave
Competition-level code generation with AlphaCode
err2022-12-09
err0
errOAAI
errYujia Li; David Choi; Junyoung Chung; Nate Kushman; Julian Schrittwieser; Rémi Leblond; Tom Eccles; James Keeling; Felix Gimeno; Agustin Dal Lago; Thomas Hubert; Peter Choy; Cyprien de Masson d’Autume; Igor Babuschkin; Xinyun Chen; Po-Sen Huang; Johannes Welbl; Sven Gowal; Alexey Cherepanov; James Molloy; Daniel J. Mankowitz; Esme Sutherland Robson; Pushmeet Kohli; Nando de Freitas; Koray Kavukcuoglu; Oriol Vinyals
errShare
errSave
An Empirical Study of Real-World WebAssembly Binaries
err2021-06-03
err0
PREAI
errAaron Hilbig; Daniel Lehmann; Michael Pradel
errShare
errSave
Investigating Code Generation Performance of ChatGPT with Crowdsourcing Social Data
err2023-06-01
err0
PREAI
errYunhe Feng; Sreecharan Vanam; Manasa Cherukupally; Weijian Zheng; Meikang Qiu; Haihua Chen
errShare
errSave
When Federated Learning Meets Privacy-Preserving Computation
err2024-10-03
err8
PREAI
errChen, Jingxue; Yan, Hang; Liu, Zhiyuan; Zhang, Min; Xiong, Hu; Yu, Shui
errShare
errSave
researcher View more