Gate 發布了第二版 Gate Security Academy,與 Web3 安全供應商 GoPlus Security 共同製作。
本版本探討了智慧合約審計可以和不能確定什麼,以及使用者如何在審計報告之外評估專案的安全性。 Gate Security Academy是一个致力于加密行业不同类型安全问题的系列课程,借鉴用户在日常生活中可能遇到的真实案例,汇集了平台和安全提供商角度的见解。
安全是一種動態狀態,而不是一張紙上的憑證。
今年遭受駭客攻擊的許多項目都已經接受了安全審核。有的甚至經過多次審核。這並不意味著審計毫無價值。這只意味著審計可以回答的問題比大多數人想像的要窄得多。
審計報告描述了專案的特定版本,由特定團隊在特定時間點進行審查。但合約可以升級,權限可以改變,專案所依賴的預言機和跨鏈橋也可以改變。新的攻擊技術每週都會出現。
審計報告一旦交付,就開始過時。
更令人擔憂的是多年前部署並當時成功通過審計的舊合約。現在正在大批量再次掃描這些合約。存在多年的合約中的深層漏洞有時可以在短短十多分鐘內被發現。
在本期中,GoPlus Security 和 Gate Security 團隊從安全提供者和交易平台的角度討論了智慧合約審計和漏洞檢測。
為什麼經過審計的專案仍然會遭到駭客攻擊?用戶應該如何閱讀審計報告?交易平台在上幣之前和之後會執行哪些檢查?普通用戶如何在簽署交易前自行檢查?
嘉賓介紹
GoPlus 合夥人 Adam: Adam 是 GoPlus 的合夥人及其安全研究所的負責人。
GoPlus Security 正在為 Web3 和 AI 建立第一個去中心化安全層。通过将区块链技术与前沿的人工智能安全解决方案相结合,为用户提供智能、高效、去中心化的安全产品和服务。
自 2022 年以來,GoPlus 已成長至每天 3,000 萬次 API 調用,幫助用戶避免了近 1,000 億美元的潛在損失。
門禁保全團隊: Gate的安全部門負責建置和維護平台的帳戶、交易和資產安全系統。該團隊還定期處理涉及可疑帳戶活動的用戶申訴以及協助調查的請求。
Gate 成立於 2013 年,是首批承諾 100% 儲備證明的主要交易所之一,目前為全球超過 6,300 萬用戶提供服務。安全性是使這項業務成為可能的基礎。透過 Gate Security Academy,Gate 旨在解釋使用者可能遇到的真實安全風險背後的常見機制。
Q1.為什麼這麼多項目在通過安全審核後仍然遭到駭客攻擊或權限濫用?
GoPlus 合夥人 Adam:
一次性審核並不意味著專案將永遠保持安全。傳統的智能合約審計服務現在面臨四個結構性限制。
基於快照的評論。 審計本質上是安全工程師在特定時間點進行的半手動檢查。其有效性取決於工具的品質、審核員個人的專業知識及其工作條件。但合約程式碼可以升級,管理權限可以更改,配置參數可以調整。從提交一次性審計報告的那一刻起,它就開始變得過時了。
無法預測未來的威脅。 新的漏洞類型和攻擊技術不斷出現。歷史審計無法涵蓋尚未出現的風險。
不受控制的外部依賴。 專案通常依賴預言機、跨鏈橋和第三方協議。與這些依賴相關的風險變化超出了傳統審計的範圍。
舊合約中出現的漏洞。 幾年前部署並通過了當時審核的合約現在正在使用自動化工具進行批量掃描,以發現以前未檢測到的漏洞。例子包括已建立的 DeFi 協定中的深層漏洞,這些漏洞在正式發布後多年仍未被發現。
至於濫用特權,在運行階段比在合約程式碼本身中更常見。
常見原因包括過多的所有者權限,例如可以隨意鑄造代幣、將地址列入黑名單或暫停交易;管理員私鑰受損;多重簽名管理不當;惡意提議;和治理攻擊。
這些都是在持續操作過程中可能出現的安全性問題。
即使審計報告識別出與權限相關的風險,事後由誰來監控這些權限?又由誰來決定後續的行動是否安全合理?傳統的審計無法回答這些問題。
審核後啟動合約只是安全工作的開始,而不是結束。
專案需要的是整個合約生命週期的持續安全,而不是一次性的審計報告。
門禁保全團隊:
審計可以告訴使用者程式碼能夠做什麼,但不能告訴他們專案團隊打算做什麼。
這是我們從多年的代幣上市審查中學到的最重要的教訓之一。
很多事件的根源在於專案團隊的意圖。
合約可以在技術上相容,並在正常參數內設計所有者權限,但專案團隊仍然可以選擇特定時刻來行使這些權限:更改交易規則、啟用黑名單或鑄造額外的代幣。
從程式碼的角度來看,這些操作是完全合法的。審計報告不一定會將它們標記為漏洞,因為它們是合約預期設計的一部分。
這就是技術審核需要額外一層保障措施的原因。
在Gate,我們在代幣上幣過程中進行嚴格的專案篩選和審核。我們也要求專案團隊簽署承諾不從事惡意行為的聲明,並監督他們對這些承諾的遵守情況。
這個附加層旨在解決稽核無法解決的問題:不存在程式碼漏洞並不能保證專案團隊永遠不會做出損害使用者的決策。
對於已經上線的項目,我們會定期進行安全審計,並使用鏈上事件監控來追蹤合約狀態。
用戶還可以隨時查看特定合約當前的風險指標。
Q2。如果一次性審計不能保證持久的安全性,專案團隊和產業應該如何適應?
門禁保全團隊:
加密產業有一個結構性特徵:其很大一部分業務,尤其是 DeFi,運作方式很像模組化金融。
不同的平台是由共享元件建構的,包括合約、軟體庫、錢包、價格預言機、跨鏈橋、連接提供者、Web 介面和用於分發更新的系統。
這意味著問題不僅在於專案本身的合約是否安全,還在於它所依賴的每個元件是否仍然可靠。
如果上游組件發生故障,損失可能會蔓延到整個依賴鏈。
回顧重大攻擊,問題往往源自於協議核心邏輯之外的某個地方:供應商、開發工具、軟體到達使用者的方式,或使用者批准轉帳的過程。
GoPlus 合夥人 Adam:
一種新的攻擊模式已經形成並正在迅速傳播:駭客使用自動化工具有效地發現漏洞。
攻擊已從專家進行的手動研究演變為流水線過程。
如果該行業的做法仍然僅限於在發布前聘請審計公司出具報告,或者僅在發現問題後才致電安全公司,那麼就像試圖用弓箭對抗機槍一樣。
唯一有效的方法是使用同樣有效的工具來應對這些攻擊。
在產業層面,必要的轉變是從一次性審計或被動的專家介入轉向整個生命週期的持續安全。
以GoPlus DeepScan的三部分智慧合約安全解決方案為例。它提供了一種實用的閉環方法。
上線前-Token安全自檢: 幾分鐘內快速識別潛在的後門風險,包括蜜罐代幣、惡意鑄幣功能、黑名單、異常交易稅、過度所有者權限等。
發佈時-人工智慧智能合約審計: 對來源碼、權限管理、業務邏輯進行深入分析;掃描語法和業務邏輯層級的漏洞;並提交結構化稽核報告。
啟動後-持續安全監控和定期檢查: 即時追蹤新發現的漏洞、攻擊事件以及涉及預言機、跨鏈橋、第三方協議等外部依賴的風險。持續評估專案是否受到影響,定期發布風險預警,並定期進行合約安全檢查和持續審計。
Q3。過去兩年漏洞發現發生了什麼樣的變化?當相同的資產保存在鏈上和交易所上時,安全模型有何不同?
GoPlus 合夥人 Adam:
坦白說,從短期來看,攻擊者現在有更多的方法來發現漏洞。
這有三個原因。
自動化工具顯著降低了漏洞發現的障礙。 以前需要頂級安全研究人員花費數週時間完成的工作,現在可以透過自動化攻擊管道在短短幾分鐘內完成。
鏈上有大量的舊合約多年前就通過了審計。 對攻擊者來說,這些合約代表著一個蘊藏潛在漏洞的巨大金礦。
攻擊者只需要成功利用一次。 找到一個漏洞就足以竊取資金,而防禦者必須防範每一個可能的漏洞。
駭客可能只需要幾分鐘就可以利用這些漏洞並竊取資金。但防禦者也可以在短短幾分鐘內發現相同的漏洞。
差別在於專案團隊是否先於駭客使用了正確的工具。
更重要的是,防禦者擁有攻擊者所沒有的三個結構性優勢。
先發優勢。 防御者可以在啟動之前和整個運營過程中反覆審查合約。攻擊者只能希望防禦者還沒有執行這些檢查。
成本優勢。 人工智慧審計可以按每次審計或按年訂閱的方式購買,這使得它們足夠實惠,適合日常和全面使用。
複合安全知識。 安全知識庫隨著每一次新的攻擊而不斷發展。這些防禦系統使用得越多,它們就會變得越強大。
在比較鏈上和鏈下模型時,誰保護您的資產以及您面臨的風險類型完全不同。
鏈上自我託管:安全性=私鑰安全+智能合約安全。
您全權負責安全。如果您的私鑰遺失或被盜,您無法向客戶支援團隊求助。
每次互動也會讓您面臨鏈上風險,包括審批漏洞、網路釣魚簽章和蜜罐令牌。
優點是您的資產不依賴任何平台的信譽。
交易所託管:安全=平台安全+帳戶安全。
私鑰由平台透過冷熱錢包分離、多重簽章控制、風險管理系統等機制管理。
實際上,您將技術安全外包給了交易所。
但是,您仍然需要透過安全密碼、雙重認證、網路釣魚預防和適當的 API 金鑰管理來保護您的交易帳戶。
選擇信譽良好的交易所也很重要。
總體而言,鏈上安全涉及私鑰保護和自身行為風險,而交易所安全涉及平台信任和安全基礎設施。
前者測試你對Web3安全的認知。後者既測試交易所的基礎設施,也測試你自己的帳戶安全習慣。
Q4。 Gate作為交易平台,在安全性方面做了哪些改進?
門禁保全團隊:
首先,我們對上市項目進行定期安全審計,並透過鏈上事件持續監控合約狀態。
無論是合約升級、權限發生變化,或是發生異常大額交易,都是需要持續關注的事情。
正如 Adam 所描述的那樣,代幣首次上市時進行的安全評估的保質期是有限的。
用戶還可以隨時查看特定合約當前的風險指標。
現在我們來談談平臺本身。
Gate 的安全漏洞賞金計畫仍然向世界各地的安全研究人員開放。
任何發現漏洞的人都可以透過三個管道向我們提交: sec@gate.com、支援票證或 HackenProof 平台。
我們期望專案團隊接受安全審查,我們也必須願意接受同樣的審查。安全要求不應是片面的。
討論完代幣和平台後,我們來談談帳戶安全。
我們的建議是不要尋找一個「最安全的地方」來儲存您的所有資金。根據需要使用資產的頻率來分離資產更為實用。
用於頻繁交易的資金可以保留在您的現貨帳戶中,以便於提取。您預計六個月或一年內不會移動的資產可以放置在 Gate Vault 中。
Gate Vault 使用 MPC 結合 2-of-3 簽章機制。
私鑰分為三份,分別由使用者設備、Gate和獨立第三方持有。
完整的私鑰在任何階段都不會重構,Gate 和獨立第三方都無法自行啟動交易。
所有傳出轉帳也可能延遲 48 小時才能完成。
這48小時作為用戶的安全緩衝期,在此期間用戶可以隨時凍結轉帳。
即使發生意外情況,延遲也能讓用戶有時間發現問題並停止傳輸。
另一個改進是 Gate帳戶安全保護計劃.
該計劃基於安全評分。
Previously, account security settings were scattered across different pages, including login verification, authenticator apps, two-factor authentication, passkeys, trading limits, and withdrawal limits.
Users often found it difficult to understand how much of their account security setup they had actually completed.
The Security Score brings these measures together into a score from 0 to 100.
Users can immediately see which protections they have enabled and which are still missing. When the score changes, the system also reminds users to strengthen their settings.
Users with a Security Score of 80 and an account in good standing can activate the protection plan.
Once activated, it provides an additional layer of protection after users have completed their own security measures.
During the coverage period, if assets are transferred out of an account without authorization, users may apply for compensation if the incident meets the applicable rules.
The current maximum coverage for a single incident is $200,000.
This limit will be increased, with tiered coverage based on VIP level reaching up to $1 million.
Applications must be submitted within 45 days of the incident through “My Protection” by contacting security customer support.
Required materials include a police report and records of the asset transfers.
Q5. What should a complete audit report include? How should security scores, key findings, and remediation recommendations be used?
Adam, Partner at GoPlus:
An audit report that can guide action, rather than simply be filed away, should contain at least four elements.
Security Score (Quantifiable Rating) — For Initial Screening, Not Final Conclusions
Project teams can use the score as a quantitative benchmark for internal security assessments and compare changes after each iteration.
Exchanges can use it for preliminary token listing reviews, filtering out projects that clearly fail to meet security requirements at the first stage.
Ordinary users can treat the score as an entry point: avoid projects with low scores, and examine the key findings of those with high scores.
Key Findings (High-Risk Issues and Core Conclusions) — For Decision-Making
This is the executive summary of the report.
It should identify which issues are severe enough to block a launch and must be fixed beforehand.
For managers without technical backgrounds and exchange listing review teams, understanding the key findings is often sufficient.
Issue Details (Vulnerability Evidence and Impact Analysis) — For Identifying Problems
This section is intended for technical teams.
It should include the precise vulnerability location, down to the contract, function, and line of code, as well as the vulnerability type, severity level, attack path, and root cause analysis.
Good issue descriptions should provide reproducible execution paths and triggering conditions, rather than simply listing problems.
Remediation Recommendations (Actionable Fixes) — For Closing the Loop
Recommendations must be specific, actionable, and detailed enough to implement at the code level.
After remediation, the contract should be rescanned and retested to verify the fixes.
Together, these steps form a complete closed loop: security scoring, key findings, issue details, remediation, and rescanning.
Gate Security Team:
Based on our experience developing contract auditing features, we would add three points.
First, the two sections most easily overlooked are often the ones that should come first: audit objectives and limitations, and the scope of the audit.
We have established nine dimensions for our reports: audit objectives and limitations, scope, severity matrix, priority assessment, vulnerability details, risk paths, threat modeling, key function analysis, and remediation recommendations.
But the first two determine whether readers will misunderstand the entire report.
If the limitations are not clearly stated, readers may assume the audit covers everything.
If the scope is unclear, readers cannot tell whether only the main contract was audited or whether the review also covered liquidity pools, strategy contracts, oracles, and external dependencies.
Many promotional materials simply say “Audited” without explaining what was actually audited.
Such a statement provides almost no useful information.
Second, when reviewing key findings, users should consider risks together, even if each individual feature does not qualify as a vulnerability.
Here is a common combination found in audit reports.
The contract owner can blacklist addresses and freeze assets.
Trading pairs can be reset, preventing ordinary users from transferring tokens.
Minimum holding requirements can prevent users from selling their entire balances.
A single owner can also change multiple critical rules at any time.
Viewed separately, these four features may all be considered normal design choices.
Taken together, however, they indicate that control over the contract is highly concentrated in the hands of one person.
Third, users should understand how the report was generated, because that determines the boundaries of its reliability.
Our contract auditing process has three stages.
The first is static analysis, which checks fundamental risks such as access control, reentrancy, price manipulation, flash loans, and logical consistency.
The second is business scenario modeling. We extract the contract’s core interaction scenarios, verify business paths and boundary conditions, and identify issues that rule-based scanning may miss.
The final stage is semantic verification. We examine critical business paths individually to confirm whether the risks identified in the first two stages are genuine.
The third stage is primarily intended to reduce false positives.
If an audit report is filled with false alarms, users quickly lose patience and may eventually skip the entire checking process.
That is why the false-positive rate directly determines whether a security tool will actually be used.
Q6. What practical security measures can ordinary users take right now?
Adam, Partner at GoPlus:
Check token security before trading.
Before buying a new token, examine its security risks.
Pay particular attention to potential backdoors such as honeypot tokens, malicious minting, blacklists, abnormal transaction taxes, and excessive owner privileges.
Regularly clean up contract approvals.
Revoke approvals granted to DApps you no longer use, especially unlimited approvals.
Many theft incidents originate from problems with contracts that users previously authorized.
Strengthen account security.
Use strong passwords and enable two-factor authentication.
Apply the principle of least privilege to API keys, and never grant withdrawal permissions to untrusted tools.
Make phishing prevention second nature.
Verify domain names before signing, avoid links sent through private messages, and be skeptical of airdrops, customer support messages, and promises of high staking returns.
Phishing content is becoming increasingly convincing, so users need to remain rational and alert at all times.
Separate assets according to their purpose.
Keep only small amounts needed for everyday use in hot wallets.
For substantial holdings, hardware wallets are recommended.
Do not put all your eggs in one basket.
Pay attention to a project’s approach to security, not just its audit reports.
Whether a project conducts continuous audits and maintains security monitoring mechanisms matters more than an audit report issued years ago.
Prioritize projects that take security seriously and are willing to disclose how their security systems are built and maintained.
Gate Security Team:
Adam’s six recommendations are already very comprehensive.
We would like to connect several of them with Gate’s tools and turn them into actions users can take immediately.
Check token security before trading.
Users can directly use Gate AI’s contract auditing feature.
Submit a contract address and receive a report within minutes.
Focus on four areas: owner privileges, blacklists and trading restrictions, minting permissions, and transaction taxes.
If any one of these four areas is flagged red, users should stop there. There is no need to look any further.
Strengthen account security by raising your Security Score above 80.
Fund passwords, authenticator apps, two-factor authentication, anti-phishing codes, passkeys, daily withdrawal limits, and withdrawal channel management are all included in the checklist.
Users simply need to follow the prompts and complete each item.
The greatest value of the Security Score is that it turns settings scattered across different pages into an organized checklist, so users do not have to decide for themselves which protection to enable first.
Reaching a score above 80 also allows eligible users to activate the Account Security Protection Plan, providing an additional layer of protection after they have strengthened their own account security.
Use two existing tools to protect against phishing.
If you receive a message claiming to be from Gate, first use our Official Verification Channel to check whether the domain or email address belongs to us.
All emails sent by Gate will include the Anti-Phishing Code you configured yourself. Any email missing that code should be treated as fake.
Check approval amounts carefully before signing.
A contract itself may be secure, but that does not mean the transaction a website asks you to sign is safe.
A legitimate DApp will usually request only the amount needed for a particular transaction.
If it immediately asks for unlimited approval, that alone is a reason to stop and think.
If a wallet pop-up displays nothing but a string of characters you cannot understand, refusing to sign is always safer than signing first and asking questions later.
Finally, it is worth emphasising that security is dynamic, not static.
Launching a project after an audit is only the beginning of security work.
For project teams, this means continuous monitoring after launch is more important than the audit report itself.
For trading platforms, it means that listing a token is only the beginning of the review process.
And for ordinary users, the few minutes spent checking a transaction before signing are among the lowest-cost security measures available, yet also among the easiest to overlook.
There is no such thing as a security certification that guarantees safety forever.
When every party takes one extra step, the balance shifts toward the defenders.
About Gate
Gate, founded in 2013 by Dr. Han, is one of the world’s leading cryptocurrency and integrated financial services platforms, spanning financial and everyday use cases including asset management, trading and payments. Serving over 63 million users globally, it supports trading across 5,400+ digital assets and 12,800+ stock assets and ETFs, while providing access to a comprehensive range of TradFi assets, including metals, stocks, indices, forex, and commodities to meet users’ end-to-end needs across asset holding, trading, and spending. As an industry benchmark, Gate was among the first platforms to implement 100% Proof of Reserves. Its ecosystem includes Gate Money, Gate Wallet, Gate Ventures, Gate for AI Agent, and a wide range of products and services.
Disclaimer:
This content does not constitute an offer, solicitation, or recommendation. You should always seek independent professional advice before making investment decisions. Note that Gate may restrict or prohibit certain services in specific jurisdictions. For more information, please read the User Agreement.
The post Gate Security Academy | Gate & GoPlus: How to Read Audit Reports and Identify Smart Contract Vulnerabilities appeared first on BeInCrypto.



