Connect with us

Published

on

Every day this week we’re highlighting one genuine, no bullsh*t, hype free use case for AI in crypto. Today it’s the potential for using AI for smart contract auditing and cybersecurity, we’re so near and yet so far.

TurboToad
AI artwork for the ChatGPT written TurboToad memecoin. (Twitter)

One of the big use cases for AI and crypto in the future is in auditing smart contracts and identifying cybersecurity holes. There’s only one problem — at the moment, GPT-4 sucks at it.

Coinbase tried out ChatGPT’s capabilities for automated token security reviews earlier this year, and in 25% of cases, it wrongly classified high-risk tokens as low-risk.
James Edwards, the lead maintainer for cybersecurity investigator Librehash, believes OpenAI isn’t keen on having the bot used for tasks like this.

“I strongly believe that OpenAI has quietly nerfed some of the bot’s capabilities when it comes to smart contracts for the sake of not having folks rely on their bot explicitly to draw up a deployable smart contract,” he says, explaining that OpenAI likely doesn’t want to be held responsible for any vulnerabilities or exploits.

This isn’t to say AI has zero capabilities when it comes to smart contracts. AI Eye spoke with Melbourne digital artist Rhett Mankind back in May. He knew nothing at all about creating smart contracts, but through trial and error and numerous rewrites, was able to get ChatGPT to create a memecoin called Turbo that went on to hit a $100 million market cap.

But as CertiK Chief Security Officer Kang Li points out, while you might get something working with ChatGPT’s help, it’s likely to be full of logical code bugs and potential exploits:

“You write something and ChatGPT helps you build it but because of all these design flaws it may fail miserably when attackers start coming.”

So it’s definitely not good enough for solo smart contract auditing, in which a tiny mistake can see a project drained of tens of millions — though Li says it can be “a helpful tool for people doing code analysis.”

Richard Ma from blockchain security firm Quantstamp explains that a major issue at present with its ability to audit smart contracts is that GPT -4’s training data is far too general.

Also read: Real AI use cases in crypto, No. 1 — The best money for AI is crypto

“Because ChatGPT is trained on a lot of servers and there’s very little data about smart contracts, it’s better at hacking servers than smart contracts,” he explains.

So the race is on to train up models with years of data of smart contract exploits and hacks so it can learn to spot them. 

Read also


Features

North Korean crypto hacking: Separating fact from fiction


Features

An Investment in Knowledge Pays the Best Interest: The Parlous State of Financial Education

“There are newer models where you can put in your own data, and that’s partly what we’ve been doing,” he says.

“We have a really big internal database of all the different types of exploits. I started a company more than six years ago, and we’ve been tracking all the different types of hacks. And so this data is a valuable thing to be able to train AI.”

Race is on to create AI smart contract auditor

Edwards is working on a similar project and has almost finished building an open-source WizardCoder AI model that incorporates the Mando Project repository of smart contract vulnerabilities. It also uses Microsoft’s CodeBert pretrained programming languages model to help spot problems.

According to Edwards, in testing so far, the AI has been able to “audit contracts with an unprecedented amount of accuracy that far surpasses what one could expect and would receive from GPT-4.”

The bulk of the work has been in creating a custom data set of smart contract exploits that identify the vulnerability down to the lines of code responsible. The next big trick is training the model to spot patterns and similarities. 

“Ideally you want the model to be able to piece together connections between functions, variables, context etc, that maybe a human being might not draw when looking across the same data.”

While he concedes it’s not as good as a human auditor just yet, it can already do a strong first pass to speed up the auditor’s work and make it more comprehensive.

“Sort of help in the way LexisNexis helps a lawyer. Except even more effective,” he says. 

Don’t believe the hype

Illia
Near founder Illia Polushkin is an expert in both AI and blockchain.

Near co-founder Illia Polushkin explains that smart contract exploits are often bizarrely niche edge cases, that one in a billion chance that results in a smart contract behaving in unexpected ways.

But LLMs, which are based on predicting the next word, approach the problem from the opposite direction, Polushkin says.

“The current models are trying to find the most statistically possible outcome, right? And when you think of smart contracts or like protocol engineering, you need to think about all the edge cases,” he explains.

Polushkin says that his competitive programming background means that when Near was focused on AI, the team developed procedures to try to identify these rare occurrences.

“It was more formal search procedures around the output of the code. So I don’t think it’s completely impossible, and there are startups now that are really investing in working with code and the correctness of that,” he says.

But Polushkin doesn’t think AI will be as good as humans at auditing for “the next couple of years. It’s gonna take a little bit longer.”

Also read: Real AI use cases in crypto, No. 2 — AIs can run DAOs

Andrew Fenton

Andrew Fenton

