Loading npm security reports…
Loading npm security reports…
@nimbus-sh/worker@0.16.0: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 13, 2026, 05:43 UTC · by lpm-firewall-ai The inspected credential flow stays within the session’s Cloudflare AI gateway, and the flagged eval-related source describes constrained runtime behavior or Vite worker code generation. The manifest has no install-time hook, and the reviewed source does not establish a concrete attack surface.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Consumers import the worker entry point; session gateway and chat behavior runs when corresponding session routes are called.
Impact
No unrelated credential recipient, stealthy mutation, or install-time attack was established.
Mechanism
Session OAuth credentials are stored per session and sent to the Cloudflare AI API through the gateway. The Vite filesystem shim avoids runtime CJS evaluation.
Evidence
package.json dist/session/ai.js dist/session/routes.js dist/session/agent.js dist/facets/real-vite-fs-shim.js public/_assets/real-vite-bundle.js public/_assets/runtime/node-shims-7fb968320d7d0418.js
public snapshot
Evidence for AI clean decision
package.json defines a prepublishOnly script and no install, preinstall, or postinstall hook. The session handler reads a scoped OAuth cookie, checks it with the deployment secret, and stores the resulting credential in session storage. The AI gateway sends bearer credentials to the Cloudflare API base using the session account ID; model requests reach it through the same gateway. Agent chat routes require a configured session credential and call the session AI model to answer submitted messages. The Vite filesystem shim says it avoids runtime CJS evaluation; the node shim preserves refusal of general eval probes, while the Vite bundle excerpt constructs a worker code data URL. Other flagged excerpts fit the package’s runtime and build roles: isolated worker execution, an HTTP/2 compatibility shim, opt-in real-Vite support, and a WASM build script. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Native bindings · Network · Shell
Supply chain High entropy strings · Minified · Possible obfuscation · Telemetry · URL strings
Manifest No manifest risk signals triggered.
Scanned 312 files · 17.8 MB of source
50 external domains referenced
127.0.0.1 babeljs.io busybox.net cdn.jsdelivr.net cdn.tailwindcss.com cloudflare-dns.com codeload.github.com console.opencode.ai cs.chromium.org developer.mozilla.org developers.cloudflare.com docs.python.org en.wikipedia.org evilmartians.com example.com facet.internal foo.com ftp.gnu.org gist.githubusercontent.com git-lfs.github.com git.io github.com goo.gl mathiasbynens.be narwhaljs.org nimbus-cache.invalid nimbus-runtime-cache-v2.invalid nimbus-runtime.local nodejs.org npm.im opencode.ai opencode.internal opensource.org pubs.opengroup.org raw.githubusercontent.com registry.mycorp.com registry.npmjs.org rollupjs.org src.chromium.org stackoverflow.com tailwindcss.com tc39.es tools.ietf.org twitter.com vercel.link vite.dev webidl.spec.whatwg.org www.ecma-international.org www.gnu.org www.iana.org Oversized source lightweight scan
public/_assets/opencode/1.16.2/index-attach.js 13.8 MB file, sampled 256 KB
Filesystem Network Environment variables Dynamic require Possible obfuscation High entropy strings Minified URL strings console.opencode.ai example.com github.com opencode.ai opencode.internal vercel.link yargs.js.org
Findings3 critical · 11 high · 7 medium · 7 low Source & flagged code19 flagged The lines the automated scan flagged. The review checked them and cleared this version.
dist/facets/real-vite-fs-shim.js#virtual:normalized:round1 View file High Child processCleared
Package source references child process execution.
dist/facets/real-vite-fs-shim.js#virtual:normalized:round1 View on unpkg · L663 Code excerpt · 3 lines 663 import * as __n_buffer from "node:buffer";
664 import * as __n_childProcess from "node:child_process";
665 import * as __n_crypto from "node:crypto";
High EvalCleared
Package source references dynamic code evaluation.
dist/facets/real-vite-fs-shim.js#virtual:normalized:round1 View on unpkg · L780 Code excerpt · 3 lines 780 const subMod = { exports: {} };
781 const subWrapped = new Function("module", "exports", "require", "__filename", "__dirname", c);
782 try { subWrapped(subMod, subMod.exports, nestedRequire, relAbs + ext, relAbs); }
Critical Remote asset decode executeCleared
Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.
public/_assets/real-vite-bundle.js View on unpkg · L192 Code excerpt · 12 lines 192 exports.xxhashBase36 = xxhashBase362;
193 function xxhashBase64Url2 (input) {
194 let deferred1_0;
⋯
537 function getRollupUrl (snippet) {
538 return `https://rollupjs.org/${snippet}` ;
539 }
⋯
1711 params: convertNodeList (buffer[position + 4 ], buffer),
1712 body: convertNode (buffer[position + 5 ], buffer),
dist/runtime/node-lib-host.js#virtual:normalized:round1 View file Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/runtime/node-lib-host.js#virtual:normalized:round1 View on unpkg · L2 Code excerpt · 3 lines 2 * Source of what Node"s own modules (node-lib-source.ts) are given in a\n * Worker in place of Node"s internal modules and bindings:
3 * `createNodeLib(platform)`, whose `require(id)` runs a module of Node"s\n * library once, the first time it is asked for, and returns its exports.\n * generateShimsCode embeds thi...
4 const closing = content.indexOf("\"", 1);
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
dist/git/worktree/dircache.js View on unpkg · L34 Code excerpt · 3 lines 34 const encoder = new TextEncoder ();
35 const decoder = new TextDecoder ();
36 /** git's name order: the bytes of the path. */
public/_assets/runtime/git-b96d68f94ef9037f.js View file High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
public/_assets/runtime/git-b96d68f94ef9037f.js View on unpkg · L1 Code excerpt · 3 lines 1 var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
2 `));var retLines=[],linesAndNewlines=value.split(/(\n|\r\n)/);linesAndNewlines[linesAndNewlines.length-1]||linesAndNewlines.pop();for(var i=0;i<linesAndNewlines.length;i++){var lin...
3 `)}static async _entryToBuffer(entry){let bpath=Buffer.from(entry.path),length=Math.ceil((62+bpath.length+1)/8)*8,written=Buffer.alloc(length),writer=new BufferCursor(written),stat...
public/_assets/runtime/node-shims-7fb968320d7d0418.js View file Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
public/_assets/runtime/node-shims-7fb968320d7d0418.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @nimbus-sh/worker@0.15.0
matchedIdentity = npm:QG5pbWJ1cy1zaC93b3JrZXI:0.15.0
similarity = 0.708
summary = stored previous version shares package body but lacks this dangerous source file
High Obfuscated payload loaderCleared
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
public/_assets/runtime/node-shims-7fb968320d7d0418.js View on unpkg · L173 Code excerpt · 12 lines 173 ERR_INTERNAL_ASSERTION: [(message) => {
High Cross file remote execution contextCleared
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/facets/manager.js View on unpkg · L6 Code excerpt · 9 lines Cross-file remote execution chain: dist/facets/manager.js spawns dist/loaders/compiled-bodies.generated.js; helper contains network access plus dynamic code execution.
6 * runaway script can't take the supervisor down. The script also needs
7 * supervisor-owned services: VFS writes, stdout/stderr, process exit,
8 * child-process brokering, and preview port routing.
⋯
11 * 1 . LOADER.load (makeConfig) — isolated dynamic worker
12 * 2 . worker.getEntrypoint ().fetch () — executes the script
13 * 3 . SUPERVISOR RPC — streams output and VFS writes
⋯
73 { STOP_REPLAY_SOURCE } ;
Medium Ships WASM moduleCleared
Package ships WebAssembly modules.
public/_assets/esbuild-0.24.2.wasm View on unpkg Scanner record · 4 lines path = public/_assets/esbuild-0.24.2.wasm
kind = wasm_module
sizeBytes = 11907565
magicHex = [redacted]
Medium Ships build helperCleared
Package ships non-JavaScript build or shell helper files.
scripts/napi-wasm/link-wasm.sh View on unpkg Scanner record · 4 lines path = scripts/napi-wasm/link-wasm.sh
kind = build_helper
sizeBytes = 1940
magicHex = [redacted]
public/_assets/opencode/1.16.2/index-attach.js View file Medium Oversized source fileCleared
Package contains source files above the normal full-analysis size ceiling.
public/_assets/opencode/1.16.2/index-attach.js View on unpkg Scanner record · 4 lines path = public/_assets/opencode/1.16.2/index-attach.js
kind = oversized_source_file
sizeBytes = 14445973
magicHex = [redacted]
dist/facets/cirrus-real.js#virtual:normalized:round1 View file High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/facets/cirrus-real.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 51
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/facets/real-vite-fs-shim.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nimbus-sh/worker@0.8.0
matchedPath = dist/facets/real-vite-fs-shim.js
matchedIdentity = npm:QG5pbWJ1cy1zaC93b3JrZXI:0.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/opentui/build-wasm.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nimbus-sh/worker@0.8.0
matchedPath = scripts/opentui/build-wasm.mjs
matchedIdentity = npm:QG5pbWJ1cy1zaC93b3JrZXI:0.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
public/_assets/tailwind-play.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nimbus-sh/worker@0.8.0
matchedPath = public/_assets/tailwind-play.js
matchedIdentity = npm:QG5pbWJ1cy1zaC93b3JrZXI:0.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/facets/real-vite-fs-shim.js#virtual:normalized:round1
2 findings
Package metadata 9 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Non install lifecycle scripts Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
2369 }, "objectPattern" ),
2370 /* @__PURE__ */ __name (function privateIdentifier (position, buffer) {
Critical Remote response code executionCleared
Source passes code obtained from a remote response into a dynamic execution sink.
public/_assets/real-vite-bundle.js View on unpkg Scanner record · 11 lines Remote response is passed to a worker and executed with Node capabilities.
public/_assets/real-vite-bundle.js// ── Cirrus real-vite bundler: __require2 + __require shim ───────
// 1. __cirrusRealRequireShim resolves a small whitelist of bundled
// consumed by the post-patched __require2 call sites.
// 2. __cirrusRealCjsRequire is a general CJS require polyfill that
// works inside workerd. esbuild's built-in __require polyfill
// uses `typeof require !== "undefined" ? require : throw`, which
// always throws in workerd because the global `require` doesn't
const _origCreateRequire = globalThis.__origCreateRequire || null;
public/_assets/real-vite-bundle.js:
// ── Cirrus real-vite bundler: __require2 + __require shim ───────
// 1. __cirrusRealRequireShim resolves a small whitel
High ShellCleared
Package source references shell execution.
public/_assets/real-vite-bundle.js View on unpkg · L77087 Code excerpt · 3 lines 77087 stdio: "inherit" ,
77088 shell: true
77089 });
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
public/_assets/real-vite-bundle.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @nimbus-sh/worker@0.8.0
matchedPath = public/_assets/real-vite-bundle.js
matchedIdentity = npm:QG5pbWJ1cy1zaC93b3JrZXI:0.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
174
const suffix = "This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\nPlease open an issue with this stack trace at https://github.com/nodejs/node/iss...
175 return message === void 0 ? suffix : `${message}
330 const __nimbusReflectApply = Reflect.apply;
331 // The runner's stop and replay (runtime/stop-replay.ts), private to its
332 // module: null in a runner without one.
452 // the body of the Response it returns) and the supervisor RPC helper below
453 // (fs, child_process, ports, stdio). Counting there is the honest liveness
454 // signal, and it is what globalThis.__nimbusPendingOps reports.
507 pre: str.slice (0 , r[0 ]),
508 body: str.slice (r[0 ] + ma.length, r[1 ]),
import
from
'../runtime/stop-replay.js'
74 import { encodeBase64, OwnedPieces, ReplayOutputGate, StdinTaken, stopRecordOf } from '../runtime/stop-replay-host.js' ;