Loading npm security reports…
Loading npm security reports…
@rabbi696/ezrouter@0.6.40: Policy block – npm package blocked | LPM Firewall
Blocked by LPM policy
Installs a separate system component and accepts its license without a separate user request.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security reviewscanned on Nov 23, 2026, 18:33 UTC · by lpm-firewall-ai The reachable postinstall hook can install a separate system component and accept its license without a separate user request. This supports the package’s tray feature, but the automatic system installation is a dangerous capability under the install-time tool installation rule.
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
npm postinstall on Apple Silicon macOS when Rosetta is not already available.
Mechanism
The hook calls ensureTrayRuntime, which calls softwareupdate --install-rosetta --agree-to-license.
Attack narrative
During npm installation, the postinstall hook prepares tray support. On Apple Silicon Macs without Rosetta, it runs Apple's softwareupdate command to install Rosetta 2 and automatically accepts the license.
Evidence
package.json hooks/postinstall.js hooks/trayRuntime.js macOS Rosetta 2 system installation
public snapshot
Evidence for block
The postinstall hook calls ensureTrayRuntime automatically during installation. On Apple Silicon, ensureTrayRuntime invokes Rosetta installation when Rosetta is absent. That installation runs softwareupdate with --agree-to-license, without a separate user request. Evidence against
Rosetta is installed to support the package’s system tray feature, and the code prints an installation notice. The Rosetta installation path is limited to macOS on arm64 when Rosetta is unavailable. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 54 files · 722 KB of source
4 external domains referenced
127.0.0.1 api.example.com registry.npmjs.org www.apple.com Findings4 critical · 33 high · 7 medium · 6 low Source & flagged code42 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 hooks/postinstall.js
app/.next-cli-build/server/chunks/5296.js View file Critical Critical secret
Package contains a critical-looking secret pattern.
app/.next-cli-build/server/chunks/5296.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = private_key_putty
severity = critical
line = 1
High Child process
Package source references child process execution.
app/src/mitm/server.js View on unpkg · L32 Shared code excerpt · 2 findings · 3 lines 32 `)}catch{}}var Yo=500,Ba=new Set,ut=new Map;function Jo(){let e=(process.env.MITM_KIRO_DEDUP||"").trim().toLowerCase();return!(e==="0"||e==="false"||e==="off"||e==="no")}function M...
33 `);t.push({role:"tool",tool_call_id:i.toolUseId||"",content:o})}let n=(Array.isArray(e.images)?e.images:[]).filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)&&i.source!==nu...
34 $proc = Start-Process powershell -ArgumentList @(
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
app/src/mitm/server.js View on unpkg · L24 node_modules/node-forge/dist/forge.min.js View file High Eval
Package source references dynamic code evaluation.
node_modules/node-forge/dist/forge.min.js View on unpkg · L1 Code excerpt · 2 lines 1 !function (e,t){"object" ==typeof exports&&"object" ==typeof module?module.exports=t ():"function" ==typeof define&&define.amd?define ([],t):"object" ==typeof exports?exports.forge=t ():e....
2 //# sourceMappingURL=forge.min.js.map
Medium Dynamic require
Package source references dynamic require/import behavior.
app/server.js View on unpkg · L1 Code excerpt · 2 lines 1 const path = require ('path' )
2
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
src/cli/tray/autostart.js View on unpkg · L3 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
src/cli/tray/autostart.js View on unpkg · L3 Shared code excerpt · 2 findings · 11 lines Trigger-reachable persistence chain: scripts.dev -> cli.js -> src/cli/tray/autostart.js
3 const os = require ("os" );
4 const { execSync } = require ("child_process" );
5
⋯
10 function getDataDir () {
11 if (process.env.DATA_DIR) return process.env.DATA_DIR;
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
cli.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @rabbi696/ezrouter@0.6.39
matchedIdentity = npm:QHJhYmJpNjk2L2V6cm91dGVy:0.6.39
similarity = 0.983
summary = stored previous version shares package body but lacks this dangerous source file
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
cli.js View on unpkg · L2 Code excerpt · 11 lines 3 const { spawn, exec, execSync } = require ("child_process" );
4 const path = require ("path" );
app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js View on unpkg · L64 Code excerpt · 9 lines 64 if (response.statusCode === 200 ) {
65 const parsed = JSON.parse (str);
66 if (typeof parsed.AccessKeyId !== "string" ||
⋯
108 const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
109 const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2" ;
110 const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI" ;
app/node_modules/next/dist/compiled/jest-worker/threadChild.js View file Critical Remote response code execution
Source passes code obtained from a remote response into a dynamic execution sink.
app/node_modules/next/dist/compiled/jest-worker/threadChild.js View on unpkg · L1 Code excerpt · 1 line 1 (()=>{"use strict" ;var __webpack_modules__={582 :(e,r)=>{Object.defineProperty (r,"__esModule" ,{value:true });r.PARENT_MESSAGE_SETUP_ERROR=r.PARENT_MESSAGE_OK=r.PARENT_MESSAGE_CUSTOM=...
node_modules/confbox/dist/_chunks/libs/json5.mjs View file Critical Trojan source unicode
Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
node_modules/confbox/dist/_chunks/libs/json5.mjs View on unpkg · L4 Code excerpt · 2 lines 4 contains invisible/control Unicode U+200C (zero width non-joiner)
`:case` \r`:case` \u2028`:case` \u2029`:x(),m=` default `;return;case void 0:return x(),C(` eof`)}x()},value(){switch(v){case` {`:case` [`:return C(` punctuator`,x());case` n`:return x(),w(` ull`),C(` null `,null);case` t`:return x(),w(` rue`),C(` boolean`
High Runtime package install
Package source invokes a package manager install command at runtime.
app/src/lib/updater/updater.js View on unpkg · L1 Code excerpt · 6 lines 1 // Standalone detached updater process.
2 // Spawns `npm i -g <pkg>@latest`, exposes progress via tiny HTTP server.
3 // Survives after parent Next server exits (detached + unref by spawner).
4
5 const { spawn } = require ("child_process" );
6 const http = require ("http" );
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
app/public/9router-connect.ps1 View on unpkg Scanner record · 4 lines path = app/public/9router-connect.ps1
kind = build_helper
sizeBytes = 6820
magicHex = [redacted]
node_modules/node-forge/flash/swf/SocketPool.swf View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
node_modules/node-forge/flash/swf/SocketPool.swf View on unpkg Scanner record · 4 lines path = node_modules/node-forge/flash/swf/SocketPool.swf
kind = high_entropy_blob
sizeBytes = 21162
magicHex = [redacted]
app/node_modules/next/dist/compiled/commander/index.js#virtual:string-array: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.
app/node_modules/next/dist/compiled/commander/index.js#virtual:string-array:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 6
app/node_modules/@next/env/dist/index.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
app/node_modules/@next/env/dist/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = botmancers@0.11.1
matchedPath = app/node_modules/@next/env/dist/index.js
matchedIdentity = npm:Ym90bWFuY2Vycw:0.11.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = react-dom-helpers@3.3.3
matchedPath = cjs/react-dom-server-legacy.browser.development.js
matchedIdentity = npm:cmVhY3QtZG9tLWhlbHBlcnM:3.3.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = react-dom-helpers@3.3.3
matchedPath = cjs/react-dom-server-legacy.browser.development.js
matchedIdentity = npm:cmVhY3QtZG9tLWhlbHBlcnM:3.3.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/react-dom/cjs/react-dom-server.browser.development.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/react-dom/cjs/react-dom-server.browser.development.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = react-dom-helpers@3.3.3
matchedPath = cjs/react-dom-server.browser.development.js
matchedIdentity = npm:cmVhY3QtZG9tLWhlbHBlcnM:3.3.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/react-dom/cjs/react-dom-server.edge.development.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/react-dom/cjs/react-dom-server.edge.development.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = react-dom-helpers@3.3.3
matchedPath = cjs/react-dom-server.edge.development.js
matchedIdentity = npm:cmVhY3QtZG9tLWhlbHBlcnM:3.3.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
node_modules/react-dom/cjs/react-dom-server.node.development.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
node_modules/react-dom/cjs/react-dom-server.node.development.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = react-dom-helpers@3.3.3
matchedPath = cjs/react-dom-server.node.development.js
matchedIdentity = npm:cmVhY3QtZG9tLWhlbHBlcnM:3.3.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
app/.next-cli-build/server/app/api/v1/embeddings/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/embeddings/route.js
app/.next-cli-build/server/app/api/v1/embeddings/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/v1/images/generations/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/images/generations/route.js
app/.next-cli-build/server/app/api/v1/images/generations/route.js View on unpkg · L9 Code excerpt · 3 lines 9 patternName = google_api_key
severity = high
line = 9
app/.next-cli-build/server/app/api/v1/web/fetch/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/web/fetch/route.js
app/.next-cli-build/server/app/api/v1/web/fetch/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/v1/search/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/search/route.js
app/.next-cli-build/server/app/api/v1/search/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js
app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js View on unpkg · L7 Code excerpt · 3 lines 7 patternName = google_api_key
severity = high
line = 7
app/.next-cli-build/server/app/api/v1/alpha/search/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/alpha/search/route.js
app/.next-cli-build/server/app/api/v1/alpha/search/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/v1/systemone/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/v1/systemone/route.js
app/.next-cli-build/server/app/api/v1/systemone/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/cursor/import/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/cursor/import/route.js
app/.next-cli-build/server/app/api/oauth/cursor/import/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js
app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js
app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js
app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js
app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/callback/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/callback/route.js
app/.next-cli-build/server/app/api/oauth/callback/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js
app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
AI assessment confidence 96%
Certainty of the AI review, not severity.
Verdict details Intent, False-positive risk, Review stage, Firewall policy Runs code the user cannot review. An LPM review rule requires blocking this behavior, but the AI review did not find malware intent; this finding does not say the publisher attacks its users.
Package metadata npm Version 0.6.40
Published Nov 23, 2026
License MIT
Dependencies 6
Integrity verified
Package size 18.9 MB
Files 4,340
Keywords ezrouter cli proxy ai api
Runtime surface package.json Entrypoints bin → 9router, ezrouter
Runtime node >=20.18.1
Artifact 70.7 MB unpacked · 4,340 files 2 signatures
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings50 Flagged code42 Remediation Install time lifecycle scripts
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
app/src/mitm/server.js View on unpkg · L24 Shared code excerpt · 2 findings · 5 lines 24 Private-MAC: `+B.digest().toHex()+` \r
25 `,s};Ea.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Ce.util.createBuffer();return Cr(r,a),St(r,e.e),St(r,e.n),a+" "+Ce.util.encode64(r.bytes())+" "+t};Ea.private...
26 `);u=f.pop()||"";for(let g of f){let v=g.trim();if(!v||!v.startsWith("data:"))continue;let y=v.slice(5).trim();if(y!=="[DONE]"){process.env.DEBUG_MITM&&Ta(` [SSE in ] ${y.slice (0 ,200 ...
⋯
32 `)}catch{}}var Yo=500,Ba=new Set,ut=new Map;function Jo(){let e=(process.env.MITM_KIRO_DEDUP||"").trim().toLowerCase();return!(e==="0"||e==="false"||e==="off"||e==="no")}function M...
33 `);t.push({role:"tool",tool_call_id:i.toolUseId||"",content:o})}let n=(Array.isArray(e.images)?e.images:[]).filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)&&i.source!==nu.
Low Weak crypto
Package source references weak cryptographic algorithms.
app/src/mitm/server.js View on unpkg · L1 Code excerpt · 5 lines 1 var F=(e,t)=>()=>(t||e ((t={exports:{}}).exports,t),t.exports);var nr=F ((Nd,ti)=>{var Jn=require ("fs" ),Mr=require ("path" ),Wn=require ("os" ),ka="ezrouter" ;function Xn (){return process...
2 HEADERS: ${JSON.stringify (g,null ,2 )}
⋯
6 `,a=a.substr(t));return r+=a,r};E.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",a,r,n,s,i=0;i<e.length;)a=Nt[e.charCodeAt(i++)-43],r=Nt[e.charCodeAt(i++)-...
7 `,a=a.substr(t));return r+=a,r};E.binary.base64.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),a=a||0;for(var n...
8 `);for(var n="",s=0;s<t*a;++s)n+=" ";switch(r+=n+"Tag: ",e.tagClass){case U.Class.UNIVERSAL:r+="Universal:";break;case U.Class.APPLICATION:r+="Application:";break;case U.Class.CONT...
⋯
12 if (process.platform === "win32" ) {
13 return path.join (process.env.APPDATA || path.join (os.homedir (), "AppData" , "Roaming" ), APP_NAME);
233 * `launchctl unload <plist>` (and `load` ) for an Aqua user-domain agent sends
234 * SIGTERM to the running process. When the running 9router cli.js was itself
5 const fs = require ("fs" );
6 const https = require ("https" );
7 const net = require ("net" );
38 if (process.stdout.isTTY) {
39 process.stdout.write (`\r${frames[0]} ${currentText}` );
40 interval = setInterval (() => {
66 const pkg = require ("./package.json" );
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
cli.js View on unpkg · L2 Code excerpt · 12 lines Cross-file remote execution chain: cli.js spawns app/src/mitm/server.js; helper contains network access plus dynamic code execution.
2
3 const { spawn, exec, execSync } = require ("child_process" );
4 const path = require ("path" );
5 const fs = require ("fs" );
6 const https = require ("https" );
7 const net = require ("net" );
⋯
37 start () {
38 if (process.stdout.isTTY) {
39 process.stdout.write (`\r${frames[0]} ${currentText}` );
40 interval = setInterval (() => {
⋯
65
66 const pkg = require ("./package.json" );
116 const relative = options.[redacted] ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
117 const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];