Loading npm security reports…
Loading npm security reports…
@trieuluan/hiverouter@0.5.125: Policy block – npm package blocked | LPM Firewall
Blocked by LPM policy
Installs executable code from a host outside the package’s declared repository for use by the tray feature.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security reviewscanned on Nov 23, 2026, 13:07 UTC · by lpm-firewall-ai The automatic install hook obtains and installs an executable from a GitHub account separate from the package’s declared repository. Although the binary is pinned and used for the stated tray feature, this is an install-time remote-code capability that warrants blocking under the package firewall rules.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
Automatic postinstall on Apple Silicon macOS when the tray dependency is available.
Mechanism
The hook downloads the tray binary from github.com/decolua/9router, verifies its hash and architecture, and replaces the tray executable.
Attack narrative
During postinstall on Apple Silicon macOS, the hook prepares the system tray and downloads its arm64 executable from github.com/decolua/9router, outside the package’s declared repository. The package verifies a pinned checksum and architecture before saving the binary for the tray feature. This is an install-time download and installation of an executable from another project’s host.
Evidence
package.json hooks/postinstall.js hooks/trayRuntime.js ~/.9router/runtime/node_modules/systray2/traybin/tray_darwin_release
Decision evidencepublic snapshot Evidence for block
The package runs hooks/postinstall.js automatically after installation, and that hook calls ensureTrayRuntime. On Apple Silicon macOS, ensureTrayRuntime invokes ensureArm64TrayBin when the tray dependency is ready. The tray setup downloads an executable from github.com/decolua/9router during postinstall; the source is an account separate from this package’s declared trieuluan/hiverouter repository. Evidence against
The download is limited to Apple Silicon macOS and is presented as the native tray binary for the package’s system tray feature. The downloaded file is checked against a pinned SHA-256 digest and verified as an arm64 Mach-O before installation. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 46 files · 680 KB of source
6 external domains referenced
127.0.0.1 api.anthropic.com api.example.com github.com registry.npmjs.org www.apple.com Findings3 critical · 21 high · 7 medium · 6 low Source & flagged code29 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/1260.js View file Critical Critical secret
Package contains a critical-looking secret pattern.
app/.next-cli-build/server/chunks/1260.js View on unpkg · L1 Critical Secret pattern
PuTTY private key in app/.next-cli-build/server/chunks/1260.js
app/.next-cli-build/server/chunks/1260.js View on unpkg · L1 Shared code excerpt · 2 findings · 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 · L36 Shared code excerpt · 2 findings · 3 lines 36 `)}catch{}}var Uh=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let a=t;for(let r=0;r<8;r++)a=a&1?3988292384^a>>>1:a>>>1;e[t]=a}return e})();function eu(e){let t=42949672...
37 `);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...
38 $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 · L28 app/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js View file High Eval
Package source references dynamic code evaluation.
app/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js View on unpkg · L1 Code excerpt · 1 line 1 const e=new WeakMap;function t (t){return e.has (t)}const i=(()=>{function t (t){Object.setPrototypeOf (this ,null ),e.set (this ,t)}return t.prototype=null ,t})();function s (i){if (!t (i))th...
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
app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js View on unpkg · L155 Code excerpt · 12 lines 155 const getHomeDir = () => {
156 const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
157 if (HOME) {
⋯
167 if (!homeDirCache[homeDirCacheKey]) {
168 homeDirCache[homeDirCacheKey] = homedir ();
169 }
⋯
189 const ssoTokenText = await readFile$1 (ssoTokenFilepath, "utf8" );
190 JSON. (ssoTokenText);
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 · 12 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
⋯
36 }
37 const computed = path.resolve (__dirname, ".." , ".." , , );
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__={994 :(e,r)=>{Object.defineProperty (r,"__esModule" ,{value:true });r.PARENT_MESSAGE_SETUP_ERROR=r.PARENT_MESSAGE_OK=r.PARENT_MESSAGE_CUSTOM=...
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" );
⋯
36
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.
src/cli/tray/tray.ps1 View on unpkg Scanner record · 4 lines path = src/cli/tray/tray.ps1
kind = build_helper
sizeBytes = 4001
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 = 8
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
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/providers/[id]/models/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/providers/[id]/models/route.js
app/.next-cli-build/server/app/api/providers/[id]/models/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/providers/client/route.js View file High Secret pattern
Google API key in app/.next-cli-build/server/app/api/providers/client/route.js
app/.next-cli-build/server/app/api/providers/client/route.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/chunks/3535.js View file High Secret pattern
Google API key in app/.next-cli-build/server/chunks/3535.js
app/.next-cli-build/server/chunks/3535.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/chunks/5615.js View file High Secret pattern
Google API key in app/.next-cli-build/server/chunks/5615.js
app/.next-cli-build/server/chunks/5615.js View on unpkg · L62 Code excerpt · 3 lines 62 patternName = google_api_key
severity = high
line = 62
app/.next-cli-build/server/chunks/2409.js View file High Secret pattern
Google API key in app/.next-cli-build/server/chunks/2409.js
app/.next-cli-build/server/chunks/2409.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
app/.next-cli-build/server/chunks/8896.js View file High Secret pattern
Google API key in app/.next-cli-build/server/chunks/8896.js
app/.next-cli-build/server/chunks/8896.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = google_api_key
severity = high
line = 1
AI assessment confidence 88%
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.5.125
Published Nov 23, 2026
License MIT
Dependencies 6
Integrity verified
Package size 16.0 MB
Files 3,696
Keywords hiverouter 9router cli proxy ai api
Runtime surface package.json Entrypoints bin → hiverouter
Runtime node >=20.18.1
Artifact 57.2 MB unpacked · 3,696 files 2 signatures
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings37 Flagged code29 Remediation ↓
app/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js1 finding
High Eval 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 · L28 Shared code excerpt · 2 findings · 5 lines 28 Private-MAC: `+I.digest().toHex()+` \r
29 `,s};Sa.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=xe.util.createBuffer();return mr(r,a),xt(r,e.e),xt(r,e.n),a+" "+xe.util.encode64(r.bytes())+" "+t};Sa.private...
30 `);u=c.pop()||"";for(let v of c){let y=v.trim();if(!y||!y.startsWith("data:"))continue;let g=y.slice(5).trim();if(g!=="[DONE]"){process.env.DEBUG_MITM&&Ia(` [SSE in ] ${g.slice (0 ,200 ...
⋯
36 `)}catch{}}var Uh=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let a=t;for(let r=0;r<8;r++)a=a&1?3988292384^a>>>1:a>>>1;e[t]=a}return e})();function eu(e){let t=42949672...
37 `);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.
return
parse
545 const imdsRequest = async (options) => {
546 const { request } = require ('node:http' );
547 return new Promise ((resolve, reject) => {
".."
"cli.js"
38 if (fs.existsSync (computed)) return computed;
47 function enableAutoStart (cliPath) {
48 const platform = process.platform;
50 if (!["darwin" , "win32" , "linux" ].includes (platform)) return false ;
51 if (platform === "linux" && !process.env.DISPLAY) return false ;
116 const relative = options.[redacted] ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
117 const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
start () {
37 if (process.stdout.isTTY) {
38 process.stdout.write (`\r${frames[0]} ${currentText}` );
39 interval = setInterval (() => {
65 const pkg = require ("./package.json" );