AI生成漏洞利用加速安全危机:PHP2Shell事件复盘
Is this the new cyber normal?
深度复盘AI如何改变攻防时间线,对安全从业者理解当前漏洞爆发逻辑极具参考价值。
23 October 2026 · 23 min read ·
2026年10月23日 · 阅读时间约23分钟 ·
Is this the new cyber normal?
这是否已成为新的网络常态?
#security#llms · Discuss on Y Combinator
#security#llms · 在 Y Combinator 上讨论
The last week has seen a flurry of severe and critical software vulnerabilities affecting thousands of major sites and sending people into a panic. What’s going on here, and what can we do about it?
过去一周,严重和关键的软件漏洞频发,影响了数千个主要网站,引发公众恐慌。这里究竟发生了什么,我们又能如何应对?
The bugs
这些漏洞
If we want to understand what’s going on in the world of software security at the moment, we need to understand what’s going on with all these bugs. I’m not a cybersecurity expert, so I’m going to link to external explanations instead of going into the gory technical details myself as these people are always going to do a better job at that.
如果我们想理解当前软件安全领域的状况,就需要了解这些漏洞的具体情况。我不是网络安全专家,因此我不会深入探讨那些晦涩的技术细节,而是链接到外部的解释文章,毕竟专业人士在这方面总是能做得比我更好。
PHP2Shell – CVE-2026-109618 and CVE-2026-109619 (a.k.a. “the big one in the news”)
PHP2Shell – CVE-2026-109618 和 CVE-2026-109619(即“新闻中的那个大漏洞”)
Two different security teams, one from California security company Calif (as part of OpenAI’s “Patch the Planet” program) and another from Israeli-U.S. cloud security company Wiz (they’re part of Google Cloud, apparently), both found these two Remote Code Execution (RCE) bugs in PHP. They were both using frontier AI models (a.k.a. LLMs, specifically GPT-5.6 Sol/Gemini 4 Argon) to find these vulnerabilities and build the exploits.
两个不同的安全团队——一个来自加州安全公司 Calif(作为 OpenAI “修补星球”计划的一部分),另一个来自以色列-美国云安全公司 Wiz(据称属于 Google Cloud)——都在 PHP 中发现了这两个远程代码执行(RCE)漏洞。他们均使用前沿 AI 模型(即 LLM,具体为 GPT-5.6 Sol/Gemini 4 Argon)来发现这些漏洞并构建利用工具。
Interestingly, one of the bugs (CVE-2026-109618) was found by a security audit the PHP Foundation did in 2024 (funded by the Sovereign Tech Agency which is coincidentally one of the most interesting things happening in the open source space at the moment) but they basically ignored it because they had bigger concerns and couldn’t agree on a fix. The reasoning behind it was that no-one could really figure out how to create an actual exploit based on the theoretical issue.
有趣的是,其中一个漏洞(CVE-2026-109618)早在 2024 年就由 PHP 基金会的安全审计发现(该审计由主权技术机构资助,巧合的是,这也是目前开源领域最引人注目的事件之一),但他们基本上忽略了它,因为他们有更紧迫的担忧且无法就修复方案达成一致。其背后的理由是,没有人真正弄清楚如何基于这一理论问题创建实际的利用工具。
One thing LLMs are very good at is taking a theoretical security vulnerability, even if that vulnerability is a vague description of what the issue could be, and building it into a full exploit. This has become a major issue in recent months as any notice of a security patch will immediately result in people pointing their LLMs at the codebase, whereupon the agents can very quickly read through diffs until they find something that looks like a security patch, then go backwards to the vulnerability it covers, and follow this all the way to an exploit.
LLM 非常擅长的一件事是:将理论上的安全漏洞(即使该漏洞仅是对问题可能性的模糊描述)转化为完整的利用工具。这在近几个月已成为一个重大问题,因为任何关于安全补丁的通知都会立即导致人们将 LLM 指向代码库;随后,智能体可以快速浏览差异文件,直到找到看似安全补丁的内容,然后回溯至其所覆盖的漏洞,并最终推导出完整的利用工具。
This happens so fast, in fact, that at this point I think it is a reasonable that the moment you announce a security patch should be taken as a last possible date that the full exploit is not being publicly or privately distributed.
事实上,这一过程发生得如此迅速,以至于我认为,如今一旦你宣布发布安全补丁,就该将其视为完整利用工具尚未被公开或私下分发的最后期限。
This PHP2Shell (as it’s being marketed, vulnerabilities seem to come bundled with their own marketing departments now) is estimated to affect upwards of 70% of the internet, with thousands of websites from Wikimedia Foundation to DeviantArt to much of the UK government and Japanese banking systems to The Traitors BBC programme website. Vulnerabilities do get found, but they don’t normally cause half the internet to shut their servers down, so what’s going on?
这款 PHP2Shell(正如它被营销的那样,漏洞似乎现在都自带自己的营销部门)估计会影响互联网上超过 70% 的网站,从维基媒体基金会到 DeviantArt,再到英国政府的大部分地区、日本银行系统以及 BBC 节目《叛徒》的网站,共有数千个网站受到影响。漏洞确实会被发现,但它们通常不会导致半个互联网关闭服务器,那么到底发生了什么?
To understand this, let’s look at the original post from the PHP Group:
为了理解这一点,让我们看看 PHP 小组的原始帖子:
Someone called petecooper posted on Hacker News about the CVEs, apparently unaware that there even was an embargo. This (and other apparent leaks) prompted this hurried statement from the PHP Group and bringing the patch forward from Thursday 22nd to Wednesday 21st. However, the patch still wasn’t going to be available till the next day. This unintentional leak included CVSS scores of 10.0 (i.e. bad, although weirdly the actual scores were 9.2 instead).
一个叫 petecooper 的人在 Hacker News 上发布了关于 CVE 的信息,显然他根本不知道存在保密期。这一事件(以及其他明显的泄露)促使 PHP 小组匆忙发表声明,并将补丁发布时间从周四 22 日提前至周三 21 日。然而,补丁直到第二天仍然不可用。这次无意中的泄露包括了 CVSS 评分为 10.0(即非常严重,尽管奇怪的是实际评分为 9.2)。
Pretty much immediately, this news spread like wildfire and people started panicking. Even though this was found by “responsible security researchers” at “respectable companies”, by the time the security patch actually got released, it was already being exploited in the wild1. The PHP Foundation blamed Calif and a company called Chainguard by saying that Calif leaked a video of the exploit in action (with weird background music and a dancing anime girl) while Chainguard published fixes 6 hours before the embargo was due to lift, both allowing attackers to beat the systems administrators to the punch. The timeline is confusing, but it seems like multiple interconnected things have gone wrong here, all within the space of about 17 hours.
几乎就在消息传出的同时,这则新闻像野火一样蔓延开来,人们开始恐慌。尽管这些漏洞是由“负责任的安全研究人员”在“知名公司”发现的,但等到安全补丁真正发布时,它已经在野外被利用了[1]。PHP 基金会指责 Calif 和一家名为 Chainguard 的公司,称 Calif 泄露了一段展示漏洞利用过程的视频(配有奇怪的背景音乐和跳舞的动漫女孩),而 Chainguard 则在保密期结束前 6 小时发布了修复方案,两者都让攻击者抢在了系统管理员前面。时间线令人困惑,但看起来大约 17 小时内发生了多个相互关联的错误。
There’s been lots of discussion about whether AI really is the game changer that completely revolutionises computer security or not. The big AI companies (and they are big) obviously want you to think that it is. Some people argue that PHP2Shell is overblown because LLMs tend to be paranoid about vulnerabilities and come up with “exploits” that make bad assumptions (like that the server will run PHP code you upload yourself via some existing file inclusion vulnerability) or cheat in some way. As LiveOverflow points out, LLMs make it very easy to create exploit slop that proves nothing and doesn’t work, but that doesn’t mean that the vulnerability isn’t real and easy to exploit using AI. You can have 10,000 bad slop exploits that don’t work but if there’s one that does, that’s all that matters. Maybe we just need to get used to wading through slop to find the important stuff now.
关于 AI 是否真的是彻底颠覆计算机安全的变革者,一直存在大量讨论。那些大型 AI 公司(而且它们确实很大)显然希望你认为它就是如此。有些人认为 PHP2Shell 被夸大了,因为大语言模型(LLMs)往往对漏洞过于敏感,并会提出基于错误假设的“利用方式”(例如假设服务器会运行你通过某些现有的文件包含漏洞上传的 PHP 代码),或以某种方式作弊。正如 LiveOverflow 所指出的,LLMs 使得创建毫无用处且无效的利用代码变得非常容易,但这并不意味着该漏洞不是真实的,也不意味着无法利用 AI 轻松对其进行利用。你可以拥有 10,000 个无效且无法工作的垃圾利用代码,但只要有一个能工作,那就足够了。也许我们现在只需要习惯在垃圾信息中筛选出重要内容。
Others point out that lots of governments (UK2, EU, Japan, USA) got overexcited and released urgent announcements saying everyone had to unplug their computers immediately, so people panicked. I think the reason everyone panicked is that everyone kind of knows that PHP is intensely insecure and they use it anyway, so they’re kind of primed for bad news and to overreact. Also, it actually is really quite bad, so maybe panicking is kind of the correct reaction?
另一些人指出,许多政府(英国、欧盟、日本、美国)过度兴奋,发布了紧急公告称每个人都必须立即拔掉电脑电源,导致人们陷入恐慌。我认为大家恐慌的原因是,每个人都知道 PHP 极其不安全,但仍然在使用它,因此他们某种程度上已经为坏消息做好了准备,并容易做出过度反应。此外,PHP 的问题实际上确实非常严重,所以也许恐慌是一种正确的反应?
The big takeaway for me from this is that – because of LLMs – the time from “hey I heard there’s a bad RCE in this project” to “there are sophisticated, automated, and concerted attacks using an exploit targeting this vulnerability” has gone from weeks/months to hours/minutes. The fact that there’s loads of non-working exploit slop just shows how genuine expertise is still required to make these things – if you don’t know what you’re looking at, you can’t tell whether the AI has cheated or made bad assumptions.
对我来说,这次事件最大的启示是——由于 LLMs 的存在——从“嘿,我听说这个项目有个严重的远程代码执行(RCE)漏洞”到“出现了针对此漏洞的复杂、自动化且协调一致的攻击”之间的时间,已经从数周/数月缩短到了数小时/数分钟。存在大量无法工作的垃圾利用代码这一事实,恰恰证明了要生成这些内容仍然需要真正的专业知识——如果你不知道自己在看什么,就无法判断 AI 是作弊了还是做出了错误的假设。
Links:
相关链接:
- Hacker News: “Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming” (petecooper, 20 Oct 2026)
- PHP2Shell – official website – why does every vulnerability need a name, slogan, and website now?
- Wiz Research: “PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet” – these are one of the companies who found the bugs.
- PHP News Archive: “Upcoming Critical PHP Security Release” (20 Oct 2026) – how The PHP Group announced the vulnerability. Note the timelines.
- Wikipedia: PHP2Shell – not too detailed but at least they’re not trying to sell you anything.
- AWS Security Blog: “Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot” – they are trying to sell you something, but they’re still doing some interesting analysis.
- Hacker News:“Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming”(petecooper,2026年10月20日)
- PHP2Shell – 官方网站 – 为什么现在每个漏洞都需要一个名字、口号和网站?
- Wiz Research:“PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet” – 这些公司是发现这些漏洞的公司之一。
- PHP News Archive:“Upcoming Critical PHP Security Release”(2026年10月20日)– PHP 团队如何宣布该漏洞。请注意时间线。
- Wikipedia:PHP2Shell – 细节不多,但至少他们没有试图向你推销任何东西。
- AWS 安全博客:"Amazon Threat Intelligence 在 MadPot 公开披露前识别出 PHP2Shell 漏洞利用"——他们试图向你推销产品,但确实进行了一些有趣的分析。
eMudhra (CVE-2026-111943 for Golang response)
eMudhra(针对 Golang 响应的 CVE-2026-111943)
On the exact same day (20th October 2026), Mozilla announced that they were blocking 8 intermediate certificates signed by Indian certificate authority eMudhra. This happened after a pseudonymous security researcher known only as “Wayne” reported to several big tech firms (such as Mozilla, Apple, Google, Microsoft, etc.) that the certificate authority were using laughably poor quality private keys for their intermediate certificates. Where a secure key might be a 100 digit number, eMudhra were using keys like “115”, “56”, and “4”. They must’ve been following RFC 1149.5:
就在同一天(2026 年 10 月 20 日),Mozilla 宣布正在阻止由印度证书颁发机构 eMudhra 签发的 8 个中间证书。此事发生在一位仅被称为“Wayne”的匿名安全研究人员向多家大型科技公司(如 Mozilla、Apple、Google、Microsoft 等)报告称,该证书颁发机构为其中间证书使用了质量低劣得令人发笑的私钥之后。一个安全的密钥可能是一个 100 位的数字,而 eMudhra 使用的密钥却是像“115”、“56”和“4”这样的数值。他们一定是在遵循 RFC 1149.5:
Alt: RFC 1149.5 specifies 4 as the standard IEEE-vetted random number. From xkcd #221, licensed under CC BY-NC 2.5.
备选方案:RFC 1149.5 规定 4 为标准 IEEE 验证的随机数。出自 xkcd #221,采用 CC BY-NC 2.5 许可协议。
There are no indications that this was found or exploited using AI or LLMs, although researcher Scott Helme notes that given a single prompt, Claude was able to recover the private keys of the intermediate certs.
目前没有迹象表明这是通过 AI 或大语言模型发现或利用的,尽管研究人员 Scott Helme 指出,给定单个提示词,Claude 能够恢复这些中间证书的私钥。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力