Poster: SigRec - Automatic Recovery of Function Signatures in Smart Contracts

Ting Chen, Zihao Li, Xiapu Luo, Xiaofeng Wang, Ting Wang, Zheyuan He, Kezhao Fang, Yufei Zhang, Hang Zhu, Hongwei Li, Yan Cheng, Xiaosong Zhang

Abstract

Millions of contracts deployed onto Ethereum provide various services that can be invoked. For this purpose, blockchain users need to know and specify the function signature of a callee, which includes its function id and the parameter types. Function signatures are crucial in several applications, such as recognizing the services that contracts provide. In this poster, we propose a novel solution that leverages how functions are handled by Ethereum virtual machine (EVM) to automatically recover function signatures from contract bytecode, without the need of source code and function signature databases. The extensive experimental results show that our solution outperforms all existing tools, achieving an unprecedented 98.7% accuracy within 0.074 seconds. We further demonstrate the usefulness of our solution in attack detection, fuzzing and reverse engineering of contract bytecode.
BibTeX
@inproceedings{chen2023poster,
  author = {Ting Chen and Zihao Li and Xiapu Luo and Xiaofeng Wang and Ting Wang and Zheyuan He and Kezhao Fang and Yufei Zhang and Hang Zhu and Hongwei Li and Yan Cheng and Xiaosong Zhang},
  title = {{Poster: SigRec - Automatic Recovery of Function Signatures in Smart Contracts}},
  booktitle = {ICDCS},
  year = {2023},
  doi = {10.1109/icdcs57875.2023.00127},
}

Loading related content...

Figure