Web3 的 6 大攻击类型和经验教训

火星财经Published on 2022-04-24Last updated on 2022-04-24

Abstract

a16z 关于过去一年中最大黑客攻击的类型整理及其对 web3 安全的未来展望

web3的安全性在很大程度上取决于区块链做出承诺的特殊能力和对人类干预的弹性。但相关的最终性特征--交易通常是不可逆的--使这些软件控制的网络成为攻击者的诱人目标。事实上,随着区块链--作为web3基础的分布式计算机网络--及其伴随的技术和应用不断积累价值,它们成为了攻击者越来越垂涎的目标。

尽管web3与早期的互联网不同,但我们已经观察到了与以前的软件安全趋势的共同之处。在许多情况下,最大的问题仍然和以前一样。通过研究这些领域,防御者--无论是建设者、安全团队,还是日常的加密用户--可以更好地保护他们自己、项目和钱包免受潜在黑客的侵害。下面我们将介绍一些共同的主题和基于我们经验的预测。

追逐金钱

攻击者通常以投资回报最大化为目标。他们可以花费更多的时间和精力来攻击具有更多“总价值锁定”(TVL)的协议,因为潜在的回报更大。

资源最丰富的黑客组织更经常地攻击高价值系统。最具价值的新型攻击也更频繁地瞄准这些有价值的目标。

低成本攻击--如网络钓鱼--永远不会消失,而且我们预计在可预见的未来,它们会变得更加普遍。

弥补漏洞

随着开发人员从经过验证的攻击中学习,他们可能会改善Web3软件的状态,使其变得“默认安全”。通常情况下,这涉及到收紧应用程序接口,或API,使人们更难错误引入漏洞。

虽然安全问题始终是一项进展中的工作--而且可以肯定的是,没有什么东西是可以防黑客的--但防御者和开发者可以通过消除攻击者容易实现的目标来提高攻击成本。

随着安全实践的改进和工具的成熟,以下攻击的成功率可能会大幅下降:治理攻击、价格预言机操纵和重入错误。(下面会更详尽阐述)。

无法确保“完美”安全性的平台将不得不使用漏洞缓解措施来降低损失的可能性。这可以通过减少其成本效益分析的“好处”或上行部分来阻止攻击者。

对攻击进行分类

对不同系统的攻击可以根据其共同特征进行分类。定义的特征包括攻击的复杂程度,攻击的自动化程度,以及可以采取什么预防措施来防御它们。

以下是我们在过去一年最大的黑客攻击中看到的攻击类型的一个非详尽的列表。此外,还囊括了我们对当今威胁形势的观察,以及我们对web3安全未来发展的期望。

APT:顶级掠食者

专家对手,通常被称为高级持续性威胁(APTs),是安全领域的恶魔。他们的动机和能力千差万别,但他们往往很有钱,而且正如其名称所暗示的那样,具有持久性;不幸的是,他们很可能会一直存在。不同的APTs运行许多不同类型的操作,但这些威胁行为者往往最可能直接攻击公司的网络层以实现其目标。

我们知道一些先进的团体正在积极针对web3项目,我们怀疑还有一些人尚未被发现。最令人关注的APTs背后的人往往居住在与美国和欧盟没有引渡条约的地方,使他们更难因其活动而被起诉。最知名的APTs之一是Lazarus,这是一个朝鲜团体,联邦调查局最近认为它进行了迄今为止最大的加密黑客攻击。

例子:

Ronin验证器黑客

概况

谁:民族国家、资金雄厚的犯罪组织和其他先进的有组织团体。例子包括Ronin黑客(Lazarus,与朝鲜有广泛联系)。

复杂程度:高(仅适用于资源丰富的团体,通常在不会起诉的国家)。

自动化程度:低(主要是手动操作,有一些定制的工具)。

对未来的期望:只要APT能够使其活动盈利或达到各种政治目的,他们就会继续活跃。

针对用户的网络钓鱼:社会工程师

网络钓鱼是一个众所周知、无处不在的问题。钓鱼者试图通过各种渠道发送诱饵信息来诱捕他们的猎物,包括即时通讯工具、电子邮件、Twitter、Telegram、Discord和被黑的网站。如果你浏览你的垃圾邮件信箱,你可能会看到数以百计封邮件,诱使你泄露信息,如密码,或窃取你的金钱。

