Loading npm security reports…
Loading npm security reports…
@cleocode/cleo@2026.9.2: Persistence – npm package flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 29 findings warrant review before installing.
AI security reviewscanned on Sep 14, 2026, 10:25 UTC · by lpm-firewall-ai Automatic postinstall startup persistence is a meaningful install-time risk even though it is confined to global installs. The inspected source did not prove credential theft, remote payload delivery, or broad AI-agent control-surface modification.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Global npm installation of the package.
Impact
A package-controlled daemon can continue running after installation and across user sessions.
Mechanism
Postinstall creation and activation of systemd or launchd user services.
Evidence
package.json bin/postinstall.js scripts/install-daemon-service.mjs ~/.config/systemd/user/cleo-daemon.service ~/Library/LaunchAgents/io.cleocode.daemon.plist
public snapshot
Evidence for warning
The package runs a postinstall hook automatically. On global installation, the hook invokes a daemon-service installer. The installer writes and enables a persistent user system service by default. Evidence against
The service action is limited to detected global installs. No confirmed credential harvesting or unsolicited external endpoint was found in the inspected paths. The runtime gateway default is loopback-only. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 660 files · 14.1 MB of source
50 external domains referenced
127.0.0.1 169.254.169.254 169.254.170.2 a.co ai-gateway.vercel.sh ai-sdk.dev api.anthropic.com api.kimi.com api.llmtxt.my api.moonshot.ai api.openai.com api.signaldock.io api.vercel.com api.x.ai auth.kimi.com auth.openai.com aws.amazon.com cdn.jsdelivr.net chatgpt.com claude.ai cleocode.dev datatracker.ietf.org developer.mozilla.org docs.anthropic.com docs.aws.amazon.com docs.expo.dev example.com generativelanguage.googleapis.com get.webgl.org gist.github.com github.com help.openai.com huggingface.co jcgt.org json-schema.org lafs.dev my.site no-color.org npmjs.com oauth2.googleapis.com opencollective.com openrouter.ai platform.claude.com portal.sso portal.sso-fips raw.githubusercontent.com react-native.canny.io rolldown.rs sharp.pixelplumbing.com sts.amazonaws.com Oversized source lightweight scan
dist/cli/index.js 2.99 MB file, sampled 256 KB
Filesystem Child process Environment variables Shell High entropy strings URL strings 127.0.0.1
studio-dist/client/_app/immutable/chunks/BPigbo0P.js 5.36 MB file, sampled 256 KB
Minified
studio-dist/server/chunks/dist4-BMUVeYxs.js 6.58 MB file, sampled 256 KB
Filesystem Child process Environment variables Shell High entropy strings URL strings no-color.org
Findings4 critical · 12 high · 8 medium · 5 low Source & flagged code22 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node bin/postinstall.js && node scripts/postinstall-check-core.mjs
Code excerpt · 2 lines 51 import { spawn } from 'node:child_process' ;
52 import { dirname, resolve } from 'node:path' ;
Code excerpt · 3 lines 82 * flip. The flag is exact and covers both routes it can arrive by: our own
83 * re-exec lands it in `execArgv` , an operator's setting in `NODE_OPTIONS`.
84 */
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/cleo.js View on unpkg · L50 Code excerpt · 12 lines Cross-file remote execution chain: bin/cleo.js spawns dist/cli/index.js; helper contains network access plus dynamic code execution.
50
51 import { spawn } from 'node:child_process' ;
52 import { dirname, resolve } from 'node:path' ;
⋯
54
55 const __dirname = dirname (fileURLToPath (import .meta.url));
56 const cliPath = resolve (__dirname, '../dist/cli/index.js' );
⋯
61
62 const requested = Number.parseInt (process.env.CLEO_MAX_OLD_SPACE_MB ?? '' , 10 );
Medium Dynamic require
Package source references dynamic require/import behavior.
bin/postinstall.js View on unpkg · L64 Code excerpt · 3 lines 64 try {
65 ({ checkAllDependencies } = await import ('@cleocode/core/internal' ));
66 } catch {
studio-dist/server/chunks/index-61916rmV.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
studio-dist/server/chunks/index-61916rmV.js View on unpkg · L48 Code excerpt · 9 lines 48 exports$1.signals.push ('SIGHUP' , 'SIGINT' , 'SIGTERM' );
49 if (process.platform !== 'win32' ) {
50 exports$1.signals.push ('SIGALRM' , 'SIGABRT' , 'SIGVTALRM' , 'SIGXCPU' , 'SIGXFSZ' , 'SIGUSR2' , 'SIGTRAP' , 'SIGSYS' , 'SIGQUIT' , 'SIGIOT'
⋯
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/cli/index.js View on unpkg · L248 Code excerpt · 12 lines 248 args: parsedArgs,
249 data: opts.data,
250 cmd
⋯
438 const quiet = input2.flagResolution.quiet;
439 const isTTY = input2.isTTY ?? Boolean (process.stdout.isTTY);
440 const noColor3 = input2.noColor ?? process.env.NO_COLOR != null ;
441 const inputs = { format, quiet, isTTY, noColor: noColor3 };
⋯
2086 amendments: [],
2087 rationale: "Claude Code / Cursor / OpenCode harness adapters (10,661 LOC) consumed only by core. Provider-specific FS layouts + child_process spawning; TS-only fit."
2088 },
⋯
2287
studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js View file Critical Hardcoded runtime data exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js View on unpkg · L1 Code excerpt · 6 lines 1 const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Wadww7ZG.js" ,"./DYP3EJMY.js" ,"./DrKWWDpL.js" ,"./B3_X3Lhd2.js" ,"./CqCka5yX2.js" ,"./84Rhmi6r.js" ,"./DsQIgu-4.js" ,"./DtNkZU...
2 import {s as e}from "./DrKWWDpL.js" ;import {n as t,t as n}from "./DsQIgu-4.js" ;import {t as r} ; {Cn i,In a,Jn o,Sn s,Tt c,Yn l,jn u,kt d,...
studio-dist/server/chunks/dist-es4-CavbNu4B.js View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
studio-dist/server/chunks/dist-es4-CavbNu4B.js View on unpkg · L20 Code excerpt · 12 lines 20 import 'node:module' ;
21 import 'node:child_process' ;
22 import 'node:crypto' ;
⋯
82 if (response.statusCode === 200 ) {
83 const parsed = JSON.parse (str);
84 if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== || parsed.Expiration !== ) Cre...
studio-dist/client/_app/immutable/assets/ort-wasm-simd-threaded.asyncify.BrebZMa_.wasm View file Medium Ships WASM module
Package ships WebAssembly modules.
studio-dist/client/_app/immutable/assets/ort-wasm-simd-threaded.asyncify.BrebZMa_.wasm View on unpkg Scanner record · 4 lines path = studio-dist/client/_app/immutable/assets/ort-wasm-simd-threaded.asyncify.BrebZMa_.wasm
kind = wasm_module
sizeBytes = 22819905
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
completions/zsh-completion.zsh View on unpkg Scanner record · 4 lines path = completions/zsh-completion.zsh
kind = build_helper
sizeBytes = 11708
magicHex = [redacted]
studio-dist/server/chunks/dist4-BMUVeYxs.js View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
studio-dist/server/chunks/dist4-BMUVeYxs.js View on unpkg Scanner record · 4 lines path = studio-dist/server/chunks/dist4-BMUVeYxs.js
kind = oversized_source_file
sizeBytes = 6904397
magicHex = [redacted]
assets/viewer/viewer.js#virtual:normalized:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
assets/viewer/viewer.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 12
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
studio-dist/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = ohmycode@1.0.8
matchedPath = build/index.js
matchedIdentity = npm:b2hteWNvZGU:1.0.8
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Trigger reachable command output exfiltration
Code↓
studio-dist/server/chunks/transformers.node-_xbxmK5p.js1 finding
High Eval Code↓ Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
63 const heapCapMb = Number.isFinite (requested) && requested > 0 ? requested : DEFAULT_HEAP_CAP_MB;
117 child.on ('error' , (err) => {
118 process.stderr.write (`cleo: failed to start CLI: ${err.message}\n` );
292
}
293 this .#process.exitCode = code || 0 ;
419 // https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
420 function isChownErrOk (err) {
amendments: [],
2288 rationale: 'MCP transport adapter (R8 \xB7 T11259) \u2014 the standalone `packages/mcp-adapter` source was deleted and consolidated into `@cleocode/runtime/gateway/mcp` (R3-T4 \xB7...
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/cli/index.js View on unpkg · L48360 High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/cli/index.js View on unpkg · L48360 Shared code excerpt · 2 findings · 7 lines 48360 warn (message) {
48361 process.stderr.write (`${message}
48362 `);
⋯
48373 // [redacted]-login.ts
48374 import { spawn } from "node:child_process" ;
48375 import { createServer } from "node:http" ;
48376 import { addCredential } from "@cleocode/core/llm/credentials-store.js" ;
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli/index.js View on unpkg · L248 Code excerpt · 12 lines Trigger-reachable chain: manifest.main -> dist/cli/index.js
248 args: parsedArgs,
249 data: opts.data,
250 cmd
⋯
438 const quiet = input2.flagResolution.quiet;
439 const isTTY = input2.isTTY ?? Boolean (process.stdout.isTTY);
440 const noColor3 = input2.noColor ?? process.env.NO_COLOR != null ;
441 const inputs = { format, quiet, isTTY, noColor: noColor3 };
⋯
2086 amendments: [],
2087 rationale: "Claude Code / Cursor / OpenCode harness adapters (10,661 LOC) consumed only by core. Provider-specific FS layouts + child_process spawning; TS-only fit."
2088 },
⋯
2287 amendments: [],
2288 rationale: 'MCP transport adapter (R8 \xB7 T11259) \u2014 the standalone `packages/mcp-adapter` source was deleted and consolidated into `@cleocode/runtime/gateway/mcp` (R3-T4 \xB7..
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli/index.js View on unpkg · L54568 Code excerpt · 9 lines 54568 // packages/cleo/src/cli/web-subsystem.ts
54569 import { execFileSync as execFileSync2, spawn as spawn2 } from "node:child_process" ;
54570 import { existsSync as existsSync11 } from "node:fs" ;
54571 import { mkdir, open, readFile as readFile3, rm, stat, writeFile } from "node:fs/promises" ;
54572 import { dirname as dirname5, join as join16, resolve as resolve4 } from "node:path" ;
54573 import { fileURLToPath as fileURLToPath3 } from "node:url" ;
⋯
54576 function resolveStudioDir () {
54577 const envOverride = process.env["CLEO_STUDIO_DIR" ];
54578 if (envOverride !== void 0 && envOverride.length > 0 && existsSync11 (envOverride)) {
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli/index.js View on unpkg Scanner record · 8 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli/index.jsbaseUrl: { type: ["string", "null"] },
description: "API key or OAuth bearer token to persist. SECRET \u2014 never logged/echoed."
baseUrl: { type: "string", description: "Optional override for the provider base URL." },
description: "Store an API key for a provider account."
description: "Direct API key / bearer token to store (token-direct mode). SECRET."
description: "OAuth authorization code from the redirect callback (paste-code mode)."
description: "API key or OAuth bearer token to persist"
name: "baseUrl",
High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/cli/index.js View on unpkg · L248 Code excerpt · 12 lines Trigger-reachable credential exfiltration chain: manifest.main -> dist/cli/index.js
248 args: parsedArgs,
249 data: opts.data,
250 cmd
⋯
438 const quiet = input2.flagResolution.quiet;
439 const isTTY = input2.isTTY ?? Boolean (process.stdout.isTTY);
440 const noColor3 = input2.noColor ?? process.env.NO_COLOR != null ;
441 const inputs = { format, quiet, isTTY, noColor: noColor3 };
⋯
2086 amendments: [],
2087 rationale: "Claude Code / Cursor / OpenCode harness adapters (10,661 LOC) consumed only by core. Provider-specific FS layouts + child_process spawning; TS-only fit."
2088 },
⋯
2287 amendments: [],
2288 rationale: 'MCP transport adapter (R8 \xB7 T11259) \u2014 the standalone `packages/mcp-adapter` source was deleted and consolidated into `@cleocode/runtime/ga
from
"./DYP3EJMY.js"
import
as
as
as
as
as
as
as
as
4 `,It=` llmtxt_`,Lt=50,Rt=15,zt={owner:[` read`,` write`,` delete `,` manage`,` approve`],editor:[` read`,` write`,` approve`],viewer:[` read`]};t();async function B(t,r,i){let a=Buffer.byteLe...
5 `)}t();var H;async function Ut(){if(H!==void 0)return H;try{return H=(await n(()=>import(` ./B3_X3Lhd2.js`),__vite__mapDeps([3,4,2,1]),import.meta.url)).parseLafsResponse,H}catch{re...
6 `))!==-1;){let e=n.slice(0,o).replace(/
"string"
typeof
"string"
throw
new
118 var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
119 var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2" ;
120 var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI" ;
126 const relative = options.[redacted] ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
127 const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTA