Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of zevairouter

[email protected]

suspicious   confidence 72%   action isolate   analyzed 2026-09-24 19:00 UTC by yolo in 22 tool calls, with lab detonation

Summary

zevairouter installs optional native runtimes into ~/.zevai/runtime (legitimate lazy-install pattern). Its MITM server (cli/app/src/mitm/server.js) generates a root CA at ~/.zevai/mitm/rootCA.{key,crt} to intercept HTTPS to api.individual.githubcopilot.com, cloudcode-pa.googleapis.com, q.us-east-1.amazonaws.com, api2.cursor.sh — proxying them through the router. API routes read ~/.claude/settings.json (including ANTHROPIC_AUTH_TOKEN) and ~/.codex/auth.json, and can write back to ~/.claude/settings.json. These are deliberate features, not malware, but they give the package credential access and network egress capabilities that agents should be aware of.

Intent

Self-hosted AI router that intercepts HTTPS traffic to AI coding assistants (GitHub Copilot, Google Cloud Code, Cursor, Kiro) via a self-generated root CA, and reads/writes AI CLI config files including auth tokens.

credential_access network_egress agent_config_tamper

Findings

MITM root CA generation high cli/app/src/mitm/server.js:1
cli/app/src/mitm/server.js generates a self-signed root CA (2048-bit RSA) at ~/.zevai/mitm/rootCA.key and rootCA.crt, used to intercept HTTPS traffic to AI coding assistant APIs.
Reads ANTHROPIC_AUTH_TOKEN from Claude CLI config high cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js:1
GET /api/cli-tools/claude-settings reads ~/.claude/settings.json which contains ANTHROPIC_AUTH_TOKEN and other env vars.
Writes to Claude CLI config medium cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js:1
POST /api/cli-tools/claude-settings writes modified settings.json back to ~/.claude/, including ANTHROPIC_BASE_URL and model aliases.
Reads Codex CLI auth file high cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js:1
GET /api/cli-tools/codex-settings reads ~/.codex/auth.json which contains Codex CLI authentication credentials.
HTTPS interception targets medium cli/app/src/mitm/server.js:1
MITM server intercepts traffic to api.individual.githubcopilot.com, daily-cloudcode-pa.googleapis.com, cloudcode-pa.googleapis.com, q.us-east-1.amazonaws.com, api2.cursor.sh — routing through zevairouter.
Postinstall lazy-installs native deps info cli/hooks/postinstall.js:1
cli/hooks/postinstall.js installs better-sqlite3, systray2, cloakbrowser, node-pty into ~/.zevai/runtime/node_modules. Connects to registry.npmjs.org (legitimate).
Prompt-injection hints in docs medium CHANGELOG.md
CHANGELOG.md contains 24 hints of system-impersonation, credential-request, and conceal-from-user patterns in documentation text.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 6. 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/.zevai/runtime/package.json