Skip to content

Can GPT-4 and Claude replace human smart contract auditors?Do you still need a manual smart contract audit?

arXiv· arXiv:2306.12338· Isaac David, Liyi Zhou, Kaihua Qin, Dawn Song, Lorenzo Cavallaro, Arthur Gervais·Indexed by this site · 27 days ago· Originally publishedEvaluation
AI summary

When GPT-4 and Claude audited 52 DeFi smart contracts that had previously been attacked, they correctly identified the vulnerability type in 40% of cases, with an F1 score 20% higher than a random model, but the false positive rate was high and human auditors were still needed. In mutation testing, 2 and 15 vulnerabilities were manually inserted into 5 newly developed contracts, and GPT-4-32k achieved a maximum true positive rate of 78.7%. The study also tested binary and non-binary prompts and examined the effects of temperature and context length.

Read originalarxiv.org