International Journal of Engineering
Trends and Technology

Research Article | Open Access | Download PDF
Volume 74 | Issue 7 | Year 2026 | Article Id. IJETT-V74I7P124 | DOI : https://doi.org/10.14445/22315381/IJETT-V74I7P124

Lightweight Graph Neural Networks (LGNN) for Real-time Double-Spending Attack Detection in Blockchain Environments


Rintu Augustine, A. Krishnaveni

Received Revised Accepted Published
10 Sep 2025 06 Jun 2026 18 Jun 2026 28 Jul 2026

Citation :

Rintu Augustine, A. Krishnaveni, "Lightweight Graph Neural Networks (LGNN) for Real-time Double-Spending Attack Detection in Blockchain Environments," International Journal of Engineering Trends and Technology (IJETT), vol. 74, no. 7, pp. 389-412, 2026. Crossref, https://doi.org/10.14445/22315381/IJETT-V74I7P124

Abstract

To handle the main problem of double-spending attacks in blockchain networks, this paper introduces a new, Light-weight Graph Neural Network (LGNN) approach named Dynamic Sparse Graph Attention Network (DSGAT). To effectively detect double spending behavior, DSGAT method integrates adaptive graph sparsification with attention based on the fundamental graph-structured nature of blockchain transactions. Unlike computationally intensive GNNs, DSGAT may be implemented on edge devices or distributed monitoring systems with low-tech, low-cost hardware since it is optimized for resource-limited environments and doesn't need much processing capacity. To detect double-spending attack, this paper explains building blockchain transaction graphs from a large set of node and edge features. A set of simulated transactions involving double-spending attack is generated using large-scale simulations with the BCASim blockchain simulator, and the performance of DSGAT is compared with normal baselines. The experiment's outcomes prove that DSGAT is able to reduce model sizes and inference latency while keeping high detection rates, proving its feasibility and effectiveness for real-time double spending detection in low-resource environments. To improve blockchain security against double-spending attacks, this paper introduces a novel and realistic alternative.

Keywords

Blockchain, Graph Neural Network, Double Spending, Defensive Mechanism.

References

[1] OSL, What is Double-Spending in Blockchain?,” OSL Academy, 2025. [Online]. Available: https://www.osl.com/hk-en/academy/article/what-is-double-spending-in-blockchain

[2] Cyfrin, Understanding Blockchain Double Spending Attacks - with Examples, Cyfrin, 2024. [Online]. Available: https://www.cyfrin.io/blog/understanding-double-spending-in-blockchain

[3] Investopedia, Double-Spending Explained: how to Safeguard Your Cryptocurrency, Investopedia, 2026. [Online]. Available: https://www.investopedia.com/terms/d/doublespending.asp

[4] Shijie Zhang, and Jong-Hyouk Lee, “Double-Spending with a Sybil Attack in the Bitcoin Decentralized Network,” IEEE Transactions on Industrial Informatics, vol. 15, no. 10, pp. 5715-5722, 2019.
[
CrossRef] [Google Scholar] [Publisher Link]

[5] Finance Magnates, Double-Spend Attack, Finance Magnates, 2025. [Online]. Available: https://www.financemagnates.com/terms/d/double-spend-attack/

[6] GeeksforGeeks, What is Double Spending in Blockchain?, GeeksforGeeks, 2025. [Online]. Available: https://www.geeksforgeeks.org/ethical-hacking/what-is-double-spending-in-blockchain

[7] U.U. Elessawy et al., “Double Spending Attacks in Decentralized Digital Currencies: Challenges and Countermeasures,” International Journal of Computers and Information (IJCI), vol. 10, no. 3, pp. 142-146, 2023.
[Google Scholar]

[8] Bitpanda Academy, What is Double-Spending and why is it Such a Problem?, Bitpanda Academy, 2025. [Online]. Available: https://www.bitpanda.com/academy/en/lessons/what-is-double-spending-and-why-is-it-such-a-problem

[9] Unchained Crypto, What is the Double-Spending Problem in Blockchain?, Unchained Crypto, 2025. [Online]. Available: https://unchainedcrypto.com/double-spending-problem-in-blockchain/

[10] Haasonline, Double-Spending, Haasonline, 2025. [Online]. Available: https://haasonline.com/academy/glossary/double-spending

[11] Hacken.io, Double-Spending in Blockchain and how to Prevent?, Hacken.io, 2025. [Online]. Available: https://hacken.io/discover/double-spending/

[12] Changhoon Kang, Jongsoo Woo, and James Won-Ki Hong, “Bitcoin Double-Spending Attack Detection using Graph Neural Network,” 2023 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dubai, United Arab Emirates, pp. 1-3, 2023.
[CrossRef] [Google Scholar] [Publisher Link]

