Loading npm security reports…
Loading npm security reports…
@cleocode/cleo@2026.6.19: AI-agent control-surface risk – flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 26 findings warrant review before installing.
AI security reviewscanned on Jul 1, 2026, 02:14 UTC · by lpm-firewall-ai The package has concrete install-time persistence for an autonomous AI-agent daemon via postinstall, which matches the block boundary for unconsented lifecycle AI-agent control-surface mutation. I did not find source-grounded credential exfiltration, but the lifecycle persistence is sufficient for malicious classification. Product guard normalized a non-low false-positive publish_block request to warn-only suspicious.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm global install of @cleocode/cleo
Impact
Unconsented background daemon may run autonomous task hygiene/dream cycles and persist across login/reboot under the user account.
Mechanism
postinstall writes and enables systemd/launchd daemon service
Policy narrative
On global install, npm runs bin/postinstall.js. If the install appears global, it bootstraps CLEO and imports scripts/install-daemon-service.mjs. That script writes a user system service or LaunchAgent whose ExecStart/ProgramArguments run `cleo daemon start --foreground`, sets restart/KeepAlive behavior, and enables/starts it on first install. This creates persistent background AI-agent daemon behavior before the user explicitly invokes a daemon command.
Evidence
package.json bin/postinstall.js scripts/install-daemon-service.mjs dist/cli/index.js
bin/cleo.js
~/.config/systemd/user/cleo-daemon.service
~/.config/systemd/user/cleo.slice
~/Library/LaunchAgents/io.cleocode.daemon.plist
CLEO log directory under platform log path
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 91.0% confidence with medium false-positive risk.
Evidence for policy risk
package.json defines postinstall: node bin/postinstall.js && node scripts/postinstall-check-core.mjs. bin/postinstall.js runs only on detected global install, imports @cleocode/core bootstrapGlobalCleo, then calls installDaemonService(). scripts/install-daemon-service.mjs writes systemd user unit and slice or macOS LaunchAgent plist during postinstall. Generated service runs `cleo daemon start --foreground` with Restart/KeepAlive and enables/starts it via systemctl/launchctl on first install. dist/cli/index.js describes sentient daemon start as spawning an autonomous background process. Evidence against
No credential harvesting or secret exfiltration found in inspected lifecycle files. Lifecycle network endpoints were not observed; URLs in daemon installer are documentation only. Daemon installer has env/config opt-outs and tries to respect prior disabled state on upgrades. bin/cleo.js only wraps the CLI with node flags and forwards user args. 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 671 files · 14.4 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
Findings1 critical · 8 high · 10 medium · 7 low Source & flagged code17 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 studio-dist/server/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
studio-dist/server/chunks/paths-BKtNmmoa.js View file High Shell
Package source references shell execution.
studio-dist/server/chunks/paths-BKtNmmoa.js View on unpkg · L3629 Code excerpt · 2 lines 3630 // Check if preload flags exist in execArgv.
3631 // During preload phase (require.main undefined), we pass empty execArgv to prevent infinite worker spawning.
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-DBwWlItQ.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
studio-dist/server/chunks/role-executor-DBwWlItQ.js View on unpkg · L16 Code excerpt · 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 (dirname (fileURLToPath (import .meta.url)), "curated-models.json" );
266 _curated = JSON.parse ( (jsonPath, )).models;
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/server/chunks/dist-es4-BKgJocg4.js View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
studio-dist/server/chunks/dist-es4-BKgJocg4.js View on unpkg · L20 Code excerpt · 12 lines 20 import 'node:module' ;
21 import 'node:child_process' ;
22 import 'node:crypto' ;
⋯
81 if (response.statusCode === 200 ) {
82 const parsed = JSON.parse (str);
83 if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== || parsed.Expiration !== ) Cre...
studio-dist/client/_app/immutable/chunks/fc6T1ZsE.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/fc6T1ZsE.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 obfuscator-style string-array loader that reconstructs and executes hidden code.
studio-dist/client/_app/immutable/chunks/fc6T1ZsE.js View on unpkg · L1 Code excerpt · 6 lines 1 const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[ , , , , , , ,
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/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
studio-dist/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 View on unpkg Scanner record · 4 lines path = studio-dist/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2
kind = high_entropy_blob
sizeBytes = 10252
magicHex = [redacted]
High Oversized source file
Package contains source files above the static scanner size ceiling.
dist/cli/index.js View on unpkg Scanner record · 4 lines path = dist/cli/index.js
kind = oversized_source_file
sizeBytes = 2925016
magicHex = [redacted]
Medium Oversized CLI entrypoint
Package contains an oversized executable-looking CLI entrypoint.
dist/cli/index.js View on unpkg Scanner record · 4 lines path = dist/cli/index.js
kind = oversized_cli_entrypoint
sizeBytes = 2925016
magicHex = [redacted]
AI assessment confidence 91%
Certainty of the AI review, not severity.
Verdict details False-positive risk, Review stage, Firewall policy This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.
Package metadata npm Maintainers kryptobaseddev
Version 2026.6.19
Latest on npm 2026.11.15
Published Jun 30, 2026
License MIT
Dependencies 30
Integrity verified
Package size 21.1 MB
Files 1,076
Runtime surface package.json Entrypoints main → ./dist/cli/index.js exports map bin → cleo, ct
Runtime node >=24.16.0
Artifact 77.0 MB unpacked · 1,076 files 1 signature · provenance
Install lifecycle postinstall
On this report AI security review Decision evidence Findings26 Flagged code17 Remediation 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/5FcyvhPs.js 5.36 MB file, sampled 256 KB
Network Child process Minified
studio-dist/server/chunks/dist4-COdru_Or.js 6.58 MB file, sampled 256 KB
Filesystem Child process Environment variables Shell High entropy strings URL strings no-color.org
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
studio-dist/server/chunks/transformers.node-_xbxmK5p.js1 finding
Low Eval Code↓ // 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 ;
readFileSync
"utf-8"
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,
"string"
typeof
"string"
throw
new
117 var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
118 var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2" ;
119 var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI" ;
125 const relative = options.[redacted] ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
126 const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTA
"./BCj2HQbn2.js"
"./CziRSs4m.js"
"./DrKWWDpL.js"
"./DsQIgu-4.js"
"./2PQNgpBd.js"
"./DsanjglN.js"
"./CbGRcr-D.js"
"./DgZn9uJ...
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