11-21-2024
BSV
$69.31
Vol 215.49m
0.51%
BTC
$98386
Vol 125931.24m
4.36%
BCH
$482.95
Vol 2197.29m
8.43%
LTC
$89.28
Vol 1409.24m
6.05%
DOGE
$0.38
Vol 9373.67m
1.81%
Getting your Trinity Audio player ready...

ChatGPT can write smart contracts, but developers must avoid using it to audit their code, a team of researchers has found.

The researchers from blockchain security firm Salus Security assessed the ability of GPT-4, OpenAI’s most powerful large language model (LLM), to audit smart contracts. They concluded that while its precision rate in detecting vulnerabilities is high, its recall rate is dangerously low for a smart contract auditing tool.

In their recently published study, the two researchers selected eight sets of smart contracts that had been injected with 18 types of vulnerabilities, 60 in total. Their goal was to assess whether OpenAI’s LLM could mimic a professional auditor and if it could parse the code and unearth the vulnerabilities.

The researchers found that GPT-4 detected seven types of vulnerabilities with a high precision of above 80%. However, its recall rate was strikingly low across the data sets, with the lowest being around 11%, suggesting “that GPT-4 may miss some vulnerabilities during detection.”

The recall rate is the percentage of data samples that a model can correctly identify as belonging to a class out of the total sample or the true positive rate. Precision is the ratio of true positives to the true and false positives, or how many junk positives were included in a data set.

The researchers pointed out that the results indicate that GPT-4’s vulnerability detection capabilities are below par and should only be used as an auxiliary tool in smart contract auditing.

“In summary, GPT-4 can be a useful tool in assisting with smart contract auditing, especially in code parsing and providing vulnerability hints. However, given its limitations in vulnerability detection, it cannot fully replace professional auditing tools and experienced auditors at this time,” the researchers concluded.

The latest study corroborates other findings that have dismissed claims that artificial intelligence (AI) will replace developers. While specialized AI-powered tools are becoming
increasingly better at writing code and detecting vulnerabilities, they still can’t be depended upon on their own, especially in the digital asset world where the slightest vulnerability is pounced on.

In order for artificial intelligence (AI) to work right within the law and thrive in the face of growing challenges, it needs to integrate an enterprise blockchain system that ensures data input quality and ownership—allowing it to keep data safe while also guaranteeing the immutability of data. Check out CoinGeek’s coverage on this emerging tech to learn more why Enterprise blockchain will be the backbone of AI.

Watch: Does AI know what it’s doing?

Recommended for you

David Case gets technical with Bitcoin masterclass coding sessions
Whether you're a coding pro or a novice, David Case's livestream sessions on the X platform are not to be...
November 21, 2024
NY Supreme Court’s ruling saves BTC miner Greenidge from closing
However, the judge also ruled that Greenidge must reapply for the permit and that the Department of Environmental Conservation has...
November 20, 2024
Advertisement
Advertisement
Advertisement