The application-security firm Apiiro disclosed last week that malicious Model Context Protocol (MCP) servers hosted on GitHub are targeting developers who use AI coding agents — specifically Claude Desktop, Cursor, and Cline. The servers masquerade as integrations for the Lighter and Aster cryptocurrency exchanges. The moment a user clones one of these repositories and points their agent at it, the MCP server executes an information stealer and a clipboard hijacker on the Windows host. No additional exploit, no vulnerability, no user interaction beyond the initial setup. The agent is the execution mechanism.
This is a watershed moment for defenders. MCP — Anthropic's open protocol for connecting AI models to external tools and data sources — has exploded in adoption through 2025 and 2026, and with it a sprawling ecosystem of community-built servers on GitHub. Most organizations have zero visibility into which MCP servers their developers have configured, and virtually no security tooling inspects them. Attackers have figured out that MCP server configuration is a trusted code-execution path hiding in plain sight.
If your developers use AI coding assistants — and in 2026, they do — you need to treat MCP server configurations as executable code in your environment, because that is exactly what they are.
Technical Analysis
What is MCP and why is it dangerous here?
The Model Context Protocol allows AI agents (Claude Desktop, Cursor, Cline, and others) to connect to external "servers" — typically local Node.js or Python processes — that expose tools the model can invoke: file access, API calls, database queries, and so on. The critical security property that defenders must internalize: an MCP server is arbitrary code running on the endpoint with the user's privileges, launched automatically by the agent host process.
Configuration lives in well-known JSON files:
- Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.json - Cursor:
%USERPROFILE%\.cursor\mcp.json(or project-level.cursor/mcp.json) - Cline (VS Code extension): VS Code settings storage, typically under
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\
A typical malicious configuration entry looks like any legitimate one — a command (usually node, npx, python, or uvx) plus arguments pointing at the cloned repository. When the agent starts, it spawns that command. From that point forward, the attacker's code is running.
Attack chain (as reported by Apiiro)
- Lure: Attacker publishes GitHub repositories presenting as MCP server tools for the Lighter and Aster crypto exchanges — plausible targets, since crypto traders and developers are a population likely to (a) use AI coding agents and (b) hold cryptocurrency wallets on the same machine.
- Installation (social engineering): The victim clones the repo and adds it to their agent's MCP configuration, following the repo's README instructions. This is the only user action required.
- Execution: The next time Claude, Cursor, or Cline initializes the MCP server, the malicious code executes on the Windows host as a child process of the agent.
- Payload: Two components run:
- An information stealer — the standard class targeting browser credential stores (Chrome/Edge
Login Data,Cookies,Local State), crypto wallet browser extensions, and desktop wallet application data. - A clipboard hijacker (clipper) — continuously monitors the Windows clipboard and substitutes copied cryptocurrency wallet addresses with attacker-controlled addresses, a technique designed to intercept transactions at the moment of paste.
- An information stealer — the standard class targeting browser credential stores (Chrome/Edge
- Exfiltration: Stolen data is staged and sent to attacker infrastructure, commonly via HTTPS to Telegram bots, Discord webhooks, or disposable paste/HTTP endpoints.
Why this technique is effective
- No vulnerability required. This is not a CVE — it is abuse of intended functionality. MCP servers are supposed to execute code. The trust boundary failure is architectural, not a patchable bug.
- Signed parent processes. The malicious process is spawned by legitimate, signed binaries (
Claude.exe,Cursor.exe,Code.exe), which defeats naive parent-based allowlisting and looks benign in many EDR consoles. - Developer context. Developers routinely clone and run GitHub code, so nothing about the behavior pattern trips user suspicion.
- Targeting precision. Posing as crypto exchange tools guarantees a victim pool with cryptocurrency assets on-host.
Exploitation status
Apiiro reported these as live, in-the-wild malicious repositories — this is confirmed active abuse, not a theoretical proof-of-concept. There is no CVE and no CISA KEV entry because there is no software vulnerability; the "patch" is governance and detection. Security teams should assume copycat campaigns are already underway — publishing a fake MCP server to GitHub requires minimal skill, and the Apiiro disclosure doubles as a playbook for other actors.
Detection & Response
The detections below target the observable behaviors of this campaign: MCP-spawned child processes touching credential stores and wallet paths, clipboard-hijacking patterns, and audit of MCP configuration files. They are tuned to fire on genuinely anomalous behavior rather than baseline MCP noise.
Sigma Rules
---
title: AI Agent Child Process Accessing Browser Credential or Crypto Wallet Stores
id: 3f8a2c1e-7b4d-4e91-a6c2-9d5e8f1b2c34
status: experimental
description: Detects a Node.js or Python process spawned by an AI agent host (Claude, Cursor, VS Code/Cline) accessing browser credential stores or cryptocurrency wallet data paths, consistent with MCP-delivered information stealers.
references:
- https://thehackernews.com/2026/12/fake-mcp-servers-on-github-target.html
- https://attack.mitre.org/techniques/T1555/003/
author: Security Arsenal
date: 2026/01/12
tags:
- attack.credential_access
- attack.t1555.003
- attack.t1656
logsource:
category: file_event
product: windows
detection:
selection_parent:
ParentImage|endswith:
- '\Claude.exe'
- '\Cursor.exe'
- '\Code.exe'
selection_image:
Image|endswith:
- '\node.exe'
- '\python.exe'
- '\python3.exe'
- '\cmd.exe'
- '\powershell.exe'
selection_target:
TargetFilename|contains:
- '\Login Data'
- '\Local State'
- '\Cookies'
- '\Web Data'
- '\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn'
- '\Extensions\ejbalbakoplchlghecdalmeeeajnimhm'
- '\Extensions\fhbohimaelbohpjbbldcngcnapndodjp'
- '\Extensions\ibnejdfjmmkpcnlpebklmnkoeoihofec'
- '\electrum\'
- '\Exodus\'
- '\atomic\Local Storage'
condition: all of selection_*
falsepositives:
- Legitimate MCP servers performing browser automation (rare; validate per-server)
level: high
---
title: PowerShell Clipboard Monitoring Loop on Developer Endpoint
id: 8c1d4e6f-2a7b-4c38-b9e1-5f3a7d2c8e41
status: experimental
description: Detects PowerShell patterns consistent with cryptocurrency clipboard hijackers - loading Windows Forms clipboard APIs and repeatedly reading clipboard content in a loop, often combined with wallet-address regex patterns.
references:
- https://thehackernews.com/2026/12/fake-mcp-servers-on-github-target.html
- https://attack.mitre.org/techniques/T1115/
author: Security Arsenal
date: 2026/01/12
tags:
- attack.collection
- attack.t1115
logsource:
category: process_creation
product: windows
detection:
selection_clipboard:
CommandLine|contains:
- 'GetClipboard'
- 'System.Windows.Forms.Clipboard'
- 'SetClipboard'
selection_behavior:
CommandLine|contains:
- 'while'
- 'Start-Sleep'
- 'for(;;)'
- 'bc1'
- '0x[a-fA-F0-9]'
- '[13][a-km-zA-HJ-NP-Z1-9]'
condition: all of selection_*
falsepositives:
- Rare legitimate clipboard automation scripts; investigate any hit on developer workstations
level: high
---
title: MCP Configuration File Modified or Created Outside Agent Installation
id: 5b2e9f7a-4d1c-4a83-97e6-2c8b4f1d6a53
status: experimental
description: Detects creation or modification of MCP server configuration files for Claude Desktop and Cursor. Every entry in these files defines code the agent will execute - changes should be rare, deliberate, and attributable.
references:
- https://thehackernews.com/2026/12/fake-mcp-servers-on-github-target.html
- https://attack.mitre.org/techniques/T1195/
author: Security Arsenal
date: 2026/01/12
tags:
- attack.persistence
- attack.supply_chain_compromise
- attack.t1195.002
logsource:
category: file_event
product: windows
detection:
selection:
TargetFilename|endswith:
- '\claude_desktop_config.json'
- '\mcp.json'
filter_agent:
Image|endswith:
- '\Claude.exe'
- '\Cursor.exe'
- '\Code.exe'
condition: selection and not filter_agent
falsepositives:
- Users manually editing MCP configs to add servers (expected but must be attributable - this is the exact action the attack requires)
level: medium
Note on the third rule: it is intentionally medium severity. A hit does not mean compromise — it means "a developer wired a new code-execution path into their AI agent." That event deserves review every single time. Treat it like a new service installation.
Microsoft Sentinel / Defender KQL Hunt
This query hunts for the campaign's core behavior: agent host processes spawning script interpreters that then touch credential stores or wallet paths, plus suspicious outbound connections from MCP-spawned processes.
// Hunt 1: AI-agent-spawned processes accessing credential stores or crypto wallet paths
let AgentHosts = dynamic(["Claude.exe", "Cursor.exe", "Code.exe"]);
let ScriptInterpreters = dynamic(["node.exe", "python.exe", "python3.exe", "cmd.exe", "powershell.exe", "pwsh.exe", "npx.cmd", "uvx.exe"]);
let TargetPaths = dynamic([
"\\Login Data", "\\Local State", "\\Web Data", "\\Cookies",
"nkbihfbeogaeaoehlefnkodbefgpgknn", // MetaMask
"ejbalbakoplchlghecdalmeeeajnimhm", // MetaMask Flask / alt
"fhbohimaelbohpjbbldcngcnapndodjp", // Binance Wallet
"ibnejdfjmmkpcnlpebklmnkoeoihofec", // TronLink
"\\electrum\\", "\\Exodus\\", "\\atomic\\"
]);
DeviceFileEvents
| where TimeGenerated > ago(7d)
| where InitiatingProcessFileName in~ (AgentHosts)
or InitiatingProcessParentFileName in~ (AgentHosts)
| where FileName has_any (TargetPaths) or FolderPath has_any (TargetPaths)
| project TimeGenerated, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine,
FolderPath, FileName, SHA256, ReportId
| sort by TimeGenerated desc;
// Hunt 2: Agent-spawned interpreters making outbound connections to common exfil channels
let AgentHosts2 = dynamic(["Claude.exe", "Cursor.exe", "Code.exe"]);
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where InitiatingProcessFileName in~ (dynamic(["node.exe", "python.exe", "powershell.exe", "curl.exe"]))
| where InitiatingProcessParentFileName in~ (AgentHosts2)
| where RemoteUrl has_any ("api.telegram.org", "discord.com/api/webhooks", "pastebin.com", "transfer.sh", "file.io")
or RemoteIPType == "Public" and RemotePort in (443) and RemoteUrl !endswith ".anthropic.com" and RemoteUrl !endswith ".cursor.sh" and RemoteUrl !endswith ".github.com"
| summarize Connections = count(), RemoteEndpoints = make_set(RemoteUrl, 10), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine
| where Connections < 50 // low-and-slow exfil, not bulk API traffic
| sort by FirstSeen asc;
Velociraptor VQL Artifact
This artifact audits every endpoint for MCP configuration files, parses the configured server commands (the actual code-execution entries), and cross-references with currently running agent child processes — giving you a fleet-wide inventory of "what code have our users authorized their AI agents to run."
-- SecurityArsenal.MCPConfigAudit
-- Enumerate MCP server configurations (Claude Desktop / Cursor) and running agent child processes
LET configs = SELECT FullPath, Mtime,
read_file(filename=FullPath) AS ConfigContent
FROM glob(globs=[
'C:/Users/*/AppData/Roaming/Claude/claude_desktop_config.json',
'C:/Users/*/.cursor/mcp.json',
'C:/Users/*/.cursor*/mcp.json',
'C:/Users/*/.cline/**/*.json',
'C:/Users/*/AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/**/*.json'
])
WHERE ConfigContent =~ '"command"|mcpServers'
LET suspicious_procs = SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE Name =~ '^(node|python|python3|cmd|powershell|pwsh|npx|uvx)'
AND CommandLine =~ '(Login Data|Local State|GetClipboard|SetClipboard|electrum|Exodus|nkbihfbeogaeaoehlefnkodbefgpgknn|api\\.telegram\\.org|discord\\.com/api/webhooks)'
SELECT * FROM configs
UNION ALL
SELECT NULL AS FullPath, NULL AS Mtime, NULL AS ConfigContent FROM suspicious_procs
The config audit output is arguably more valuable than the process hunt: it is a durable, point-in-time list of every MCP server your fleet is configured to execute. Diff it weekly. Any new entry that you cannot attribute to a deliberate, reviewed developer action is an incident.
Remediation / Audit Script
Run this PowerShell script (as the user or via your EDR's live response) to audit MCP configurations on a Windows endpoint, flag suspicious entries, and check for the classic stealer/clipper artifacts.
# Security Arsenal - MCP Server Configuration Audit (Windows)
# Audits Claude Desktop / Cursor / Cline MCP configs for suspicious entries
# Run per-user or via EDR remote shell
$report = @()
# ---- 1. Locate and parse MCP configuration files ----
$configPaths = @(
"$env:APPDATA\Claude\claude_desktop_config.json",
"$env:USERPROFILE\.cursor\mcp.json"
)
# Project-level Cursor configs
$projectConfigs = Get-ChildItem -Path "$env:USERPROFILE" -Recurse -Filter "mcp.json" -ErrorAction SilentlyContinue |
Where-Object { $_.DirectoryName -match '\.cursor$' }
foreach ($cfg in ($configPaths + ($projectConfigs.FullName | Where-Object { $_ }))) {
if (Test-Path $cfg) {
$report += "[CONFIG FOUND] $cfg (LastWrite: $((Get-Item $cfg).LastWriteTime))"
try {
$json = Get-Content $cfg -Raw | ConvertFrom-Json
foreach ($prop in $json.mcpServers.PSObject.Properties) {
$cmd = $prop.Value.command
$args = ($prop.Value.args -join ' ')
$entry = "$($prop.Name) => $cmd $args"
# Flag entries pointing outside trusted package managers or referencing temp/user-writable paths
if ($entry -match '(Temp|AppData\\Local\\Temp|Downloads|github|raw\.githubusercontent|\\users\\public)' -or
$cmd -match '^(powershell|cmd|curl|certutil|mshta|wscript|cscript)$') {
$report += " [SUSPICIOUS SERVER] $entry"
} else {
$report += " [SERVER] $entry"
}
}
} catch { $report += " [PARSE ERROR] $($_.Exception.Message)" }
}
}
# ---- 2. Check running agent child processes for stealer/clipper indicators ----
$agentHosts = 'Claude','Cursor','Code'
$children = Get-CimInstance Win32_Process | Where-Object {
$parent = (Get-Process -Id $_.ParentProcessId -ErrorAction SilentlyContinue).ProcessName
$parent -in $agentHosts
}
foreach ($p in $children) {
$cl = $p.CommandLine
if ($cl -match '(GetClipboard|SetClipboard|Login Data|Local State|electrum|Exodus|telegram|discord\.com/api/webhooks|bc1[a-z0-9]{20,}|0x[a-fA-F0-9]{40})') {
$report += "[MALICIOUS-INDICATOR PROCESS] PID $($p.ProcessId): $cl"
} else {
$report += "[agent child] PID $($p.ProcessId) $($p.Name)"
}
}
# ---- 3. Check for clipboard hijacker persistence (Run keys with clipboard loops) ----
$runKeys = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run',
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Run'
foreach ($key in $runKeys) {
Get-ItemProperty -Path $key -ErrorAction SilentlyContinue | ForEach-Object {
$_.PSObject.Properties | Where-Object {
$_.Value -match '(GetClipboard|SetClipboard|Add-Type.*Forms)'
} | ForEach-Object {
$report += "[PERSISTENCE - CLIPBOARD HIJACKER] $key\$($_.Name) = $($_.Value)"
}
}
}
$report | Out-File "$env:USERPROFILE\mcp_audit_$(Get-Date -Format yyyyMMdd_HHmmss).txt"
$report | Format-List
Remediation
Because this campaign exploits no software vulnerability, there is no patch and no vendor version to deploy. Remediation is architectural and procedural. Prioritize the following, in order:
1. Immediate (this week)
- Inventory MCP usage. Deploy the VQL artifact or PowerShell audit above across all developer workstations. You cannot defend a code-execution surface you cannot enumerate. Expect to find MCP servers you did not know about.
- Investigate every configured server. For each entry in
claude_desktop_config.json/mcp.json, confirm with the owning user that they added it deliberately, and review the source repository. Any server impersonating crypto exchange tooling (Lighter, Aster, or similar) should be treated as a confirmed compromise until proven otherwise. - If a suspicious MCP server is found: isolate the host, kill the agent child processes, acquire the repo contents and the process tree for forensics, and assume full credential and crypto-wallet compromise on that machine. Rotate all browser-stored credentials, revoke active sessions, and treat any crypto wallets on the host as drained-pending — move funds to new wallets with new seed phrases generated on a clean device. Clipboard hijackers mean any transaction initiated while the clipper ran may have been diverted; audit recent transactions.
2. Short-term (30 days)
- Establish an MCP allowlist policy. Approve a vetted set of MCP servers (officially published, hash-pinned, from verified vendors) and block everything else through application control (WDAC/AppLocker rules on
node.exe/python.exechild processes of agent hosts where feasible, or EDR custom detection blocking unapproved MCP commands). - Deploy the Sigma and KQL detections above to your SIEM. Tune the config-file rule to page a human — MCP config changes should be rare enough that every one gets eyes.
- Ingest MCP config files into your change-control or FIM tooling. These JSON files now carry the same security weight as
sudoersor a scheduled task definition.
3. Strategic (this quarter)
- Extend supply-chain governance to AI tooling. Your existing software-intake process (SLSA, internal package registries, dependency review) almost certainly does not cover MCP servers. It must. Treat an MCP server like an npm package with auto-execute privileges — because that is what it is.
- Segregate crypto operations. Developers and finance staff handling cryptocurrency should do so from hardened, dedicated systems that never run AI coding agents or arbitrary GitHub code. The targeting logic of this campaign — crypto-themed lures aimed at agent users — tells you exactly who the adversary's model of a valuable victim is.
- Browser credential hygiene. The stealer component thrives on browser-stored credentials. Enforce enterprise password managers with hardware-backed protection and disable browser password saving via GPO where policy permits.
- Monitor the ecosystem. Track Apiiro's research (apiiro.com) and The Hacker News coverage (thehackernews.com/2026/12/fake-mcp-servers-on-github-target.html) for published IOCs and additional malicious repositories. GitHub's trust-and-safety takedowns lag publication; do not assume a live repo is a safe repo.
The bigger lesson
MCP is the first AI-era protocol to hand attackers a frictionless, legitimate, user-authorized code-execution channel — and this campaign will not be the last. The defenders who get ahead of this will be the ones who stop thinking of AI agents as productivity software and start treating their configuration surfaces as what they are: unmanaged remote code execution with a friendly UI.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.