Claude Code SSH後門評測:刪了擴充套件也沒用 | Claude Code SSH Backdoor Review: Uninstall Won't Save You
By Kit 小克 | AI Tool Observer | 2026-10-30
🇹🇼 Claude Code SSH後門評測:刪了擴充套件也沒用
Claude Code 用戶如果是透過 Cursor 的擴充套件市集安裝,現在該停下來檢查版本了。10月29日,一個冒用官方身分、版本號 2.1.313 的惡意 Claude Code 擴充套件出現在 Cursor Marketplace,偷偷在開發者電腦裡植入 SSH後門,影響範圍最高達 5,000 名使用者。這不是山寨冒名的釣魚套件,攻擊者用的是 Anthropic 官方真實的擴充套件 ID「anthropic.claude-code」,等於直接劫持了信任鏈。
SSH後門怎麼運作:不是嚇唬,是真的會連線出去
安全研究單位拆解後發現,惡意版本在合法的 extension.js 最前面塞進一段約 66 行的惡意載入器(loader),等 Cursor 啟動、或擴充套件的 webview 被打開後才會觸發。接下來它會做幾件事:把攻擊者的 SSH 公鑰寫進 ~/.ssh/authorized_keys、嘗試開啟本機的 SSH 服務、對外建立一條反向 SSH 通道連到攻擊者控制的伺服器(134.209.82.225),再把主機資訊回傳出去,最後埋下持久化腳本確保重開機也活著。
重點:刪掉擴充套件,後門還在
Cursor 官方在資安公告裡講得很清楚——光是移除擴充套件完全不夠,因為惡意程式已經另外丟了獨立的持久化腳本在系統裡跑,跟擴充套件本體脫鉤了。如果你在 10月29日 美西時間凌晨2:27到下午1:35之間,從 Cursor Marketplace 安裝或更新過 Claude Code 擴充套件,版本剛好是 2.1.313,建議立刻處理。
受影響該怎麼辦
- 先查版本 — 在 Cursor 設定裡確認目前安裝的 Claude Code 擴充套件版本,2.1.313 就是中獎
- 跑官方修復腳本 — Cursor 的資安公告提供了 macOS / Windows 專用的清除腳本,手動移除 SSH 後門、持久化機制與還在跑的通道程序
- 檢查 authorized_keys — 翻一下
~/.ssh/authorized_keys有沒有自己沒加過的公鑰,這是最直接的中招證據 - 高敏感機器直接重灌 — 如果這台機器碰過正式環境密鑰或原始碼,光清後門不夠安心,重建主機才乾脆
這起事件提醒的不是「AI 工具不安全」,而是開發工具的供應鏈——尤其是掛著知名品牌、會自動更新的擴充套件——本身就是攻擊者最划算的下手點。用 Claude Code 或任何 AI 編碼工具,套件來源與更新機制值得多一分警覺。
好不好用,試了才知道。
🇺🇸 Claude Code SSH Backdoor Review: Uninstall Won't Save You
Claude Code users who install extensions through Cursor's marketplace need to check their version right now. On October 29, a malicious version of the official Claude Code extension — labeled version 2.1.313 — showed up in the Cursor VS Code Extension Marketplace and quietly planted an SSH backdoor on developer machines, affecting up to 5,000 users. This wasn't a typosquat or lookalike package: the attackers used Anthropic's real, trusted extension ID, "anthropic.claude-code," hijacking the trust chain directly.
How the SSH Backdoor Works: This Actually Phones Home
Security researchers who dissected the payload found a roughly 66-line malicious loader inserted before the legitimate extension.js code, triggered once Cursor starts up or the extension's webview opens. From there it adds the attacker's SSH public key to ~/.ssh/authorized_keys, tries to enable the local SSH service, opens a reverse SSH tunnel to an attacker-controlled server (134.209.82.225), sends host details back, and drops persistence scripts to survive a reboot.
The Catch: Uninstalling the Extension Doesn't Remove It
Cursor's own security notice is blunt about this — removing the extension is not enough, because the malicious code already dropped standalone persistence scripts that run independently of the extension itself. If you installed or updated the Claude Code extension from the Cursor Marketplace between 2:27am and 1:35pm PT on October 29, and the version shows 2.1.313, take action now.
What To Do If You're Affected
- Check your version — open Cursor's extension settings and confirm whether you're on the compromised 2.1.313 build
- Run the official cleanup scripts — Cursor published macOS and Windows remediation scripts in its security notice to remove the SSH key, persistence mechanisms, and any live tunnel processes
- Inspect authorized_keys — check
~/.ssh/authorized_keysfor any public key you didn't add yourself; that's the clearest sign of compromise - Rebuild high-value machines — if the host ever touched production secrets or source code, cleaning the backdoor may not be enough peace of mind; rebuilding is the safer call
The lesson here isn't that AI coding tools are unsafe — it's that the extension supply chain, especially auto-updating packages riding on a trusted brand name, is exactly where attackers get the most value for the least effort. Whether you're on Claude Code or any other AI coding assistant, where your extensions come from and how they update deserves real scrutiny.
好不好用,試了才知道。
Sources / 資料來源
- The Hacker News:官方 Claude Code VS Code 擴充套件遭植入持久化 SSH 後門
- Cursor 官方資安公告:Claude Code 擴充套件 2.1.313 惡意版本說明
- Help Net Security:Claude Code 擴充套件遭植入 SSH 後門分析
延伸閱讀 / Related Articles
- AI Overviews評測:零點擊搜尋吃光四成流量 | AI Overviews Review: Zero-Click Search Erases 40% Traffic
- AI報稅代理評測:真實稅務工作僅過10.8% | AI Tax Agent Review: Real Tax Work Pass Rate 10.8%
- 指數時間假設評測:OpenAI、Anthropic同日推翻30年猜想 | Exponential Time Hypothesis Review: AI Disproves It
AI 工具觀察站 — 每日精選 AI Agent 與工具趨勢
AI Tool Observer — Daily curated AI Agent & tool trends
留言
張貼留言