SuiAudit — An AI Audit Tool for Sui Move Smart ContractsSuiAudit:Sui 生態系的 AI 稽核工具

SuiAudit — An AI Audit Tool for Sui Move Smart ContractsSuiAudit:Sui 生態系的 AI 稽核工具

SuiAudit:Sui 生態系的 AI 稽核工具
In short摘要

SuiAudit is an offline AI audit tool for Sui Move contracts, built on Pure1, a 7B model fine-tuned to spot vulnerabilities without uploading your code.SuiAudit 是可離線執行的 Sui Move 智慧合約稽核工具,核心是專為找出漏洞而微調的 7B 模型 Pure1,程式碼不需上傳雲端。

What It Is

SuiAudit is an AI-driven audit tool for the Sui blockchain ecosystem, built to improve smart contract security and code quality using machine learning models. It combines AI with blockchain security auditing to help developers detect vulnerabilities and optimize Move language code. It is an emerging open-source project, and some of its infrastructure — SuiAudit Raw1 — has been released on GitHub for community contributions and reproducibility.

Sui is known for its high throughput and parallel execution, but the complexity of the Move language — object ownership, capabilities, dynamic fields — makes smart contracts prone to vulnerabilities, and so to financial losses and security risks. Those are the same features that took center stage when building an on-chain chat app at the Sui Bootcamp. Traditional auditing relies on human experts, which is costly, time-consuming, and unable to keep up with the rapid iteration of Web3 development. SuiAudit addresses that with automated, cost-effective auditing, optimized for small models that can run in resource-constrained environments and designed to run fully offline, so code need not be sent to a cloud service. The aim is to let small and medium-sized developers reach professional-level auditing rather than leaving it to large enterprises.

My Role

I worked on dataset collection and model training.

How It Works

The core product is SuiAudit Pure1, a small language model fine-tuned with extremely low resources and dedicated to smart contract auditing. It detects vulnerabilities, assesses code risks, and generates audit reports automatically.

  • Pure1 is fine-tuned specifically for Sui Move rather than adapted from a general-purpose code model.
  • The model is small enough to run offline in resource-constrained environments, so code is never uploaded to a cloud service.
  • The Walrus protocol is integrated for decentralized storage.
  • Users can upload code for real-time analysis, and POCs such as Sui Wallet Cleanup run inside the Sui ecosystem.
  • Experimental code is published as Kaggle notebooks, so other developers can compare Pure1’s performance against other LLMs.
  • At the 2025 Walrus Haulout Hackathon the team demonstrated how AI models can quickly generate risk assessment reports.

On the team’s own Sui-specific benchmark, Pure1 reached 31.4% accuracy, ahead of Claude Opus 4.5 (26.6%) and GPT-5.2 (17.2%).

The methodology and benchmark results are written up separately in the Pure1 research paper.

What’s Next

The plan is to expand from contract auditing to full blockchain network auditing, to bring in more AI techniques such as reinforcement learning, and to develop dedicated LLMs for handling complex ecosystems. Alongside that, the team intends to compile high-quality audit datasets, support hybrid manual-plus-automated auditing modes, and open a free online service. Possible directions include collaborating with the Sui Foundation to integrate into official toolchains, expanding to other chains such as Ethereum or Aptos, and launching paid advanced features such as real-time monitoring and custom rules. Because the work is open on GitHub and Kaggle, model improvements can come from the community, which could turn it into a crowdsourced audit platform.

這是什麼

SuiAudit 是為 Sui 區塊鏈生態系打造的 AI 驅動稽核工具,用機器學習模型提升智慧合約的安全性與程式碼品質。它把 AI 與區塊鏈安全稽核結合起來,協助開發者找出漏洞、優化 Move 語言程式碼。這是一個發展中的開源專案,部分基礎設施——SuiAudit Raw1——已發布在 GitHub 上,供社群貢獻與重現結果。

Sui 以高吞吐與平行執行著稱,但 Move 語言的複雜度——物件所有權、capability、動態欄位——讓智慧合約容易出現漏洞,進而造成財務損失與安全風險。這幾個特性,正是我在 Sui Bootcamp 做鏈上聊天應用時站上檯面的東西。傳統稽核依賴人類專家,成本高、耗時長,也跟不上 Web3 開發的快速迭代。SuiAudit 的做法是自動化、低成本的稽核,針對能在資源受限環境執行的小模型做優化,並設計成可完全離線執行,程式碼因此不需要送到雲端服務。目標是讓中小型開發者也能達到專業等級的稽核,而不是只有大型企業做得起。

我的角色

我負責資料收集與模型訓練。

如何運作

核心產品是 SuiAudit Pure1,一個以極低資源微調、專門用於智慧合約稽核的小型語言模型。它偵測漏洞、評估程式碼風險,並自動產生稽核報告。

  • Pure1 是專為 Sui Move 微調,而不是從通用程式碼模型改編而來。
  • 模型夠小,可在資源受限環境離線執行,程式碼因此從不上傳到雲端服務。
  • 整合 Walrus 協議做去中心化儲存。
  • 使用者可上傳程式碼進行即時分析,Sui Wallet Cleanup 這類 POC 則在 Sui 生態系內執行。
  • 實驗程式碼以 Kaggle notebook 發布,其他開發者可以自行比較 Pure1 與其他 LLM 的表現。
  • 在 2025 Walrus Haulout Hackathon 上,團隊展示了 AI 模型如何快速生成風險評估報告。

在團隊自建的 Sui 專屬基準上,Pure1 取得 31.4% 的準確率,領先 Claude Opus 4.5 的 26.6% 與 GPT-5.2 的 17.2%。

方法論與基準結果另外寫在 Pure1 的研究論文 裡。

接下來

計畫是從合約稽核擴展到整個區塊鏈網路的稽核,引入強化學習等更多 AI 技術,並開發專門處理複雜生態系的 LLM。除此之外,團隊打算整理高品質的稽核資料集、支援人工加自動的混合稽核模式,並開放免費線上服務。可能的方向包括與 Sui Foundation 合作整進官方工具鏈、擴展到 Ethereum 或 Aptos 等其他鏈,以及推出即時監控、自訂規則等付費進階功能。由於工作成果公開在 GitHub 與 Kaggle 上,模型的改進可以來自社群,這有機會讓它變成一個群眾外包的稽核平台。