Based in Melbourne, Andrew Fenton is a journalist and editor covering cryptocurrency and blockchain. He has worked as a national entertainment writer for News Corp Australia, on SA Weekend as a film journalist, and at The Melbourne Weekly.

Continue Reading

Politics

SEC says REX-Osprey staked SOL and ETH funds may not qualify as ETFs

Published

on

By

SEC says REX-Osprey staked SOL and ETH funds may not qualify as ETFs

SEC says REX-Osprey staked SOL and ETH funds may not qualify as ETFs

The SEC responded shortly after the issuers filed effective registration amendments for staked SOL and Ether exchange-traded funds.

Continue Reading

Politics

IMF raises concern over Pakistan’s Bitcoin mining power plan: report

Published

on

By

IMF raises concern over Pakistan’s Bitcoin mining power plan: report

IMF raises concern over Pakistan’s Bitcoin mining power plan: report

IMF questions Pakistan’s plan to allocate 2,000 megawatts of electricity for Bitcoin mining amid energy shortages and budget talks.

Continue Reading

Politics

‘No doubt’ UK will spend 3% of GDP on defence in next parliament, defence secretary says

Published

on

By

'No doubt' UK will spend 3% of GDP on defence in next parliament, defence secretary says

There is “no doubt” the UK “will spend 3% of our GDP on defence” in the next parliament, the defence secretary has said.

John Healey’s comments come ahead of the publication of the government’s Strategic Defence Review (SDR) on Monday.

This is an assessment of the state of the armed forces, the threats facing the UK, and the military transformation required to meet them.

Prime Minister Sir Keir Starmer has previously set out a “clear ambition” to raise defence spending to 3% in the next parliament “subject to economic and fiscal conditions”.

Mr Healey has now told The Times newspaper there is a “certain decade of rising defence spending” to come, adding that this commitment “allows us to plan for the long term. It allows us to deal with the pressures.”

A government source insisted the defence secretary was “expressing an opinion, which is that he has full confidence that the government will be able to deliver on its ambition”, rather than making a new commitment.

The UK currently spends 2.3% of GDP on defence, with Sir Keir announcing plans to increase that to 2.5% by 2027 in February.

More on John Healey

This followed mounting pressure from the White House for European nations to do more to take on responsibility for their own security and the defence of Ukraine.

The 2.3% to 2.5% increase is being paid for by controversial cuts to the international aid budget, but there are big questions over where the funding for a 3% rise would be found, given the tight state of government finances.

While a commitment will help underpin the planning assumptions made in the SDR, there is of course no guarantee a Labour government would still be in power during the next parliament to have to fulfil that pledge.

Please use Chrome browser for a more accessible video player

From March: How will the UK scale up defence?

A statement from the Ministry of Defence makes it clear that the official government position has not changed in line with the defence secretary’s comments.

The statement reads: “This government has announced the largest sustained increase to defence spending since the end of the Cold War – 2.5% by 2027 and 3% in the next parliament when fiscal and economic conditions allow, including an extra £5bn this financial year.

“The SDR will rightly set the vision for how that uplift will be spent, including new capabilities to put us at the leading edge of innovation in NATO, investment in our people and making defence an engine for growth across the UK – making Britain more secure at home and strong abroad.”

Sir Keir commissioned the review shortly after taking office in July 2024. It is being led by Lord Robertson, a former Labour defence secretary and NATO secretary general.

The Ministry of Defence has already trailed a number of announcements as part of the review, including plans for a new Cyber and Electromagnetic Command and a £1bn battlefield system known as the Digital Targeting Web, which we’re told will “better connect armed forces weapons systems and allow battlefield decisions for targeting enemy threats to be made and executed faster”.

Read more:
Trump to double tariffs on steel imports
Why stockpiling vapes could be dangerous
Last hospital in northern Gaza out of service

PM Sir Keir Starmer and Defence Secretary John Healey on a nuclear submarine. Pic: Crown Copyright 2025
Image:
PM Sir Keir Starmer and Defence Secretary John Healey on a nuclear submarine earlier this year. Pic: Crown Copyright 2025

On Saturday, the defence secretary announced a £1.5bn investment to tackle damp, mould and make other improvements to poor quality military housing in a bid to improve recruitment and retention.

Mr Healey pledged to “turn round what has been a national scandal for decades”, with 8,000 military family homes currently unfit for habitation.

He said: “The Strategic Defence Review, in the broad, will recognise that the fact that the world is changing, threats are increasing.

“In this new era of threat, we need a new era for defence and so the Strategic Defence Review will be the vision and direction for the way that we’ve got to strengthen our armed forces to make us more secure at home, stronger abroad, but also learn the lessons from Ukraine as well.

“So an armed forces that can be more capable of innovation more quickly, stronger to deter the threats that we face and always with people at the heart of our forces… which is why the housing commitments that we make through this strategic defence review are so important for the future.”

Continue Reading

Trending