AI-Based Smart Contract Analysis for Digital Transactions

  • Authors

    • Chen Ming Software Architect, Huawei, China. Author
    • Wang Li Data Science Manager, Alibaba Group, China. Author

    DOI:

    https://doi.org/10.67228/30713315/IJAIDT-2022PI4C8A

    Published 01-05-2022

  • Smart Contracts, Artificial Intelligence, Blockchain Security, Digital Transactions, Machine Learning, Vulnerability Detection, Static Analysis, Dynamic Analysis, Ethereum, Deep Learning

    Issue

    Section

    Articles

    How to Cite

    [1]
    C. Ming and W. Li, “AI-Based Smart Contract Analysis for Digital Transactions”, IJAIDT, vol. 5, no. 1, pp. 01–16, Jan. 2022, doi: 10.67228/30713315/IJAIDT-2022PI4C8A.
  • Abstract

    Blockchain technology has transformed digital transactions into decentralized, transparent, and immutable systems. Smart contracts running on platforms like Ethereum enable automated agreements without intermediaries, but they remain vulnerable to logical errors and security risks that can lead to financial losses. This paper presents a systematic study on AI-based smart contract analysis, using machine learning and deep learning to detect vulnerabilities, anomalies, and potential risks. It proposes a hybrid model combining static analysis (code-level error detection), dynamic analysis (runtime monitoring), and supervised/unsupervised learning techniques. Feature extraction methods convert contract code into formats suitable for AI processing. The approach integrates rule-based systems with AI models to improve detection accuracy and reduce false positives. Evaluation on benchmark datasets shows better performance than traditional methods. The study highlights the effectiveness of AI in enhancing smart contract security and suggests future work on explainable AI, real-time monitoring, and cross-platform interoperability.

  • References

    [1] Luu, L., Chu, D. H., Olickel, H., Saxena, P., & Hobor, A., “Making Smart Contracts Smarter,” Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2016.

    [2] Krupp, J., & Rossow, C., “teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts,” USENIX Security Symposium, 2018.

    [3] Brent, L., Jurisevic, A., Kong, M., et al., “Vandal: A Scalable Security Analysis Framework for Smart Contracts,” arXiv preprint arXiv:1809.03981, 2018.

    [4] ConsenSys, “Mythril Classic: Security Analysis Tool for Ethereum Smart Contracts,” 2019.

    [5] Grishchenko, I., Maffei, M., & Schneidewind, C., “A Semantic Framework for the Security Analysis of Ethereum Smart Contracts,” POST Conference, 2018.

    [6] Bhargavan, K., Delignat-Lavaud, A., Fournet, C., et al., “Formal Verification of Smart Contracts,” Proceedings of the ACM Workshop on Programming Languages and Analysis for Security, 2016.

    [7] Hirai, Y., “Defining the Ethereum Virtual Machine for Interactive Theorem Provers,” Financial Cryptography and Data Security, 2017.

    [8] Amani, S., Bégel, M., Bortin, M., & Staples, M., “Towards Verifying Ethereum Smart Contract Bytecode in Isabelle/HOL,” CPP Conference, 2018.

    [9] Tsankov, P., Dan, A., Drachsler-Cohen, D., et al., “Securify: Practical Security Analysis of Smart Contracts,” ACM CCS, 2018.

    [10] Tann, W. J., Han, X., Gupta, S., & Ong, Y. S., “Towards Safer Smart Contracts: A Machine Learning Approach,” arXiv preprint arXiv:1807.09479, 2018.

    [11] Chen, T., Li, X., Luo, X., & Zhang, X., “Under-Optimized Smart Contracts Devour Your Money,” IEEE International Conference on Software Engineering (ICSE), 2017.

    [12] Wang, S., Liu, Y., & Li, Y., “Detecting Smart Contract Vulnerabilities Using Deep Learning,” IEEE Access, 2020.

    [13] Ashraf, I., et al., “Smart Contract Vulnerability Detection Using Machine Learning,” Journal of Information Security and Applications, 2021.

    [14] Torres, C. F., Schütte, J., & State, R., “Osiris: Hunting for Integer Bugs in Ethereum Smart Contracts,” ACSAC, 2018.

    [15] Zhou, Y., Kumar, D., Bakshi, S., et al., “Smart Contract Security: A Survey of Techniques and Tools,” IEEE Transactions on Dependable and Secure Computing, 2020.

  • Downloads