У даній кваліфікаційній роботі було проведено дослідження технології блокчейн,проведено аналіз атак та інцидентів на розумні контракти засновані на блокчейні Ethereum, розроблено модель загроз для блокчейн додатків та розроблено рекомендації з підвищення рівня захисту розумних контрактів . У роботі було досліджено атаки та інциденти пов`язані з розумними контрактами на платформі Ethereum. Було розглянуто такі атаки, як атака повторного входу,атака відтворення, атака на цілочисельне переповнення та інші.За результатами аналізу інцидентів було виділено 2 основні загрози які були використані на практиці для проведення атак на блокчейн дотатки-це атака повторного входу і фішинг. Була створена комплексна модель загроз які виникають при використанні додатків заснованих на технології блокчейн в мережі Ethereum. На основі проаналізованих інцидентів та грунтуючись на моделі загроз були сформовані рекомендації з підвищення рівня захищеності додатків заснованих на розумних контрактах Ключові слова: розумні контракти, атака, Ethereum, EVM, методи захисту.
This book provides a general overview of virtual power plants (VPP) as a key technology in future energy communities and active distribution and transmission networks for managing distributed energy resources, providing local and global services, and facilitating market participation of small-scale managing distributed energy resources and prosumers. The book also aims at describing some practical solutions, business models, and novel architectures for the implementation of VPPs in the real world. Each chapter of the book begins with the fundamental structure of the problem required for a rudimentary understanding of the methods described. It provides a clear picture for practical implementation of VPP through novel technologies such as blockchain, digital twin, and distributed ledger technology. The book will help the electrical and power engineers, undergraduate, graduate students, research scholars, and utility engineers to understand the emerging solutions regarding the VPP concept lucidly.
Smart internet of things (IoT) devices are used to manage domestic and industrial energy needs using sustainable and renewable energy sources. Due to cyber infiltration and a lack of transparency, the traditional transaction process is inefficient, unsafe and expensive. Smart grid systems are now efficient, safe and transparent owing to the development of blockchain (BC) technology and its smart contract (SC) solution. In this study, federated learning extreme gradient boosting (FL-XGB) framework has been developed along with BC to learn the intrusion inside the smart energy system. FL is best suited for a decentralized BC-enabled system to adapt learning models for trustworthy and reliable transactions. Many features and attributes of the Third International Knowledge Discovery and Data mining Tools Competition (KDD Cup 1999) dataset have been used in this study to perform experimental analysis. The likelihood of intrusions in the network is mathematically stated. The participant nodes run the BC based FL-Smart Contract (SC) algorithms to detect network intrusions. FL provided aggregated learning results from the experiment that was 99% accurate in predicting network intrusion. The experimentally determined block storage gain and retrieval gain were 97.5% and 95.4% respectively. The intrusion in the smart grid network was evaluated, and the data indicated that there was 1.2% illegal access. Moreover, the learning system’s accuracy, retrieval and storage intrusions, legal access and transaction processing times were considered for comparison. The proposed system outperformed contemporary research-developed systems targeted for the same application. Therefore, this study provides a guaranteed intrusion learning system and secure transaction system for smart grids.
Emilio C. Piesciorovsky, Raymond Borges Hink, Aaron Werth, Gary Hahn · 6 authors
Electrical utility substations are wired with intelligent electronic devices (IEDs), such as protective relays, power meters, and communication switches. Substation engineers commission these IEDs to assess the appropriate measurements for monitoring, control, power system protection, and communication applications. Like real electrical utility substations, complex electrical substation grid testbeds (ESGTs) need to be assessed for measuring current and voltage signals in monitoring, power system protection, control (synchro check), and communication applications that are limited by small-measurement percentage errors. In the process of setting an ESGT with real-time simulators and IEDs in the loop, protective relays, power meters, and communication devices must be commissioned before running experiments. In this study, an ESGT with IEDs and distributed ledger technology was developed. The ESGT with a real-time simulator and IEDs in the loop was satisfactorily assessed and commissioned. The commissioning and problem-solving tasks of the testbed are described to define a method with flowcharts to assess possible troubleshooting in ESGTs. This method was based on comparing the simulations versus IED measurements for the phase current and voltage magnitudes, three-phase phasor diagrams, breaker states, protective relay times with selectivity coordination at electrical faults, communication data points, and time-stamp sources.
As smart grids advance rapidly, they are evolving along two primary trajectories: (1) digitalization through the incorporation of Internet of Things (IoT) technology and intelligent control, and (2) decentralization by leveraging small-scale distributed energy sources for control. However, these developments also introduce complexities in the functioning, management, and control of smart grids. Consequently, there is an urgent need for a transparent, secure, robust, transactive, and scalable framework for all stakeholders and operators. Blockchain technology emerges as a promising solution for this new smart grid paradigm, providing a range of features, including a distributed ledger, immutability, consensus, security, and automation. This article highlights the challenges in smart grid management, control, and operations, and discusses the potential of blockchain-based solutions to address these issues. It demonstrates that the adoption of blockchain can significantly enhance the overall functioning of the infrastructure by establishing a decentralized architecture without central governance.
In recent decades, there has been a growing global focus on solar power as a renewable energy source (RES) to supply local energy demands and reduce greenhouse gas emissions. Rooftop solar photovoltaic (PV) system provides a small-scale utilization of solar energy on the roofs of apartment buildings. Investment in this system and its profitability depends on several factors, including geographic conditions, electricity price, and local load profiles. However, in Finland, the maritime and continental climates and electrically heated residential buildings present unique challenges to the investment and utilization of rooftop PV systems. Common solutions to incentivize the investment of grid-connected PV in apartments are battery energy storage systems (BESSs), demand side management (DSM), and power-to-x (P2X) approaches. Nevertheless, the value of these solutions is limited in Finland due to the seasonal variation of solar PV generation and customers’ energy consumption. This paper presents a novel and practical control and hedging mechanism to encourage investments in rooftop solar PV-BESS systems by investing in cryptocurrency mining devices (CMDs) as dispatchable and flexible loads, which facilitate the use of excess renewable energy for producing cryptocurrency, such as bitcoin (BTC). This mechanism can optimally switch the output of excessive renewable energy between exporting to the main grid and mining cryptocurrency. The proposed mechanism is studied using a dataset obtained from a residential apartment building in Helsinki, Finland, and its effectiveness is demonstrated through several practical scenarios. The results of a case study employed in this work demonstrate that the proposed hedging mechanism can provide sufficient encouragement for investors to invest in a PV system, with a return on investment equal to 57.7%. This mechanism also reduces the annual cost of residential apartments by 68.1%.
Muhammad Hasan Danish Khan, Junaid Imtiaz, Muhammad Najam-ul-Islam
Energy markets are being transformed rapidly all over the world due to an increased integration of renewable energy sources. Blockchain technology is emerging as a prime contender, as it can provide a secure and efficient transactional platform for such markets. In a typical microgrid energy market, the consumers and prosumers belonging to the microgrid have the ability to trade energy in a peer-to-peer fashion. However, the existing energy markets suffer from multiple issues security and privacy issues. To handle the aforementioned issues, this research work proposes a blockchain based secure Decentralized Transaction System (DTS) for energy trading in microgrids. The proposed system comprises of a secure market model that facilitates energy trade between energy users. A simplistic energy exchange mechanism has been formulated that ensures data integrity and privacy of the participating energy users. A prosumer centric consensus mechanism has been employed to incentivize the prosumers and ensure the availability of energy in the microgrid at all times. An efficient and dynamic pricing mechanism has been used to reduce the supply and demand disparity. A comprehensive trust model based on commitments has been adopted for ensuring the reliability of the participating energy user. Additionally, a hardware based access control mechanism has been utilized to make the proposed DTS a physical and cyber secure system. Other than this, a framework of smart contracts has been deployed to provide a comprehensive solution that ensures privacy, security, anonymity, auditability and confidentiality of the generated energy information. To demonstrate its practicality, the system has been implemented on Ethereum platform. The proposed DTS is validated using realistic data with the Ethereum Virtual Machine (EVM) environment of Goerli Test Network.
The household prosumers’ decentralized cooperation and aggregation in energy communities are essential to increase renewable energy penetration and to ensure a successful energy transition. Despite their potential, the prosumers are not motivated to participate in local energy value chains due to the lack of trust and decentralized cooperation models for meeting community welfare and sustainability preferences, most innovation efforts being focused on financial incentives that are anyway very low. In this paper, we propose a solution for prosumers’ decentralized coordination in self-sufficient energy communities using cooperative games on top of a blockchain overlay that considers their complementary energy features and flexibility mobilization. The proposed model for community-level local energy balance fits well in circumstances in which there is a strong motivation in the community to prioritize sustainability and environmental concerns and reduce dependence on external energy. We define a governance model to support the decentralized self-organization of prosumers in coalitions for balancing the renewable generation and demand while considering via tokenization factors that go beyond purely economic motivations and foster cooperation and collaboration among the prosumers in the community. Self-enforcing contracts are used to implement the cooperative game model enabling the decentralized management of prosumers’ coalitions for optimized tokens-based payoff distribution towards self-sufficiency. The evaluation results show our solution’s effectiveness in facilitating the prosumers cooperation in self-sufficient coalitions achieving a minimal difference between the energy consumption and production in the community of approximately 0.01%, with a low transactional time overhead.
Annabelle Lee, Sri Nikhil Gupta Gourisetti, D. Jonathan Sebastian-Cardenas, Kent Lambert · 15 authors
In recent times, Distributed Ledger Technology (DLT) has gained significant attention for its potential application in the energy sector. Utilizing blockchain and DLT has demonstrated the ability to enhance the resilience of the electric infrastructure, which will support a more flexible infrastructure and advance grid modernization. However, the deployment of these technologies increases the overall attack surface. The MITRE ATT&CK® matrices have been developed to document an adversary’s tactics and techniques based on real-world observations. The MITRE ATT&CK® matrices provide a common taxonomy for offense and defense and have become a valuable conceptual tool across multiple cybersecurity disciplines for conveying threat intelligence, performing testing through red teaming or adversary emulation, and enhancing network and system defenses against intrusions. The MITRE ATT&CK® for Industrial Control Systems (ICS) matrix was created to provide knowledge about adversary behavior in the ICS technology domain. This study analyzes the relevance of various tactics and techniques across a seven-layer DLT engineering and cybersecurity stack, known as the DLT stack, designed by the Cybersecurity Taskforce under IEEE P2418.5 - Standard for Blockchain in Energy working group sponsored by Power and Energy Systems - Smart Buildings, Loads and Customer Systems (PES/SBLC) Technical Committee. Additionally, this paper identifies specific mitigation strategies tailored to the energy ICS environment.
Traditional techniques for smart contract vulnerability detection rely on fixed expert criteria to discover vulnerabilities, which are less generalizable, scalable, and accurate. Deep learning algorithms help to address these issues, but most fail to encode true expert knowledge and remain interpretable. In this paper, we present a smart contract vulnerability detection mechanism that operates in phases with graph neural networks and expert patterns in deep learning to mutually address the deficiencies of the two detection approaches and improve smart contract vulnerability detection capabilities. Experiments show that our vulnerability detection mechanism outperforms the original deep learning model by an average of 6 points in detecting vulnerabilities and that the second stage of the checking mechanism can also block contract transactions containing dangerous actions at the Ethernet Virtual Machine (EVM) level and generate error reports for submission. This strategy helps to construct more stable smart contracts and to create a secure environment for smart contracts.
Fernando Bereta dos Reis, Mark Borkum, Monish Mukherjee, D. Jonathan Sebastian-Cardenas
This paper explores the potential of distributed ledger technology (DLT) to improve fault-tolerant grid operations by leveraging its core features as an immutable, decentralized ledger, a distributed, consensus-based agreement process, and a distributed state-replication engine. Distribution power systems deliver electricity to millions of customers; however, they are susceptible to various threats that can result in customer interruptions. These include faults caused by adverse weather conditions, natural disasters, vegetation growth, equipment failure, and malicious attacks. To minimize the effects of these faults, fault-handling approaches rely on network knowledge to isolate affected areas and reconnect unaffected areas, reducing the number of affected customers while maintaining safety. Here, we present a trusted data-sharing architecture that enables independent, distributed actors to reconstruct the pre-fault system state by enabling distributed resources to make appropriate decisions with limited network/system information. Although the process requires some data sharing between switch-delimited areas, the approach limits the amount of private information shared, preserving customers’ privacy and business-sensitive information. We include three use cases that form a foundation for third parties to develop functional solutions that can eventually be deployed in the field. The gross error detection method used within switch-delimited areas can identify sensor errors and accurately detect circuit breaker states. The evaluation of possible reconnection while preserving data ownership resulted in a voltage magnitude difference smaller than 0.01% from the OpenDSS power flow solution that has full system knowledge, which is below the expected power flow tolerance. The approach offers a promising opportunity for improving fault-tolerant distribution grid operations.
DeFi, a decentralized financial service based on blockchain, not only provides innovative financial services, but also poses various risks, such as the Terra Luna crash. Therefore, anomaly detection in DeFi is necessary to ensure the safety and reliability of the DeFi ecosystem. However, this is very difficult because of the complex protocol, interaction among smart contracts, and high market volatility. In this study, we propose a novel method to effectively detect anomalies in DeFi. To the best of our knowledge, this is the first study that utilizes deep learning to detect anomalies in DeFi. We propose a deep learning model, anomaly VAE-Transformer, which combines the variational autoencoder to extract local information in the short term, and the transformer, to identify dependencies between data in the long term. Based on a deep understanding of DeFi protocols, the proposed model collects and analyzes various on-chain data of Olympus DAO, a representative DeFi protocol, for extracting features suitable for anomaly detection. Then, we demonstrate the superiority of the proposed model by analyzing four anomaly cases detected successfully by the proposed model in Olympus DAO. A malicious attack attempt and structural changes in DeFi protocols can be identified quickly using the proposed method; this is expected to help protect the assets of DeFi users and improve the safety, reliability, and transparency of the DeFi market. The dataset and codes are available athttps://github.com/fialle/Anomaly-VAE-Transformer
Numerous abnormal transactions have been exposed as a result of targeted attacks on Ethereum, such as the Ethereum Decentralized Autonomous Organization attack. Exploiting vulnerabilities in smart contracts, malicious users can pursue their own illicit objectives through abnormal transactions. Consequently, identifying these malevolent users, implicated in fraudulent activities and their attribution, becomes exceedingly complex. Cryptocurrency transactions used for malicious purposes, employing pseudo-anonymous accounts to send and receive ransom payments and accumulating funds under various identities, further highlight the need to control and detect these abnormal transactions for maintaining a high level of security within the Ethereum network. Although existing Intrusion Detection Systems (IDSs) help mitigate abnormal transaction occurrences, their performance necessitates improvement. To address this issue, this study presents a novel approach, named Abnormal Transactions Detection Using a Semi-Supervised Generative Adversarial Network (ATD-SGAN), which efficiently detects abnormal attacks within the Ethereum network. ATD-SGAN leverages a semi-supervised generative adversarial network for this purpose. The results demonstrate that ATD-SGAN significantly enhances the performance of state-of-the-art IDSs. It achieves an increase in detection accuracy from 3.78% to 11.05% and reduces the false alarm rate from 42.29% to 0.15%. Moreover, ATD-SGAN notably improves the F1-measure, ranging from 10.39% to 3.79%, compared to the current IDSs.
The ongoing push for the 4th industrial revolution is setting the stage to digitise, persist and verify identity along with credentials. Academic and skills credentials are currently verified manually and have much scope for automation using cryptographic techniques but requires standardisation to facilitate future systems interoperability. The Distributed Ledger Technology (DLT) and World Wide Web Consortium (W3C) Verifiable Credentials (VC) standards presents the possibility to achieve this credential verification automation. To accomplish this, an understanding of various DLTs and requirements for a viable skills tracking system is important. Therefore, this research aims to access the selected DLTs against the assessment criterion presented and an analysis has been completed to determine which DLT is suitable for the proposed system. The DLTs are assessed in terms of their ability to support the rapid prototyping of such a system and provide recommendations to guide a future development path from the perspective of standards compliance. We conclude that few DLTs possess the maturity to provide proper requirements coverage due to the emergent nature of the DLT space. Additionally, this paper presents the high-level requirements to achieve a minimally viable solution that can demonstrate such digital credential verification in the academic and skills tracking context.
Shekh S. Uddin, Rahul Joysoyal, Subrata K. Sarker, S. M. Muyeen · 14 authors
Technological advancements in smart grid energy systems (SGESs) are introducing sustainable frameworks to meet the demand for the fourth industrial energy revolution. These frameworks are planned to be used in the forthcoming future to maintain the energy network operation with optimization, energy trading, grid automation, and so on. Blockchain (BCn), developing after passing a diverse period of the research journey, comes to the mind of researchers and its integration in SGES paves the way to reach the goal of energy demand. However, still of interest is ongoing in the improvement of BCn features which can be regarded as the next-generation blockchain framework. This paper exhibits the technical framework of the next-generation BCn framework and explores its benefits and challenges in performing the emerging aspects of SGES. This framework enables some advanced features for the sustainable operation of SGES like smart metering, peer-to-peer (P2P) energy trading, self-operation, and transparency. The technical explanation of this BCn technology established on essential features and requisites is also presented in this paper from various points of view which include smart mechanism, intelligent storage system, and interoperability. We also highlight the recent progress and limitations of the current BCn framework in SGES. Finally, some challenges towards integrating the next-generation BCn technology in SGES are reported. This work can provide extended support for the practitioner and researcher in the context of BCn technology and SGES.
Samir M. Umran, Songfeng Lu, Zaid Ameen Abduljabbar, Xueming Tang
There are numerous internet-connected devices attached to the industrial process through recent communication technologies, which enable machine-to-machine communication and the sharing of sensitive data through a new technology called the industrial internet of things (IIoTs). Most of the suggested security mechanisms are vulnerable to several cybersecurity threats due to their reliance on cloud-based services, external trusted authorities, and centralized architectures; they have high computation and communication costs, low performance, and are exposed to a single authority of failure and bottleneck. Blockchain technology (BC) is widely adopted in the industrial sector for its valuable features in terms of decentralization, security, and scalability. In our work, we propose a decentralized, scalable, lightweight, trusted and secure private network based on blockchain technology/smart contracts for the overhead circuit breaker of the electrical power grid of the Al-Kufa/Iraq power plant as an industrial application. The proposed scheme offers a double layer of data encryption, device authentication, scalability, high performance, low power consumption, and improves the industry’s operations; provides efficient access control to the sensitive data generated by circuit breaker sensors and helps reduce power wastage. We also address data aggregation operations, which are considered challenging in electric power smart grids. We utilize a multi-chain proof of rapid authentication (McPoRA) as a consensus mechanism, which helps to enhance the computational performance and effectively improve the latency. The advanced reduced instruction set computer (RISC) machines ARM Cortex-M33 microcontroller adopted in our work, is characterized by ultra-low power consumption and high performance, as well as efficiency in terms of real-time cryptographic algorithms such as the elliptic curve digital signature algorithm (ECDSA). This improves the computational execution, increases the implementation speed of the asymmetric cryptographic algorithm and provides data integrity and device authenticity at the perceptual layer. Our experimental results show that the proposed scheme achieves excellent performance, data security, real-time data processing, low power consumption (70.880 mW), and very low memory utilization (2.03% read-only memory (RAM) and 0.9% flash memory) and execution time (0.7424 s) for the cryptographic algorithm. This enables autonomous network reconfiguration on-demand and real-time data processing.
Ali Menati, Xiangtian Zheng, Kiyeob Lee, Ranyu Shi · 7 authors
Blockchain technologies are considered one of the most disruptive innovations of the last decade, enabling secure decentralized trust-building. However, in recent years, with the rapid increase in the energy consumption of blockchain-based computations for cryptocurrency mining, there have been growing concerns about their sustainable operation in electric grids. This paper investigates the tri-factor impact of such large loads on carbon footprint, grid reliability, and electricity market price in the Texas grid. We release open-source high-resolution data to enable high-resolution modeling of influencing factors such as location and flexibility. We reveal that the per-megawatt-hour carbon footprint of cryptocurrency mining loads across locations can vary by as much as 50% of the crude system average estimate. We show that the flexibility of mining loads can significantly mitigate power shortages and market disruptions that can result from the deployment of mining loads. These findings suggest policymakers to facilitate the participation of large mining facilities in wholesale markets and require them to provide mandatory demand response.
Jelena Marjanović, Nikola Dalčeković, Goran Sladić
The increasing threat landscape in Industrial Control Systems (ICS) brings different risk profiles with comprehensive impacts on society and safety. The complexity of cybersecurity risk assessment increases with a variety of third-party software components that comprise a modern ICS supply chain. A central issue in software supply chain security is the evaluation whether the secure development lifecycle process (SDL) is being methodologically and continuously practiced by all vendors. In this paper, we investigate the possibility of using a decentralized, tamper-proof system that will provide trustworthy visibility of the SDL metrics over a certain period, to any authorized auditing party. Results of the research provide a model for creating a blockchain-based approach that allows inclusion of auditors through a consortium decision while responding to SDL use cases defined by this paper. The resulting blockchain architecture successfully responded to requirements mandated by the security management practice as defined by IEC 62443-4-1 standard.
Jingjing Wang, Fei Long, Bo Jin, Dangdang Dai · 5 authors
The smart grid has provided a fascinating opportunity to move the energy industry into a new era of reliability, availability and efficiency that contributes to both energy saving and environment protection. Besides, the smart grid has abandoned the single power supply paradigm in traditional power grid, and it can promote information and resource exchange through peer-to-peer transactions. For example, electricity can be traded effectively in real-time, so that all users can be benefited from cost saving. However, the energy trading data may contain sensitive information of the participating parties. If this information is leaked, user privacy might be violated. Moreover, the trading information should be enforced with fine-grained access control. To fulfil these security requirements, we propose a privacy preserving energy trading platform based on smart contract. First, ElGamal encryption is used to protect the privacy of exchanged messages. Second, proxy re-encryption is employed to achieve fine-grained access control, and it is more efficient than attribute based encryption that is widely used in existing solutions. Third, smart contract is used as the arbitrator, and thanks to its attractive characteristics, such as transparency and trustworthy execution, it can replace the trusted third parties in many existing schemes. Security analyses prove that our scheme satisfies all the desirable security requirements, such as correctness, privacy, fine-grained access control, robustness. And performance analyses demonstrate that it is practical for large-scale applications.
Abstract Blockchain is a powerful technology to facilitate decarbonization, decentralization, digitalization, and democratization (4D's) of the energy systems of the future. The 4D's are the driving forces of transition into new energy systems that are more sustainable, resilient, efficient, and equitable. Although this technology can be applied to a wide spectrum of applications in the power sector, a set of challenges and limitations still need to be addressed to facilitate a full‐scope implementation in energy systems. This paper presents an overview of blockchain technology from its inception through its most recent evolution and presents a thematic review of state of the art in the application of this technology in power systems. Further, it addresses the barriers preventing the power sector from large‐scale, full‐scope adoption of this technology. Finally, the emerging blockchain trends in the near future will be discussed and its potential to facilitate a secure, decentralized energy trading platform will be investigated.
The issue of creating an information security system is very relevant in the world today. One of the urgent tasks is to solve the issues of effective protection of information from both external and internal threats through the creation and implementation of information security management systems in automated systems of enterprises, which, among other things, requires the formalization of the task of protecting information for its subsequent implementation by software and other means. Now there are security analysis systems, for example, that examine the security elements settings of workstations and servers operating systems, analyze the network topology, look for unprotected network connections, examine the settings of firewalls. The disadvantage of these systems is that they are not suitable for monitoring large volumes of network traffic. The solution to this problem is the use of monitoring tools capable of analyzing large amounts of data in real time. Therefore, a significant place in the article is given to the review of developments based on artificial intelligence technologies, namely multi-agent systems, review of information security models, threat risk assessment in automated systems.
 The functional architecture of the information security management system based on a multi-agent system has been proposed to search in real time for information security optimal solutions through the selection of such coalitions of protection mechanisms agents that will allow to build the optimal protection of the automated system according to the selected criteria. The model with complete overlapping of threats has been substantiated and adopted as a basis, which allows to analyze the overall situation and choose strategically important decisions directly during the organization of information security. The essence of of multi-agent systems functioning that implement a decentralized control system based on the work of autonomous agents that can be implemented programmatically has been revealed. The role of threat agents, resource agents, agents of protection mechanisms and their functional purpose have been defined. The problem of searching a set of protection mechanisms agents coalition for the current state of the automated system as a problem of optimal search by the criterion of protection cost, taking into account the value of information, has been generalized. Due to the modularity of the multi-agent system, the further work will be aimed at detailing its components and perfection.
Ran Guo, Weijie Chen, Lejun Zhang, Guopeng Wang · 5 authors
Blockchain technology is currently evolving rapidly, and smart contracts are the hallmark of the second generation of blockchains. Currently, smart contracts are gradually being used in power system networks to build a decentralized energy system. Security is very important to power systems and attacks launched against smart contract vulnerabilities occur frequently, seriously affecting the development of the smart contract ecosystem. Current smart contract vulnerability detection tools suffer from low correct rates and high false positive rates, which cannot meet current needs. Therefore, we propose a smart contract vulnerability detection system based on the Siamese network in this paper. We improved the original Siamese network model to perform smart contract vulnerability detection by comparing the similarity of two sub networks with the same structure and shared parameters. We also demonstrate, through extensive experiments, that the model has better vulnerability detection performance and lower false alarm rate compared with previous research results.