Chinese Journal of Network and Information Security ›› 2022, Vol. 8 ›› Issue (5): 98-110.doi: 10.11959/j.issn.2096-109x.2022070

• Papers • Previous Articles     Next Articles

Hardcoded vulnerability detection approach for IoT device firmware

Chao MU1, Xin WANG1, Ming YANG1, Heng ZHANG2, Zhenya CHEN1, Xiaoming WU1   

  1. 1 Shandong Provincial Key Laboratory of Computer Networks, Shandong Computer Science Center (National Supercomputer Center in Jinan),Qilu University of Technology (Shandong Academy of Sciences), Jinan 250014, China
    2 School of Computer Engineering, Jiangsu Ocean University, Lianyungang 222005, China
  • Revised:2022-09-02 Online:2022-10-15 Published:2022-10-01
  • Supported by:
    The National Key R&D Program of China(2021YFF0901301-02);Shandong Provincial Natural Science Foundation(ZR2021QF057);The National Natural Science Foundation of China(61873106);The Natural Science Foundation of Jiangsu Province for Distinguished Young Scholars(BK20200049);QLU/SDAS Computer Science and Technology Fundamental Research Enhancement Program(2021JC02023);Open Research Project of the State Key Laboratory of Industrial Control Technology, Zhejiang University, China(ICT2022B36)

Abstract:

With the popularization of IoT devices, more and more valuable data is generated.Analyzing and mining big data based on IoT devices has become a hot topic in the academic and industrial circles in recent years.However, due to the lack of necessary detection and protection methods, many IoT devices have serious information security risks.In particular, device hard-coded information is closely related to system encryption and decryption, identity authentication and other functions, which can provide confidentiality protection for core data.Once this information is exploited by malicious attackers, serious consequences such as sensitive information leakage, backdoor attacks, and unauthorized logins will occur.In response to this problem, a multi-type character recognition and positioning scheme was designed and a hard-coded vulnerability detection method in executable files was proposed based on the study of the characteristics of hard-coded vulnerabilities in IoT devices.The proposed method extracted the firmware of IoT devices and filtered all executable files as the source to be analyzed.Then, a solution to identify and locate three types of hard-coded characters was provided.Further, the reachability of the function, where the hard-coded character was located, was analyzed according to the function call relationship.Meanwhile, the instruction heterogeneity was mitigated by an intermediate representation (IR) model.The character and parameter hard-coded values was obtained through a data flow analysis approach.A symbolic execution method was devised to determine the trigger conditions of the hard-coded vulnerabilities, and then the vulnerability detection result was output.On the one hand, the proposed method introduced the method of symbolic execution based on the use of the intermediate representation model, which eliminated the dependency of instruction architecture and reduces the false positive rate of vulnerabilities; On the other hand, this method can integrate characters, files, and cryptographic implementation to realize the different characteristics of three types of hard-coded characters, which increased the coverage of vulnerability detection and improves the versatility of the detection method.The experimental results show that the proposed method can effectively detect three types of hard-coded vulnerabilities of characters, files and cryptographic implementation in various IoT devices, and has good detection accuracy, which can provide certain guidance for the deployment of subsequent security protection technologies.

Key words: big data, IoT security, hard coding, vulnerability detection

CLC Number: 

No Suggested Reading articles found!