Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget Cybersecurity
探索我们的品牌
Dark Reading 资源库
Black Hat 新闻
Omdia 网络安全
广告合作
通讯订阅
网络安全主题
全球
边缘计算
DR Technology
活动
资源
网络攻击与数据泄露
网络风险
应用安全
终端安全
新闻
开发者遭遇针对 Cursor 的 Claude Code 扩展木马
Cursor 在同一天遭遇了两个严重的安全问题,凸显了人工智能驱动集成开发环境(IDE)的风险。
Nate Nelson,特约撰稿人
2026年10月31日
5分钟阅读
来源:ALINA NAUMOVA 通过 GETTY IMAGES 提供
Anthropic 官方发布的 Claude Code 扩展在 Cursor VS Code 市场被劫持,并替换为带有持久后门恶意版本。
据 Cursor 披露,这场微型版的 SolarWinds 风格攻击仅持续了11小时,从10月29日格林威治标准时间(GMT)上午9:27至晚上8:35。在此期间,任何在其 Cursor 集成开发环境(IDE)中下载或更新 Claude Code 的软件开发者都会收到恶意版本 2.1.313,该版本会从受感染机器中窃取敏感数据,并且在少数情况下,可能允许攻击者持久地以特权访问用户系统。
Cursor 表示,“受影响的用户最多为5,000人”,并将直接联系他们通报此次事件。
同一天,研究人员还描述了 Cursor 中另一个无关的漏洞,允许攻击者通过 Cursor 内置浏览器向开发者的机器部署任意代码。
相关报道:Anthropic 主题钓鱼邮件绕过顶级安全工具
Cursor 未立即回应 Dark Reading 关于这两起事件的询问。
Cursor 的 Claude Code 难题
对一些人来说,“扩展”受损的概念可能会让人联想到浏览器扩展,这些扩展经常存在漏洞、可疑甚至完全恶意,因此关于它们的网络安全新闻即使在极端情况下也往往不会引起太多恐慌。
编码环境中的扩展则完全不同。“IDE 扩展比浏览器扩展更可怕,因为与浏览器扩展不同,它们被设计为拥有与其宿主相同的权限级别,” Forever Security 的安全研究员 Gal Weizman 告诉 Dark Reading。“它们可以运行代码、访问文件系统、发起网络请求等。”
周四,一名攻击者试图利用编码环境扩展所提供的强大功能,在真实扩展的合法代码之上偷偷植入一个66行的加载器。根据社区威胁情报平台 OpenSourceMalware 的分析,除了对 extension.js 文件进行这一处单独编辑外,该扩展的其他所有内容都保持不变。
一旦扩展加载——无需用户建立 Claude 对话——新文件即被激活。它试图向受害者的 SSH 配置中添加攻击者控制的密钥,目的是建立反向隧道,作为进入受损系统的后门。
恶意扩展还试图通过注册后台进程使这些连接持久化——对于 macOS 系统,是 LaunchAgent;对于 Windows,是以系统权限运行的计划任务,以及一个备用的启动脚本。Cursor 写道,这一切从一开始就注定失败,因为启用本地 SSH 服务需要管理员权限,而 Claude Code 扩展仅在“极不寻常的情况下”才拥有此类权限。
相关报道:‘Gheist’ 利用 GitHub Token 窃取云密钥
不过,受害者并未完全脱离危险,因为恶意代码还通过单独的 Web 请求外泄了系统信息。被盗数据仅限于主机名、用户名、操作系统(OS)、OS 架构、主目录路径、环境变量名称、工作目录、配置的 Git 邮箱以及公共 IP 地址。
Cursor 存在漏洞
Cursor 的公开披露表明,这起安全事件是其自身的问题,而非 Anthropic 的问题。这家由 SpaceX 拥有的公司报告称,恶意版本“并非由 Anthropic 开发”。
在发现这一问题后,Cursor 采取了一系列措施来保护自身:轮换其密钥、检查其他扩展是否存在篡改行为,并暂时关闭其应用市场以进行重建。它还与合作的云托管提供商协作,下线了攻击者的恶意基础设施。
Cursor 并未具体说明入侵最初是如何发生的。Weizman 在承认目前尚不清楚此处究竟发生了什么的同时解释道:“从历史上看,扩展程序和插件被劫持的最常见方式是通过窃取本地存储的凭据,这些凭据允许发布这些软件包的新版本。”
相关报道:为未来250年打造的10项软件安全实践
“为发布此类扩展启用双因素认证(2FA)是显著降低未来此类风险的优秀方法。仅依赖访问令牌作为推送此类关键软件的唯一门槛,会显著增加此类事件发生的可能性,”他说道。
Cursor 和 AI 助手面临的更多安全担忧
在 Anthropic Cursor 攻击发生的同一天,Weizman 发布了另一项研究,详细阐述了当今顶级桌面 AI 助手内置浏览器的弱点,这些弱点可能被利用并造成毁灭性影响。他的测试案例包括 Claude Desktop、GitHub Copilot、Codex、VS Code 和 Cursor。可以说,Cursor 的问题最为严重。
在他的实验中,Weizman 的团队创建了一个外观干净的网站,其 HTML 属性中隐藏着一个恶意 shell 命令的可见芯片。然后他们在内置的 Cursor 浏览器中打开了该网站。“当命令触及 Cursor 的安全沙箱并被阻止时,代理——在没有任何页面指令的情况下——自行关闭了沙箱并尝试再次执行。控制措施生效了,但代理说服自己不要使用它,”Weizman 在报告中写道。
该攻击并未在所有模型上普遍奏效。当它确实起作用时,浏览器逃逸允许研究人员将任意应用程序部署到测试受害者的计算机上。就像恶意的 Claude Code 扩展一样,该应用程序以受害者的完全权限运行。Cursor 未对 Forever Security 的披露做出回应,但该公司于 10 月 1 日悄悄修补了该问题。
“集成开发环境(IDE)正变得更具代理性。它们被赋予了代理能力,这可能会引入危险的架构。当出现问题时,这可能非常危险,”Weizman 表示。
“在这里,我们有两个例子:内置浏览器以及 Claude Code 发生的情况,两者都影响了 Cursor,”他总结道。“而且由于这一进程的速度非常快,安全措施的跟进未必能跟上。”
关于作者
Nate Nelson
特约撰稿人
Nate Nelson 是一位记者和屡获殊荣的脚本作家。除了为 Dark Reading 撰稿外,他还为 Darknet Diaries 写作,这是跨所有媒体中最受欢迎的网络安全节目。
他职业生涯始于自由职业者,为科技和金融界的高管代笔 Forbes 和 CNBC 的评论文章。随后他转向新闻业,在 Threatpost 工作,报道网络安全新闻和趋势。在那些年间,他共同创作了一档名为 Malicious Life 的网络安全播客,该播客曾登上 Apple Podcasts 和 Spotify 技术类播客排行榜的前20名。
他拥有纽约大学和巴德学院的学位。作为一名土生土长的纽约人,他享有优越感,但足够礼貌地将其保留在心中。
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
立即添加我们
更多见解
行业报告
2026年网络安全状况报告:弥合差距
自主端点管理的优势
云安全现状:最新挑战
组织如何管理事件响应
企业如何开发安全应用程序
获取更多研究资源
网络研讨会
韧性架构:设计能够抵御入侵的系统
大语言模型安全架构:从底层构建安全的 AI 系统
提示注入入门:什么是提示注入以及如何保持领先
长尾已成前线:降低前沿人工智能与第三方应用的风险
如何利用您的安全运营数据加强企业防御
更多网络研讨会
您可能还喜欢
应用安全
中国黑客劫持 Notepad++ 更新长达六个月
作者:Jai Vijayan
2026年2月2日
网络安全分析
在网络安全领域,Claude 将其他大语言模型远远甩在身后
作者:Nate Nelson
2025年12月17日
网络攻击与数据泄露
CISA 警告称“持续”发生 Brickstorm 后门攻击
作者:Rob Wright
2025年12月4日
漏洞与威胁
廉价硬件模块绕过 AMD、Intel 内存加密
作者:Rob Wright
2025年11月25日
精选内容
查看 Black Hat USA 2026 大会指南,获取来自该展会以及关于该展会的报道和情报!
编辑精选
网络风险
随着 AI 风险加剧,保险公司在承保损失问题上产生分歧
作者:Stephen Lawton
2026年10月22日
7分钟阅读
网络安全运营
AI 在医院走廊扎根,提升安全门槛
作者:Arielle Waldman
2026年10月28日
6分钟阅读
网络风险
仅靠软件物料清单(SBOM)无法揭示供应链攻击的范围
作者:Jai Vijayan
2026年10月27日
4分钟阅读
Black Hat 2026 要点回顾
未能前往拉斯维加斯参加 Black Hat USA?我们追踪了最重要的发展动态。
立即获取您的回顾总结
2026年12月3日 | 虚拟活动
2027年网络安全展望
锁定您的席位
紧跟最新的网络安全威胁、新发现的漏洞、数据泄露信息和新兴趋势。每日或每周直接发送至您的电子邮件收件箱。
订阅
2026年12月7-10日 | 伦敦
提供为期两天和四天的专业网络安全培训,涵盖所有技能水平的课程。使用代码:DARKREADING,您的通行证可享受9折优惠。
了解更多
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
发现更多内容
Black Hat
Omdia
与我们合作
关于我们
认识编辑团队
广告合作
reprint(重印)服务
加入我们
新闻通讯订阅
关注我们
版权所有 © 2026 TechTarget, Inc. d/b/a Informa TechTarget。本网站由 Informa TechTarget 拥有并运营,它是全球网络的一部分,旨在告知、影响并连接全球的技术买家和卖家。所有版权均归其所有。Informa PLC 的注册办事处位于英国伦敦 SW1P 1WG,Howick Place 5号。在英格兰和威尔士注册。TechTarget, Inc. 的注册办事处位于美国马萨诸塞州牛顿市 Grove St. 275号,邮编02466。
首页 |
Cookie政策 |
隐私政策 |
使用条款
您的隐私选择
Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget Cybersecurity
Explore our brands
Dark Reading Resource Library
Black Hat News
Omdia Cybersecurity
Advertise
NEWSLETTER SIGN-UP
Cybersecurity Topics
World
The Edge
DR Technology
Events
Resources
CYBERATTACKS & DATA BREACHES
CYBER RISK
APPLICATION SECURITY
ENDPOINT SECURITY
NEWS
Devs Hit by Trojanized Claude Code Extension for Cursor
Two serious security issues hit Cursor on the same day, highlighting the risks for AI-powered integrated development environments (IDEs).
Nate Nelson,Contributing Writer
October 31, 2026
5 Min Read
SOURCE: ALINA NAUMOVA VIA GETTY IMAGES
Anthropic's official Claude Code extension for the Cursor VS Code Marketplace was hijacked and swapped out for a malicious version with a persistent backdoor.
The SolarWinds-style attack in miniature lasted only 11 hours, from 9:27 a.m. GMT to 8:35 p.m. GMT, on Oct. 29, according to Cursor's disclosure. Any software developers who downloaded or updated Claude Code in their Cursor integrated development environment (IDE) during that time would have received a malicious version 2.1.313, which pilfered sensitive data from infected machines and, in a minority of cases, could have allowed attackers persistent, privileged access to users' systems.
Cursor stated that "at most 5,000 users were affected," and that they will be contacted about the incident directly.
Separately that same day, researchers described an unrelated exploit in Cursor, allowing attackers to deploy arbitrary code to developers' machines via Cursor's built-in browser.
Related:Anthropic-Themed Phishing Emails Bypass Top Security Tools
Cursor did not immediately respond to an inquiry from Dark Reading regarding both of these stories.
Cursor's Claude Code Conundrum
For some, the notion of a compromised "extension" might evoke browser extensions, which are so frequently vulnerable, suspicious, and outright malicious that cybersecurity news concerning them tends not to evoke much panic, even in extreme cases.
Extensions in coding environments are a different beast. "IDE extensions are scarier than browser extensions because, unlike browser extensions, they are designed to have the same level of permissions as their host," Gal Weizman, security researcher at Forever Security, tells Dark Reading. "They can run code, access the filesystem, fire network requests and more."
On Thursday, an attacker tried to leverage the power afforded by coding environment extensions by sneaking a 66-line loader on top of the real extension's legitimate code. According to an analysis from the community threat intelligence platform OpenSourceMalware, everything about the extension remained the same besides this lone edit to its extension.js file.
As soon as the extension loaded — without need for the user to establish a Claude conversation — the new file is revved up. It attempts to add an attacker-controlled key to victims' SSH configurations, with the goal of establishing reverse tunnels that act as a backdoor into the compromised systems.
The malicious extension also attempts to make those connections persistent by registering background processes — for macOS systems, a LaunchAgent; and for Windows, scheduled tasks running with system privileges, plus a fallback Startup script. This whole business was doomed from the start, Cursor wrote, since turning on the local SSH service requires administrative privileges, which the Claude Code extension only possesses in "highly unusual circumstances."
Related:'Gheist' Weaponizes GitHub Tokens to Steal Cloud Secrets
Victims weren't totally out of the woods, though, as the malicious code also exfiltrated system information via separate Web requests. Stolen data was limited to hostnames, usernames, operating systems (OS), OS architectures, home directory paths, environment variable names, working directories, configured Git emails, and public IP addresses.
Cursor Contains Compromise
Cursor's public disclosure suggests that the security incident was its own, not Anthropic's. The malicious version "was not developed by Anthropic," the SpaceX-owned company reported.
In response to the discovery, Cursor took a variety of steps to protect itself: rotating its keys, checking for tampering in other extensions, and taking its marketplace temporarily offline and rebuilding it. It also worked with the relevant cloud hosting provider to take down the attacker's malicious infrastructure.
Cursor did not specify how the intrusion occurred in the first place. While acknowledging that it's not yet known what happened here, Weizman explains, "Historically, the most common way extensions and plug-ins get hijacked is through theft of locally stored credentials that allow publishing new versions of these packages."
Related:10 Software Security Practices Built for the Next 250 Years
"Enabling 2FA for publishing such extensions is an excellent way to significantly mitigate such risk in the future. Relying on an access token as the only gate for pushing such critical software significantly increases the risk of this happening," he says.
More Security Concerns for Cursor, AI Assistants
On the same day of the Anthropic Cursor attack, Weizman published separate research detailing weaknesses in the browsers built into top desktop AI assistants today, which could be exploited to devastating effect. His test cases included Claude Desktop, GitHub Copilot, Codex, VS Code, and Cursor. Cursor has arguably the worst issue of the bunch.
In his experiments, Weizman's team created a clean-looking website, with a visible HTML chip concealing a malicious shell command in its attributes. Then they opened up the site in a built-in Cursor browser. "When the command hit Cursor's safety sandbox and was blocked, the agent — on its own, with nothing in the page telling it to — switched the sandbox off and tried again. The control worked. The agent talked itself out of using it," Weizman wrote in the report.
The attack didn't work universally across all models. When it did work, the browser escape allowed the researchers to deploy an arbitrary app to their test victim's computer. And just like the malicious Claude Code extension, the app ran with the victim's full permissions. Cursor did not respond to Forever Security's disclosure, but the company quietly patched the issue on Oct. 1.
“IDEs are becoming more agentic. They're being given agentic capabilities, which can introduce dangerous architecture. It can be very risky when things go wrong," Weizman says.
"Here we've had two examples of that: built-in browsers, and what happened with Claude Code, both of which impacted Cursor," he concludes. "And because of the rapid pace at which this is happening, security isn't necessarily keeping up."
About the Author
Nate Nelson
Contributing Writer
Nate Nelson is a journalist and award-winning scriptwriter. In addition to Dark Reading he writes for Darknet Diaries, the most popular show in cybersecurity across all media.
He began his career as a freelancer, ghostwriting Forbes and CNBC op-eds for executives in tech and finance. Then he transitioned to journalism at Threatpost, where he covered cybersecurity news and trends. Throughout those years he co-created a cybersecurity podcast, Malicious Life, which in its day climbed into the Top 20 technology podcasts charts on Apple Podcasts and Spotify.
He holds degrees from New York University and Bard College. As a born and bred New Yorker, he enjoys a superiority complex, but is polite enough to keep it to himself.
Want more Dark Reading stories in your Google search results?
ADD US NOW
More Insights
Industry Reports
2026 State of Cybersecurity Report: Bridging the Divide
The Autonomous Endpoint Management Advantage
The State of Cloud Security: The Latest Challenges
How Organizations Are Managing Incident Response
How Enterprises Are Developing Secure Applications
Access More Research
Webinars
Resilient Architecture: Designing Systems That Survive Compromise
LLM Security Architecture: Building Secure AI Systems from the Ground Up
Prompt Injection 101: What It Is and How to Stay Ahead
The Long Tail Is Now the Front Line: Reducing Frontier-AI & Third-Party App Risk
How to Harness your Security Operations Data for Enterprise Defense
More Webinars
You May Also Like
APPLICATION SECURITY
Chinese Hackers Hijack Notepad++ Updates for 6 Months
by Jai Vijayan
FEB 02, 2026
CYBERSECURITY ANALYTICS
In Cybersecurity, Claude Leaves Other LLMs in the Dust
by Nate Nelson
DEC 17, 2025
CYBERATTACKS & DATA BREACHES
CISA Warns of 'Ongoing' Brickstorm Backdoor Attacks
by Rob Wright
DEC 04, 2025
VULNERABILITIES & THREATS
Cheap Hardware Module Bypasses AMD, Intel Memory Encryption
by Rob Wright
NOV 25, 2025
Featured
Check out the Black Hat USA 2026 Conference Guide for coverage and intel from — and about — the show!
Editor's Choice
CYBER RISK
As AI Risks Grow, Insurers Split on Covering the Damage
byStephen Lawton
OCT 22, 2026
7 MIN READ
CYBERSECURITY OPERATIONS
AI Takes Root in Hospital Corridors, Raises Security Stakes
byArielle Waldman
OCT 28, 2026
6 MIN READ
CYBER RISK
SBOMs Alone Can't Reveal the Scope of a Supply Chain Attack
byJai Vijayan
OCT 27, 2026
4 MIN READ
Black Hat 2026 Takeaways
Couldn’t make it to Las Vegas for Black Hat USA? We tracked the developments that matter most.
Get Your Recap Today
DECEMBER 3, 2026 | VIRTUAL
Cybersecurity Outlook 2027
SECURE YOUR SPOT
Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.
SUBSCRIBE
DEC 7-10, 2026 | LONDON
Offering two-and four-day specialized cybersecurity Trainings, with courses of all skill levels. Use the code: DARKREADING and get 10% off your pass.
LEARN MORE
Want more Dark Reading stories in your Google search results?
Discover More
Black Hat
Omdia
Working With Us
About Us
Meet the Editors
Advertise
Reprints
Join Us
NEWSLETTER SIGN-UP
Follow Us
Copyright © 2026 TechTarget, Inc. d/b/a Informa TechTarget. This website is owned and operated by Informa TechTarget, part of a global network that informs, influences and connects the world’s technology buyers and sellers. All copyright resides with them. Informa PLC’s registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. TechTarget, Inc.’s registered office is 275 Grove St. Newton, MA 02466.
Home|
Cookie Policy|
Privacy|
Terms of Use
Your Privacy Choices
首次收录 · 2026-10-31 · 9.86 分