[13] Tobias Bamert et al., “Have a Snack, Pay with Bitcoins,” IEEE P2P 2013 Proceedings, pp. 1-5, 2013.
[Google Scholar]

[14] Bit2Me Academy, What is a Finney Hack or Finney Attack?, Bit2Me Academy, 2019. [Online]. Available: https://academy.bit2me.com/en/which-is-a-hack-finney-attack-finney/

[15] Muneeb Ul Hassan, Mubashir Husain Rehmani, and Jinjun Chen, “Anomaly Detection in Blockchain Networks: A Comprehensive Survey,” IEEE Communications Surveys and Tutorials, vol. 25, no. 1, pp. 289-318, 2022.
[
CrossRef] [Google Scholar]

[16] Sarwar Sayeed, and Hector Marco-Gisbert, “Assessing Blockchain Consensus and Security Mechanisms against the 51% Attack,” Applied Sciences, vol. 9, no. 9, pp. 1-17, 2019.
[CrossRef] [Google Scholar] [Publisher Link]

[17] Jian Zheng et al., “Revisiting Double-Spending Attacks on the Bitcoin Blockchain: New Findings,” 2021 IEEE/ACM 29th International Symposium on Quality of Service, IWQOS, Tokyo, Japan, pp. 1-6, 2021.
[CrossRef] [Google Scholar]

[18] Ghassan O. Karame, Elli Androulaki, and Srdjan Capkun, “Double-Spending Fast Payments in Bitcoin,” Proceedings of the ACM Conference on Computer and Communications Security, pp. 906-917, 2012.
[CrossRef] [Google Scholar] [Publisher Link]

[19] Fredrik Johannessen, and Martin Jullum, “Finding Money Launderers using Heterogeneous Graph Neural Networks,” The Journal of Finance and Data Science, vol. 11, pp. 1-17, 2025.
[CrossRef] [Google Scholar] [Publisher Link]

[20] Uplatz Blog, Graph Neural Networks (GNN): Foundations, Architectures, Applications, and Future Directions, Uplatz Blog, 2025. [Online]. Available: https://uplatz.com/blog/graph-neural-networks-gnn-foundations-architectures-applications-and-future-directions/

[21] Samantha Tharani Jeyakumar et al., “Detecting Malicious Blockchain Transactions using Graph Neural Networks,” Distributed Ledger Technology: 7th International Symposium, SDLT 2023, Brisbane, QLD, Australia, vol. 1975, pp. 55-71, 2024.
[CrossRef] [Google Scholar] [Publisher Link]

[22] Ze Chang et al., “Anomalous Node Detection in Blockchain Networks based on Graph Neural Networks,” Sensors, vol. 25, no. 1, pp. 1-21, 2024.
[CrossRef] [Google Scholar] [Publisher Link]

[23] Gulab Sanjay Rai, S.B. Goyal, and Prasenjit Chatterjee, “Anomaly Detection in Blockchain using Machine Learning,” Computational Intelligence for Engineering and Management Application: Select Proceedings of CIEMA, Springer, Singapore, vol. 984, pp. 487-499, 2023.
[CrossRef] [Google Scholar] [Publisher Link]

[24] Hanan Al-Harbi, “Detecting Anomalies in Blockchain Transactions using Spatial-Temporal Graph Neural Networks,” Advances in Management and Intelligent Technologies, vol. 1, no. 1, pp. 1-10, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[25] PuppyGraph, Fraud Graph: Visualizing and Detecting Fraud Through Graph Analysis, PuppyGraph, 2026. [Online]. Available: https://www.puppygraph.com/blog/fraud-graph

[26] Adriana Watson, Grant Richards, and Daniel Schiff, “Explain First, Trust Later: LLM-Augmented Explanations for Graph-based Crypto Anomaly Detection,” arXiv, pp. 1-17, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[27] Bingxue Fu, Yixuan Wang, and Tao Feng, “CT-GCN+: A High-Performance Cryptocurrency Transaction Graph Convolutional Model for Phishing Node Classification,” Cybersecurity, vol. 7, no. 1, pp. 1-16, 2024.
[CrossRef] [Google Scholar] [Publisher Link] 

[28] Shiyang Chen et al., “Multi-Distance Spatial-Temporal Graph Neural Network for Anomaly Detection in Blockchain Transactions,” Advanced Intelligent Systems, vol. 7, no. 8, pp. 1-14, 2025.
[CrossRef] [Google Scholar] [Publisher Link]

