Automated Generation of Security-Centric Descriptions for Smart Contract Bytecode

被引:0
|
作者
Pan, Yu [1 ]
Xu, Zhichao [1 ]
Li, Levi Taiji [1 ]
Yang, Yunhe [1 ]
Zhang, Mu [1 ]
机构
[1] Univ Utah, Salt Lake City, UT 84112 USA
来源
PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023 | 2023年
关键词
decentralized apps; smart contracts; textual description; program analysis; natural language generation;
D O I
10.1145/3597926.3598132
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Smart contract and DApp users are taking great risks, as they do not obtain necessary knowledge that can help them avoid using vulnerable and malicious contract code. In this paper, we develop a novel system Tx2TXT that can automatically create security-centric textual descriptions directly from smart contract bytecode. To capture the security aspect of financial applications, we formally define a funds transfer graph to model critical funds flows in smart contracts. To ensure the expressiveness and conciseness of the descriptions derived from these graphs, we employ a GCN-based model to identify security-related condition statements and selectively add them to our graph models. To convert low-level bytecode instructions to human-readable textual scripts, we leverage robust API signatures to recover bytecode semantics. We have evaluated Tx2TXT on 890 well-labeled vulnerable, malicious and safe contracts where developer-crafted descriptions are available. Our results have shown that Tx2TXT outperforms state-of-the-art solutions and can effectively help end users avoid risky contracts.
引用
收藏
页码:1244 / 1256
页数:13
相关论文
共 47 条
  • [31] iSyn: Semi-automated Smart Contract Synthesis from Legal Financial Agreements
    Fang, Pengcheng
    Zou, Zhenhua
    Xiao, Xusheng
    Liu, Zhuotao
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 727 - 739
  • [32] CGGNet: Compiler-Guided Generation Network for Smart Contract Data Augmentation
    Hwang, Seon-Jin
    Ju, Seong Ho
    Choi, Yoon-Ho
    IEEE ACCESS, 2024, 12 : 97515 - 97532
  • [33] From Institutions to Code: Towards Automated Generation of Smart Contracts
    Frantz, Christopher K.
    Nowostawski, Mariusz
    2016 IEEE 1ST INTERNATIONAL WORKSHOPS ON FOUNDATIONS AND APPLICATIONS OF SELF* SYSTEMS (FAS*W), 2016, : 210 - 215
  • [34] Architecture-Centric Evaluation of Blockchain-Based Smart Contract E-Voting for National Elections
    Daramola, Olawande
    Thebus, Darren
    INFORMATICS-BASEL, 2020, 7 (02):
  • [35] EtherProv: provenance-aware detection, analysis, and mitigation of Ethereum smart contract security issues
    Linoy, Shlomi
    Ray, Suprio
    Stakhanova, Natalia
    2021 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN (BLOCKCHAIN 2021), 2021, : 11 - 20
  • [36] Unveiling crypto analysis secrets : A comprehensive analysis of smart contract security within blockchain network environments
    Vats, Prashant
    Vats, Shailender Kumar
    Peddi, Prasadu
    JOURNAL OF DISCRETE MATHEMATICAL SCIENCES & CRYPTOGRAPHY, 2024, 27 (04): : 1121 - 1128
  • [37] An improved smart contract-based bring your own device (BYOD) security control framework
    Almarhabi, Khalid A.
    ALEXANDRIA ENGINEERING JOURNAL, 2024, 105 : 598 - 612
  • [38] A Novel Prosumer-Centric Smart Contract Based Approach for Blockchain-Enabled Energy Scheduling Using Electric Vehicles
    Hussain, Imran
    Hussain, Hafiz Ashiq
    Ullah, Nasim
    Misak, Stanislav
    IEEE ACCESS, 2024, 12 : 120747 - 120760
  • [39] SynTest-Solidity: Automated Test Case Generation and Fuzzing for Smart Contracts
    Olsthoorn, Mitchell
    Stallenberg, Dimitri
    Van Deursen, Arie
    Panichella, Annibale
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), 2022, : 202 - 206
  • [40] Adversarial generation method for smart contract fuzz testing seeds guided by chain-based LLM
    Sun, Jiaze
    Yin, Zhiqiang
    Zhang, Hengshan
    Chen, Xiang
    Zheng, Wei
    AUTOMATED SOFTWARE ENGINEERING, 2025, 32 (01)