通信学报 ›› 2023, Vol. 44 ›› Issue (10): 164-176.doi: 10.11959/j.issn.1000-436x.2023190

• 学术论文 • 上一篇    

基于蜕变测试的区块链智能合约漏洞检测方法

陈锦富1,2, 王震鑫1,2, 蔡赛华1,2, 冯乔伟1,2, 陈宇豪1,2, 许容天1,2, Patrick Kwaku Kudjo3   

  1. 1 江苏大学计算机科学与通信工程学院,江苏 镇江 212013
    2 江苏省工业网络安全技术重点实验室,江苏 镇江 212013
    3 威斯康星国际大学学院商业计算系,阿克拉 RE 00233
  • 修回日期:2023-09-05 出版日期:2023-10-01 发布日期:2023-10-01
  • 作者简介:陈锦富(1978− ),男,江西赣州人,博士,江苏大学教授、博士生导师,主要研究方向为软件测试、软件安全和可信软件
    王震鑫(1997− ),男,河南南阳人,江苏大学硕士生,主要研究方向为区块链系统安全、漏洞检测等
    蔡赛华(1990− ),男,江苏南通人,博士,江苏大学讲师、硕士生导师,主要研究方向为恶意流量检测、异常数据检测、软件安全测试
    冯乔伟(1998− ),男,江苏扬州人,江苏大学硕士生,主要研究方向为区块链漏洞检测、软件安全测试
    作者陈宇豪(1999− ),男,江苏无锡人,江苏大学硕士生,主要研究方向为区块链漏洞检测、软件安全测试。简介
    许容天(1997− ),男,江苏无锡人,江苏大学硕士生,主要研究方向为区块链漏洞检测、软件安全测试
    Patrick Kwaku Kudjo(1981− ),男,博士,威斯康星国际大学学院副教授,主要研究方向为软件安全、漏洞分析和预测、智能软件安全和网络安全等
  • 基金资助:
    国家重点研发计划基金资助项目(2020YFB1005501);国家自然科学基金资助项目(62172194);国家自然科学基金资助项目(62202206);国家自然科学基金资助项目(U1836116);江苏省自然科学基金资助项目(BK20220515);江苏省自然科学基金资助项目(BK20202001);中国博士后科学基金资助项目(2023T160275);江苏省青蓝工程基金资助项目

Vulnerability detection method for blockchain smart contracts based on metamorphic testing

Jinfu CHEN1,2, Zhenxin WANG1,2, Saihua CAI1,2, Qiaowei FENG1,2, Yuhao CHEN1,2, Rongtian XU1,2, KwakuKudjo Patrick3   

  1. 1 School of Computer Science and Communication Engineering, Jiangsu University, Zhenjiang 212013, China
    2 Jiangsu Key Laboratory of Security Technology for Industrial Cyberspace, Jiangsu University, Zhenjiang 212013, China
    3 Department of Business Computing, Wisconsin International University College, Accra RE 00233, Ghana
  • Revised:2023-09-05 Online:2023-10-01 Published:2023-10-01
  • Supported by:
    The National Key Research and Development Program of China(2020YFB1005501);The National Natural Science Foundation of China(62172194);The National Natural Science Foundation of China(62202206);The National Natural Science Foundation of China(U1836116);The Natural Science Foundation of Jiangsu Province(BK20220515);The Natural Science Foundation of Jiangsu Province(BK20202001);The China Postdoctoral Science Foundation(2023T160275);The Qinglan Project of Jiangsu Province

摘要:

针对现有测试方法的缺陷,提出了一种基于蜕变测试的区块链智能合约漏洞检测方法,其能针对区块链智能合约中具体的功能生成针对性的测试用例,从而检测区块链智能合约中存在的漏洞。针对可能出现的安全漏洞,设计了不同的蜕变关系并进行蜕变测试。通过验证源测试用例和后续测试用例之间是否满足蜕变关系,判断智能合约是否存在相关的安全漏洞。实验结果表明,所提方法可以有效地检测出智能合约中存在的安全漏洞。

关键词: 软件测试, 区块链, 智能合约, 安全漏洞, 蜕变测试

Abstract:

Aimed at the defects of existing test methods, a vulnerability detection method for blockchain smart contracts based on metamorphic testing was proposed, which could generate test cases for specific functions in blockchain smart contracts to detect possible vulnerabilities.According to the possible security vulnerabilities, different metamorphosis relationships were designed and then metamorphic testing was performed.Through verifying whether the metamorphic relationship between the source test case and the subsequent test case was satisfied, whether the smart contract had related security vulnerabilities was judged.The experimental results show that the proposed method can effectively detect the security vulnerabilities in the smart contracts.

Key words: software testing, blockchain, smart contract, security vulnerability, metamorphic testing

中图分类号: 

No Suggested Reading articles found!