{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,25]],"date-time":"2026-04-25T21:02:12Z","timestamp":1777150932609,"version":"3.51.4"},"reference-count":42,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2025,8,1]],"date-time":"2025-08-01T00:00:00Z","timestamp":1754006400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Ibn Tofail University"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["JCP"],"abstract":"<jats:p>In the modern era, the use of blockchain technology has been growing rapidly, where Ethereum smart contracts play an important role in securing decentralized application systems. However, these smart contracts are also susceptible to a large number of vulnerabilities, which pose significant threats to intelligent systems and IoT applications, leading to data breaches and financial losses. Traditional detection techniques, such as manual analysis and static automated tools, suffer from high false positives and undetected security vulnerabilities. To address these problems, this paper proposes an Artificial Intelligence (AI)-based security framework that integrates Generative Adversarial Network (GAN)-based feature selection and deep learning techniques to classify and detect malware attacks on smart contract execution in the blockchain decentralized network. After an exhaustive pre-processing phase yielding a dataset of 40,000 malware and benign samples, the proposed model is evaluated and compared with related studies on the basis of a number of performance metrics including training accuracy, training loss, and classification metrics (accuracy, precision, recall, and F1-score). Our combined approach achieved a remarkable accuracy of 97.6%, demonstrating its effectiveness in detecting malware and protecting blockchain systems.<\/jats:p>","DOI":"10.3390\/jcp5030053","type":"journal-article","created":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T07:49:58Z","timestamp":1754380198000},"page":"53","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["AI-Driven Security for Blockchain-Based Smart Contracts: A GAN-Assisted Deep Learning Approach to Malware Detection"],"prefix":"10.3390","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0009-0009-1309-0782","authenticated-orcid":false,"given":"Imad","family":"Bourian","sequence":"first","affiliation":[{"name":"Engineering Sciences Laboratory, Ibn Tofail University, Kenitra 14000, Morocco"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0006-9878-5919","authenticated-orcid":false,"given":"Lahcen","family":"Hassine","sequence":"additional","affiliation":[{"name":"Laboratory Engineering System-SIRC (LaGeS), Hassania School of Public Works (EHTP), Casablanca 20200, Morocco"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1072-0461","authenticated-orcid":false,"given":"Khalid","family":"Chougdali","sequence":"additional","affiliation":[{"name":"Engineering Sciences Laboratory, Ibn Tofail University, Kenitra 14000, Morocco"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2025,8,1]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"107978","DOI":"10.1016\/j.comnet.2021.107978","article-title":"Attacks and countermeasures on blockchains: A survey from layering perspective","volume":"191","author":"Wen","year":"2021","journal-title":"Comput. Netw."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Bourian, I., Sebbar, A., Chougdali, K., and Amhoud, E.M. (2023, January 4\u20138). SSHCEth: Secure Smart Home Communications based on Ethereum Blockchain and Smart Contract. Proceedings of the GLOBECOM 2023\u20142023 IEEE Global Communications Conference, Kuala Lumpur, Malaysia.","DOI":"10.1109\/GLOBECOM54140.2023.10437193"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Imad, B., Anass, S., Mounir, A., and Khalid, C. (2024, January 23\u201325). Blockchain Based Smart Contract to Enhance Security in Smart City. Proceedings of the 2024 11th International Conference on Wireless Networks and Mobile Communications (WINCOM), Leeds, UK.","DOI":"10.1109\/WINCOM62286.2024.10657758"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1007\/s10723-023-09678-7","article-title":"Blockchain assisted cloud security and privacy preservation using hybridized encryption and deep learning mechanism in iot-healthcare application","volume":"21","author":"Raju","year":"2023","journal-title":"J. Grid Comput."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"El Filali, C., Bourian, I., and Chougdali, K. (2024, January 4\u20136). Privacy-Preserving and Access Control Scheme for IoT-Based Healthcare Systems Using Ethereum Blockchain. Proceedings of the 2024 7th International Conference on Advanced Communication Technologies and Networking (CommNet), Rabat, Morocco.","DOI":"10.1109\/CommNet63022.2024.10793370"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1007\/s10723-024-09762-6","article-title":"Exploring the synergy of blockchain, IoT, and edge computing in smart traffic management across urban landscapes","volume":"22","author":"Chen","year":"2024","journal-title":"J. Grid Comput."},{"key":"ref_7","unstructured":"(2025, June 10). Blockchain Market Size Report. Available online: https:\/\/www.marketsandmarkets.com\/Market-Reports\/blockchain-technology-market-90100890.html."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"e4176","DOI":"10.1002\/ett.4176","article-title":"Fusion of blockchain and artificial intelligence for secure drone networking underlying 5G communications","volume":"32","author":"Gupta","year":"2021","journal-title":"Trans. Emerg. Telecommun. Technol."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"30","DOI":"10.56764\/hpu2.jos.2024.3.1.30-38","article-title":"Smart contract: Revolutionizing transactions in the digital age","volume":"3","author":"Nguyen","year":"2024","journal-title":"HPU2 Nat. Sci. Technol."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Kayade, P., Pardeshi, A., Patil, S., Raut, P., Shetkar, P., and Barhate, M. (2024, January 3\u20134). Decentralized Application using Blockchain. Proceedings of the 2024 5th International Conference on Image Processing and Capsule Networks (ICIPCN), Dhulikhel, Nepal.","DOI":"10.1109\/ICIPCN63822.2024.00156"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"50759","DOI":"10.1109\/ACCESS.2019.2911031","article-title":"Security, performance, and applications of smart contracts: A systematic survey","volume":"7","author":"Rouhani","year":"2019","journal-title":"IEEE Access"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"100179","DOI":"10.1016\/j.patter.2020.100179","article-title":"A comprehensive survey on smart contract construction and execution: Paradigms, tools, and systems","volume":"2","author":"Hu","year":"2021","journal-title":"Patterns"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"102462","DOI":"10.1016\/j.ipm.2020.102462","article-title":"Transaction-based classification and detection approach for Ethereum smart contract","volume":"58","author":"Hu","year":"2021","journal-title":"Inf. Process. Manag."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Zaidi, S.Y.A., Shah, M.A., Khattak, H.A., Maple, C., Rauf, H.T., El-Sherbeeny, A.M., and El-Meligy, M.A. (2021). An attribute-based access control for IoT using blockchain and smart contracts. Sustainability, 13.","DOI":"10.3390\/su131910556"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"50839","DOI":"10.1109\/ACCESS.2022.3174052","article-title":"A review on recent progress of smart contract in blockchain","volume":"10","author":"Wu","year":"2022","journal-title":"IEEE Access"},{"key":"ref_16","unstructured":"Li, D., Wong, W.E., Wang, X., Pan, S., and Koh, L.S. (2024). Smart Contract Vulnerability Detection based on Static Analysis and Multi-Objective Search. arXiv."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Kumar, N.K., Honnungar, N.V., Prakash, M.S., and Lohith, J. (2024, January 22\u201323). Vulnerabilities in Smart Contracts: A Detailed Survey of Detection and Mitigation Methodologies. Proceedings of the 2024 International Conference on Emerging Technologies in Computer Science for Interdisciplinary Applications (ICETCS), Bengaluru, India.","DOI":"10.1109\/ICETCS61022.2024.10544155"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Aldweesh, A., Alharby, M., Mehrnezhad, M., and Van Moorsel, A. (2019, January 14\u201317). OpBench: A CPU performance benchmark for Ethereum smart contract operation code. Proceedings of the 2019 IEEE International Conference on Blockchain (Blockchain), Atlanta, GA, USA.","DOI":"10.1109\/Blockchain.2019.00043"},{"key":"ref_19","unstructured":"del Castillo, M. (2025, June 10). The DAO Attacked: Code Issue Leads to $60 Million Ether Theft. Available online: https:\/\/www.coindesk.com\/markets\/2016\/06\/17\/the-dao-attacked-code-issue-leads-to-60-million-ether-theft."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"e96","DOI":"10.1002\/spy2.96","article-title":"Utilization of blockchain for mitigating the distributed denial of service attacks","volume":"3","author":"Singh","year":"2020","journal-title":"Secur. Priv."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Soud, M., Qasse, I., Liebel, G., and Hamdaqa, M. (2023, January 6\u20138). Automesc: Automatic framework for mining and classifying ethereum smart contract vulnerabilities and their fixes. Proceedings of the 2023 49th Euromicro Conference on Software Engineering and Advanced Applications (SEAA), Durres, Albania.","DOI":"10.1109\/SEAA60479.2023.00068"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Kumar, A.S.L., and Mishra, S. (2024, January 19\u201322). Ransomware Criminal Smart Contract. Proceedings of the 2024 IEEE International Conference on Blockchain (Blockchain), Copenhagen, Denmark.","DOI":"10.1109\/Blockchain62396.2024.00036"},{"key":"ref_23","first-page":"11","article-title":"A Model Design Using Blockchain and Smart Contracts Against Cyberattacks in Smart Home Systems","volume":"8","year":"2024","journal-title":"Acta Infologica"},{"key":"ref_24","unstructured":"Khoa, T.V., Son, D.H., Nguyen, C.H., Hoang, D.T., Nguyen, D.N., Trung, N.L., Quynh, T.T.T., Hoang, T.M., Ha, N.V., and Dutkiewicz, E. (2024). Securing Blockchain Systems: A Novel Collaborative Learning Framework to Detect Attacks in Transactions and Smart Contracts. arXiv."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"DeCusatis, C., Gormanly, B., Iacino, J., Percelay, R., Pingue, A., and Valdez, J. (2023). Cybersecurity Test Bed for Smart Contracts. Cryptography, 7.","DOI":"10.3390\/cryptography7010015"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Alkhalifah, A., Ng, A., Watters, P.A., and Kayes, A. (2021). A mechanism to detect and prevent Ethereum blockchain smart contract reentrancy attacks. Front. Comput. Sci., 3.","DOI":"10.3389\/fcomp.2021.598780"},{"key":"ref_27","unstructured":"Motaghi, Z., Yazdani, N., and Bahrak, B. (2020). A Framework for Collaborative Attack based on Criminal Smart Contract. arXiv."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Li, Z., Wang, Y., Wen, S., and Ding, Y. (2020, January 15\u201317). Evil chaincode: Apt attacks based on smart contract. Proceedings of the International Conference on Frontiers in Cyber Security, Tianjin, China.","DOI":"10.1007\/978-981-15-9739-8_15"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Sebastian-Cardenas, D.J., Gourisetti, S.N.G., Saha, S.S., Khan, K., Tillman, L.C., Cali, U., and Hughes, T. (2022, January 7\u201311). Cybersecurity and privacy aspects of smart contracts in the energy domain. Proceedings of the 2022 IEEE 1st Global Emerging Technology Blockchain Forum: Blockchain & Beyond (iGETblockchain), Irvine, CA, USA.","DOI":"10.1109\/iGETblockchain56591.2022.10087129"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Swaminathan, K., and Saravanan, S. (2021, January 8\u201310). A Criminal Smart Contract for Distributed Denial of Service Attacks. Proceedings of the 2021 6th International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India.","DOI":"10.1109\/ICCES51350.2021.9489166"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"24416","DOI":"10.1109\/ACCESS.2020.2970495","article-title":"Smart contract: Attacks and protections","volume":"8","author":"Sayeed","year":"2020","journal-title":"IEEE Access"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Pathak, J.P., Singh, K., and Roy, S. (2024). Role of Artificial Intelligence and Blockchain on Cyber Security. Adv. Bus. Inf. Syst. Anal.","DOI":"10.4018\/979-8-3693-6537-3.ch013"},{"key":"ref_33","first-page":"767","article-title":"Automated cybersecurity compliance and threat response using AI, blockchain and smart contracts","volume":"17","author":"Alevizos","year":"2024","journal-title":"Int. J. Inf. Technol."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Adeniyi, A.E., Jimoh, R.G., Awotunde, J.B., Aworinde, H.O., Falola, P.B., and Ninan, D.O. (2024). Blockchain for Secured Cybersecurity in Emerging Healthcare Systems, IET.","DOI":"10.1049\/PBHE064E_ch11"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"ThamaraiSelvi, K., Pushpalatha, A., Chidambarathanu, K., Wankhede, J.P., Alagumuthukrishnan, S., and Sarveshwaran, V. (2024, January 18\u201320). SecureChainAI: Integrating Blockchain and Artificial Intelligence for Enhanced Security in IoT Environments. Proceedings of the 2024 5th International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India.","DOI":"10.1109\/ICOSEC61587.2024.10722669"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"6723","DOI":"10.11591\/ijece.v14i6.pp6723-6733","article-title":"The impact of blockchain and artificial intelligence technologies in network security for e-voting","volume":"14","author":"Ainur","year":"2024","journal-title":"Int. J. Electr. Comput. Eng. (IJECE)"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"100193","DOI":"10.1016\/j.bcra.2024.100193","article-title":"Blockchain for secure and decentralized artificial intelligence in cybersecurity: A comprehensive review","volume":"5","author":"Saleh","year":"2024","journal-title":"Blockchain Res. Appl."},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Ahakonye, L.A.C., Nwakanma, C.I., and Kim, D.S. (2024). Tides of Blockchain in IoT Cybersecurity. Sensors, 24.","DOI":"10.3390\/s24103111"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Karnwal, V., Chaurasia, A., and Agarwal, D. (2024, January 2\u20134). Blockchain Security and Privacy using Machine Learning and Internet of Things-A Review. Proceedings of the 2024 First International Conference on Pioneering Developments in Computer Science & Digital Technologies (IC2SDT), Delhi, India.","DOI":"10.1109\/IC2SDT62152.2024.10696712"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1365\/s43439-023-00107-9","article-title":"Blockchain for Artificial Intelligence (AI): Enhancing compliance with the EU AI Act through distributed ledger technology. A cybersecurity perspective","volume":"5","author":"Ramos","year":"2024","journal-title":"Int. Cybersecur. Law Rev."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Venkatasubramanian, M., Lashkari, A.H., and Hakak, S. (2022, January 1\u20133). Federated Learning Assisted IoT Malware Detection Using Static Analysis. Proceedings of the 2022 12th International Conference on Communication and Network security, Beijing, China.","DOI":"10.1145\/3586102.3586131"},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Abirind, K., Vijai, K., and Nandakumar, R. (2024, January 24\u201328). Malware Detection: A Comparison of Different Machine Learning and Deep Learning Networks. Proceedings of the 2024 15th International Conference on Computing Communication and Networking Technologies (ICCCNT), Kamand, India.","DOI":"10.1109\/ICCCNT61001.2024.10725525"}],"container-title":["Journal of Cybersecurity and Privacy"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2624-800X\/5\/3\/53\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T18:20:46Z","timestamp":1760034046000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2624-800X\/5\/3\/53"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,1]]},"references-count":42,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2025,9]]}},"alternative-id":["jcp5030053"],"URL":"https:\/\/doi.org\/10.3390\/jcp5030053","relation":{},"ISSN":["2624-800X"],"issn-type":[{"value":"2624-800X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,8,1]]}}}