English

SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework

Cryptography and Security 2024-12-02 v1 Artificial Intelligence

Abstract

Smart contracts are essential for managing digital assets in blockchain networks, highlighting the need for effective security measures. This paper introduces SmartLLMSentry, a novel framework that leverages large language models (LLMs), specifically ChatGPT with in-context training, to advance smart contract vulnerability detection. Traditional rule-based frameworks have limitations in integrating new detection rules efficiently. In contrast, SmartLLMSentry utilizes LLMs to streamline this process. We created a specialized dataset of five randomly selected vulnerabilities for model training and evaluation. Our results show an exact match accuracy of 91.1% with sufficient data, although GPT-4 demonstrated reduced performance compared to GPT-3 in rule generation. This study illustrates that SmartLLMSentry significantly enhances the speed and accuracy of vulnerability detection through LLMdriven rule integration, offering a new approach to improving Blockchain security and addressing previously underexplored vulnerabilities in smart contracts.

Keywords

Cite

@article{arxiv.2411.19234,
  title  = {SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework},
  author = {Oualid Zaazaa and Hanan El Bakkali},
  journal= {arXiv preprint arXiv:2411.19234},
  year   = {2024}
}
R2 v1 2026-06-28T20:16:03.577Z