Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-20 03:12 UTC by dsv41-flash in 19 tool calls, with lab detonation

Summary

postinstall runs scripts/postinstall-sync-skills.mjs, which computes a plan and spawns `npm run sync-skills` only if scripts/sync-skills.ts exists — that file is NOT shipped in the tarball (package.json files list at line 131 includes only the postinstall script), so the hook is a no-op: the lab run exited 0 with zero network calls, zero DNS names, zero files written outside the package. The other install hook, `prepare: husky`, is a dev-only git-hook installer and failed with exit 127 (husky not installed) with no side effects. The pre-screen's credential/agent-config/obfuscation hits are the package's actual purpose: ~/.claude.json, ~/.codex/config.toml and ~/.cursor/mcp.json are rewritten by explicit `poe configure` commands to point provider CLIs at https://api.poe.com/v1, and secrets are stored locally via packages/auth-store (Keychain or scrypt+AES-256-GCM file ~/.auth-store/credentials.enc, mode 0600). All observed egress targets are expected: api.poe.com, api.anthropic.com, api.openai.com, api.github.com, api.duckduckgo.com (markdown image lookup), schema IDs on poe-platform.github.io, plus user-initiated `curl https://claude.ai/install.sh | bash` / `curl https://cursor.com/install -fS | bash` used to install the provider CLIs. 12 earlier 17.0.x versions are already published as clean, matching this one.

Intent

poe-code is the Poe platform's developer CLI that configures agent tools (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Goose) to route through the Poe API, and stores the user's Poe key in macOS Keychain or a locally AES-256-GCM-encrypted file. Its install-time code is inert and all credential/config access is user-invoked and scoped to its stated purpose; nothing is exfiltrated to unexpected hosts.

credential_access network_egress code_execution agent_config_tamper download_execute

Findings

Postinstall hook is present but inert in the published tarball info scripts/postinstall-sync-skills.mjs:23-30
scripts/postinstall-sync-skills.mjs builds a plan and only spawns when join(root,"scripts/sync-skills.ts") exists (lines 23-30, 39-43). The `files` list in package.json ships only scripts/postinstall-sync-skills.mjs, and a full-package grep for 'sync-skills' matches package.json only — the sync script is absent, so the hook returns {action:"skip", reason:"missing-sync-script"}. Lab: hook exited 0, 0 connections, 0 files written.
prepare hook is a standard husky git-hook installer info package.json:91
package.json:91 "prepare": "husky" is a dev-time git hook setup used by thousands of packages. In the lab it failed with exit 127 (husky not installed) and produced no other activity.
Credential storage is local and encrypted, not exfiltrated info packages/auth-store/dist/encrypted-file-store.js:74-110
packages/auth-store/dist/encrypted-file-store.js writes to ~/.auth-store/credentials.enc using scrypt-derived key + aes-256-gcm, file mode 0600, temp-file+rename, symlink-escape guards (lines 7-12, 74-110, 123-140). packages/auth-store/dist/keychain-store.js shells out to macOS `security` for keychain access. There is no network write of the decrypted secret anywhere in that path.
Agent config writes exist but only under explicit CLI commands low dist/agent.js:16017-16084
Config path constants for ~/.claude.json, ~/.codex/config.toml and ~/.cursor/mcp.json appear in dist/agent.js:16017-16084 and provider bundles; they are written by `poe configure`/`poe unconfigure` (dist/cli/commands/unconfigure.js, dist/cli/commands/configure.js), i.e. user-invoked, and the injected values are POE_API_KEY/POE_BASE_URL pointed at https://api.poe.com/v1. No install-time config tampering was observed.
User-initiated download-and-execute of provider installers low dist/providers/claude-code.js:11893
dist/providers/claude-code.js:11893 runs `curl -fsSL https://claude.ai/install.sh | bash` (and the PowerShell equivalent) and dist/providers/cursor.js:11799 runs `curl https://cursor.com/install -fS | bash`, alongside existing npm/github download paths. These install the third-party CLI the user asked poe-code to configure, matching the package's advertised behavior, and are not triggered by postinstall.
No unexpected network endpoints, persistence or prompt injection info
Grep over all 1499 text files for crontab/bashrc/zshrc/LaunchAgents/systemd/authorized_keys/.gitconfig/.npmrc/ssh paths returned 0 matches; grep for AI-directed injection text ("if you are an AI", "ignore previous", "send the token/key/secret") returned 0 matches. The prescreen's 'untrusted hosts' are documentation examples (gateway.example), schema IDs (poe-code.dev, poe-platform.github.io) and provider API bases. The only canary read in the lab was /home/andy/.npmrc, performed by npm itself while running the script hooks, not by package code.

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