S-GRAM: Towards Semantic-Aware Security Auditing for Ethereum Smart Contracts

被引:58
|
作者
Liu, Han [1 ,4 ,5 ]
Liu, Chao [2 ]
Zhao, Wenqi [3 ]
Jiang, Yu [1 ]
Sun, Jiaguang [1 ]
机构
[1] Tsinghua Univ, Sch Software, Beijing, Peoples R China
[2] Peking Univ, Beijing, Peoples R China
[3] Ant Financial, Ant Fortune Business Grp, Beijing, Peoples R China
[4] Beijing Natl Res Ctr Informat Sci & Technol, Beijing, Peoples R China
[5] Minist Educ, Key Lab Informat Syst Secur, Beijing, Peoples R China
基金
中国博士后科学基金;
关键词
Smart contracts; security auditing; language modeling; static semantic labeling;
D O I
10.1145/3238147.3240728
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Smart contracts, as a promising and powerful application on the Ethereum blockchain, have been growing rapidly in the past few years. Since they are highly vulnerable to different forms of attacks, their security becomes a top priority. However, existing security auditing techniques are either limited in finding vulnerabilities (rely on pre-defined bug patterns) or very expensive (rely on program analysis), thus are insufficient for Ethereum. To mitigate these limitations, we proposed a novel semantic-aware security auditing technique called S-GRAM for Ethereum. The key insight is a combination of N-gram language modeling and lightweight static semantic labeling, which can learn statistical regularities of contract tokens and capture high-level semantics as well (e.g., flow sensitivity of a transaction). S-GRAM can be used to predict potential vulnerabilities by identifying irregular token sequences and optimize existing in-depth analyzers (e.g., symbolic execution engines, fuzzers etc.). We have implemented S-GRAM for Solidity smart contracts in Ethereum. The evaluation demonstrated the potential of S-GRAM in identifying possible security issues.
引用
收藏
页码:814 / 819
页数:6
相关论文
共 50 条
  • [21] Towards a Trustworthy Semantic-Aware Marketplace for Interoperable Cloud Services
    Bellini, Emanuele
    Cimato, Stelvio
    Damiani, Ernesto
    Di Martino, Beniamino
    Esposito, Antonio
    COMPLEX, INTELLIGENT AND SOFTWARE INTENSIVE SYSTEMS, CISIS-2021, 2021, 278 : 606 - 615
  • [22] Towards Analyzing the Complexity Landscape of Solidity Based Ethereum Smart Contracts
    Hegedus, Peter
    TECHNOLOGIES, 2019, 7 (01)
  • [23] ConFuzz: Towards Large Scale Fuzz Testing of Smart Contracts in Ethereum
    Wong, Taiyu
    Zhang, Chao
    Ni, Yuandong
    Luo, Mingsen
    Chen, HeYing
    Yu, Yufei
    Li, Weilin
    Luo, Xiapu
    Wang, Haoyu
    IEEE INFOCOM 2024-IEEE CONFERENCE ON COMPUTER COMMUNICATIONS, 2024, : 1691 - 1700
  • [24] Towards Semantic-Aware Learning Object Retrieval - An Ontological Approach
    Lee, Ming-Che
    Wang, Tzone I.
    BULLETIN OF THE TECHNICAL COMMITTEE ON LEARNING TECHNOLOGY, 2005, 7 (02): : 57 - 58
  • [25] Towards a Dynamic Testing Approach for Checking the Correctness of Ethereum Smart Contracts
    Hammami, Mohamed Amin
    Lahami, Mariam
    Maalej, Afef Jmal
    RISKS AND SECURITY OF INTERNET AND SYSTEMS, CRISIS 2022, 2023, 13857 : 85 - 100
  • [26] Erays: Reverse Engineering Ethereum's Opaque Smart Contracts
    Zhou, Yi
    Kumar, Deepak
    Bakshi, Surya
    Mason, Joshua
    Miller, Andrew
    Bailey, Michael
    PROCEEDINGS OF THE 27TH USENIX SECURITY SYMPOSIUM, 2018, : 1371 - 1385
  • [27] Technical Usability Assessment of Security Analysis Tools for Ethereum Based Smart Contracts
    Zeeshan, Rana
    Tal, Irina
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY COMPANION, QRS-C, 2022, : 87 - 95
  • [28] Taxonomic insights into ethereum smart contracts by linking application categories to security vulnerabilities
    Ortu, Marco
    Ibba, Giacomo
    Destefanis, Giuseppe
    Conversano, Claudio
    Tonelli, Roberto
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [29] Using Automated Reasoning Techniques for Enhancing the Efficiency and Security of (Ethereum) Smart Contracts
    Albert, Elvira
    Gordillo, Pablo
    Hernandez-Cerezo, Alejandro
    Rodriguez-Nunez, Clara
    Rubio, Albert
    AUTOMATED REASONING, IJCAR 2022, 2022, 13385 : 3 - 7
  • [30] Advanced Security Auditing Methods for Solidity-Based Smart Contracts
    Xiao, Meihua
    Xu, Yangping
    Li, Zehuan
    Wan, Hongbin
    ELECTRONICS, 2024, 13 (20)