Gate 发布了第二版 Gate Security Academy,与 Web3 安全提供商 GoPlus Security 共同制作。
本版本探讨了智能合约审计可以和不能确定什么,以及用户如何在审计报告之外评估项目的安全性。 Gate Security Academy是一个致力于加密行业不同类型安全问题的系列课程,借鉴用户在日常生活中可能遇到的真实案例,汇集了平台和安全提供商角度的见解。
安全是一种动态状态,而不是一张纸上的证书。
今年遭受黑客攻击的许多项目都已经接受了安全审核。有的甚至经过多次审核。这并不意味着审计毫无价值。这仅仅意味着审计可以回答的问题比大多数人想象的要窄得多。
审计报告描述了项目的特定版本,由特定团队在特定时间点进行审查。但合约可以升级,权限可以改变,项目所依赖的预言机和跨链桥也可以改变。新的攻击技术每周都会出现。
审计报告一旦交付,就开始过时。
更令人担忧的是多年前部署并当时成功通过审计的旧合同。现在正在大批量再次扫描这些合同。存在多年的合约中的深层漏洞有时可以在短短十多分钟内被发现。
在本期中,GoPlus Security 和 Gate Security 团队从安全提供商和交易平台的角度讨论了智能合约审计和漏洞检测。
为什么经过审计的项目仍然会遭到黑客攻击?用户应该如何阅读审计报告?交易平台在上币之前和之后会执行哪些检查?普通用户如何在签署交易前自行检查?
嘉宾介绍
GoPlus 合伙人 Adam: Adam 是 GoPlus 的合伙人及其安全研究所的负责人。
GoPlus Security 正在为 Web3 和 AI 构建第一个去中心化安全层。通过将区块链技术与前沿的人工智能安全解决方案相结合,为用户提供智能、高效、去中心化的安全产品和服务。
自 2022 年以来,GoPlus 已增长至每天 3000 万次 API 调用,帮助用户避免了近 1000 亿美元的潜在损失。
门禁保安团队: Gate的安全部门负责构建和维护平台的账户、交易和资产安全系统。该团队还定期处理涉及可疑帐户活动的用户申诉以及协助调查的请求。
Gate 成立于 2013 年,是首批承诺 100% 储备证明的主要交易所之一,目前为全球超过 6300 万用户提供服务。安全性是使这项业务成为可能的基础。通过 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.



