Fun

News Feed - 2023-07-12 06:07:16

Mariko Wakabayashi2 hours agoExperiments show AI could help to audit smart contracts, but not yetArtificial intelligence has proven effective at identifying security vulnerabilities, but early tests indicate it won’t be able to replace humans for a while.176 Total views1 Total sharesListen to article 0:00Expert TakeJoin us on social networksWhile artificial intelligence (AI) has already transformed a myriad of industries, from healthcare and automotive to marketing and finance, its potential is now being put to the test in one of the blockchain industry’s most crucial areas — smart contract security.


Numerous tests have shown great potential for AI-based blockchain audits, but this nascent tech still lacks some important qualities inherent to human professionals — intuition, nuanced judgment and subject expertise.


My own organization, OpenZeppelin, recently conducted a series of experiments highlighting the value of AI in detecting vulnerabilities. This was done using OpenAI’s latest GPT-4 model to identify security issues in Solidity smart contracts. The code being tested comes from the Ethernaut smart contract hacking web game — designed to help auditors learn how to look for exploits. During the experiments, GPT-4 successfully identified vulnerabilities in 20 out of 28 challenges.


Related:Buckle up, Reddit: Closed APIs cost more than you’d expect


In some cases, simply providing the code and asking if the contract contained a vulnerability would produce accurate results, such as with the following naming issue with the constructor function:ChatGPT analyzes a smart contract. Source: OpenZeppelin


At other times, the results were more mixed or outright poor. Sometimes the AI would need to be prompted with the correct response by providing a somewhat leading question, such as, “Can you change the library address in the previous contract?” At its worst, GPT-4 would fail to come up with a vulnerability, even when things were pretty clearly spelled out, as in, “Gate one and Gate two can be passed if you call the function from inside a constructor, how can you enter the GatekeeperTwo smart contract now?” At one point, the AI even invented a vulnerability that wasn’t actually present.


This highlights the current limitations of this technology. Still, GPT-4 has made notable strides over its predecessor, GPT-3.5, the large language model (LLM) utilized within OpenAI’s initial launch of ChatGPT. In December 2022, experiments with ChatGPT showed that the model could only successfully solve five out of 26 levels. Both GPT-4 and GPT-3.5 were trained on data up until September 2021 using reinforcement learning from human feedback, a technique that involves a human feedback loop to enhance a language model during training.


Coinbase carried out similar experiments, yielding a comparative result. This experiment leveraged ChatGPT to review token security. While the AI was able to mirror manual reviews for a big chunk of smart contracts, it had a hard time providing results for others. Additionally, Coinbase also cited a few instances of ChatGPT labeling high-risk assets as low-risk ones.


Related:Don’t be naive — BlackRock’s ETF won’t be bullish for Bitcoin


It’s important to note that ChatGPT and GPT-4 are LLMs developed for natural language processing, human-like conversations and text generation rather than vulnerability detection. With enough examples of smart contract vulnerabilities, it’s possible for an LLM to acquire the knowledge and patterns necessary to recognize vulnerabilities.


If we want more targeted and reliable solutions for vulnerability detection, however, a machine learning model trained exclusively on high-quality vulnerability data sets would most likely produce superior results. Training data and models customized for specific objectives lead to faster improvements and more accurate results.


For example, the AI team at OpenZeppelin recently built a custom machine learning model to detect reentrancy attacks — a common form of exploit that can occur when smart contracts make external calls to other contracts. Early evaluation results show superior performance compared to industry-leading security tools, with a false positive rate below 1%.Striking a balance of AI and human expertise


Experiments so far show that while current AI models can be a helpful tool to identify security vulnerabilities, it is unlikely to replace the human security professionals’ nuanced judgment and subject expertise. GPT-4 mainly draws on publicly available data up until 2021 and thus cannot identify complex or unique vulnerabilities beyond the scope of its training data. Given the rapid evolution of blockchain, it’s critical for developers to continue learning about the latest advancements and potential vulnerabilities within the industry.


Looking ahead, the future of smart contract security will likely involve collaboration between human expertise and constantly improving AI tools. The most effective defense against AI-armed cybercriminals will be using AI to identify the most common and well-known vulnerabilities while human experts keep up with the latest advances and update AI solutions accordingly. Beyond the cybersecurity realm, the combined efforts of AI and blockchain will have many more positive and groundbreaking solutions.


