Can GPT-4 and Claude replace human smart contract auditors?Do you still need a manual smart contract audit?
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.