Software built on poor structural patterns often shows higher exposure to security defects. When code differs from established best practices, verification and maintenance become increasingly difficult, thereby raising the risk of unintentional vulnerabilities. In the context of blockchain technology, where immutable smart contracts handle high-value transactions, the need for strict security assurance is important. This research analyzes the utility of software complexity metrics as diagnostic tools for identifying vulnerable Solidity smart contracts. We evaluate the hypothesis that complexity measures serve as vital, complementary signals for security assessment. Through an empirical examination of 21 distinct metrics, we analyzed their inter-dependencies, statistical association with vulnerabilities, and discriminative capabilities. Our findings indicate a significant degree of redundancy among certain metrics and a relatively low correlation between any single metric and the presence of vulnerabilities. However, the data demonstrates that these metrics possess strong power to distinguish between secure and vulnerable code when analyzed collectively. Notably, with only three exceptions, vulnerable contracts consistently exhibited higher mean complexity scores than their neutral counterparts. While our results show a statistical association, we emphasize that complexity is an indicator rather than a direct cause of vulnerability.


翻译:基于不良结构模式构建的软件通常表现出更高的安全缺陷暴露风险。当代码偏离既定最佳实践时,验证与维护会变得愈发困难,从而增加非故意漏洞产生的可能性。在区块链技术背景下,不可篡改的智能合约处理着高价值交易,因此对严格安全保障的需求至关重要。本研究分析了软件复杂度度量作为识别易受攻击的Solidity智能合约的诊断工具的效用。我们评估了以下假设:复杂度度量可作为安全评估中关键且互补的指标。通过对21种不同度量的实证检验,我们分析了它们之间的相互依赖性、与漏洞的统计关联性以及判别能力。研究结果表明,某些度量之间存在显著冗余,且任何单一度量与漏洞存在之间的相关性相对较低。然而,数据表明当这些度量被集体分析时,它们具备强大的能力来区分安全代码与易受攻击代码。值得注意的是,除三个特例外,易受攻击合约的复杂度平均得分始终高于中性对照合约。虽然我们的结果显示了统计关联性,但我们强调复杂度是漏洞的指示因子而非直接成因。

0
下载
关闭预览

相关内容

深度学习中的架构后门:漏洞、检测与防御综述
专知会员服务
12+阅读 · 2025年7月19日
DeepSeek模型在中文语境下的安全性评估
专知会员服务
26+阅读 · 2025年2月21日
机密计算保障人工智能系统安全研究报告
专知会员服务
19+阅读 · 2025年1月20日
人工智能系统可信性度量评估研究综述
专知会员服务
95+阅读 · 2022年1月30日
区块链数据安全服务综述
专知会员服务
56+阅读 · 2021年11月10日
专知会员服务
38+阅读 · 2021年10月19日
专知会员服务
34+阅读 · 2021年5月8日
深度学习赋能的恶意代码攻防研究进展
专知会员服务
30+阅读 · 2021年4月11日
《人工智能安全框架(2020年)》白皮书,68页pdf
专知会员服务
167+阅读 · 2021年1月9日
《人工智能安全测评白皮书》,99页pdf
专知
36+阅读 · 2022年2月26日
智能合约的形式化验证方法研究综述
专知
16+阅读 · 2021年5月8日
【智能金融】机器学习在反欺诈中应用
产业智能官
35+阅读 · 2019年3月15日
区块链隐私保护研究综述——祝烈煌详解
计算机研究与发展
23+阅读 · 2018年11月28日
人工智能对网络空间安全的影响
走向智能论坛
21+阅读 · 2018年6月7日
智能时代如何构建金融反欺诈体系?
数据猿
12+阅读 · 2018年3月26日
国家自然科学基金
4+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
VIP会员
相关VIP内容
深度学习中的架构后门:漏洞、检测与防御综述
专知会员服务
12+阅读 · 2025年7月19日
DeepSeek模型在中文语境下的安全性评估
专知会员服务
26+阅读 · 2025年2月21日
机密计算保障人工智能系统安全研究报告
专知会员服务
19+阅读 · 2025年1月20日
人工智能系统可信性度量评估研究综述
专知会员服务
95+阅读 · 2022年1月30日
区块链数据安全服务综述
专知会员服务
56+阅读 · 2021年11月10日
专知会员服务
38+阅读 · 2021年10月19日
专知会员服务
34+阅读 · 2021年5月8日
深度学习赋能的恶意代码攻防研究进展
专知会员服务
30+阅读 · 2021年4月11日
《人工智能安全框架(2020年)》白皮书,68页pdf
专知会员服务
167+阅读 · 2021年1月9日
相关基金
国家自然科学基金
4+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员