Cointime

Download App
iOS & Android

MetaTrust's AI Scan Engine: Harnessing the Power of GPT and Static Analysis

We are excited to announce that MetaTrust Labs has developed an innovative GPT-based auditing engine, specifically designed to analyze logic smart contract vulnerabilities that were previously deemed un-auditable by machines, as per the ICSE'23 Web3Bugs paper.

In contrast to other companies that solely rely on GPT for scanning, resulting in a high number of false positives, we believe that the true potential of GPT can be fully harnessed when combined with a powerful static analysis tool like MetaScan. Specifically, while ChatGPT excels at reading code and recognizing its properties, it struggles to effectively analyze the control and data dependencies of key variables, often misidentifying patched code as vulnerable. On the other hand, static analysis may not be adept at intelligently recognizing code scenarios or properties, but it provides accurate dependency analysis and formal verification. To leverage the strengths of both GPT and static analysis, we have designed a novel architecture for a GPT-based scanning engine (details to be introduced in a forthcoming academic paper). This engine has been seamlessly integrated into MetaTrust's MetaScan service.

We have tested this AI scan engine on various Web3Bugs. One example is https://github.com/metatrust-demo/LogicBug-Prepo, which was audited on Code4rena. As depicted in the following screenshot, our engine was successful in detecting a high-risk logic vulnerability that allowed the first depositor to disrupt the minting of shares.

Another example is from a past attack incident that led to a BSC token named ATK suffering a $127k loss on October 12, 2022. By scanning this vulnerable contract with MetaScan, our AI engine was able to effectively pinpoint the following vulnerable function:

The application of AI in blockchain security is exciting. We believe that combining GPT and static analysis with AI technologies can detect potential vulnerabilities that human auditors find difficult to identify. Although AI will not completely replace manual audits, it can greatly enhance audit efficiency and coverage. We are working to build a reliable AI system to protect blockchain users and help build a safer cryptocurrency ecosystem. While there is still a long way to go, the future is promising. We firmly believe that the blockchain industry will continue to benefit from the development of AI.

AI has huge potential in the field of blockchain security. By combining GPT and static analysis with AI technologies, we can detect potential vulnerabilities that human auditors find difficult to identify. We are constantly improving our AI scanning engine to provide the best results, working to build a reliable AI system to protect on-chain assets and project security. The AI scanning engine of MetaScan is an important step towards achieving this goal. Try MetaScan for FREE now.

Follow Us

Website: metatrust.io

Twitter: @MetaTrustLabs

Comments

All Comments

There are no comments yet, why not be the first?

Recommended for you

  • Spot gold continues to fall

    spot gold continues to decline, with the decline expanding to 2%, at $3315.49 per ounce.

  • BTC breaks through $93,500

    the market shows BTC has broken through $93,500, now trading at $93,506.58, with a 24-hour increase of 6.12%. The market is fluctuating greatly, please manage your risks.

  • U.S. strategic Bitcoin reserves may announce details in the coming weeks

    Trump signed an executive order in early March this year proposing to establish a national strategic reserve of Bitcoin and other tokens, and requested the Treasury Secretary to submit an evaluation report on the legality and feasibility of the plan within 60 days. With less than two weeks remaining until the 60-day deadline set by Trump's executive order, this means that more details about the US Bitcoin reserve will soon be disclosed. Market expectations for this may be one of the important catalysts for the recent rebound in cryptocurrency. In addition, any comments questioning the independence of the Federal Reserve have also had a positive spillover effect on Bitcoin.

  • Bitcoin's market share once rose to 64.67%, but now fell back to 64.30%

    On April 23rd, data, the Bitcoin dominance (BTC.D) briefly rose to 64.67% this morning, reaching a new high since February 2021, and is currently back at 64.30%. The high Bitcoin dominance indicates the quietness of the altcoin market, but it may also suggest that a bottom reversal is imminent. Based on historical data, when Bitcoin dominance surged above 60% in November last year, altcoins started a small bull market. In 2019 and 2021, Bitcoin dominance reached highs above 70%, followed by a broad and spectacular uptrend.

  • Spot gold breaks $3,500/ounce for the first time, setting a new record high

    spot gold soared, breaking through the $3500 per ounce integer mark for the first time, rising 2.14% intraday, and rising more than $870 year-to-date. 

  • BTC falls below $88,000

    market shows BTC has fallen below $88,000, now trading at $87,996.01, with a 24-hour increase of 0.68%. The market is fluctuating greatly, please be prepared for risk control.

  • Spot gold hits a new all-time high again, breaking through $3,450/ounce

    spot gold continued yesterday's upward trend, breaking through the $3450/ounce mark for the first time, rising 0.76% during the day, and accumulating over $820 in gains for the year. 

  • BTC breaks through $88,000

    market shows that BTC has broken through $88,000, now trading at $88,011.16, with a 24-hour increase of 1.23%. The market is volatile, please manage the risk.

  • BTC breaks through $88,000

    the market shows BTC breaking through $88,000, now reported at $88,059, a 24-hour increase of 4.25%, with significant market fluctuations, please manage risks.

  • Web3 data and AI company Validation Cloud completes $10 million in new round of financing

     Web3 data and AI company Validation Cloud announced a $10 million financing round from True Global Ventures. The company plans to use the funds to expand its AI products and achieve seamless access to Web3 data.