现在,web3允许人们直接交易资产,如代币或NFT,且几乎是即时的最终结果,网络钓鱼活动正在针对web3用户。这些攻击是没有什么知识或技术专长的人窃取加密货币牟利的最简单方法。即便如此,它们仍然是有组织的团体追求高价值目标的重要方法,或者是高级团体通过网站接管等方式发动广泛的、消耗钱包的攻击。

例子

直接针对用户的OpenSea网络钓鱼活动

BadgerDAO网络钓鱼攻击

概况

谁:任何人,从脚本新手到有组织的团体。

复杂程度:中低(攻击可以是低质量的“喷洒式”,也可以是超目标的,取决于攻击者所做的努力)。

自动化程度:中高(大部分工作可以自动化)。

对未来的期望:网络钓鱼很简单,而且网络钓鱼者倾向于适应--并绕过--最新的防御系统,因此我们预计这些攻击的发生率会上升。用户可以通过加强教育和意识、更好的过滤、改进的警告标语和更强大的钱包控制来更好的防御攻击。

供应链的脆弱性:最薄弱的一环

当汽车制造商发现车辆中存在有缺陷的部件时,他们会发布安全召回;这在软件供应链中也是一样的。

第三方软件库会引入巨大的攻击面。在web3之前,这早已是整个系统的安全挑战,例如去年12月的log4j漏洞,影响了大规模的网络服务器软件。攻击者会在互联网上扫描已知的漏洞,找到他们可以利用的未修补的问题。

导入的代码可能不是你自己的工程团队写的,但它的维护是至关重要的。团队必须监控其软件的组成部分是否存在漏洞,确保部署更新,并随时了解他们所依赖的项目的势头和健康状况。利用web3软件漏洞的真实和即时成本使得负责任地将这些问题传达给用户成为一种挑战。关于团队如何或在哪里以一种不会意外地将用户资金置于风险中的方式相互交流这些信息,目前还没有定论。

例子

Wormhole桥黑客

Multichain漏洞披露黑客

概况

谁:有组织的团体,如APTs,单独行动者,和内部人员。

复杂程度:中等(需要技术知识和一些时间)。

自动化程度:中等(扫描发现有问题的软件组件可以自动化;但当发现新的漏洞时,需要手动构建利用程序)。

对未来的期望:随着软件系统的相互依赖性和复杂性的提高,供应链的漏洞可能会增加。在为Web3安全开发出良好的、标准化的漏洞披露方法之前,机会性的黑客攻击也可能会增加。

治理攻击:选举窃取者

这是第一个上到该表单的加密具体问题。web3中的许多项目都包括治理,其中代币持有者可以提出并投票决定改变网络的建议。虽然这提供了一个持续发展和改进的机会,但它也为引入恶意建议打开了一扇后门,这些建议一旦实施,可能会破坏网络。

攻击者已经设计了新的方法来规避控制,征用领导权,并掠夺财富。治理攻击曾经是一种理论上的担忧,但现在已被证明可行。攻击者可以通过大规模的“闪电贷”来影响投票,就像最近发生在去中心化金融(DeFi)项目Beanstalk上的那样。导致提案自动执行的治理投票更容易被攻击者利用;而如果提案的颁布有时间延迟或需要多方的手动签署(例如,通过多签钱包),则较难成功。

例子

Beanstalk资金盗用

概况

谁:任何人,从有组织的团体(APTs)到独立行为者。

复杂程度:从低到高,取决于协议。(许多项目都有活跃的论坛、Twitter和Discord上的社区,以及授权仪表板,可以很容易地暴露出更多的业余尝试)。

自动化程度:从低到高,取决于协议。

对未来的期望:这些攻击高度依赖于治理工具和标准,特别是与监测和提案颁布过程有关的。

定价预言机攻击:市场操纵者

准确地为资产定价是很难的。在传统的交易领域,通过操纵市场人为地抬高或压低资产价格是非法的,你可能因此被罚款和/或逮捕。在DeFi中,它使得随机个人有能力“闪电交易”数亿或数十亿美元,造成价格的突然波动,而且这个问题很明显。

