Block-gram: Mining Knowledgeable Features for Smart Contract Vulnerability Detection.

Tao Li, Haolong Wang,Yaozheng Fang,Zhaolong Jian, Zichun Wang,Xueshuo Xie

SmartCom(2022)

引用 0|浏览7
暂无评分
摘要
Effective vulnerability detection of large-scale smart contracts is critical because smart contract attacks frequently bring about tremendous economic loss. However, code analysis requiring traversal paths and learning methods requiring many features training is too time-consuming to detect large-scale on-chain contracts. This paper focuses on improving detection efficiency by reducing the dimension of the features, combined with expert knowledge. We propose a feature extraction method Block-gram to form low-dimensional knowledgeable features from the bytecode. We first separate the metadata and convert the runtime code to opcode sequence, dividing the opcode sequence into segments according to some instructions (jump, etc.). Then, we mine extensible Block-gram features for learning-based model training, consisting of 4-dimensional block features and 8-dimensional attribute features. We evaluate these knowledge-based features using seven state-of-the-art learning algorithms to show that the average detection latency speeds up 25 to 650 times, compared with the features extracted by N-gram.
更多
查看译文
关键词
Smart Contract, Bytecode, Opcode, Knowledgeable Features, Vulnerability Detection
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要