Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

clean   confidence 80%   action allow   analyzed 2026-09-20 03:02 UTC by dsv41-flash in 22 tool calls, with lab detonation

Summary

[email protected] is a large (54 MB unpacked, 1500-file) monorepo CLI for wiring coding agents to the Poe API. The postinstall (scripts/postinstall-sync-skills.mjs) is a guarded no-op: it spawns `npm run sync-skills` only if scripts/sync-skills.ts exists, and that file is not shipped in the tarball, so the hook exits without doing anything; `prepare: husky` simply fails because husky is a devDependency. The lab run made zero DNS lookups, zero connections and wrote nothing outside the package (the single ~/.npmrc read is npm's own config load). The static pre-screen's credential/agent-config/obfuscation hits are mostly false positives produced by huge rollup bundles plus legitimate AES-GCM encrypted credential storage (~/.auth-store/credentials.enc) and the package's advertised agent-config/skills feature.

Intent

poe-code is a real CLI/SDK (Poe platform) that configures third-party coding agents (Claude Code, Codex, Cursor, Gemini CLI, Goose, OpenCode) to use the Poe API and installs "skill" markdown into agent config directories. Its install hooks are inert and its runtime code is consistent with that purpose; no exfiltration, obfuscated payload or unexpected network activity was found.

credential_access agent_config_tamper network_egress code_execution download_execute

Findings

postinstall is a guarded no-op in the published tarball info scripts/postinstall-sync-skills.mjs:23-30
scripts/postinstall-sync-skills.mjs builds a plan that returns {action:'skip', reason:'missing-sync-script'} when scripts/sync-skills.ts is absent; package.json "files" ships only scripts/postinstall-sync-skills.mjs, so nothing is spawned. Detonation confirmed: hook postinstall exit 0 with no child process besides npm's own runner.
prepare: husky fails harmlessly info package.json:91
`prepare` is `husky` and husky is a devDependency, so the hook exits 127 ('husky: not found') in a production install. Standard dev-tooling leftover, no effect.
Lab run: no network, no writes outside package info lab report
andy_detonate (offline sink) recorded 0 connect() calls, 0 DNS names, 0 HTTP requests across postinstall, prepare and a require() of dist/index.js. require failed only on missing dependency fast-wrap-ansi (lab has no node_modules installed). Only canary read was /home/andy/.npmrc, which npm itself loads for every `npm run-script`.
Credential handling is local encrypted storage, not exfiltration low dist/credentials.js:13-120
dist/credentials.js implements packages/auth-store/src/encrypted-file-store.ts: AES-256-GCM with a scrypt-derived key, written to ~/.auth-store/credentials.enc (mode 0600, symlink checks, temp-file + rename). The base64 Buffer.from calls flagged by the pre-screen are the ciphertext/iv/authTag fields of that store. No credential value is ever placed in an outbound request other than to the user-configured Poe/Anthropic/OpenAI base URL.
Agent-config and skills writes are the package's stated feature medium dist/skills.js:24-269
dist/skills.js hardcodes the agent config/skill locations it manages (~/.claude.json, ~/.codex/config.toml, ~/.cursor/mcp.json, ~/.gemini/settings.json, ~/.config/goose/config.yaml and their skills dirs, incl. ~/.agents/skills). This matches the README's purpose: configure coding agents and install poe-code 'skill' files. It runs on explicit user commands (poe-code configure/skill), not at install time.
Provider installers shell out to vendor install scripts low dist/providers/claude-code.js:11893-11899, dist/providers/goose.js:11778-11800
Provider modules can run vendor-blessed installers, e.g. `sh -c "curl -fsSL https://claude.ai/install.sh | bash"` and equivalents for cursor/goose. These are the official vendor URLs, are user-triggered ('install' capability), and no other host is contacted.
Pre-screen hits are false positives from bundle size info dist/agent.js, dist/chunk-*.js
The flagged 'obfuscation' hits are base64 iv/authTag handling and TUI code; 'inj:system_impersonation' hits in dist/providers/claude-code.js are Claude plugin env-var expansions (CLAUDE_PROJECT_DIR / CLAUDE_PLUGIN_ROOT); credential_harvest/code_execution hits come from rollup chunk duplication of the agent-defs provider table. Grep for JSON.stringify(process.env), long embedded base64 blobs, eval/new Function/atob payloads and unknown webhook hosts returned nothing.
Historic consistency info andymal.com history
IOC lookup shows 11 earlier poe-code versions (17.0.12-17.0.23) already analyzed and published clean; this version's structure and hooks match that series.

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