Connect with us


This AI-powered chatbot is either a hacker’s dream or a nightmare




The online crypto community has discovered a new AI-powered chatbot that can either be used to warn developers about smart contract vulnerabilities or teach hackers how to exploit them.

It was ChatGPT, a chatbot tool created by artificial intelligence research firm OpenAI released 30 and is designed to interact in a “conversational manner” with the ability to answer follow-up questions and even admit mistakes, according to the company.

However, some Twitter users realized that the bot could potentially be used for both good and bad, since they could be prompted. Expose vulnerabilities in smart contracts.

Stephen Tong, co-founder of smart contract auditing firm Zellic, has asked ChatGPT to help find a vulnerability and provide a piece of smart contract code.


The bot responded by pointing out that the contract has a return vulnerability where the exploiter can repeatedly withdraw funds from the contract and provided an example of how to fix the problem.

This similar type of exploit was used in May by a decentralized finance (DeFi) platform attacker, the Fei protocol. He stole 80 million dollars.

Others shared results from a chatbot after claiming vulnerable smart contracts. Twitter user devtooligan shared a screenshot of ChatGPT, which provided the exact code required to repair a Solidity smart contract The “we’d all be out of work” vulnerability comment.

With the tool, Twitter users have already started joking that they are now able to start businesses for it Security audit Simply by using a bot to test vulnerabilities in smart contracts.

Cointelegraph tested ChatGPT and found that it can also generate an example smart contract from a prompt using simple language, generating code that can apparently Offer staking rewards For ethereum-based non-fungible tokens (NFTs).

ChatGPT example Solidity smart contract to get NFT rewards from a simple router. Image: Cointelegraph.

Although the chatbot is capable of testing smart contract functionality, it is not built solely for this purpose, many on Twitter built it. I suggested Some of the smart contracts you create have issues.


The tool may also give different responses depending on how it is asked, so it’s not perfect.

Related: The secret network solves a network vulnerability after white hat detection

Sam Altman, CEO of OpenAI chirp that the tool was an “early demo” and is “largely a research build”.

He opined that “language interfaces will be a big deal” and that tools like ChatGPT will “soon” have the ability to answer questions and give advice on subsequent iterations of completing tasks or even discovering new knowledge.