Content area

Abstract

As a novel decentralized computing paradigm, blockchain is expected to disrupt the existing e-commerce architecture and process. Secure smart contracts are the crucial foundation for e-commerce based on blockchain. However, vulnerabilities in smart contracts occur from time to time and cause significant financial losses in e-commerce. Some static verification methods have been developed to guarantee security for e-commerce smart contracts at design time, but they cannot support complex scenarios at runtime. As a lightweight verification method, runtime verification is a potential method for secure e-commerce smart contracts. The existing runtime verification methods are based on the manual instrument, which leads to additional overheads and gas consumption. To deal with this, we propose a passive learning-based runtime verification framework for e-commerce smart contracts. Firstly, by exploring the Genetic algorithm to evolve state merging and automaton reorganizing in order to simultaneously split time and gas behaviors, we propose a passive learning method to model runtime information for e-commerce smart contracts (PL4ESC). It directly learns P2TA (priced probabilistic timed automaton) from runtime traces without any prior knowledge. Then, we integrate PL4ESC with the open-source PAT (Process Analysis Toolkit) to automatically verify the security of runtime e-commerce smart contracts. The experiments show that PL4ESC is better at accuracy and precision than state-of-the-art passive learning methods. It improves accuracy by 1 to 4 percent compared to TAG and RTI+. As far as we know, it is not only the first learning method that can learn a P2TA from traces, but it is also the first automated runtime verification framework for e-commerce smart contracts. This will provide security guarantees for blockchain-based e-commerce.

Details

1009240
Title
Automated Runtime Verification of Security for E-Commerce Smart Contracts
Author
Liu, Yang 1 ; Zhang, Shengjie 1 ; Ma, Yan 2 

 Institute of Logistics Science and Engineering, Shanghai Maritime University, Shanghai 201306, China; [email protected] (Y.L.); [email protected] (S.Z.) 
 School of Accounting, Nanjing University of Finance and Economics, Nanjing 210023, China 
Volume
20
Issue
2
First page
73
Number of pages
26
Publication year
2025
Publication date
2025
Publisher
MDPI AG
Place of publication
Curicó
Country of publication
Switzerland
ISSN
07181876
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2025-04-13
Milestone dates
2024-10-26 (Received); 2025-02-25 (Accepted)
Publication history
 
 
   First posting date
13 Apr 2025
ProQuest document ID
3223914901
Document URL
https://www.proquest.com/scholarly-journals/automated-runtime-verification-security-e/docview/3223914901/se-2?accountid=208611
Copyright
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-08-05
Database
ProQuest One Academic