OpenAI’s ChatGPT is Being Used to Exploit Smart Contracts

OpenAI’s new ChatGPT chatbot, launched on Dec 1. is making its way around Crypto Twitter with its advanced ability to understand and write code – specifically Solidity, the coding language used to develop smart contracts for Ethereum and other layer-2s.

Currently available for beta testing, users of the Web3 community have used the bot to audit smart contracts and find vulnerabilities within them, sparking the conversation of whether AI will eventually replace the developers & auditors within the space.

Exploiting smart contracts with AI

Many are also worried that the AI tool could be used with malicious intent to exploit existing contracts.

However, users have pointed out that responses are not always accurate.

“Instead of suggesting solutions, the AI should write a proper regression test first. Without that this is all reckless ‘hoping for the best’, ” said one user.

A good debugging companion

With the current version of ChatGPT, it may be good for preliminary checks but definitely doesn’t beat human audits.

Without a strong idea of what the code means or what you’re attempting to accomplish with the contract, the possibility of actually finding an exploit is minimal and will probably do more harm than good.

ChatGPT, at least for now, is rather a good debugging companion than a full-blown auditing tool and should be used with discretion and not be solely relied on to find potential flaws within code.

Disclaimer
All articles published on Coinmash are strictly for informational purposes only. Coinmash has no involvement with any assets discussed and urges everyone to do their own research before making any financial decisions. Read our disclaimer to learn more.

Author

Liam Peak
Liam Peak
Liam is the founder and head editor at Coinmash. Previously working as a blockchain developer, he enjoys sharing insights on DeFi, NFTs, and Blockchain tech. Occasionally he'll share a thought or two and cover some breaking news surrounding Web3.