共 1 条
Syntactic-Semantic Detection of Clone-Caused Vulnerabilities in the IoT Devices
被引:0
|作者:
Kalinin, Maxim
[1
]
Gribkov, Nikita
[1
]
机构:
[1] Peter Great St Petersburg Polytech Univ, Inst Comp Sci & Cybersecur, 29 Polytek Skaya ul, St Petersburg 195251, Russia
来源:
关键词:
attributed abstract syntax tree;
code clone;
detection;
graph neural network;
IoT software;
semantic analysis;
Siamese network;
similarity;
syntactic analysis;
vulnerability;
D O I:
10.3390/s24227251
中图分类号:
O65 [分析化学];
学科分类号:
070302 ;
081704 ;
摘要:
This paper addresses the problem of IoT security caused by code cloning when developing a massive variety of different smart devices. A clone detection method is proposed to identify clone-caused vulnerabilities in IoT software. A hybrid solution combines syntactic and semantic analyses of the code. Based on the recovered code, an attributed abstract syntax tree is constructed for each code fragment. All nodes of the commonly used abstract syntax tree are proposed to be weighted with semantic attribute vectors. Each attributed tree is then encoded as a semantic vector using a Deep Graph Neural Network. Two graph networks are combined into a Siamese neural model, allowing training to generate semantic vectors and compare vector pairs within each training epoch. Semantic analysis is also applied to clones with low similarity metric values. This allows one to correct the similarity decision in the case of incorrect matching of functions at the syntactic level. To automate the search for clones, the BinDiff algorithm is added in the first stage to accurately select clone candidates. This has a positive impact on the ability to apply the proposed method to large sets of binary code. In an experimental study, the developed method-compared to BinDiff, Gemini, and Asteria tools-has demonstrated the highest efficiency.
引用
收藏
页数:24
相关论文