[29] Haoqi Huang et al., “Deep Learning Advancements in Anomaly Detection: A Comprehensive Survey,” IEEE Internet Things Journal, vol. 12, no. 21, pp. 44318-44342, 2025.
[CrossRef] [Google Scholar] [Publisher Link]

[30] Fouzia Jumani, and Muhammad Raza, “Machine Learning for Anomaly Detection in Blockchain: A Critical Analysis, Empirical Validation, and Future Outlook,” Computers, vol. 14, no. 7, pp. 1-24, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[31] Sajedeh Norouzi et al., “Lightweight Graph Neural Networks for Enhanced 5G NR Channel Estimation,” 2025 IEEE 36th International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), Istanbul, Turkiye, pp. 1-7, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[32] David Hunt et al., “RaGNNarok: A Light-Weight Graph Neural Network for Enhancing Radar Point Clouds on Unmanned Ground Vehicles,” 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems, Hangzhou, China, pp. 16739-16745, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[33] Meng Wu et al., “Survey on Characterizing and Understanding GNNs from a Computer Architecture Perspective,” IEEE Transactions on Parallel and Distributed Systems, vol. 36, no. 3, pp. 537-552, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[34] Xubin Wang, and Weijia Jia, “Optimizing Edge AI: A Comprehensive Survey on Data, Model, and System Strategies,” arXiv e-prints, 2025.
[Google Scholar]

[35] Guoxuan Chen, Lianghao Xia, and Chao Huang, “LightGNN: Simple Graph Neural Network for Recommendation,” Proceedings of the Eighteenth ACM International Conference on Web Search and Data Mining, Association for Computing Machinery, New York, NY, United States, pp. 549-558, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[36] Nguyen Xuan Tung et al., “Graph Neural Networks for Next-Generation-IoT: Recent Advances and Open Challenges,” IEEE Communications Surveys and Tutorials, vol. 28, pp. 2226-2262, 2026.
[CrossRef] [Google Scholar] [Publisher Link] 

[37] Chaoyu Guan et al., “Large-Scale Graph Neural Architecture Search,” Proceedings of the 39th International Conference on Machine Learning, PMLR, vol. 162, pp. 7968-7981, 2022.
[Google Scholar] [Publisher Link] 

[38] Beini Xie et al., “Towards Lightweight Graph Neural Network Search with Curriculum Graph Sparsification,” Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Association for Computing Machinery, New York, NY, United States, pp. 3563-3573, 2024.
[CrossRef] [Google Scholar] [Publisher Link] 

[39] Hassen Louati et al., “AI-based Anomaly Detection and Optimization Framework for Blockchain Smart Contracts,” Administrative Sciences, vol. 15, no. 5, p. 1-19, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[40] John P. Podolanko, Jiang Ming, and Matthew Wright, “Countering Double-Spend Attacks on Bitcoin Fast-Pay Transactions,” Proceedings of the Workshop on Technology and Consumer Protection, pp. 1-7, 2017.
[Google Scholar]

[41] A. Pinar Ozisik, and Brian Neil Levine, “An Explanation of Nakamoto's Analysis of Double-Spend Attacks,” arXiv preprint, pp. 1-15, 2017.
[CrossRef] [Google Scholar] [Publisher Link] 

[42] GitHub, Blockchain Attack Simulator (BCASim), GitHub, 2025. [Online]. Available: https://github.com/topics/blockchain-simulator?l=java

[43] Juri Hinz, and Peter Taylor, A Note on Optimal Double Spending Attacks, 2017 MATRIX Annals, Springer, Cham, vol. 2, pp. 545-551, 2019.
[CrossRef] [Google Scholar] [Publisher Link] 

[44] SimBlock, Blockchain Network Simulator, SimBlock, 2025. [Online]. Available: https://dsg-titech.github.io/simblock/

[45] Moura Conti et al., “A Survey on Security and Privacy Issues of Bitcoin,” IEEE Communications Surveys and Tutorials, vol. 20, no. 4, pp. 3416-3452, 2018.
[Google Scholar]

[46] Maher Alharby, and Aad van Moorsel, “BlockSim: An Extensible Simulation Tool for Blockchain Systems,” Frontiers in Blockchain, vol. 3, p. 1-16, 2020.
[CrossRef] [Google Scholar] [Publisher Link] 

[47] Luca Serena, Gabriele D’Angelo, and Stefano Ferretti, “Security Analysis of Distributed Ledgers and Blockchains through Agent-based Simulation,” Simulation Modelling Practice and Theory, vol. 114, 2022.
[CrossRef] [Google Scholar] [Publisher Link] 

