Loading npm security reports…
Loading npm security reports…
cicy-desktop@2.1.292: Remote code execution – npm package flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 24 findings warrant review before installing.
AI security reviewscanned on Aug 27, 2026, 04:48 UTC · by lpm-firewall-ai The package warrants a warning for powerful runtime execution and persistence plus an unverified native download path. Its lack of install hooks and absence of a concrete malicious chain do not support a publish block.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User runs cicy-desktop and enables or uses its runtime features.
Impact
A compromised vendor download source or an unauthorized MCP caller could obtain code execution; the Docker runtime may continue after the app exits.
Mechanism
Runtime binary download, detached process launch, MCP shell execution, and Windows login persistence.
Evidence
package.json src/tools/exec-tools.js src/sidecar/host-mihomo.js src/sidecar/wsl-docker.js
Network endpoints1
cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com
public snapshot
Evidence for warning
The runtime exposes an MCP tool that executes arbitrary shell commands. The application downloads a native proxy binary from its vendor object store without a cryptographic integrity check, then launches it detached. On Windows startup it creates a hidden logon task, with a registry-run fallback, to keep its WSL Docker service alive. Evidence against
package.json has no preinstall, install, or postinstall hook; its only lifecycle hook is prepublishOnly. The observed downloads, proxy service, command tools, and persistence are disclosed application features triggered after the user starts the desktop application. No source evidence shows credential theft, covert exfiltration, foreign AI-agent configuration changes, or install-time mutation. Behavioral surface
Source Child process · Crypto · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 142 files · 1.70 MB of source
34 external domains referenced
127.0.0.1 api.ipify.org api.myip.com cdn.npmmirror.com chatgpt.com cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com cicy-1372193042.cos.ap-shanghai.myqcloud.com cicy-ai.com desktop.docker.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 raw.githubusercontent.com react.dev registry.npmjs.org registry.npmmirror.com schemas.microsoft.com web.telegram.org wslstorestorage.blob.core.windows.net www.apple.com www.baidu.com www.docker.com www.douyin.com www.google.com www.gstatic.com www.w3.org Findings5 critical · 8 high · 5 medium · 6 low Source & flagged code16 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" );
Code excerpt · 3 lines 166 if (isWindows) {
167 execFileSync("powershell", ["-NoProfile", "-Command", `Expand-Archive -LiteralPath "${dest}" -DestinationPath "${distDir}" -Force`], { stdio: "inherit" });
168 } else {
High Entrypoint foreign package code overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
bin/cicy-desktop View on unpkg Scanner record · 9 lines Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
bin/cicy-desktop:
const OSS_ELECTRON_MIRROR = "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com/electron/";
const GH_ELECTRON_BASE = "https://github.[redacted]/";
const NPM_REGISTRY = process.env.CICY_NPM_REGISTRY || process.env.npm[redacted] || "https://registry.npmmirror.com";
? path.join(prefix, "node_modules", "electron") // win: <prefix>\node_modules\electron
: path.join(prefix, "lib", "node_modules", "electron"); // unix: <prefix>/lib/node_modules/electron
execFileSync(curl, ["-sI", "--max-time", "2", "-o", nul, "https://www.google.com/generate_204"], { stdio: "ignore" });
fs.writeFileSync(path.join(bundledDir, "path.txt"), exe);
//
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
src/sidecar/docker.js View on unpkg · L10 Code excerpt · 12 lines 10 // locally it's loaded from R2 (CN-friendly, no Docker Hub pull):
11 // https://r2.deepfetch.de5.net/docker/cicy-code-latest.tar.gz
12 //
⋯
14 const log = require ("electron-log" ); // bootstrap preflight failures must land in main.log
15 const { execFile, execFileSync, spawn } = require ("child_process" );
16 const https = require ("https" );
⋯
22
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
bin/cicy-desktop#virtual:normalized:round1 View file High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
bin/cicy-desktop#virtual:normalized:round1 View on unpkg · L494 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 · L494 Shared code excerpt · 2 findings · 6 lines 494 // A .cmd is icon-less; a proper .lnk with the CiCy icon is written via a
495 // throwaway PowerShell script (WScript.Shell CreateShortcut + IconLocation).
496 //
⋯
500 $s.Arguments = "/c set PATH=${nodeDir};%APPDATA%\\npm;%PATH%&& cicy-desktop"
501 $s.IconLocation = "${ico.replace(/"/g, "''")}"\n$s.Save()\n`);\n try {\n execSync(`powershell -NoProfile -ExecutionPolicy Bypass -File \"${ps}\"`, { stdio: \"ignore\" });\n ...
502 // (https://desktop.cicy-ai.com/) as the first window. The cicy-code
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>`。所有
⋯
55 // ubuntu-24.04 + docker 的 cloudimg 即可,和 colima 版本解耦(用稳定 key,不跟版本号)。
56 const OSS_BASE = process.env.CICY_OSS_BASE || "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com" ;
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
src/sidecar/wsl-docker.js View on unpkg · L16 Code excerpt · 12 lines Trigger-reachable chain: manifest.main -> src/main.js -> src/tools/tab-browser-tools.js -> src/sidecar/wsl-docker.js
16
17 const { execFile, execFileSync, spawn } = require ("child_process" );
18 const path = require ("path" );
⋯
28 // Dedicated distro name — NEVER reuse/clobber a user's own "Ubuntu" distro.
29 const DISTRO = process.env.CICY_WSL_DISTRO || "cicy-code-wsl" ;
30 const IMAGE = process.env.CICY_DOCKER_IMAGE || "cicybot/cicy-code:latest" ;
⋯
High Runtime package install
Package source invokes a package manager install command at runtime.
scripts/build-homepage.cjs View on unpkg · L27 Code excerpt · 6 lines 27 console.log (`[build-homepage] $ ${cmd} (in ${path.relative(ROOT, cwd) || "."})` );
28 execSync (cmd, { cwd, stdio: "inherit" });
29 }
⋯
32 if (!fs.existsSync (path.join (RENDER, "node_modules" ))) {
33 run ("npm install --no-audit --no-fund" , RENDER);
34 }
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 = 846
magicHex = [redacted]
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
src/backends/local-teams.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = cicy-desktop@2.1.285
matchedIdentity = npm:Y2ljeS1kZXNrdG9w:2.1.285
similarity = 0.933
summary = stored previous version shares package body but lacks this dangerous source file
Child process
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
23 const IMAGE = process.env.CICY_DOCKER_IMAGE || "cicybot/cicy-code:latest" ;
24 // Image tarball on Aliyun OSS (oss-cn-shanghai, public-read) — CN-domestic and
65 return new Promise ((resolve, reject) => {
66 execFile (dockerBin (), args, { timeout, windowsHide: true }, (err, stdout, stderr) => {
67 if (err) { err.stdout = String (stdout || "" ); err.stderr = String (stderr || "" ); return reject (err); }
31
const VER = (process.env.CICY_MIHOMO_VERSION || "v1.10.4" ).replace (/^v?/, "v" );
32 const OSS_BASE = process.env.CICY_OSS_BASE || "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com" ;
Critical Download execute
Source downloads or fetches remote code and executes it.
src/sidecar/host-mihomo.js View on unpkg · L20 Code excerpt · 11 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
31 const VER = (process.env.CICY_MIHOMO_VERSION || "v1.10.4" ).replace (/^v?/, "v" );
32 const OSS_BASE = process.env.CICY_OSS_BASE || "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com" ;
⋯
44 const VERD = VER.replace (/^v/, "" );
45 const LOCAL_BIN = path.join (os.homedir (), ".local" , "bin" );
46 const NEW_BIN = path.join (LOCAL_BIN, `mihomo-${VERD}${EXT}` );
57 const BASE_IMAGE_URL = process.env.CICY_COLIMA_BASE_URL ||
58 `${OSS_BASE}/colima-base/ubuntu-2404-${ARCH_TAG}-docker.raw.gz` ;
59 function baseImagePath () { return path.join (os.homedir (), "cicy-ai" , "colima" , `ubuntu-2404-${ARCH_TAG}-docker.raw.gz` ); }
`${baseUrl}/files/screenshot/sys_win_${winId.replace(/^0x/, "")}.jpeg`
107 const screenshotDir = path.join (
108 require ("os" ).homedir (),
39
const ROOTFS_URL = process.env.CICY_WSL_ROOTFS_URL ||
40 "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com/rootfs/cicy-wsl-latest.tar.gz" ;
64 log.info (`[wsl-docker] NVIDIA GPU unavailable for ${cacheKey}: ${String(e.stderr || e.message || "").trim().slice(-300)}` );
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
src/sidecar/wsl-docker.js View on unpkg · L16 Code excerpt · 12 lines Trigger-reachable persistence chain: manifest.main -> src/main.js -> src/tools/tab-browser-tools.js -> src/sidecar/wsl-docker.js
16
17 const { execFile, execFileSync, spawn } = require ("child_process" );
18 const path = require ("path" );
⋯
28 // Dedicated distro name — NEVER reuse/clobber a user's own "Ubuntu" distro.
29 const DISTRO = process.env.CICY_WSL_DISTRO || "cicy-code-wsl" ;
30 const IMAGE = process.env.CICY_DOCKER_IMAGE || "cicybot/cicy-code:latest" ;
⋯
39 const ROOTFS_URL = process.env.CICY_WSL_ROOTFS_URL ||
40 "https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com/rootfs/cicy-wsl-latest.tar.gz" ;
41
⋯
63 } catch (e) {
64 log.info (`[wsl-docker] NVIDIA GPU unavailable for ${cacheKey}: ${String(e.stderr || e.message || "").trim().slice(-300)}` );
L65