Researchers regenerated implementations for 250 verified Ethereum smart contracts and then compared each compiled candidate with its original. Their tests deliberately answer different questions: differential fuzzing searches for unexpected input behavior in function bodies, historical replay checks actual on-chain transaction sequences, and DCR-guided…
Inspect the ClaimsCase · DiggingBeagle record
SolBehave finds compiling AI-generated Solidity often diverges from its reference
Across 250 contracts and seven models, SolBehave reports that compilation alone misses widespread behavioral differences in regenerated code.
Experimental regeneration of 250 Ethereum smart contracts, seven open-weight models, October 13, 2026 paper; no deployed vulnerability or realized monetary loss established.
Assessment profile
Assessment method- Setting
- evaluation
- Exploitation
- not established
- Evidence
- Grade B
- Remediation
- not applicable
- AI role
- WITH AI
Basis and provenance
Compilation and fuzzing outcomes are direct researcher metrics; 31.4 percent is conditional on tested inputs and not formal equivalence. Impact band is left unassigned because no calibrated damage threshold or representative victim impact is supported by the available record.
Assessed Oct 20, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-SOLBEHAVE-DESIGN · CLM-SOLBEHAVE-LIMITS · CLM-SOLBEHAVE-DIVERGENCE · CLM-SOLBEHAVE-VALIDITY · CLM-SOLBEHAVE-NEW-PATHS · SolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contracts · SolBehave research and reproduction repository
At a glance
Compilation and a historical transaction suite do not replace stateful behavioral equivalence testing. A developer should not infer a safe contract from a model compile score.
Read the implicationsNo independently rerun test outcomes. Behavior under larger DeFi protocols, bridges and governance contracts remains uncertain.
Limits and uncertaintyFull account
Researchers regenerated implementations for 250 verified Ethereum smart contracts and then compared each compiled candidate with its original. Their tests deliberately answer different questions: differential fuzzing searches for unexpected input behavior in function bodies, historical replay checks actual on-chain transaction sequences, and DCR-guided synthetic replay creates valid but previously unseen operation sequences. This distinction matters when access controls or balances depend on which function was called first.
The authors report compilation success of 26.4% to 92.7%, but behavioral equivalence in only 31.4% of pooled compiling regenerated function bodies. For six of seven models, 13% to 31% of compiling contracts diverged on historical replay and 13% to 44% under synthetic replay. These are reference-equivalence test results, not discovered exploits in 250 deployed contracts. The evaluated cohort is dominated by relatively small contracts, and equivalence outside tested sequences remains unproved. The public code repository contains reproduction instructions, although artifact availability wording in its README is inconsistent and an independent rerun has not been performed.
The 31.4% figure means no divergence was found by the study's differential fuzzer for that proportion of compiling function bodies; it is not a mathematical proof of equivalence. Historical replay samples what users did, whereas DCR-guided sequences explore valid states that users had not reached. The paper reports 246 to 311 additionally reached state-changing functions under different extractors, while acknowledging that the synthetic and historical oracles each miss paths the other tests.
Timeline
- Oct 13, 2026disclosure
Public disclosure
Claims & evidence
CLM-SOLBEHAVE-DESIGNSolBehave studies 250 real contracts with differential fuzzing, historical transaction replay and DCR-guided synthetic replay.supported
Basis: reported finding
- supportsSolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contractsprimary disclosure
Abstract and Section IV, Methodology
CLM-SOLBEHAVE-LIMITSThese results are controlled regeneration experiments rather than confirmed production attacks, with limited generalization to complex DeFi systems.supported
Basis: reported finding
- supportsSolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contractsprimary disclosure
Section VI, Threats to Validity
CLM-SOLBEHAVE-VALIDITYThe benchmark selected 250 contracts with 1 to 20 state-changing functions after reproducibility checks, and its statistical equivalence rate is limited to the tested fuzzing inputs.supported
Basis: reported finding
- supportsSolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contractsprimary disclosure
IV-A Benchmark Construction, Size Filter; IV-C O1 Differential Fuzzing; V-F
CLM-SOLBEHAVE-NEW-PATHSDCR-guided replay reached 246 to 311 state-changing functions not reached by the historical transaction oracle, depending on the model extracting the DCR graph.supported
Basis: reported finding
- supportsSolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contractsprimary disclosure
V-E Coverage Explains the Complementarity; O2 and O3 coverage table
CLM-SOLBEHAVE-DIVERGENCEThe authors report only 31.4% pooled function-body behavioral equivalence among compiling samples and contract replay divergence for six of seven models.supported
Basis: reported finding
- supportsSolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contractsprimary disclosure
Abstract; Section V-D and V-F
Implications
Compilation and a historical transaction suite do not replace stateful behavioral equivalence testing. A developer should not infer a safe contract from a model compile score.
Unknowns and contradictions
- No independently rerun test outcomes.
- Behavior under larger DeFi protocols, bridges and governance contracts remains uncertain.
Sources and citation
Material revision history
- Oct 20, 2026 · Canonical change recorded · new in release · revision 177