许多web3项目依靠“预言机”--提供实时数据的系统,是链下信息的来源。例如,“预言机”经常被用来确定两种资产之间的交换价格。但攻击者已经找到了愚弄这些所谓真相来源的方法。

随着预言机标准化的进展,链下和链上世界之间将有更安全的桥梁可用,我们可以期待市场对操纵企图变得更具弹性。如果运气好的话,有一天这类攻击有可能会完全消失。

例子

Cream市场操纵

概况

谁:有组织的团体(APTs)、个人行为者和内部人员。

复杂程度:中等(需要技术知识)。

自动化程度:高(大多数攻击可能涉及自动化检测可利用的问题)。

对未来的期望:随着准确定价的方法变得更加标准,这类攻击可能会减少。

新颖漏洞:未知的不确定因素

“零日”漏洞--又叫零时差攻击,是指被发现后立即被恶意利用的安全漏洞--是信息安全领域的一个热点问题,在Web3安全领域也不例外。因为它们是突然出现的,所以是最难抵御的攻击。

如果有的话,web3使这些昂贵的、劳动密集型的攻击更容易获益,因为一旦加密货币资金被盗,人们就很难将其追回。攻击者可以花大量时间研究运行在链上应用程序的代码,找到一个可以证明他们所有努力的漏洞。同时,一些曾经新颖的漏洞继续困扰着毫无戒心的项目;曾使早期以太坊企业TheDAO丧生的重入漏洞,今天依旧在其他地方重新出现。

目前还不清楚这个行业能够多快或多容易地适应这些类型的漏洞,但对安全防御的持续投资,如审计、监控和工具,将增加攻击者寻求利用这些漏洞的成本。

例子

Poly跨链交易漏洞

Qubit无限铸币漏洞

概况

谁:有组织的团体(APTs),单一行动者(不太可能),以及内部人员。

复杂程度:中高(需要技术知识,但并非所有的漏洞都复杂到人们无法理解)。

自动化程度:低(发现新的漏洞需要时间和精力,不可能自动化;一旦发现,扫描其他系统的类似问题就比较容易)。

对未来的期望:更多的关注吸引了更多的白帽,使发现新漏洞的“门槛”更高。同时,随着web3应用的增加,黑客们寻找新漏洞的动机也在增加。这可能仍然是一场猫鼠游戏,就像它在许多其他安全领域一样。

Related Reads

To Hike or Not Tonight: Economists Unanimous on 'No', Markets Price in a 30% Chance

Federal funds futures are repricing ahead of the July FOMC decision, as traders pay a higher premium for the risk of a surprise rate hike or more hawkish signals. This contrasts with economists, where a Reuters survey of 104 analysts unanimously expects rates to remain unchanged at 3.50%-3.75%, with 78 foreseeing no change through year-end. Yet, futures markets have priced in about a 30% probability of a 25-basis-point hike. The core debate, especially under new Fed Chair Kevin Warsh, centers on how the Fed will respond to the oil price shock from Middle East tensions. The market is not necessarily predicting a hike tonight but is hedging against two tail risks: an immediate rate increase, or a hold combined with communication that seriously opens the door for a September hike. This hedging activity has driven up open interest in Fed funds futures. Analysts are divided on how to weight the oil price surge in the Fed's reaction function. Hawkish voices (e.g., BofA) worry that completely dismissing the price pressure could challenge the Fed's inflation credibility in Warsh's first major test. Dovish views (e.g., Citi) argue the shock is primarily supply-driven and that overreacting with rate hikes could unnecessarily hurt growth, unless clear signs of secondary inflation emerge. Warsh's new tenure amplifies policy path uncertainty, as markets lack a stable baseline for his communication style. This environment forces traders to price in a wider range of outcomes, explaining the divergence between unanimous economist forecasts and market hedging. The key focus will be on Warsh's post-meeting commentary. If he downplays the oil shock and stresses anchored long-term expectations, hawkish pricing may recede. If he emphasizes the risk of broader price spillovers and prioritizes returning to 2% inflation, the market will interpret this as reopening the door for a September hike. This would sustain support for the USD, keep pressure on JPY (testing intervention thresholds), and challenge risk assets like stocks and crypto through higher discount rates and weaker sentiment. The baseline remains no action in July, but the communication will determine how far this repricing extends.

