跳到主内容
精选85Hacker News Best(web_list)技巧与观点

漏洞传闻即可被AI利用,开源安全流程亟需变革

仅凭漏洞传闻即可找到利用途径

原文
推荐理由

开源维护者和安全工程师必读,这篇一手实践复盘揭示了AI时代漏洞利用的新现实,并给出了可落地的应对思路,值得收藏并据此调整自己的安全流程。

I released a security fix for OCaml's cohttp 6.3.0 today, fixing a path traversal issue. The patch itself was straightforward and in normal times, the security procedure would have been to fix it privately, inform affected users, and then issue a public advisory. This time around though, I noticed probes in my live webserver logs with the exact bug pattern just minutes after opening the PR to fix the issue.

我今天为OCaml的cohttp 6.3.0发布了一个安全修复,修复了一个路径遍历问题。补丁本身很简单,在平常时期,安全流程应该是私下修复、通知受影响的用户,然后发布公开公告。但这次,在我打开修复该问题的PR后仅几分钟,我就在实时Web服务器日志中注意到了带有确切漏洞模式的探测。

What's worse, I found I could use my own agents to find the exploit just by knowing roughly what it was about and so could have been exploiting it well before the public patch was available! Given that just the rumour of a security issue seems enough to give attackers enough info to find new exploits, we're going to need to change the way we deal with security responses in open source.

更糟糕的是,我发现我可以用自己的代理仅凭大致了解就能找到漏洞利用方法,因此本可以在公开补丁发布之前就利用它!鉴于仅仅一个安全问题的传闻似乎就足以给攻击者提供足够的信息来发现新的漏洞利用,我们将需要改变我们在开源中处理安全响应的方式。

1 The rumour of a bug is all new agentic exploit systems need

1 漏洞的传闻就是新型代理型漏洞利用系统所需的一切

This particular report arrived privately on a Slack channel via Jane Street last week, and was itself found via Claude Fable. That compresses all timelines considerably...

这个特定的报告上周通过Jane Street私下到达了一个Slack频道,并且本身是通过Claude Fable发现的。这大大压缩了所有时间线……

1.1 The timeline of a modern security report

1.1 现代安全报告的时间线

Before examining the patch in detail, I pointed my own Claude at the affected code to see what else was lurking (asking it to investigate path normalisation issues). Fable frustratingly refused outright due to its security block since I don't have access to Glasswing, but DeepSeek V4 Pro obliged me and independently turned up several related issues. My agent also trivially created an exploit to probe a local live server in under a minute.

在详细检查补丁之前,我将自己的Claude指向了受影响的代码,看看还有什么潜伏的问题(要求它调查路径规范化问题)。Fable由于安全封锁而令人沮丧地直接拒绝了,因为我无法访问Glasswing,但DeepSeek V4 Pro满足了我的要求,并独立发现了几个相关问题。我的代理还轻松地在一分钟内创建了一个漏洞利用程序来探测本地实时服务器。

After some back and forth with the bug reporter about possible fixes, I quietly opened cohttp#1145 publicly to get more eyes on it. This normally takes a few days and a release within a week or two is reasonable. Within about ten minutes (!) this website was fielding probes for percent-encoded traversal sequences, indicating that automated watchers are keeping an eye on public repositories.

在与漏洞报告者就可能的修复方案进行了一些来回讨论后,我悄悄公开了cohttp#1145以获取更多关注。这通常需要几天时间,在一两周内发布版本是合理的。大约十分钟内(!)这个网站就收到了针对百分号编码遍历序列的探测,表明自动化监视器正在关注公共仓库。

If it took me just a minute to create my own exploit locally, then ten minutes actually seems quite long for an automated attack window to start! A determined attacker who is monitoring package repositories could easily be exploiting them within seconds.

如果我本地创建自己的漏洞利用只需一分钟,那么十分钟对于自动化攻击窗口开始来说似乎相当长了!一个决心坚定的攻击者如果监控包仓库,完全可以在几秒钟内利用它们。

1.2 Security embargoes are no longer effective

1.2 安全禁运不再有效

Conventional security process involves embargoing the bug, and assumes that secrecy of the details protects users. However, all an agent needs today is a broad direction to search in, and it can do its own research. Fang et al. found that when given a CVE description, their GPT-4 agent exploited 87% of a 15-vulnerability benchmark, and without the description, just 7%.

