Loading npm security reports…
Loading npm security reports…
@rabbi696/ezrouter@0.5.72: AI-agent capability abuse – flagged | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Aug 22, 2026, 01:10 UTC · by lpm-firewall-ai This is suspicious dangerous dual-use proxy functionality, not demonstrated malicious behavior. Postinstall only warms package-aligned runtime dependencies and does not mutate a foreign AI-agent control surface.
Static reason
One or more suspicious static signals were detected.
Trigger
User runs the router and enables/starts its MITM functionality.
Impact
Intercepted prompts, tool data, and authorization-bearing requests can be routed through the local router.
Mechanism
local CA-based interception and forwarding of AI-provider requests
Evidence
package.json hooks/postinstall.js hooks/sqliteRuntime.js app/src/mitm/server.js src/cli/tray/tray.js src/cli/tray/autostart.js ~/.ezrouter/runtime ~/.ezrouter/mitm/rootCA.key ~/.ezrouter/mitm/rootCA.crt /etc/hosts
Network endpoints8
registry.npmjs.org /@rabbi696/ezrouter/latest
daily-cloudcode-pa.googleapis.com
cloudcode-pa.googleapis.com
api.individual.githubcopilot.com
runtime.us-east-1.kiro.dev
q.us-east-1.amazonaws.com
codewhisperer.us-east-1.amazonaws.com
api2.cursor.sh
Decision evidencepublic snapshot Evidence for warning
Postinstall invokes runtime dependency setup that runs npm install in a user-writable runtime directory. Bundled MITM runtime targets named AI-service hosts, generates a local Root CA, and redirects selected hosts to localhost. The proxy forwards intercepted requests to its configured local router, including request authorization headers. Evidence against
The install hook does not start the MITM server or modify AI-agent configuration. Autostart persistence is exposed through explicit tray/menu actions. No source evidence of harvesting local credentials or exfiltrating them to an attacker-controlled endpoint. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Native bindings · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 41 files · 604 KB of source
5 external domains referenced
127.0.0.1 api.anthropic.com api.example.com registry.npmjs.org www.apple.com Findings8 high · 7 medium · 5 low Source & flagged code12 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
High Child process
Package source references child process execution.
app/src/mitm/server.js View on unpkg · L32 Code excerpt · 3 lines 32 `)}catch{}}var cd=(()=>{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 Vo(e){let t=42949672...
33 `);t.push({role:"tool",tool_call_id:n.toolUseId||"",content:s})}let r=(e.content||"").trim();return(r||a.length===0)&&t.push({role:"user",content:r}),t}function gd(e){let t=e.toolU...
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 High 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};ma.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Ce.util.createBuffer();return vr(r,a),xt(r,e.e),xt(r,e.n),a+" "+Ce.util.encode64(r.bytes())+" "+t};ma.private...
26 `);u=c.pop()||"";for(let g of c){let v=g.trim();if(!v||!v.startsWith("data:"))continue;let y=v.slice(5).trim();if(y!=="[DONE]"){process.env.DEBUG_MITM&&Ea(` [SSE in ] ${y.slice (0 ,200 ...
⋯
32 `)}catch{}}var cd=(()=>{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 Vo(e){let t=42949672...
33 `);t.push({role:"tool",tool_call_id:n.toolUseId||"",content:s})}let r=(e.content||"").trim();return(r||a.length===0)&&t.push({role:"user",content:r}),t}function gd(e){let t=e.toolU.
Code excerpt · 3 lines 247 if (process.platform === "win32" ) {
248 const psCmd = `powershell -NonInteractive -WindowStyle Hidden -Command "Get-WmiObject Win32_Process -Filter 'Name=\\"cloudflared.exe\\"' | Select-Object ProcessId,CommandLine | Con...
249 const output = execSync (psCmd, { encoding: "utf8" , windowsHide: true , timeout: 5000 });
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.
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 · 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, ".." , ".." , , );
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]
Trigger reachable persistence
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
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 if (process.stdout.isTTY) {
38 process.stdout.write (`\r${frames[0]} ${currentText}` );
39 interval = setInterval (() => {
65 const pkg = require ("./package.json" );
".."
"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 ;