AI alone won’t replace humans. However, human auditors who learn to leverage AI tools will be much more effective than auditors turning a blind eye to this emerging technology.Mariko Wakabayashi is the machine learning lead at OpenZeppelin. She is responsible for applied AI/ML and data initiatives at OpenZeppelin and the Forta Network. Mariko created Forta Network’"s public API and led data-sharing and open-source projects. Her AI system at Forta has detected over $300 million in blockchain hacks in real time before they occurred.


This article is for general information purposes and is not intended to be and should not be taken as legal or investment advice. The views, thoughts and opinions expressed here are the author’s alone and do not necessarily reflect or represent the views and opinions of Cointelegraph.# Blockchain# Smart Contracts# Analysis# Technology# Tech# AI# Tech Analysis# Opinion# ChatGPTAdd reactionAdd reactionRelated NewsHow to use a crypto hardware walletBug bounties can help secure blockchain networks, but have mixed resultsBlackRock Bitcoin ETF could unlock $30 trillion worth of wealth, Bloomberg analyst saysThink AI tools aren’t harvesting your data? Guess againCrypto scams are going to ramp up with the rise of AIGirlfriends, murdered kids, assassin androids — Is AI cursed?

News Feed

Elon Musk Asks Judge to Dismiss $258B Dogecoin Lawsuit — Insists Tweeting Support for DOGE Isn’t Unlawful
Elon Musk Asks Judge to Dismiss $258B Dogecoin Lawsuit — Insists Tweeting Support for DOGE Isn"t Unlawful Tesla and Twitter CEO Elon Musk has asked a U.S. judge to dismiss a $258
3 memorable moments from Donald Trump’s ‘Mugshot’ NFT event
Brayden Lindrea4 hours ago3 memorable moments from Donald Trump’s ‘Mugshot’ NFT eventDonald Trump says he helped make “NFTs hot again” and even dissed his own political rival’s unofficial memecoin — sending
Alice Ivey11 hours ago7 blockchain-based platforms for content creatorsFrom Steemit and LBRY to Ujo Music and SuperRare, discover how blockchain technology empowers content creators in the digital age.706 Total views8 To
AI tokens are more hype than value right now, says Coinbase analyst
Arijit Sarkar3 hours agoAI tokens are more hype than value right now, says Coinbase analystWhile some crypto-AI tokens continue to deliver profitable trades, the long-term sustainability of the ecosystem will require mor
John Lennon’s Son Says Bitcoin Empowers People, Gives Him Optimism in Ocean of Destruction
John Lennon"s Son Says Bitcoin Empowers People, Gives Him Optimism in Ocean of Destruction Sean Ono Lennon, the son of the Beatles’ John Lennon,says bitcoi
Bitcoin price flash crash raises chance of BTC dip to $54K
Nancy Lubale4 hours agoBitcoin price flash crash raises chance of BTC dip to $54KBitcoin price drops more than 2% in an hour, leading to $127 million in long liquidations.5288 Total views56 Total sharesListen to article
Optimism offloads $90M worth of tokens in private deal
Ezra Reguerra12 hours agoOptimism offloads $90M worth of tokens in private dealOptimism also sold 116 million OP tokens in another private sale held back in September 2023.1056 Total views13 Total sharesListen to article
Research Firm Predicts Bitcoin Will Hit $200K in Second Half of 2022, ETH to Reach $12K
Research Firm Predicts Bitcoin Will Hit $200K in Second Half of 2022, ETH to Reach $12K This week in a note to investors, Fsinsight, a Fundstrat company, said bitcoin could reach $
Crypto ATM Company Bitbase Prepares to Open Operations in Venezuela This Year
Crypto ATM Company Bitbase Prepares to Open Operations in Venezuela This Year Bitbase, a cryptocurrency store and ATM company headquartered in Spain is preparing to open operations
Germany’s Information Security Office champions hardware wallets
Vince Quill6 hours agoGermany’s Information Security Office champions hardware walletsAccording to a recent Chainalysis report, thefts resulting from crypto hacks and exploits have totaled $1.58 billion in 2024.1477 To
Derek Andersen3 hours agoIMF sees climate change, DAOs, CBDC as threats to Marshall Islands, urges reformsEntering the crypto economy is not a good idea for a country with “capacity constraints” and no central bank,
LBank Exchange Will List Byepix (EPIX) on November 10, 2022
LBank Exchange Will List Byepix (EPIX) on November 10, 2022 press release PRESS RELEASE. INTERNET CITY, DUBAI, Nov. 7, 2022 – LBank Exchange, a global digital asset trading p