传统安全流程涉及对漏洞进行封锁,并假设细节的保密能保护用户。然而,如今智能体只需一个大致方向进行搜索,便能自行研究。Fang等人发现,当提供CVE描述时,他们的GPT-4智能体在15个漏洞基准中利用了87%,而没有描述时,仅为7%。

Two years on, the mean time to exploit is -7 days. In other words, exploitation now precedes the patch! That same metric looks to be around 63 days in 2018-19, and crossed zero in 2024. A quick search finds lots of other similar cases these days... marimo's CVE-2026-39987 went from advisory to first exploitation attempt in 9 hours, even with no public proof-of-concept in existence. Langflow's CVE-2026-33017 took 20 hours. We seem to have crossed the rubicon for automated exploit generation...

两年后,平均利用时间变为-7天。换句话说,利用现在先于补丁出现!同样的指标在2018-19年约为63天,并在2024年跨越了零点。快速搜索发现,如今许多类似案例……marimo的CVE-2026-39987从公告到首次利用尝试仅用了9小时,即使没有公开的概念验证。Langflow的CVE-2026-33017则用了20小时。我们似乎已经跨过了自动化漏洞利用生成的卢比孔河……

The state of LLM exploitation in 2026 (source: Vulncheck)

2026年LLM利用状况(来源:Vulncheck)

2 Are the bugonomics against OSS maintainers now?

2 现在漏洞经济学是否对OSS维护者不利?

It looks to me like our security processes need to invert somewhat, since just one person searching for the issue class (this could be a mailing list question, an odd commit in an orphan branch, or a context leak) is sufficient to alert someone else's agent and let them get exploit code. This is wild.

在我看来,我们的安全流程需要某种程度上的反转,因为只需一个人搜索该问题类别(可能是邮件列表中的问题、孤儿分支中的异常提交或上下文泄露),就足以提醒他人的智能体并让其获得利用代码。这真是疯狂。

A May 2026 paper coined the term "bugonomics" and argues that the bottleneck has moved to "defender remediation throughput". LLMs are merrily generating exploits, but our ability to defend against them isn't necessarily improving as maintainer validation, triage and release rates stay flat. This unfortunately matches the view from my OSS maintainer's chair:

2026年5月的一篇论文创造了“漏洞经济学”一词,并认为瓶颈已转移到“防御者修复吞吐量”。LLM正在愉快地生成漏洞利用,但我们防御它们的能力未必在提升,因为维护者的验证、分类和发布速率保持不变。不幸的是,这与我作为OSS维护者的视角相符:

The question is not whether frontier models, open-weight models, or program analysis "win". The question is how to orchestrate them so that scarce validation, prioritization, and release capacity goes toward durable fixes rather than mechanical search and report drafting. A central defender opportunity is technical debt remediation: semantics-grounded, tool-verified, model-assisted workflows that help maintainers find, validate, prioritize, and fix security-relevant defects before they become tomorrow’s exploited vulnerabilities. -- Demystifying the Mythos or Disrupting Bugonomics?, Pesoli et al, 2026

问题不在于前沿模型、开放权重模型或程序分析谁“胜出”。问题在于如何编排它们,使稀缺的验证、优先级排序和发布能力用于持久修复,而非机械搜索和报告起草。防御者的核心机会是技术债务修复:基于语义、工具验证、模型辅助的工作流程,帮助维护者在安全相关缺陷成为明日被利用的漏洞之前,发现、验证、排序并修复它们。——《揭秘神话还是颠覆漏洞经济学?》,Pesoli等人,2026年

And why are maintainer capabilities staying flat? Well, not having access to frontier agents like Mythos is an obvious one, but also that the engineering of a security patch that doesn't cause any regressions is just fundamentally more work.

为什么维护者的能力停滞不前?嗯,无法使用像Mythos这样的前沿智能体是一个明显原因,但同样,工程上制作一个不引起任何回归的安全补丁本质上工作量更大。

3 So what the hell can we do about this?

3 那我们到底能对此做些什么呢?

We clearly need to adapt fairly quickly. I don't think the current manual triage process should disappear, but I have seen an unsustainable surge of activity since Fable came out. We are only just beginning to get a handle on how much of the incoming firehose is machine-generated, but it's obviously a lot.

我们显然需要相当迅速地适应。我认为当前的人工分诊流程不应消失,但自从Fable发布以来,我看到了不可持续的活动激增。我们才刚刚开始掌握有多少传入的“消防水管”数据是机器生成的,但显然数量巨大。

