一句话:定义了智能合约六类中心化缺陷,并实现基于权限依赖图的检测工具 CDRipper,在真实合约上验证有效。
近年智能合约中的中心化缺陷导致重大经济损失,但现有分析主要关注其他类型缺陷。本文通过人工分析 597 条 Stack Exchange 帖子和 117 份审计报告,归纳出六类中心化缺陷,并为每类缺陷提供详细描述与代码示例。为自动检测这些缺陷,作者提出 CDRipper 工具:它从智能合约源码构建权限依赖图(PDG),提取函数的权限依赖,识别函数中的敏感操作,并基于预定义模式判定中心化缺陷。作者在 244,424 个真实智能合约上进行大规模实验,并利用人工标注数据集评估结果。实验发现 82,446 个合约至少包含六类中心化缺陷之一,CDRipper 的总体精确率达到 93.7%。
In recent years, security incidents stemming from centralization defects in smart contracts have led to substantial financial losses. A centralization defect refers to any error, flaw, or fault in a smart contract's design or development stage that introduces a single point of failure. Such defects allow a specific account or user to disrupt the normal operations of smart contracts, potentially causing malfunctions or even complete project shutdowns. Despite the significance of this issue, most current smart contract analyses overlook centralization defects, focusing primarily on other types of defects. To address this gap, our paper introduces six types of centralization defects in smart contracts by manually analyzing 597 Stack Exchange posts and 117 audit reports. For each defect, we provide a detailed description and code examples to illustrate its characteristics and potential impacts. Additionally, we introduce a tool named CDRipper (Centralization Defects Ripper) designed to identify the defined centralization defects. Specifically, CDRipper constructs a permission dependency graph (PDG) and extracts the permission dependencies of functions from the source code of smart contracts. It then detects the sensitive operations in functions and identifies centralization defects based on predefined patterns. We conduct a large-scale experiment using CDRipper on 244,424 real-world smart contracts and evaluate the results based on a manually labeled dataset. Our findings reveal that 82,446 contracts contain at least one of the six centralization defects, with our tool achieving an overall precision of 93.7%.
DOI 原文 ·
@inproceedings{paperbot8823,
title = {Definition and Detection of Centralization Defects in Smart Contracts},
author = {Zewei Lin and Jiachi Chen and Jiajing Wu and Weizhe Zhang and Zibin Zheng},
booktitle = {ICSE},
year = {2025},
doi = {10.1109/icse55347.2025.00058}
}