[48] Remigijus Paulavičius, Saulius Grigaitis, and Ernestas Filatovas, “A Systematic Review and Empirical Analysis of Blockchain Simulators,” IEEE Access, vol. 9, pp. 38010-38028, 2021.
[Google Scholar] 

[49] Viddi Mardiansyah, and Riri Fitri Sari, “Simblock Simulator Enhancement with Difficulty Level Algorithm based on Proof-of-Work Consensus for Lightweight Blockchain,” Sensors, vol. 22, no. 23, pp. 1-20, 2022.
[
CrossRef] [Google Scholar] [Publisher Link] 

[50] Mikolaj Karpinski et al., “Blockchain Technologies: Probability of Double-Spend Attack on a Proof-of-Stake Consensus,” Sensors, vol. 21, no. 19, pp. 1-13, 2021.
[CrossRef] [Google Scholar] [Publisher Link] 

[51] Yisong Chen et al., “Year-over-Year Developments in Financial Fraud Detection Via Deep Learning: A Systematic Literature Review,” arXiv preprint, pp. 1-21, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[52] GitHub, PYG-Team / pytorch_geometric, GitHub, 2025. [Online]. Available: https://github.com/pyg-team/pytorch_geometric

[53] Menzli Amal, “Graph Neural Networks: Libraries, Tools, and Learning Resources,” Neptune.ai, 2023.
[Google Scholar]

[54] PyG Documentation, PyTorch Geometric, PyG Documentation, 2025. [Online]. Available: https://pytorch-geometric.readthedocs.io/en/latest/

[55] Digital Ocean, Geometric Deep Learning Library Comparison, Digital Ocean, 2025. [Online]. Available: https://blog.paperspace.com/geometric-deep-learning-framework-comparison/

[56] Rahul Ganti, “AI in Finance: Fighting Fraud with Cloud-Powered Compliance,” Journal of Computer Science and Technology Studies, vol. 7, no. 6, pp. 422-429, 2025.
[CrossRef] [Google Scholar] [Publisher Link] 

[57] M. SrinivasaVarma, G. Pardha Saradadhi Varma, and I. Hemalatha, “Proof of Learning based Blockchain with Progressive Conditional Generative Adversarial Network espoused Fake Check Scams Detection and Prevention,” International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 3, pp. 1949-1959, 2024.
[Publisher Link] 

[58] G. Chandra Praba, and V. Vani, “Blockchain and AI for Secure and Sustainable Healthcare Development,” Cybersecurity and Data Management Innovations for Revolutionizing Healthcare, pp. 308-329, 2024.
[CrossRef] [Google Scholar] [Publisher Link] 

[59] FasterCapital, Blockchain Metrics: Measuring Blockchain Performance: Key Metrics to Monitor, FasterCapital, 2025. [Online]. Available: https://fastercapital.com/content/Blockchain-metrics--Measuring-Blockchain-Performance--Key-Metrics-to-Monitor.html

[60] Ulam Labs, Blockchain Testing: Key Challenges and Reliability Best Practices, Ulam Labs, 2025. [Online]. Available: https://ulam.io/blog/blockchain-testing-key-challenges-and-reliability-best-practices/

[61] Weihu Song et al., “Blockchain Bottleneck Analysis based on Performance Metrics Causality,” Electronics, vol. 13, no. 21, pp. 1-15, 2024.
[CrossRef] [Google Scholar] [Publisher Link]

[62] LF Decentralized Trust, Hyperledger Performance and Scale Working Group, LF Decentralized Trust, 2018. [Online]. Available: https://www.lfdecentralizedtrust.org/learn/publications/blockchain-performance-metrics

[63] Tien Tuan Anh Dinh et al., “BLOCKBENCH: A Framework for Analyzing Private Blockchains,” Proceedings of the 2017 ACM International Conference on Management of Data, Association for Computing Machinery, New York, NY, USA, 1085-1100, 2017.
[
CrossRef] [Google Scholar] [Publisher Link]

[64] Ali Dorri et al., “LSB: A Lightweight Scalable Blockchain for IoT Security and Anonymity,” Journal of Parallel and Distributed Computing, vol. 134, pp. 182-197, 2019.
[CrossRef] [Google Scholar] [Publisher Link]

[65] Chimeremma Sandra Amadi et al., “Lightweight Federated Learning and Blockchain System for Industrial IoT Big Data Security,” 2024 15th International Conference on Information and Communication Technology Convergence, Jeju Island, Korea, pp. 2009-2014, 2024.
[CrossRef] [Google Scholar] [Publisher Link]

[66] Amanda Hasebe, “Survey for Exploring Blockchain with Graph Neural Network,” Prerpints.org, pp. 1-6, 2024.
[CrossRef] [Google Scholar] [Publisher Link]