SCALM: Detecting Bad Practices in Smart Contracts Through LLMs
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
- 2018Securify: Practical Security Analysis of Smart Contractscited by 61
- 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
- 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 37
- 2019Empirical Review of Automated Analysis Tools on 47,587 Ethereum Smart Contractscited by 36
- 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
- 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decodingcited by 14
- 2022Deep Lake: a Lakehouse for Deep Learningcited by 13
- 2020eThor: Practical and Provably Sound Static Analysis of Ethereum Smart Contractscited by 11
- 2019Harvey: A Greybox Fuzzer for Smart Contractscited by 10
9 more
- 2023DAppSCAN: Building Large-Scale Datasets for Smart Contract Weaknesses in DApp Projectscited by 9
- 2024AuditGPT: Auditing Smart Contracts with ChatGPTcited by 9
- 2023Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?cited by 8
- 2024Unveiling Wash Trading in Popular NFT Marketscited by 8
- 2024StateGuard: Detecting State Derailment Defects in Decentralized Exchange Smart Contractcited by 8
- 2024Improving Smart Contract Security with Contrastive Learning-based Vulnerability Detectioncited by 7
- 2024DeFiTail: DeFi Protocol Inspection through Cross-Contract Execution Analysiscited by 7
- 2020Characterizing Erasable Accounts in Ethereumcited by 5
- 2023An Overview of AI and Blockchain Integration for Privacy-Preservingcited by 3
Built on by
Citing papers per year: 2025: 5; 2026: 3.
8 papers.
- 2025SoK: Security and Privacy of AI Agents for Blockchaincited by 4
- 2026InfiCoEvalChain: A Blockchain-Based Decentralized Framework for Collaborative LLM Evaluationcited by 3
- 2025AI-Based Vulnerability Analysis of NFT Smart Contractscited by 1
- 2025A Comprehensive Study of Exploitable Patterns in Smart Contracts: From Vulnerability to Defensecited by 1
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Groundingcited by 1
- 2025Facial Recognition Leveraging Generative Adversarial Networkscited by 0
- 2026Robust Smart Contract Vulnerability Detection via Contrastive Learning-Enhanced Granular-ball Trainingcited by 0
- 2026ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichmentcited by 0
- 2026ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment30 Mar 2026
- 2026Robust Smart Contract Vulnerability Detection via Contrastive Learning-Enhanced Granular-ball Training29 Mar 2026
- 2026InfiCoEvalChain: A Blockchain-Based Decentralized Framework for Collaborative LLM Evaluation9 Feb 2026
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Grounding7 Dec 2025
- 2025SoK: Security and Privacy of AI Agents for Blockchain8 Sep 2025
- 2025Facial Recognition Leveraging Generative Adversarial Networks17 May 2025
- 2025A Comprehensive Study of Exploitable Patterns in Smart Contracts: From Vulnerability to Defense30 Apr 2025
- 2025AI-Based Vulnerability Analysis of NFT Smart Contracts18 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
- 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Framework
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI
- 2025ETrace:Event-Driven Vulnerability Detection in Smart Contracts via LLM-Based Trace Analysis
- 2025LLMs as verification oracles for Solidity
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection
- 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation