Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justifications
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Smart contracts are decentralized applications built atop blockchains like Ethereum. Recent research has shown that large language models (LLMs) have potential in auditing smart contracts, but the state-of-the-art indicates that even GPT-4 can achieve only 30% precision (when both decision and justification are correct). This is likely because off-the-shelf LLMs were primarily pre-trained on a general text/code corpus and not fine-tuned on the specific domain of Solidity smart contract auditing. In this paper, we propose iAudit, a general framework that combines fine-tuning and LLM-based agents for intuitive smart contract auditing with justifications. Specifically, iAudit is inspired by the observation that expert human auditors first perceive what could be wrong and then perform a detailed analysis of the code to identify the cause. As such, iAudit employs a two-stage fine-tuning approach: it first tunes a Detector model to make decisions and then tunes a Reasoner model to generate causes of vulnerabilities. However, fine-tuning alone faces challenges in accurately identifying the optimal cause of a vulnerability. Therefore, we introduce two LLM-based agents, the Ranker and Critic, to iteratively select and debate the most suitable cause of vulnerability based on the output of the fine-tuned Reasoner model. To evaluate iAudit, we collected a balanced dataset with 1,734 positive and 1,810 negative samples to fine-tune iAudit. We then compared it with traditional fine-tuned models (CodeBERT, GraphCodeBERT, CodeT5, and UnixCoder) as well as prompt learning-based LLMs (GPT4, GPT-3.5, and CodeLlama-13b/34b). On a dataset of 263 real smart contract vulnerabilities, iAudit achieves an F1 score of 91.21% and an accuracy of 91.11%. The causes generated by iAudit achieved a consistency of about 38% compared to the ground truth causes.
Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 51 of its 82 references that are in the map. First posted on arXiv 24 Mar 2024.
Builds on
51 of 82 references.
References · 51
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
38 more
- 2023Mistral 7Bcited by 3,065
- 2023A Survey of Large Language Modelscited by 2,537
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024Mixtral of Expertscited by 1,785
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2022A Survey on In-context Learningcited by 717
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 227
- 2023Fine-tuning Language Models for Factualitycited by 219
- 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Modelscited by 185
- 2023Efficient Large Language Models: A Surveycited by 183
- 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134
- 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 94
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 88
- 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 80
- 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 66
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2018Securify: Practical Security Analysis of Smart Contractscited by 61
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2023ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?cited by 44
- 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
- 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
- 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 36
- 2023Do you still need a manual smart contract audit?cited by 34
- 2021Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusioncited by 24
- 2023Sparse is Enough in Fine-tuning Pre-trained Large Language Modelscited by 21
- 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
- 2023The Hitchhiker's Guide to Program Analysis: A Journey with Large Language Modelscited by 18
- 2024LLbezpeky: Leveraging Large Language Models for Vulnerability Detectioncited by 13
- 2023A Comprehensive Analysis of Adapter Efficiencycited by 8
- 2019Security Analysis Methods on Ethereum Smart Contract Vulnerabilities: A Surveycited by 7
- 2020DEFECTCHECKER: Automated Smart Contract Defect Detection by Analyzing EVM Bytecodecited by 4
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2024: 4; 2025: 29; 2026: 8.
41 papers.
Sort:
By area:
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Frameworkcited by 50
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2025Fraud-R1 : A Multi-Round Benchmark for Assessing the Robustness of LLM Against Augmented Fraud and Phishing Inducementscited by 31
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 17
- 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challengescited by 14
- 2025Aitomia: Your Intelligent Assistant for AI-Driven Atomistic and Quantum Chemical Simulationscited by 8
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworkscited by 7
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
29 more
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discoverycited by 6
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
- 2025Detecting Various DeFi Price Manipulations with LLM Reasoningcited by 4
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025SoK: Security and Privacy of AI Agents for Blockchaincited by 3
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
- 2025SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Modelscited by 2
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditingcited by 2
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditingcited by 2
- 2024Connecting Large Language Models with Blockchain: Advancing the Evolution of Smart Contracts from Automation to Intelligencecited by 1
- 2025Experiences with Content Development and Assessment Design in the Era of GenAIcited by 1
- 2025UEChecker: Detecting Unchecked External Call Vulnerabilities in DApps via Graph Analysiscited by 1
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challengescited by 1
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2025Fine-tuning of Large Language Models for Domain-Specific Cybersecurity Knowledgecited by 1
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Groundingcited by 1
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditingcited by 1
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarizationcited by 1
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Testcited by 0
- 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAGcited by 0
- 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Languagecited by 0
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Loggingcited by 0
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contractscited by 0
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregationcited by 0
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contractscited by 0
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Modelscited by 0
- 2026Demystifying Agent Skills for Smart Contract Auditing: Design, Effectiveness, Behavioral Impactcited by 0
- 2026Demystifying Agent Skills for Smart Contract Auditing: Design, Effectiveness, Behavioral Impact24 Sep 2026
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Models20 Aug 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation2 Jun 2026
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization27 Mar 2026
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts17 Feb 2026
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditing25 Jan 2026
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework17 Jan 2026
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Grounding7 Dec 2025
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Logging23 Nov 2025
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks19 Nov 2025
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationale11 Nov 2025
29 more
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discovery15 Oct 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement30 Sep 2025
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditing29 Sep 2025
- 2025Fine-tuning of Large Language Models for Domain-Specific Cybersecurity Knowledge25 Sep 2025
- 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Language23 Sep 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization12 Sep 2025
- 2025SoK: Security and Privacy of AI Agents for Blockchain8 Sep 2025
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges4 Aug 2025
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contracts2 Aug 2025
- 2025UEChecker: Detecting Unchecked External Call Vulnerabilities in DApps via Graph Analysis2 Aug 2025
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection30 Jul 2025
- 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG5 Jul 2025
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection23 Jun 2025
- 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challenges21 Jun 2025
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditing21 May 2025
- 2025Aitomia: Your Intelligent Assistant for AI-Driven Atomistic and Quantum Chemical Simulations13 May 2025
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Test12 May 2025
- 2025Experiences with Content Development and Assessment Design in the Era of GenAI28 Feb 2025
- 2025Fraud-R1 : A Multi-Round Benchmark for Assessing the Robustness of LLM Against Augmented Fraud and Phishing Inducements18 Feb 2025
- 2025Detecting Various DeFi Price Manipulations with LLM Reasoning17 Feb 2025
- 2025SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models11 Feb 2025
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights10 Feb 2025
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities13 Jan 2025
- 2024Connecting Large Language Models with Blockchain: Advancing the Evolution of Smart Contracts from Automation to Intelligence3 Dec 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024Efficacy of Various Large Language Models in Generating Smart Contracts28 Jun 2024
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputs27 Apr 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Frameworkcited by 50
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 17
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworkscited by 7
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditingcited by 2
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditingcited by 1
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarizationcited by 1
- 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Languagecited by 0
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Loggingcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Demystifying Agent Skills for Smart Contract Auditing: Design, Effectiveness, Behavioral Impact24 Sep 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization27 Mar 2026
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditing25 Jan 2026
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework17 Jan 2026
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Logging23 Nov 2025
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks19 Nov 2025
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationale11 Nov 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditing29 Sep 2025
- 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Language23 Sep 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
12 newest of 14 All 14 (JSON)
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2025Fraud-R1 : A Multi-Round Benchmark for Assessing the Robustness of LLM Against Augmented Fraud and Phishing Inducementscited by 31
- 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challengescited by 14
- 2025Aitomia: Your Intelligent Assistant for AI-Driven Atomistic and Quantum Chemical Simulationscited by 8
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discoverycited by 6
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
- 2025Detecting Various DeFi Price Manipulations with LLM Reasoningcited by 4
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025SoK: Security and Privacy of AI Agents for Blockchaincited by 3
- 2025SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Modelscited by 2
12 most cited of 24 All 24 (JSON)
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Models20 Aug 2026
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation2 Jun 2026
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts17 Feb 2026
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Grounding7 Dec 2025
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discovery15 Oct 2025
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement30 Sep 2025
- 2025Fine-tuning of Large Language Models for Domain-Specific Cybersecurity Knowledge25 Sep 2025
- 2025SoK: Security and Privacy of AI Agents for Blockchain8 Sep 2025
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges4 Aug 2025
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contracts2 Aug 2025
- 2025UEChecker: Detecting Unchecked External Call Vulnerabilities in DApps via Graph Analysis2 Aug 2025
- 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG5 Jul 2025
12 newest of 24 All 24 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI
- 2025LLMs as verification oracles for Solidity
- 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation
- 2025Securing Smart Contract Languages with a Unified Agentic Framework for Vulnerability Repair in Solidity and Move
- 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Framework
- 2025Beyond Code Similarity: Benchmarking the Plausibility, Efficiency, and Complexity of LLM-Generated Smart Contracts