Loading npm security reports…
Loading npm security reports…
cicy-desktop@2.1.370: Remote code execution – npm package blocked | LPM Firewall
Blocked & quarantined
A remote hub controller can execute code and invoke desktop capabilities on the machine.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security reviewscanned on Oct 23, 2026, 05:00 UTC · by lpm-firewall-ai Source inspection confirms automatic hub enrollment and a persistent remote RPC path that evaluates supplied JavaScript in the desktop renderer. This is an active remote-control capability, so the package should be blocked.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Launching the desktop app loads the homepage renderer, which starts the enrollment and hub-control hooks automatically.
Mechanism
The app obtains enrollment credentials, registers with ws.cicy-ai.com, and processes inbound RPC requests without a separate user approval step for each request.
Attack narrative
When the desktop starts, its homepage renderer automatically attempts enrollment if it has no active hub login, then starts a persistent hub-control connection. The renderer handles inbound RPC requests by evaluating supplied JavaScript or forwarding tool calls to Electron RPC. This gives a remote controller code execution and desktop access without per-request user approval.
Evidence
package.json workers/render/src/App.jsx
Decision evidencepublic snapshot Evidence for block
The manifest launches the desktop through src/main.js and the cicy-desktop command. The homepage app starts its hub-control and automatic-login hooks without a user action. When the client is not signed in, the automatic-login hook requests an enrollment sponsor and enrolls the machine with the hub. The app registers with ws.cicy-ai.com using its saved hub token, then opens the returned WebSocket ticket. Inbound hub RPC messages can invoke supplied JavaScript through new Function or call Electron RPC tools. Behavioral surface
Source Child process · Crypto · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 164 files · 2.16 MB of source
46 external domains referenced
10.0.2.2 127.0.0.1 api.cloudflare.com api.github.com api.ipapi.is api.ipify.org api.myip.com cdn.npmmirror.com chatgpt.com cicy-1372193042.cos.ap-shanghai.myqcloud.com cicy-ai.com cloud.debian.org deb.debian.org desktop.cicy-ai.com desktop.docker.com dl.cicy-ai.com example.com g-electron.cicy.de5.net gateway.cicy-ai.com gemini.google.com ghproxy.net github.com ip-api.com ipinfo.io mirrors.tuna.tsinghua.edu.cn mirrors.ustc.edu.cn nodejs.org npmmirror.com r2.deepfetch.de5.net raw.githubusercontent.com react.dev registry.npmjs.org registry.npmmirror.com schemas.microsoft.com web.telegram.org ws.cicy-ai.com wslstorestorage.blob.core.windows.net www.apple.com www.baidu.com www.docker.com www.douyin.com www.facebook.com www.google.com www.gstatic.com www.tiktok.com www.w3.org Findings4 critical · 23 high · 5 medium · 6 low Source & flagged code30 flagged High Child process
Package source references child process execution.
scripts/sync-runtime-deps.cjs View on unpkg · L13 Code excerpt · 2 lines 14 const { execSync } = require ("child_process" );
15 const fs = require ("fs" );
High Shell
Package source references shell execution.
scripts/sync-runtime-deps.cjs View on unpkg · L26 Code excerpt · 3 lines 26 // script aborted with "resolved nothing" even though the registry was fine.
27 // cmd.exe (win) / sh (unix) resolve `npm` correctly. pkg/REGISTRY are trusted
28 // constants, so the interpolation is safe.
Code excerpt · 3 lines 1506 // eslint-disable-next-line no-new-func
1507 return await new Function (`return (async()=>{${f.js}})()` )();
1508 }
Low Weak crypto
Package source references weak cryptographic algorithms.
tools/arm-fblogin.js View on unpkg · L6 Code excerpt · 8 lines 6 if (!el||!el.ipcMain) return {ok:false ,err:'no electron.ipcMain' };
7 function totp (secret){const alph='[redacted]' ;let b='' ;for (const ch of String (secret||'' ).toUpperCase ()){const v=alph.indexOf (ch);if (v>=0 )b+=v.toString (2 ).pad...
8 async function fbLogin (idx){
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
src/main.js View on unpkg · L33 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
src/main.js View on unpkg · L33 Shared code excerpt · 2 findings · 12 lines Trigger-reachable persistence chain: manifest.main -> src/main.js
33 // 而且新建 profile 随时会多出来,手动注册必然漏。
34 const NO_PASSKEY = require ("path" ).join (__dirname, "inject" , "no-passkey.js" );
35 function armNoPasskey (ses) {
⋯
165 electronApp.commandLine.appendSwitch ("ignore-certificate-errors" );
Critical Same file environment network execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
src/sidecar/host-mihomo.js View on unpkg · L20 Code excerpt · 8 lines 21 const { spawn, execFile } = require ("child_process" );
22 const fs = require ("fs" );
⋯
24 const path = require ("path" );
25 const https = require ("https" );
26 const http = require ("http" );
⋯
30
High Credential exfiltration
Source combines credential-like environment material and outbound requests; review data flow before blocking.
scripts/r2.mjs View on unpkg · L17 High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
scripts/r2.mjs View on unpkg · L17 Shared code excerpt · 2 findings · 12 lines 17 // R2_BUCKET default: cicy-assets-poc
18 // R2_PUBLIC_BASE default: https://r2.deepfetch.de5.net
19 //
⋯
24
25 import { spawnSync } from "node:child_process" ;
26 import { pathToFileURL } from "node:url" ;
Critical Persistence backdoor
Source writes persistence or remote-access backdoor material.
src/sidecar/colima-docker.js View on unpkg · L26 Code excerpt · 11 lines 27 const { execFile, spawn } = require ("child_process" );
28 const path = require ("path" );
⋯
33 // 专用 Colima profile —— 绝不动用户自己的默认 colima/docker。
34 const PROFILE = process.env.CICY_COLIMA_PROFILE || "cicy-code" ;
35 // Colima 给每个 profile 建一个 docker context,名字是 `colima-<profile>`。所有
⋯
64 // Xcode/CLT —— colima/docker 都是预编译 bottle,无编译步骤)。可用环境变量换 CN 镜像。
65 const BREW_TARBALL = process.env.CICY_BREW_TARBALL || "https://github.[redacted]" ;
Critical Download execute
Source downloads or fetches remote code and executes it.
src/sidecar/qemu-vm.cjs View on unpkg · L5 Code excerpt · 12 lines 5 // 两边版本可能不同步,所以只认同一套磁盘约定(vmDir 下的文件 + 端口),谁先开机谁当 runner。
6 // 只打一行 JSON 到 stdout。不靠 WSL:QEMU 便携版 + Debian 官方云镜像,
7 // 有 WHPX(Windows 虚拟机监控程序平台)就用硬件加速,没有就退回纯软件模拟(TCG),
⋯
12 // 首页不发 desktop 版就能更新这里;改版本号/端口/源时同步改 DEB_* 常量。
13 const fs = require ("fs" ), path = require ("path" ), os = require ("os" ), cp = require ("child_process" ), net = require ("net" ), http = require ( ), crypto = ( );
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
bin/cicy-desktop View on unpkg · L1 Code excerpt · 12 lines Cross-file remote execution chain: bin/cicy-desktop spawns src/main.js; helper contains network access plus dynamic code execution.
1 #!/usr/bin/env node
2 const { spawn, execSync, execFileSync } = require("child_process");
3 const path = require("path");
⋯
5 const os = require("os");
6 const isWindows = process.platform === "win32";
7 const { MasterTokenManager } = require("../src/master/master-main");
8 const { version: CLI_VERSION } = require("../package.json");
9
⋯
17
18 const HOME = os.homedir();
19 const DESKTOP_DIR = path.join(HOME, "Desktop");
⋯
29 // 仍可用 ELECTRON_MIRROR 显式覆盖(power user / CI)。下载只在首次(无缓存)发生。
bin/cicy-desktop#virtual:normalized:round1 View file High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
bin/cicy-desktop#virtual:normalized:round1 View on unpkg · L495 Code excerpt · 6 lines Trigger-reachable command-output exfiltration chain: scripts.start -> bin/cicy-desktop
495 // A .cmd is icon-less; a proper .lnk with the CiCy icon is written via a
496 // throwaway PowerShell script (WScript.Shell CreateShortcut + IconLocation).
497 //
⋯
501 $s.Arguments = "/c set PATH=${nodeDir};%APPDATA%\\npm;%PATH%&& cicy-desktop"
502 $s.IconLocation = "${ico.replace(/"/g, "''")}"\n$s.Save()\n`);\n try {\n execSync(`powershell -NoProfile -ExecutionPolicy Bypass -File \"${ps}\"`, { stdio: \"ignore\" });\n ...
503 // (https://desktop.cicy-ai.com/) as the first window. The cicy-code
High Runtime package install
Package source invokes a package manager install command at runtime.
bin/cicy-desktop#virtual:normalized:round1 View on unpkg · L34 Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
bin/preinstall.sh View on unpkg Scanner record · 4 lines path = bin/preinstall.sh
kind = build_helper
sizeBytes = 815
magicHex = [redacted]
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/app-updater.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/app-updater.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/backends/local-teams.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/backends/local-teams.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/backends/window-manager.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/backends/window-manager.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/cloud/cloud-client.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/cloud/cloud-client.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/main-old.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/main-old.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/sidecar/wsl-docker.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/sidecar/wsl-docker.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/backends/ipc.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/backends/ipc.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
9 let cred=null ; try {const d=JSON.parse (fs.readFileSync (path.join (os.homedir (),'cicy-ai' ,'electron' ,`account-${idx}.json` ),'utf8' ));const fb=(d.logins||[]).find (l=>String (l.name||'' )...
10 if (!cred||!cred.email||!cred.pass) return {ok:false ,err:'no cred' };
14 const ev=(c)=>wc.executeJavaScript (c,true );
15 const fill=await ev (`(()=>{function s(el,v){const p=Object.getPrototypeOf(el),d=Object.getOwnPropertyDescriptor(p,'value').set;d.call(el,v);el.dispatchEvent(new Event('input',{bubb...
16 if (!fill.ok) return {ok
166
// Allow CDP WebSocket connections from any origin so we can drive Page.reload
167 // remotely (HMR-fallback when CSS / a renderer-side change needs a hard refresh).
177 // session-created 里注册的 no-passkey 注入脚本。
178 if (process.platform === "linux" ) {
179 process.env["ELECTRON_DISABLE_SECURITY_WARNINGS" ] = "true" ;
180 // electronApp.commandLine.appendSwitch("disable-setuid-sandbox");
335 wc.send (channel, payload);
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/main.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/main.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
31
const VER = (process.env.CICY_MIHOMO_VERSION || "v1.10.4" ).replace (/^v?/, "v" );
32 const R2_BASE = process.env.CICY_R2_BASE || process.env.CICY_OSS_BASE || "https://r2.deepfetch.de5.net" ;
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/sidecar/host-mihomo.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = src/sidecar/host-mihomo.js
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
⋯
29 const BUCKET = process.env.R2_BUCKET || "cicy-assets-poc" ;
30 const PUBLIC_BASE = (process.env.R2_PUBLIC_BASE || "https://r2.deepfetch.de5.net" ).replace (/\/$/, "" );
37 function die (msg, code = 1 ) {
38 process.stderr.write (`r2: ${msg}\n` );
High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
scripts/r2.mjs View on unpkg · L24 Code excerpt · 8 lines 25 import { spawnSync } from "node:child_process" ;
26 import { pathToFileURL } from "node:url" ;
⋯
29 const BUCKET = process.env.R2_BUCKET || "cicy-assets-poc" ;
30 const PUBLIC_BASE = (process.env.R2_PUBLIC_BASE || "https://r2.deepfetch.de5.net" ).replace (/\/$/, "" );
31 const ACCOUNT = process.env.R2_ACCOUNT_ID || "" ;
⋯
37 function die (msg, code = 1 ) {
38 process.stderr.write (`r2: ${msg}\n` );
39 process.exit (code);
70 execFile ("bash" , ["-lc" , cmd], { timeout, env: shEnv (), maxBuffer: 1 << 26 },
71 (err, stdout, stderr) => {
72 if (err) { err.stdout = String (stdout || "" ); err.stderr = String (stderr || "" ); return reject (err); }
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
src/sidecar/colima-docker.js View on unpkg · L26 Code excerpt · 12 lines Trigger-reachable chain: manifest.main -> src/main.js -> src/backends/sidecar-ipc.js -> src/sidecar/colima-docker.js
26
27 const { execFile, spawn } = require ("child_process" );
28 const path = require ("path" );
⋯
33 // 专用 Colima profile —— 绝不动用户自己的默认 colima/docker。
34 const PROFILE = process.env.CICY_COLIMA_PROFILE || "cicy-code" ;
35 // Colima 给每个 profile 建一个 docker context,名字是 `colima-<profile>`。所有
⋯
64 // Xcode/CLT —— colima/docker 都是预编译 bottle,无编译步骤)。可用环境变量换 CN 镜像。
65 const BREW_TARBALL = process.env.CICY_BREW_TARBALL || "https://github.[redacted]" ;
66
⋯
70 execFile ("bash" , ["-lc" , cmd], { timeout, env: shEnv (), maxBuffer: 1 << 26 },
71 (err, stdout, stderr) => {
72 if (err) { err.stdout = String (stdout || "" ); err.stderr = String (stderr || "" ); return rej
"http"
require
"crypto"
14 const OP = process.argv[2 ] || "status" ;
36 const home = os.homedir ();
37 const WIN = process.platform === "win32" ;
38 const LAD = process.env.LOCALAPPDATA || path.join (home, "AppData" , "Local" );
39 const qemuDir = path.join (LAD, "cicy-qemu" );
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/cicy-desktop View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = cicy-desktop@2.1.368
matchedPath = bin/cicy-desktop
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.368
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Code excerpt · 5 lines 35 // Resolve a globally-installed electron (`npm i -g electron`), so the ~200MB
36 // binary is downloaded once and SHARED across cicy tools / desktop versions
⋯
42 try {
43 const prefix = execSync("npm prefix -g", { stdio: ["ignore", "pipe", "ignore"] })
44 .toString().trim();
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
bin/cicy-desktop#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 5