LLM-Enhanced Smart Contract Fuzzing for Ethereum Pectra Security
Addressing security risks in the Ethereum Pectra upgrade by integrating LLMs with mutation-based fuzzing to detect vulnerabilities.
- The problem
- Can LLMs write strong tests for smart contracts?
- What we did
- Had LLMs write tests for five sample Solidity contracts, also written by an LLM.
- What we found
- Only 2 of the 5 contracts got any LLM test suite that passed every test.
- The limit
- We report results on unchanged contracts only, so bug-catching is not shown.
On only 2 of the 5 contracts did any LLM-written suite pass every test; for the multi-signature wallet, no model's suite compiled.
A crossed square can stand for several unnamed models with no tests reported. Model names are shortened.
Table 6 (p. 11); pipeline from §4.1.
Of four planned test-versus-code scenarios, only C1 is reported: tests written from the original contract, run on it.
§4.2.1–4.2.3, §7.0.2; redrawn from Fig. 2.
In the first round, on simpler contracts, 4 of 9 models wrote tests that compiled.
Model names are shortened.
Table 4 (p. 10); §5.1.
Where a suite had failures, they were usually few: 5 of 7 such suites failed exactly one test; llama-3.3-70b's DAO suite failed 6 of 9.
Each square is one test. These are test counts, not code coverage. Model names are shortened.
Table 6 (p. 11).



































































































