SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework

Oualid Zaazaa, Hanan El Bakkali
11/28/2024
cs.CRcs.AI

No confident code implementation found for this paper. 5 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zaazaa2024smartllmsentry,
  title  = {SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework},
  author = {Oualid Zaazaa and Hanan El Bakkali},
  year   = {2024},
  eprint = {2411.19234},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.19234v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.19234.svg)](https://codeofpaper.com/paper/2411.19234)

Discussion