Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of miawrouter

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 15:36 UTC by yolo in 14 tool calls, with lab detonation

Summary

[email protected] installs native modules (better-sqlite3, systray2) into ~/.miawrouter/runtime/node_modules via its postinstall hook — standard for packages shipping native binaries. The bundled Next.js app serves as a management UI for AI proxy routing; API routes read/write tool configs (e.g. ~/.claude/settings.json, ~/.config/Code/User/) to help auto-configure coding assistants. No credential exfiltration or unexpected egress observed.

Intent

A legitimate AI gateway/proxy CLI that bundles a full Next.js web UI for managing multiple coding assistant tools (Claude Code, Codex, Cursor, Cline, etc.). Installs native runtime deps (better-sqlite3, systray2) into ~/.miawrouter/runtime to avoid Windows EBUSY and AV false-positives.

Findings

Native dep installation at install time info hooks/postinstall.js:6-7
hooks/postinstall.js calls sqliteRuntime.js and trayRuntime.js, which run npm install into ~/.miawrouter/runtime/node_modules for [email protected], [email protected], [email protected]. Lab wrote /home/andy/.miawrouter/runtime/package.json. No network in offline lab (expected).
API routes read/write coding-tool config files info app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
Server routes under /api/cli-tools/{claude,codex,cline,devin,kilo,opencode,...}-settings/ read and write config files in ~/.claude/, ~/.config/Code/User/, etc. to auto-configure coding assistants. This is the tool's stated feature set, not credential theft.
Prompt-injection feature documented in HTML low app/.next-cli-build/server/app/dashboard/token-saver.html:1
app/.next-cli-build/server/app/dashboard/token-saver.html documents the token-saver feature which 'injects a response-shaping instruction into the system message'. This is a legitimate proxy feature, not malware — but agents should be aware this proxy can modify AI system prompts.
Anti-analysis false positives from .nft.json files info app/.next-cli-build/server/app/(dashboard)/dashboard/*/page.js.nft.json
Next.js bundle analyzer .nft.json files reference is-docker and is-in-ssh modules. These are dependency-tracking manifests, not actual anti-analysis code.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 4. Hooks: postinstall (exit 0).

Files written outside the package: /home/andy/.miawrouter/runtime/package.json