marsbit34m ago

To Hike or Not Tonight: Economists Unanimous on 'No', Markets Price in a 30% Chance

marsbit34m ago

The Semiconductor Industry's Most Obscure Chokepoint Material: It Has Multiplied in Price Unnoticed, and China Just Banned Its Export

"Helium: The Silent Choke Point in Semiconductors" Helium, despite being the universe's second most abundant element, is critically scarce on Earth. It cannot be synthesized artificially and escapes Earth's gravity once released, making it a non-renewable resource. Yet, it is indispensable for advanced semiconductor manufacturing, requiring ultra-high purity (99.9999%) for processes like wafer etching, leak detection, and thermal management in lithography tools, with no viable substitutes. This low-profile resource, whose price has doubled unnoticed, suddenly gained attention when China imposed an export ban on July 10th. The ban is a response to a severe global shortage triggered months earlier. In March, missile attacks damaged the world's largest helium production hub in Qatar's Ras Laffan, halting a third of global supply with repairs expected to take 3-5 years. Concurrently, Russia tightened export controls, and the US sold off its federal helium reserve. Approximately 200 specialized transport containers, each worth ~$1 million, were stranded with perishable cargo. Global spot prices skyrocketed, and chipmakers like TSMC warned of potential impacts. China, which imports over 84% of its helium (primarily from Qatar and Russia), faces a severe squeeze. Despite being helium-poor, China has developed domestic extraction technology over five years, processing byproduct gases from LNG plants to produce ultra-pure helium. Domestic output, while still only covering less than 20% of demand, enabled the recent export ban aimed at securing domestic supply for its own expanding chip industry. The industry now faces "Helium Shortage 5.0." With key global sources constrained for years, this invisible gas—once wasted on party balloons—has become a critical, geopolitically charged bottleneck for chips, healthcare (MRI machines), and beyond, forcing the world to finally treat it as the finite strategic resource it is.

marsbit1h ago

The Semiconductor Industry's Most Obscure Chokepoint Material: It Has Multiplied in Price Unnoticed, and China Just Banned Its Export

marsbit1h ago

Early Investor of Unitree Bets on a Brain-Computer Interface Company

"Wabo Technologies, a brain-computer interface (BCI) startup, has secured new funding from Vertex Ventures (under Temasek), Hongtai Fund, Chengdu Future Industry Fund, and Huifengda Capital. Vertex Ventures is known for its early bet on Unitree Robotics. Inspired by the sci-fi film "Avatar," founder Zhang Xingzhi has pursued human-machine interaction for over a decade. He established Wabo in late 2025, coinciding with China's push for BCI as a future industry. Unlike companies focused solely on medical hardware, Wabo positions itself as a model company. Its core mission is to develop a "Human Neural Intent Model" that decodes EEG, EMG, and behavioral signals to understand a user's goals, confirmations, corrections, and stop intentions before physical action, translating them into standardized control signals for machines, robots, or smart devices. The young, full-stack team, backed by academic collaborators from Tianjin University and Fudan University, quickly attracted investors. The company had previously raised a seed round from Ceyuan Capital. Investors were impressed by Wabo's systematic capabilities in data collection, signal processing, and engineering, seeing potential beyond a single hardware product toward a reusable layer of human intent interpretation. Applications span medical rehabilitation, smart homes, embodied AI, and even space exploration, with Wabo partnering with Tianjin University on pioneering "space BCI" research. Wabo plans a dual-headquarters strategy, with Shanghai focusing on high-end R&D and model development, and Chengdu handling hardware, product development, and supply chain. The BCI sector in China is heating up, with over 30 financing deals in early 2026. Zhang believes future competition will center on who can build a sustainable data-model-scenario loop. He predicts industry consolidation within three years, with only companies that master this闭环 surviving. The vision from "Avatar" is inching closer to reality."

marsbit1h ago

Early Investor of Unitree Bets on a Brain-Computer Interface Company

marsbit1h ago

Trading

Spot
活动图片