Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of miawrouter

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 22:39 UTC by yolo in 11 tool calls, with lab detonation

Summary

miawrouter installs a local Next.js server bound to 127.0.0.1 that exposes API endpoints to manage settings of AI coding tools — reading/writing ~/.claude/settings.json, ~/.codex/auth.json, ~/.cursor/ configs, etc. The postinstall hook installs native deps (better-sqlite3, systray2) into ~/.miawrouter/runtime, a standard runtime-warm-up pattern. The canary read of ~/.gitconfig was by npm itself during the native install, not by the package.

Intent

A local proxy/management server for AI coding tools (Claude Code, Codex, Cursor, etc.) that reads and writes their configuration files and installs native runtime dependencies.

credential_access agent_config_tamper

Findings

Native runtime installation via postinstall info hooks/postinstall.js:6-7
hooks/postinstall.js runs npm install [email protected] and [email protected] into ~/.miawrouter/runtime/node_modules. npm reads /home/andy/.gitconfig for auth (canary).
Server reads agent config files containing API keys medium app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
API routes read ~/.claude/settings.json, ~/.claude.json, ~/.claude/agents/*.md, ~/.codex/auth.json, and similar files that contain API keys and tokens for Claude, OpenAI/Codex, Cursor, etc.
Server writes to agent config files medium app/.next-cli-build/server/chunks/7813.js:1
API routes write to ~/.claude/settings.json (MCP server config), ~/.codex/auth.json (OPENAI_API_KEY), and ~/.claude/agents/*.md (subagent definitions).
System certificate trust store modification medium app/.next-cli-build/server/chunks/3755.js
Installs a local CA certificate to the system trust store and modifies /etc/hosts for DNS routing — used for local TLS termination / MITM of local traffic.
OAuth flows for multiple services info app/.next-cli-build/server/app/api/oauth/*/route.js
Server exposes OAuth endpoints for GitHub, GitLab, and various AI provider token exchanges, storing credentials in agent config files.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (timed out).

DNS names requested: registry[.]npmjs[.]org

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.gitconfig

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