mlsanityData to 14 Oct 2026

SCALM: Detecting Bad Practices in Smart Contracts Through LLMs

arXiv 2502.04347 ↗First posted 4 Feb 2025cs.CL cs.AIcited by 8

Not on the map. Why?

Abstract (arXiv)

As the Ethereum platform continues to mature and gain widespread usage, it is crucial to maintain high standards of smart contract writing practices. While bad practices in smart contracts may not directly lead to security issues, they do elevate the risk of encountering problems. Therefore, to understand and avoid these bad practices, this paper introduces the first systematic study of bad practices in smart contracts, delving into over 35 specific issues. Specifically, we propose a large language models (LLMs)-based framework, SCALM. It combines Step-Back Prompting and Retrieval-Augmented Generation (RAG) to identify and address various bad practices effectively. Our extensive experiments using multiple LLMs and datasets have shown that SCALM outperforms existing tools in detecting bad practices in smart contracts.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 21 of its 49 references that are in the map. First posted on arXiv 4 Feb 2025.

Builds on

21 of 49 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
  3. 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
  4. 2018Securify: Practical Security Analysis of Smart Contractscited by 61
  5. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  6. 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 37
  7. 2019Empirical Review of Automated Analysis Tools on 47,587 Ethereum Smart Contractscited by 36
  8. 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
  9. 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decodingcited by 14
  10. 2022Deep Lake: a Lakehouse for Deep Learningcited by 13
  11. 2020eThor: Practical and Provably Sound Static Analysis of Ethereum Smart Contractscited by 11
  12. 2019Harvey: A Greybox Fuzzer for Smart Contractscited by 10
9 more
  1. 2023DAppSCAN: Building Large-Scale Datasets for Smart Contract Weaknesses in DApp Projectscited by 9
  2. 2024AuditGPT: Auditing Smart Contracts with ChatGPTcited by 9
  3. 2023Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?cited by 8
  4. 2024Unveiling Wash Trading in Popular NFT Marketscited by 8
  5. 2024StateGuard: Detecting State Derailment Defects in Decentralized Exchange Smart Contractcited by 8
  6. 2024Improving Smart Contract Security with Contrastive Learning-based Vulnerability Detectioncited by 7
  7. 2024DeFiTail: DeFi Protocol Inspection through Cross-Contract Execution Analysiscited by 7
  8. 2020Characterizing Erasable Accounts in Ethereumcited by 5
  9. 2023An Overview of AI and Blockchain Integration for Privacy-Preservingcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 3.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
  2. 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Framework
  3. 2025SmartLLM: Smart Contract Auditing using Custom Generative AI
  4. 2025ETrace:Event-Driven Vulnerability Detection in Smart Contracts via LLM-Based Trace Analysis
  5. 2025LLMs as verification oracles for Solidity
  6. 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection
  7. 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
  8. 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation