Lune

ASE2024顶会

COBRA: Interaction-Aware Bytecode-Level Vulnerability Detector for Smart Contracts

Wenkai Li, Xiaoqi Li, Zongwei Li, Yuqing Zhang

摘要

The detection of vulnerabilities in smart contracts remains a significant challenge. While numerous tools are available for analyzing smart contracts in source code, only about 1.79% of smart contracts on Ethereum are open-source. For existing tools that target bytecodes, most of them only consider the semantic logic context and disregard function interface information in the bytecodes. In this paper, we propose COBRA, a novel framework that integrates semantic context and function interfaces to detect vulnerabilities in bytecodes of the smart contract. To our best knowledge, COBRA is the first framework that combines these two features. Moreover, to infer the function signatures that are not present in signature databases, we present SRIF (Signatures Reverse Inference from Functions), automatically learn the rules of function signatures from the smart contract bytecodes. The bytecodes associated with the function signatures are collected by constructing a control flow graph (CFG) for the SRIF training. We optimize the semantic context using the operation code in the static single assignment (SSA) format. Finally, we integrate the context and function interface representations in the latent space as the contract feature embedding. The contract features in the hidden space are decoded for vulnerability classifications with a decoder and attention module. Experimental results demonstrate that SRIF can achieve 94.76% F1-score for function signature inference. Furthermore, when the ground truth ABI exists, COBRA achieves 93.45% F1-score for vulnerability classification. In the absence of ABI, the inferred function feature fills the encoder, and the system accomplishes an 89.46% recall rate.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • SCALM: Detecting Bad Practices in Smart Contracts Through LLMs 引用了 Making Smart Contracts Smarter
  • SCALM: Detecting Bad Practices in Smart Contracts Through LLMs 引用了 Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
  • Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks 引用了 Making Smart Contracts Smarter
  • Soleker: Uncovering Vulnerabilities in Solana Smart Contracts 引用了 Making Smart Contracts Smarter
  • Revealing the Dark Side of Smart Accounts: An Empirical Study of EIP-7702 Incurred Risks in Blockchain Ecosystem 引用了 Making Smart Contracts Smarter
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts 引用了 Making Smart Contracts Smarter
  • Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts 引用了 Making Smart Contracts Smarter
  • Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited 引用了 Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
  • Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited 引用了 Making Smart Contracts Smarter
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. SCALM: Detecting Bad Practices in Smart Contracts Through LLMsZongwei Li, Xiaoqi Li, Wenkai Li, Xin WangAAAI 2025 · 40 次引用
  2. Soleker: Uncovering Vulnerabilities in Solana Smart ContractsKunsong Zhao, Yunpeng Tian, Zuchao Ma, Xiapu LuoASE 2025
  3. Revealing the Dark Side of Smart Accounts: An Empirical Study of EIP-7702 Incurred Risks in Blockchain EcosystemMingyuan Huang, Han Liu, Shuo Yang, Daoyuan Wu 等USENIX Security 2026

它引用的 Paper16

  1. Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena 等CCS 2016 · 2,306 次引用
  2. Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 次引用
  3. Sereum: Protecting Existing Smart Contracts Against Re-Entrancy AttacksMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviNDSS 2019 · 298 次引用
  4. Learning to Fuzz from Symbolic Execution with Application to Smart ContractsJingxuan He, Mislav Balunovic, Nodar Ambroladze, Petar Tsankov 等CCS 2019 · 288 次引用
  5. Smart Contract Vulnerabilities: Vulnerable Does Not Imply ExploitedDaniel Perez, Benjamin LivshitsUSENIX Security 2021 · 150 次引用

相关 Paper

  1. DeepInfer: Deep Type Inference from Smart Contract BytecodeKunsong Zhao, Zihao Li, Jianfeng Li, He Ye 等FSE 2023 · 24 次引用
  2. SmartDagger: a bytecode-based static analysis approach for detecting cross-contract vulnerabilityZeqin Liao, Zibin Zheng, Xiao Chen, Yuhong NanISSTA 2022 · 64 次引用
  3. Smart Learning to Find Dumb ContractsTamer Abdelaziz, Aquinas HoborUSENIX Security 2023
  4. Cross-Modality Mutual Learning for Enhancing Smart Contract Vulnerability Detection on BytecodePeng Qian, Zhenguang Liu, Yifang Yin, Qinming HeWWW 2023 · 91 次引用
  5. ReFun: Reconstructing Function Boundaries in EVM BytecodeYichuan Li, Wei Song, Jeff Huang, Hans-Arno JacobsenOOPSLA 2026 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