Towards Automated Safety Vetting of Smart Contracts in Decentralized Applications

被引:8
作者
Duan, Yue [1 ,2 ]
Zhao, Xin [3 ]
Pan, Yu [2 ]
Li, Shucheng [3 ]
Li, Minghao [4 ]
Xu, Fengyuan [5 ]
Zhang, Mu [2 ]
机构
[1] IIT, Chicago, IL 60616 USA
[2] Univ Utah, Salt Lake City, UT 84112 USA
[3] Nanjing Univ, Nanjing, Peoples R China
[4] Harvard Univ, Boston, MA USA
[5] Nanjing Univ, Natl Key Lab Novel Software Technol, Nanjing, Peoples R China
来源
PROCEEDINGS OF THE 2022 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, CCS 2022 | 2022年
关键词
decentralized apps; smart contracts; safety verification; semantics;
D O I
10.1145/3548606.3559384
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We propose VetSC, a novel UI-driven, program analysis guided model checking technique that can automatically extract contract semantics in DApps so as to enable targeted safety vetting. To facilitate model checking, we extract business model graphs from contract code that capture its intrinsic business and safety logic. To automatically determine what safety specifications to check, we retrieve textual semantics from DApp user interfaces. To exclude untrusted UI text, we also validate the UI-logic consistency and detect any discrepancies. We have implemented VetSC and applied it to 34 real-world DApps. Experiments have demonstrated that VetSC can accurately interpret smart contract code, enable autonomous safety vetting, and discover safety risks in real-world Dapps. Using our tool, we have successfully discovered 19 new safety risks in the wild, such as expired lottery tickets and double voting.
引用
收藏
页码:921 / 935
页数:15
相关论文
共 62 条
[1]   UiRef: Analysis of Sensitive User Inputs in Android Applications [J].
Andow, Benjamin ;
Acharya, Akhil ;
Li, Dengfeng ;
Enck, William ;
Singh, Kapil ;
Xie, Tao .
PROCEEDINGS OF THE 10TH ACM CONFERENCE ON SECURITY AND PRIVACY IN WIRELESS AND MOBILE NETWORKS (WISEC 2017), 2017, :23-34
[2]  
[Anonymous], 2022, BLOCK T PROP
[3]  
[Anonymous], 2020, KING ETH THRON
[4]  
[Anonymous], 2009, P 16 ACM C COMP COMM
[5]  
[Anonymous], 2020, METAMASK BRINGS ETH
[6]  
[Anonymous], 2022, UN DOCS
[7]  
[Anonymous], 2020, STANFORD LOG LINEAR
[8]  
[Anonymous], 2021, NUSMV NEW SYMBOLIC M
[9]  
[Anonymous], 2003, P NETW DISTR SYST SE
[10]  
[Anonymous], 2022, DISC COLL SELL EXTR