Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-20 00:40 UTC by dsv41-flash in 14 tool calls, with lab detonation

Summary

poe-code is the poe-platform CLI. Its only install-time code is scripts/postinstall-sync-skills.mjs, which spawns `tsx scripts/sync-skills.ts` only if that workspace-only script exists; it is not in the tarball (package.json files list ships only the postinstall .mjs), so the hook skips. Detonation confirms: postinstall exited 0 with no processes beyond npm/node, 0 network connections, 0 files written outside the package; the only canary touched was /home/andy/.npmrc, read by npm itself. The static prescreen flags (credential_access/obfuscation) resolve to the product's own encrypted credential store (packages/auth-store, AES-256-GCM, mode 0600, symlink checks) and the code that writes POE_API_KEY into other agents' provider configs — expected behavior for a provider-configuration tool. Network usage is limited to api.poe.com, github.com, registry.npmjs.org (update check), api.duckduckgo.com (web search), and target-agent installers (claude.ai/install.sh, cursor.com/install) invoked only on explicit user install commands.

Intent

A developer CLI that configures Poe API (api.poe.com) as a provider for coding agents (Claude Code, Codex, Cursor, Gemini CLI, Goose, OpenCode) and stores the Poe key in a local encrypted file. The install hook is a no-op in the published package; all behavior matches the stated purpose.

network_egress agent_config_tamper credential_access

Findings

postinstall hook is a no-op in the published tarball info scripts/postinstall-sync-skills.mjs:23-27
scripts/postinstall-sync-skills.mjs builds a spawn plan for scripts/sync-skills.ts and skips (reason 'missing-sync-script') when it is absent; package.json 'files' ships only scripts/postinstall-sync-skills.mjs, and andy_grep finds no scripts/sync-skills.ts in the package. Detonation: postinstall exit 0, 0 network calls, no unexpected writes.
prepare: husky is inert without a .git/husky setup info package.json:91
'prepare': 'husky' only runs in a git working tree / dev install; in the lab it exited 127 ('husky: not found'). It installs no persistence and makes no network calls.
Credential handling is local encryption, not exfiltration low packages/auth-store/dist/encrypted-file-store.js:40-111
packages/auth-store/dist/encrypted-file-store.js derives an AES-256-GCM key via scrypt from hostname+username and a static salt, writes credentials.enc with mode 0600 and refuses symlinked paths. The base64/decipher hits the prescreen flagged as 'obfuscation' are this store plus JWT/JSON-RPC handling, not packed payloads.
Writes provider API keys into agent configs by design low dist/providers/claude-code.js:34
dist/providers/*.js (claude-code, codex, cursor, gemini-cli, goose, opencode) write POE_API_KEY / POE_BASE_URL=https://api.poe.com/v1 into the corresponding agent's configuration. This is the package's advertised function; the writes only happen when the user runs the configure command, not at install time.
No prompt injection in docs or skill content info dist/program-J7SK6YNL.js:12377
Greps for instruction-steering phrases ('ignore previous', 'do not tell', 'system prompt', 'assistant must') returned only benign UI labels ('System prompt' in a trace viewer). The prescreen 'system_impersonation' hits are false positives on ${CLAUDE_PLUGIN_ROOT} env placeholders.
Network destinations are all expected/declared info dist/program-J7SK6YNL.js:9557
Only hosts seen: api.poe.com, poe.com (OAuth), github.com, registry.npmjs.org (update check), api.duckduckgo.com (web search), and the target agents' own installers (claude.ai/install.sh, cursor.com/install) invoked on explicit install commands. No unknown or lookalike domains, no raw IP exfil.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 9. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).

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