Loading npm security reports…
Loading npm security reports…
@cleocode/cleo@2026.8.9: AI-agent capability abuse – flagged | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Oct 1, 2026, 05:50 UTC · by lpm-firewall-ai Source supports an explicit-command agent instruction mutation capability, which warrants a warning under the supplied policy. No concrete attack behavior justifies blocking publication.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
The user runs cleo caamp dedupe or cleo caamp repair without dry-run.
Impact
Agent instructions can change across project and global scopes, affecting subsequent agent behavior.
Mechanism
The CLI delegates instruction block deduplication and repair to @cleocode/caamp, including global and detected provider instruction files.
Evidence
dist/cli/index.js .agents/AGENTS.md AGENTS.md
Decision evidencepublic snapshot Evidence for warning
The active CLI registers the caamp command with dedupe and repair subcommands. The dedupe command targets global .agents/AGENTS.md and project AGENTS.md, then calls dedupeFiles unless dry-run is selected. The repair command discovers installed providers and their instruction files, then calls repairInstructionFiles unless dry-run is selected. Evidence against
These mutations require explicit CLI commands; the inspected install hook does not invoke these commands. The flagged Claude credential reader requires saved consent, and the harness wizard requires an operator selection or explicit flag. No concrete malicious attack was established. 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 661 files · 16.7 MB of source
50 external domains referenced
127.0.0.1 169.254.169.254 169.254.170.2 a.co accounts.google.com ai-gateway.vercel.sh ai-sdk.dev api.anthropic.com api.dropboxapi.com api.figma.com api.github.com api.kimi.com api.linear.app api.llmtxt.my api.moonshot.ai api.notion.com api.openai.com api.signaldock.io api.supabase.com api.todoist.com api.vercel.com api.x.ai auth.atlassian.com auth.kimi.com auth.monday.com auth.openai.com aws.amazon.com cdn.jsdelivr.net chatgpt.com claude.ai cleocode.dev cloud.mongodb.com datatracker.ietf.org developer.mozilla.org discord.com 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 linear.app my.site Oversized source lightweight scan
studio-dist/client/_app/immutable/chunks/BAaxiyrm.js 5.36 MB file, sampled 256 KB
Minified
studio-dist/server/chunks/dist4-DeA5DreU.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 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: {
studio-dist/server/chunks/tasks-CKwl6Nuj.js View file High Eval
Package source references dynamic code evaluation.
studio-dist/server/chunks/tasks-CKwl6Nuj.js View on unpkg · L569 Code excerpt · 3 lines 569 try {
570 const utilInspect = eval ("require('util').inspect" );
571 _custom = utilInspect.custom;
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-CdigpbwU.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
studio-dist/server/chunks/index-CdigpbwU.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'
⋯
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/UnionSerde-BwXNGPmo.js View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
studio-dist/server/chunks/UnionSerde-BwXNGPmo.js View on unpkg · L313 Code excerpt · 10 lines 313 var checkRegion = (region, check = isValidHostLabel) => {
314 if (!validRegions.has (region) && !check (region)) if (region === "*" ) console.warn (`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https...
315 else throw new Error (`Region not accepted: region="${region}" is not a valid hostname component.` );
⋯
387 var inferPhysicalRegion = async () => {
388 (process.env[ ] && (process.env[ ] || process.env[ ])) process.env[ ] ?? process.env[ ];
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-DeA5DreU.js View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
studio-dist/server/chunks/dist4-DeA5DreU.js View on unpkg Scanner record · 4 lines path = studio-dist/server/chunks/dist4-DeA5DreU.js
kind = oversized_source_file
sizeBytes = 6903981
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 = 10
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
Code↓
studio-dist/server/chunks/tasks-CKwl6Nuj.js1 finding
High Eval Code↓ Package metadata 7 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 · L44316 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 · L44316 Shared code excerpt · 2 findings · 7 lines 44316 warn (message) {
44317 process.stderr.write (`${message}
44318 `);
⋯
44329 // [redacted]-login.ts
44330 import { spawn } from "node:child_process" ;
44331 import { createServer } from "node:http" ;
44332 import { addCredential } from "@cleocode/core/llm/credentials-store.js" ;
Code excerpt · 3 lines 73053 try {
73054 const { stdout: stdout2 } = await execAsync ("npm" , [
73055 "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 · L50406 Code excerpt · 9 lines 50406 // packages/cleo/src/cli/web-subsystem.ts
50407 import { execFileSync as execFileSync2, spawn as spawn2 } from "node:child_process" ;
50408 import { existsSync as existsSync11 } from "node:fs" ;
50409 import { mkdir, open, readFile as readFile3, rm, stat, writeFile } from "node:fs/promises" ;
50410 import { dirname as dirname5, join as join16, resolve as resolve4 } from "node:path" ;
50411 import { fileURLToPath as fileURLToPath3 } from "node:url" ;
⋯
50414 function resolveStudioDir () {
50415 const envOverride = process.env["CLEO_STUDIO_DIR" ];
50416 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 · 7 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"
name: "baseUrl",
// — build a PKCE authorization URL), exchange (mutate — persist encrypted tokens
description: "service.auth-url (query) \u2014 build a PKCE OAuth authorization URL for a service provider; returns the URL + the code verifier + state to round-trip into service.ex...
description: "service.exchange (mutate) \u2014 exchange an OAuth authorization code (+ PKCE verifier) for tokens and PERSIST them encryptGlobal-encrypted into service_connections. ...
description: "Authorization code from the redirect callback."
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
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) {
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(/
if
"AWS_EXECUTION_ENV"
"AWS_REGION"
"AWS_DEFAULT_REGION"
return
"AWS_REGION"
"AWS_DEFAULT_REGION"
389 if (!process.env["AWS_EC2_METADATA_DISABLED" ]) try {
874 //#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodul