基于预先执行和类型推断的闭源合约攻击风险确认方法

By performing pre-execution and type inference before deploying closed-source contracts, the problem of not being able to identify the risk of attacks on closed-source contracts in a timely manner in existing technologies is solved, enabling early warning and proactive defense, improving the accuracy and efficiency of malicious contract detection, and making it suitable for security protection of the blockchain ecosystem.

CN121396599BActive Publication Date: 2026-07-17ZHEJIANG UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG UNIV
Filing Date
2025-10-24
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies cannot effectively identify and confirm attack risks before the formal deployment of closed-source smart contracts. They lack a systematic solution that combines pre-execution and type inference of closed-source contracts, making it difficult to detect malicious contracts and identify attack risks in a timely manner before the contracts are officially put on the blockchain.

Method used

By capturing and pre-executing deployment transactions in a local virtual machine, combined with dynamic type inference technology, the behavioral characteristics of contracts are accurately restored, enabling timely warnings and risk confirmation of malicious contracts. This includes steps one: detecting transactions; step two: monitoring contract status; step three: preliminary screening; and step four: executing and analyzing contracts. Type inference technology is used to recover the external interface and internal variable information of the contract.

Benefits of technology

It enables early warning and proactive defense before the formal deployment of contracts, improves the accuracy of malicious behavior identification, reduces the risk of loss from traditional post-event detection, has a wide range of applications and low cost, and provides security protection for the blockchain ecosystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121396599B_ABST
    Figure CN121396599B_ABST
Patent Text Reader

Abstract

本发明公开一种基于预先执行和类型推断的闭源合约攻击风险确认方法,该方法在闭源智能合约相关交易出现在区块链网络时触发检测,通过在本地虚拟机中提前部署合约实现预先执行;对合约进行初步筛查,检测可疑特征并优先分析高风险合约;利用类型推断技术恢复智能合约信息,通过模糊测试探索程序状态,在执行过程中收集合约执行特征,最后进行风险评估。本发明通过预先执行与动态类型推断相结合,突破了闭源合约攻击风险确认缺乏源代码和类型信息的技术瓶颈,实现对恶意合约的早期预警和主动防御,为区块链提供安全技术保障。
Need to check novelty before this filing date? Find Prior Art