The DOI matches its Crossref record; 3 of the 3 references it cites were found in a registry or an index.
Automated Smart Contract Vulnerability Detection using Fine-tuned Large Language Models
Open accessAbstract
As decentralized finance (DeFi) built on blockchain grows rapidly, the security of smart contracts underpinning DeFi has become a major concern due to exploits leading to billions in damages. Although tools exist for automated vulnerability detection in smart contracts, studies show that most vulnerabilities remain undetected. In this work, we propose using fine-tuned large language models (LLMs) for enhanced automated detection of vulnerabilities in smart contracts. We collected over 26,727 labeled smart contract vulnerabilities and fine-tuned the 13B parameter Llama-2 model. Evaluation of 1,000 unseen functions shows promising precision of 31-36% in predicting vulnerability categories. The fine-tuned LLM demonstrates potential as an auxiliary tool to identify vulnerable code and assist auditors. Future work is outlined for improving performance via larger models, higher-quality data, and specialized binary detection models. We present promising preliminary results on integrating LLMs into smart contract analysis and motivate further research at the intersection of LLMs and blockchain security.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Multi-agent smart-contract auditors [119,121-123,125] now match or exceed expert auditors on standard benchmarks.”
From Agentic AI and Large Language Models for Autonomous IoT Cybersecurity: A Systematic Survey, Taxonomy, and Research Roadmap (2026) · cites this paper as [122]
Citations
Cites
LLaMA: Open and Efficient Foundation Language Models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.13971 · Cited by 4,602
A Survey of Attacks on Ethereum Smart Contracts (SoK)
Atzei, N., Bartoletti, M., & Cimoli, T. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-54455-6_8 · Cited by 1,553
Scaling Instruction-Finetuned Language Models
Chung, H. W., Hou, L., Longpre, S., Zoph, B., Tay, Y., Fedus, W., Li, Y., Wang, X., Dehghani, M., Brahma, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2210.11416 · Cited by 1,441
Research works printed but not linked: 32
- 10.1109/SP46215.2023.10179435 · DOI
- 10.1007/978-3-662-64322-8_1 · DOI
- 10.1145/3324884.3416553 · DOI
- 10.1109/SP40000.2020.00040 · DOI
- Zhang Zhuo Brian Zhang Wen Xu and Zhiqiang Lin. "Demystifying Exploitable Bugs in Smart Contracts." ICSE 2023. · DOI
- 10.1109/WETSEB.2019.00008 · DOI
- 10.1145/3385412.3385990 · DOI
- Lexi Brent, Anton Jurisevic, Michael Kong, Eric Liu, Francois Gauthier, Vincent Gramoli, Ralph Holz, and Bernhard Scholz. 2018. Vandal: A scalable security analysis framework for smart contracts. arXiv preprint arXiv:1809.03981 (2018). · arXiv
- Bhargava, Shruti Bhosale, Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. · arXiv
- Ali M Son DH Kang SH Nam SR. An accurate CT saturation classification using a deep learning approach based on unsupervised feature extraction and supervised fine-tuning strategy. Energies. 2017 Nov 10;10(11):1830. · DOI
- 10.1145/3316481 · DOI
- 10.1016/j.future.2017.08.020 · DOI · Paper page
- 10.1109/TSE.2019.2942301 · DOI
- Petar Tsankov, Andrei Dan, Dana Drachsler-Cohen, Arthur Gervais, Florian Bünzli, and Martin Vechev. Securify: Practical security analysis of smart contracts. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, CCS ’18, page 67–82
- 10.1145/3194113.3194115 · DOI
- 10.1145/3324884.3415298 · DOI
- 10.1145/3183440.3183495 · DOI
- 10.1145/3238147.3238177 · DOI
- 10.1007/978-3-030-32409-4_18 · DOI
- J. Krupp and C. Rossow, “teEther: Gnawing at Ethereum to automatically exploit smart contracts,” in 27th USENIX Security Symposium (USENIX Security 18), pp. 1317–1333, 2018.
- 10.1145/2976749.2978309 · DOI
- S. Kalra, S. Goel, M. Dhawan, and S. Sharma, “Zeus: analyzing safety of smart contracts.,” in Ndss, pp. 1–12, 2018.
- 10.1109/CSF.2018.00022 · DOI
- 10.1145/3236024.3264591 · DOI
- 10.1007/978-3-319-96145-3_4 · DOI
- Yang, Zhiju, Gaoyuan Man, and Songqing Yue. "Understanding Security Audits on Blockchain." Proceedings of the 2022 5th International Conference on Blockchain Technology and Applications. 2022.
- OpenAI. GPT-4 Technical Report. arXiv preprint arXiv:2303.08774 2023. · arXiv
- Dong, A survey of large language models. arXiv preprint arXiv:2303.18223, 2023. · arXiv
- audit? arXiv preprint arXiv:2306.12338 2023. · arXiv
- Chen M Tworek J Jun H Yuan Q Pinto HP Kaplan J Edwards H Burda Y Joseph N Brockman G Ray A. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374. 2021 Jul 7. · arXiv
- Singhal K Azizi S Tu T Mahdavi SS Wei J Chung HW Scales N Tanwani A Cole-Lewis H Pfohl S Payne P. Large language models encode clinical knowledge. arXiv preprint arXiv:2212.13138. 2022 Dec 26. · arXiv
- Rozière B Gehring J Gloeckle F Sootla S Gat I Tan XE Adi Y Liu J Remez T Rapin J Kozhevnikov A. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950. 2023 Aug 24. · arXiv
Cited by
Sorted by citations
Nageshwaran, V., & Ezekiel, S. (2026) · Electronics · doi:10.3390/electronics15122740 · Cited by 4
Metadata
- Authors
- Yang, Z., Man, G., & Yue, S.
- Affiliations
- Seattle University (US)
- Arizona State University (US)
- University of Wisconsin–Platteville (US)
- Venue
- Proceedings of the 2023 6th International Conference on Blockchain Technology and Applications
- Publisher
- ACM
- Published
- 2023-12-15
- Pages
- 19-23
- OpenAlex
- W4399117385
- Cited by
- 10
- References
- 3
- Citations by year
- 2026: 5 · 2025: 5
- FWCI
- 2.57
- Type
- conference paper
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Topics
- Physical Sciences › Computer Science › Information Systems › Blockchain Technology Applications and Security
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Keywords
- smart contract vulnerability detection, large language models, Llama 2, fine-tuning, decentralized finance, blockchain security, vulnerability classification, binary analysis
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review