Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

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

Summary

[email protected] is a 54 MB official Poe-platform CLI. Its postinstall (scripts/postinstall-sync-skills.mjs) only spawns the repo-local scripts/sync-skills.ts, which is not shipped in the tarball, so it resolves to a no-op skip on registry installs; prepare: husky fails harmlessly when husky is absent. Detonation in the isolated lab produced zero connect()/DNS/HTTP activity and only npm's own read of ~/.npmrc. Every outbound host in the package is a legitimate vendor endpoint (api.poe.com, poe.com, api.anthropic.com, api.openai.com, api.github.com, cursor.com/install inside the opt-in `poe-code provider install cursor` command); the base64/AES and child_process hits are the auth-store encrypted file store, macOS keychain storage and agent subprocess spawning.

Intent

poe-code is the official Poe CLI that configures Poe credentials and MCP endpoints for AI coding agents; its credential access and agent-config writes are the product's core function, not exfiltration. No install-time network egress, no obfuscated payloads, no unexpected hosts.

credential_access network_egress code_execution agent_config_tamper

Findings

Postinstall hook is a no-op in the published tarball low scripts/postinstall-sync-skills.mjs:16-56
scripts/postinstall-sync-skills.mjs builds a plan to spawn `tsx scripts/sync-skills.ts` (or `npm run sync-skills`) with SYNC_SKILLS_SCOPE=global, cwd=package root, stdio inherit, shell false. It first checks existsSync(join(root,'scripts/sync-skills.ts')) and returns {action:'skip', reason:'missing-sync-script'} when absent. That source file is not in the published `files` list and is not present in the tarball, so nothing is spawned for registry consumers. It also skips when CI is set or SKIP_SYNC_SKILLS=1.
prepare: husky is a dev-only hook info package.json:91
`prepare` runs `husky`; husky is a devDependency and is not installed for consumers, so the hook exits 127 with `sh: 1: husky: not found` (confirmed in the lab). No network or filesystem effect.
No network activity at install time info lab: hook postinstall/prepare/require
Lab report: 0 connect() calls, 0 DNS names, 0 HTTP requests, 0 TLS SNI, 0 other TCP ports across 3 hooks (postinstall exit 0, prepare exit 127, require). The only canary file read was /home/andy/.npmrc, which is npm's own config read during `npm run-script`, not the package.
Credential handling is local by design info packages/auth-store/dist/encrypted-file-store.js, packages/auth-store/dist/keychain-store.js, dist/credentials.js:303
Auth tokens are stored via packages/auth-store (AES-256-GCM encrypted file store with scrypt key derivation, or macOS Keychain via the `security` CLI) and read from POE_API_KEY / provider env vars. The flagged Buffer.from(...,'base64') sites are JWT/base64url decoding and the encrypted store envelope — no decoded-and-executed blob anywhere.
Agent-config writes match the stated purpose low dist/providers/*.js, dist/skills.js, dist/cli/commands/skill.js
Writes target Claude Code, Codex, Cursor, Gemini CLI, Goose and OpenCode configs plus MCP/skill files, driven by explicit CLI commands (`poe-code skill`, `poe-code spawn`, `poe-code provider install`). These drive the credential_access / agent_config_tamper / code_execution prescreen tags and are not covert.
Download-and-execute is a documented, user-invoked installer for a third party low dist/providers/cursor.js:11787-11804
`sh -c 'curl https://cursor.com/install -fsS | bash'` is the Cursor CLI install step reached only through `poe-code provider install cursor`; the URL is Cursor's official installer and the step is gated on the cursor-agent binary being absent. Not triggered at install or require time.
All embedded hosts are vendor endpoints or schema identifiers info dist/agent.js:4423, dist/config.js:5762, dist/oauth-login.js, README.md
api.poe.com, poe.com (OAuth), api.anthropic.com, api.openai.com, api.github.com/graphql, api.duckduckgo.com, poe-platform.github.io (JSON $schema ids), json-schema.org, docker.com/podman.io docs links and 127.0.0.1 (loopback OAuth callback). No unfamiliar exfiltration host; poe-code.dev appears only as a JSON schema id. No prompt-injection text found in README or docs (the prescreen `system_impersonation` hits are ${CLAUDE_PROJECT_DIR} plugin variables).

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