The big engineering shops (like Google) have been building microupdates directly into their software to ensure that fixes directly reach users as a priority over (e.g.) being fixed in the Chrome code repository. We don't really have that kind of luxury in Docker or OCaml, as we don't control the endpoints our software is used in. Aside from Docker Desktop, downstream distributions quite rightly repackage OSS on their own timescales and terms.

大型工程公司(如Google)一直在其软件中直接构建微更新,以确保修复直接优先到达用户,而不是(例如)在Chrome代码仓库中修复。我们在Docker或OCaml中并没有这种奢侈,因为我们不控制软件使用的端点。除了Docker Desktop之外,下游发行版理所当然地按照自己的时间表和条款重新打包开源软件。

For smaller projects like OCaml, just gaining access to the frontier models is a struggle. The Western models have security guards in place which mean that we can't use the commercially available ones. Project Glasswing has expanded to 150 organisations across 15 countries including critical infrastructure operators, cloud and financial providers, the Linux Foundation, but 'mom and pop' maintainers still don't have access. I was ambivalent back in April whether this is harmful, but it's pretty obvious today that it's turning out pretty terribly.

对于像OCaml这样的小型项目,仅仅获得前沿模型的访问权限就已经很困难了。西方模型设有安全防护措施,这意味着我们无法使用商业可用的模型。Project Glasswing已扩展到15个国家的150个组织,包括关键基础设施运营商、云和金融提供商、Linux基金会,但“夫妻店”维护者仍然没有访问权限。四月份时我对这是否有害还持矛盾态度,但今天很明显,结果相当糟糕。

3.1 Super sekrit private patch development

3.1 超级秘密的私有补丁开发

The first remediation is to develop the fixes somewhere really private out of the reach of AI. GitHub's temporary private forks nominally do this, but it doesn't work hugely well for us.

第一种补救措施是在AI无法触及的非常私密的地方开发修复。GitHub的临时私有分支名义上做到了这一点,但对我们来说效果并不理想。

First, GitHub restricts it "to keep information about vulnerabilities secure, integrations, including CI, cannot access temporary private forks" which immediately disconnects the maintainer from the lifeblood of our CI results. Secondly, only a single PR can merge into the fork, which doesn't work well for issues that often span a few repositories. Reviewers also have to be enrolled one at a time by an admin, and in open-source land reviewers are kind of drive-by depending on who is available (especially in August!).

首先,GitHub限制它“为了保持漏洞信息的安全,集成(包括CI)无法访问临时私有分支”,这立即切断了维护者与我们CI结果的生命线。其次,只有一个PR可以合并到分支中,这对于经常跨越多个仓库的问题来说效果不佳。审阅者还必须由管理员逐一注册,而在开源领域,审阅者往往是随机的,取决于谁有空(尤其是在八月!)。

More broadly though, this plugs the wrong leak. The patch staying secret isn't nearly as important as ensuring the description about the issue reaches exactly the right people with no leakage to attackers.

更广泛地说,这堵错了漏洞。补丁保密远不如确保关于问题的描述准确到达正确的人,且不泄露给攻击者重要。

We don't have robust discussion infrastructure available within OSS as it's spread through various end-to-end encrypted ones (we use Matrix) but also shared infrastructure like Discord or Slack which are extremely leaky. We do need some sort of web-of-trust to distinguish the good guys from the bad in a particular project context.

我们在开源软件(OSS)内部缺乏健全的讨论基础设施,因为它分散在各种端到端加密的平台上(我们使用Matrix),同时也依赖于像Discord或Slack这样极易泄露信息的共享基础设施。我们确实需要某种形式的信任网络,以便在特定项目背景下区分好人与坏人。

3.2 No embargoes, just ship continuously

3.2 不设禁运,持续发布

Another thing we could do is to rapidly fix issues in public, ship continuously, and improve the release path via better automation.

我们还可以做的另一件事是,在公开场合快速修复问题,持续发布,并通过更好的自动化改进发布流程。

Bigger projects like Chrome show this is possible via weekly security updates, two releases per week (!), and dynamic patching that swaps background processes for updated binaries without a restart. This isn't entirely new technology; I looked into integrating live ksplice Linux patching with Xen 15+ years ago. The Linux kernel also ships fixes as soon as possible, deferring at most seven days and exceptionally fourteen.

像Chrome这样的大型项目表明,通过每周安全更新、每周两次发布(!)以及无需重启即可将后台进程替换为更新二进制的动态修补,这是可行的。这并非全新的技术;15多年前我就研究过将实时Ksplice Linux修补与Xen集成。Linux内核也尽可能快地发布修复,最多延迟七天,特殊情况下延迟十四天。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近