Model Context Protocol (MCP) servers are becoming a preferred entry point into AI-assisted development workflows, and a campaign documented by application-security firm Apiiro shows exactly how little stands between a developer and a compromised workstation: a git clone and a line of configuration.
The Hacker News reported on Apiiro's findings in early December: malicious MCP servers published on GitHub deploy a credential stealer and a clipboard hijacker on Windows the moment an AI coding agent starts them. The payload runs at connection time — there is no separate install step for the victim to approve, no suspicious binary to double-click, and no obvious change to the project's dependency manifest.
The infection chain
The servers are dressed up as helper tools for the Lighter and Aster crypto exchanges, a lure aimed squarely at the intersection of two high-value audiences: developers who trade, and traders who automate. To trigger the chain, a user clones one of the repositories and points an agent — Claude, Cursor and Cline are named in the report — at the local server. When the agent enumerates and launches the MCP tools, the Windows payload executes.
The two components serve complementary purposes. The stealer targets stored secrets and session material; the clipboard hijacker is the quieter but more damaging component, swapping a copied wallet address for an attacker-controlled one in the seconds before a transaction is signed. For anyone moving funds between exchanges or DeFi venues, a single undetected substitution is enough.
Why MCP is a new attack surface
What makes this campaign instructive is not its sophistication but its plumbing. MCP servers are distributed as source repositories, consumed by agents that read tool descriptions as instructions rather than audited as code, and — in most current setups — carry no code signing, no provenance metadata, and no independent review gate before first run. The trust decision effectively collapses into "someone linked this on GitHub."
That gap matters well beyond one campaign. An MCP server runs with the developer's user privileges, on the developer's machine, often with access to environment variables, browser profiles and shell history. A young ecosystem that skips the signing and attestation habits built up over a decade of package-registry supply-chain attacks is re-running that history at higher speed — roughly where npm sat around 2016, before signing norms, provenance metadata and review gates became table stakes.
A practical vetting checklist
Developers wiring new MCP servers into their agents should treat them as untrusted third-party executables:
- Supply-chain review — read the server's actual tool handlers, not just the README; look for process spawning, network calls to unfamiliar hosts, and any read/write of credential stores.
- Provenance and signing — prefer servers from a named, verifiable maintainer with tagged releases; unsigned, single-commit repositories are a red flag.
- Sandboxing — run first contact inside a container or a disposable VM, never on a host holding wallets or production credentials.
- Clipboard protection — disable clipboard access where the client permits it, and always verify a pasted wallet address character by character before signing.
- Least privilege — point the agent at a scoped environment with no exchange API keys, no seed phrases, and no persistent session cookies.
- Review gate — pin servers to a specific commit, and require a second pair of eyes before a new server enters a team's shared agent configuration.
For developers and traders in Hong Kong, the lesson is general but urgent: the moment an agent can start a tool for you is the moment code review stops being optional.
Model Context Protocol(MCP)server 正成為 AI 輔助開發工作流程的首選入口,而應用安全公司 Apiiro 記錄的一項攻擊行動清楚顯示,開發者與一台被入侵的工作站之間只隔著多薄的距離:一次 git clone 加一行設定。
The Hacker News 於十二月初報道 Apiiro 的發現:在 GitHub 上發布的惡意 MCP server,一經 AI coding agent 啟動,便會在 Windows 上部署 credential stealer 及 clipboard hijacker。惡意負載在連線時刻即執行——受害者無需批准任何獨立安裝步驟、沒有可疑的二進位檔案需要雙擊,亦看不出項目依賴清單有任何明顯改動。
感染鏈
這些 server 被偽裝成針對 Lighter 及 Aster 加密貨幣交易所的輔助工具,誘餌直指兩類高價值用戶的交集:兼職交易的開發者,以及使用自動化交易的投資者。要觸發整條感染鏈,用戶只需 clone 其中一個 repository,並將 agent——報告點名包括 Claude、Cursor 及 Cline——指向該本地 server。當 agent 枚舉並啟動 MCP 工具時,Windows 負載便會執行。
兩個組件各司其職。stealer 針對已儲存的 secrets 及 session 資料;clipboard hijacker 則是較為低調、破壞力卻更強的一環,在交易簽署前的數秒內,將已複製的錢包地址掉換成攻擊者控制的地址。對於在交易所與 DeFi 平台之間轉移資金的人而言,一次未被察覺的掉包已綽綽有餘。
為何 MCP 成為新的 attack surface
這項行動具啟發之處不在於其複雜度,而在於其供應方式。MCP server 以原始碼 repository 形式分發,由 agent 讀取工具說明並視之為指令,而非作為代碼加以審計——而在目前多數部署中,它們沒有 code signing、沒有 provenance metadata,亦沒有在首次運行前經過任何獨立審查關口。信任判斷實質上已簡化為「有人在 GitHub 上貼了這個連結」。
這個缺口的影響遠不止於單一行動。MCP server 以開發者的用戶權限,在開發者的機器上運行,通常還可存取環境變數、瀏覽器 profile 及 shell 歷史。一個跳過了十餘年 package registry 供應鏈攻擊所累積的簽署與 attestation 習慣的年輕生態系統,正以更高速度重演那段歷史——大約相當於 npm 在 2016 年的水平,亦即 signing 慣例、provenance metadata 及審查關口成為基本要求之前。
實用的審查清單
將新 MCP server 接入 agent 的開發者,應將其視為不可信任的第三方可執行程序:
- 供應鏈審查——閱讀 server 實際的 tool handler,而非只看 README;留意 process spawning、通向陌生主機的網絡調用,以及任何對 credential store 的讀寫操作。
- 來源與簽署——優先選用有具名、可驗證維護者及標籤 release 的 server;未經簽署、只有單一 commit 的 repository 是危險信號。
- Sandboxing——首次接觸應在 container 或一次性 VM 內進行,切勿在存有錢包或生產憑證的主機上運行。
- Clipboard 保護——在客戶端允許的情況下停用 clipboard 存取,並在簽署前逐字核對貼上的錢包地址。
- 最小權限——將 agent 指向一個範圍受限的環境,不設交易所 API key、不設種子短語、不設持久 session cookie。
- 審查關口——將 server 固定(pin)至特定 commit,並要求新 server 進入團隊共用 agent 設定前須經第二雙眼睛審閱。
對香港的開發者及投資者而言,教訓既普遍又迫切:當 agent 可以代你啟動工具的那一刻,亦正是 code review 不再可有可無的那一刻。
