Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of durindoor

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 20:38 UTC by yolo in 11 tool calls, with lab detonation

Summary

The postinstall hook installs sql.js and better-sqlite3 from registry.npmjs.org into ~/.9router/runtime — legitimate runtime dependency management. The lab recorded an unexplained canary credential file read (/home/andy/.gitconfig) with no code path in the package explaining it. The large bundled Next.js app (83 MB) includes API routes that read/write AI agent config files, which is the application's stated purpose.

Intent

A self-hosted AI gateway CLI that installs runtime SQLite and tray dependencies from the npm registry. The bundled Next.js web dashboard reads and writes configuration files for various AI coding agents (OpenClaw, Hermes, Droid, OpenCode, DeepSeek TUI, jcode, etc.) to ~/.config and ~/. directories.

Findings

Unexplained canary credential read medium lab report
The lab read /home/andy/.gitconfig during postinstall, but neither hooks/postinstall.js, hooks/sqliteRuntime.js, nor hooks/trayRuntime.js contain any code that accesses .gitconfig. This is an unexplained credential access.
Runtime dependency installation to user directory info hooks/postinstall.js:5-6
hooks/postinstall.js installs sql.js and better-sqlite3 from registry.npmjs.org into ~/.9router/runtime/node_modules. Writes ~/.9router/runtime/package.json.
Legacy systray cleanup info hooks/trayRuntime.js:29-32
hooks/trayRuntime.js removes legacy systray package from ~/.9router/runtime/node_modules and npm global nested locations.
AI agent config file reads/writes (application behavior) info app/.next-cli-build/server/app/api/cli-tools/*
Next.js server routes read/write config files for OpenClaw (~/.openclaw/openclaw.json), Hermes (~/.hermes/config.yaml, .env), Droid (~/.factory/settings.json), OpenCode (~/.config/opencode.jsonc), DeepSeek TUI, jcode (~/.config/jcode/), Grok Build (~/.config/grok-build/model.config). This is the application's stated function as an AI gateway.
jcode install instruction in UI (not auto-executed) low app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js:19
A warning message displays 'curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash' for user to run manually. Not downloaded or executed by the package.

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/.9router/runtime/package.json