Loading npm security reports…
Loading npm security reports…
@cleocode/cleo@2026.8.1: Agent extension lifecycle risk – flagged | LPM Firewall
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Aug 9, 2026, 07:20 UTC · by lpm-firewall-ai The package has a concrete unconsented persistence behavior during global install, warranting a warning. It is a first-party CLEO daemon setup rather than confirmed malicious behavior or foreign AI-agent control hijacking.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
npm global installation of @cleocode/cleo
Impact
Persistent CLEO daemon execution at user login/restart.
Mechanism
postinstall registers and activates a CLEO daemon service
Evidence
package.json bin/postinstall.js scripts/install-daemon-service.mjs dist/cli/index.js
Decision evidencepublic snapshot Evidence for warning
package.json runs bin/postinstall.js automatically. bin/postinstall.js runs daemon installation on global installs. scripts/install-daemon-service.mjs writes and activates a persistent user daemon. The service executes `cleo daemon start --foreground` with restart/KeepAlive behavior. Evidence against
No network request or credential harvesting occurs in either postinstall path. Runtime API requests use a user-registered agent credential and configurable apiBaseUrl. No foreign AI-agent configuration or broad control-surface mutation was found. Telemetry code records local command metadata only when enabled. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Native bindings · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Obfuscated · Protestware · URL strings
Manifest No manifest risk signals triggered.
Scanned 658 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 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 svelte.dev Oversized source lightweight scan
dist/cli/index.js 2.79 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/D53UeOrV.js 5.36 MB file, sampled 256 KB
Network Child process Minified
studio-dist/server/chunks/dist4-CjanXw2p.js 6.58 MB file, sampled 256 KB
Filesystem Child process Environment variables Shell High entropy strings
Findings5 critical · 11 high · 10 medium · 6 low Source & flagged code23 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 21 import { execFileSync } from 'child_process' ;
22 import { resolve } from 'path' ;
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 · L17 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.
17 *
18 * See: https://github.[redacted] (T1138)
19 */
20
21 import { execFileSync } from 'child_process' ;
22 import { resolve } from 'path' ;
⋯
25
26 const __dirname = dirname (fileURLToPath (import .meta.url));
27 const cliPath = resolve (__dirname, '../dist/cli/index.js' );
⋯
31
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/cli/index.js View on unpkg · L248 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 Shared code excerpt · 2 findings · 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 };
⋯
2190 $pathTokens: {
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/role-executor-CqwA9Eqa.js View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
studio-dist/server/chunks/role-executor-CqwA9Eqa.js View on unpkg · L16 Low Weak crypto
Package source references weak cryptographic algorithms.
studio-dist/server/chunks/role-executor-CqwA9Eqa.js View on unpkg · L16 Shared code excerpt · 2 findings · 12 lines 16 import { env, versions } from 'node:process' ;
17 import http2, { constants } from 'node:http2' ;
18 import { readFile as readFile$1 } from 'fs/promises' ;
⋯
265 const jsonPath = join ( ( ( .meta.url)), );
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
scripts/install-daemon-service.mjs View on unpkg · L33 Code excerpt · 12 lines 33 import { createHash } from 'node:crypto' ;
34 import { execFileSync } from 'node:child_process' ;
35 import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, rmSync, writeFileSync } from 'node:fs' ;
⋯
55 *
56 * @returns {{ data: string; config: string; cache: string; log: string; temp: string }}
57 */
⋯
62
63 const home = homedir ();
64 platform = process.platform;
studio-dist/client/_app/immutable/chunks/BXo84Kx6.js View file Critical Trojan source unicode
Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
studio-dist/client/_app/immutable/chunks/BXo84Kx6.js View on unpkg · L134 Code excerpt · 2 lines 134 contains invisible/control Unicode U+FEFF (zero width no-break space)
}());`),eval(str)||{}}catch(e){if(wrap!==!1&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw SyntaxError(e)}},stringify:function(){throw Error(` stringifying JavaScript is not supported`)}}})),require_strip_bom_
High Obfuscated payload loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
studio-dist/client/_app/immutable/chunks/BXo84Kx6.js View on unpkg · L1 Code excerpt · 6 lines 1 const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./nztWl7KK2.js" , , , , , , ,
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-CjanXw2p.js View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
studio-dist/server/chunks/dist4-CjanXw2p.js View on unpkg Scanner record · 4 lines path = studio-dist/server/chunks/dist4-CjanXw2p.js
kind = oversized_source_file
sizeBytes = 6903433
magicHex = [redacted]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
studio-dist/index.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 1
studio-dist/server/chunks/data-safety-central-CLh7DUZW.js View file Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
studio-dist/server/chunks/data-safety-central-CLh7DUZW.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @cleocode/cleo@2026.8.2
matchedIdentity = npm:QGNsZW9jb2RlL2NsZW8:2026.8.2
similarity = 0.892
summary = stored previous version shares package body but lacks this dangerous source file
Code↓
studio-dist/server/chunks/transformers.node-_xbxmK5p.js1 finding
High Eval Code↓ Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
// rather than a host SIGKILL. Default 1536 MB; override via CLEO_MAX_OLD_SPACE_MB.
32 const maxOldSpaceMb = Number.parseInt (process.env.CLEO_MAX_OLD_SPACE_MB ?? '' , 10 );
33 const heapCapMb = Number.isFinite (maxOldSpaceMb) && maxOldSpaceMb > 0 ? maxOldSpaceMb : 1536 ;
2191 "<projectRoot>" : "Resolved at runtime from CLEO_ROOT env var or process.cwd(). Substituted by SSoT helpers `getCleoProjectDir()` in packages/brain/src/cleo-home.ts." ,
2192 $XDG_DATA_HOME: "Resolved via env-paths through `getCleoHome()` in @cleocode/paths. Linux: ~/.local/share/cleo/, macOS: ~/Library/Application Support/cleo/."
2674 parsed = JSON.parse (raw);
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/cli/index.js View on unpkg · L44254 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 · L44254 Shared code excerpt · 2 findings · 7 lines 44254 warn (message) {
44255 process.stderr.write (`${message}
44256 `);
⋯
44267 // [redacted]-login.ts
44268 import { spawn } from "node:child_process" ;
44269 import { createServer } from "node:http" ;
44270 import { addCredential } from "@cleocode/core/llm/credentials-store.js" ;
Code excerpt · 3 lines 72657 try {
72658 const { stdout: stdout2 } = await execAsync ("npm" , [
72659 "ls" ,
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 · L50243 Code excerpt · 9 lines 50243 // packages/cleo/src/cli/web-subsystem.ts
50244 import { execFileSync as execFileSync2, spawn as spawn2 } from "node:child_process" ;
50245 import { existsSync as existsSync11 } from "node:fs" ;
50246 import { mkdir, open, readFile as readFile3, rm, stat, writeFile } from "node:fs/promises" ;
50247 import { dirname as dirname5, join as join16, resolve as resolve4 } from "node:path" ;
50248 import { fileURLToPath as fileURLToPath3 } from "node:url" ;
⋯
50251 function resolveStudioDir () {
50252 const envOverride = process.env["CLEO_STUDIO_DIR" ];
50253 if (envOverride !== void 0 && envOverride.length > 0 && existsSync11 (envOverride)) {
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 };
⋯
2190 $pathTokens: {
2191 "<projectRoot>" : "Resolved at runtime from CLEO_ROOT env var or process.cwd(). Substituted by SSoT helpers `getCleoProjectDir()` in packages/brain/src/cleo-home.ts." ,
2192 $XDG_DATA_HOME: "Resolved via env-paths through `getCleoHome()` in @cleocode/paths. Linux: ~/.local/share/cleo/, macOS: ~/Library/Application Support/cleo/."
⋯
2673 try {
2674 parsed = JSON
dirname
fileURLToPath
import
"curated-models.json"
266 _curated = JSON.parse (readFileSync (jsonPath, "utf-8" )).models;
308 * otherwise returns {@link DEFAULT_CONTEXT_LENGTH}. Does NOT perform a live API
309 * probe — safe to call inside hot synchronous paths such as `ConcreteSession.send()` .
2296 var NO_GLOBAL_AWS_LAMBDA = ["true" , "1" ].includes (process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "" );
2297 if (!NO_GLOBAL_AWS_LAMBDA) globalThis.awslambda = globalThis.awslambda || {};
const
74 _cachedPlatformPaths = {
75 data: process.env['CLEO_HOME' ] ?? ep.data,
"./BRD340xi.js"
"./DrKWWDpL.js"
"./DsQIgu-4.js"
"./DtNkZUkq.js"
"./Cc8xxDr5.js"
"./C86pTFvQ.js"
"./C5Nlane...
2 import {a as __require,s as __toESM,t as __commonJSMin}from "./DrKWWDpL.js" ;import {n as init_preload_helper,t as __vitePreload}from "./DsQIgu-4.js" ;import {t as require___vite_browser_...
3 `);for(let e of n){if(e.trim()===` ---`)break;let n=e.match(/^\*\*([^*]+)\*\*:\s*(.+)$/);n&&t.push([n[1].trim(),n[2].trim()])}return Object.fromEntries(t)}function extractTitle(e){l...
4 `),r=0;for(;r<n.length;){let e=n[r];if(e.trim()===` `){r++;continue}let a=e.match(/^(\w[\w-]*)\s*:\s*(.*)/);if(!a){r++;continue}let o=a[1],s=a[2].trim();if(s!==` `){let e=parseScalar...
6 `}function addFrontmatter(e,t){let