Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

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

Summary

postinstall runs scripts/postinstall-sync-skills.mjs, which only spawns `npm run sync-skills`/tsx if scripts/sync-skills.ts exists inside the package — it is not shipped, so the hook is a no-op (lab: exit 0, 0 network calls, 0 DNS, no canary reads). `prepare: husky` fails with 127 because husky is a devDependency (normal for a tarball). The credential/agent-config/network capability hits come from the product's actual purpose: storing the Poe key in ~/.poe-code (encrypted file or macOS Keychain), writing provider credentials/base URLs into ~/.claude, ~/.codex, ~/.gemini, ~/.config/opencode configs, and calling api.poe.com; the only download-and-execute strings are the official installers (curl -fsSL https://claude.ai/install.sh | bash, cursor.com/install, block/goose releases) inside provider install definitions invoked explicitly by `poe install <agent>`. No exfiltration host, no eval/obfuscated blob, no large base64 payload, no prompt-injection text were found anywhere in the tree.

Intent

poe-code is the real Poe Platform CLI (monorepo build: Poe OAuth/API-key login, provider configuration for Claude Code/Codex/Cursor/Gemini/opencode/goose, skills, pipelines, MCP servers). Its install hooks are inert in the published tarball and nothing it does at install time goes beyond the documented CLI behaviour.

network_egress credential_access agent_config_tamper code_execution download_execute

Findings

postinstall hook is a no-op in the published tarball info scripts/postinstall-sync-skills.mjs:23-26, package.json:110
createPostinstallSkillSyncPlan() skips when scripts/sync-skills.ts is missing (line 24-26). package.json "files" (line 123-189) ships only scripts/postinstall-sync-skills.mjs, and a grep across the tree shows sync-skills.ts absent. Lab: postinstall exit 0, 0 processes beyond the npm/node chain, no network, no canary credential access.
prepare: husky is a devDependency, standard for this repo info package.json:91,285
`prepare` runs `husky` which is only in devDependencies; on install from a tarball it fails with exit 127 (sh: husky: not found) and does nothing. This is the normal husky pattern, not a hook being suppressed.
Credential handling matches the stated purpose (Poe login/config) info dist/credentials.js:70-72, dist/agent.js:4185-4250
The tool stores the Poe API key locally in ~/.poe-code using either an AES-GCM encrypted file (packages/auth-store/dist/encrypted-file-store.js:58-60, scrypt-derived key) or the macOS Keychain (packages/auth-store/dist/keychain-store.js), and writes provider credentials/base URLs (ANTHROPIC_API_KEY, OPENAI_API_KEY, POE_BASE_URL) into the configs of the agents it configures. No code path reads ~/.ssh, ~/.aws, ~/.npmrc, .netrc or git credentials; the lab's only canary read of /home/andy/.npmrc is npm itself reading its own config during `npm run-script`.
All egress targets are the vendor's own endpoints info dist/chunk-OOO5R6VJ.js:698,914,1265-1266, dist/program-J7SK6YNL.js:9557
Every absolute URL in dist/ resolves to api.poe.com, poe.com (OAuth authorize/token), api.anthropic.com / api.openai.com (provider base-URL defaults shown for configuration), api.github.com/graphql, registry.npmjs.org/poe-code (self version check) or schema/doc URLs; loopback 127.0.0.1 is used only for OAuth callbacks and container health checks. No unknown host, no IP literal beacon.
download_execute hits are vendor installer strings in provider definitions low dist/providers/claude-code.js:11881-11904, dist/providers/cursor.js:11799, dist/providers/goose.js:11778-11800
CLAUDECODE_INSTALL_DEFINITION etc. contain `curl -fsSL https://claude.ai/install.sh | bash` (and cursor.com/install, block/goose releases installers). These run only when the user explicitly invokes `poe install <agent>` through the install runner, not from an install hook or on require.
Writes into agent config/skill directories are the product's core function low packages/agent-hook-config/dist/configs.js:6-34, packages/agent-skill-config/dist/configs.js:6-19
paths such as ~/.claude/settings.json, ~/.codex/config.toml, ~/.codex/hooks.json, ~/.gemini/settings.json, ~/.claude/skills, ~/.codex/skills are written by the documented `configure`/`skill`/`hook` commands (packages/agent-hook-config/dist/configs.js:6-34, packages/agent-skill-config/dist/configs.js:6-19). Operators installing this must accept that it edits their other agents' configuration by design.
No obfuscation, hidden payload or injection text info dist/agent.js:3953-3955,9674, dist/providers/claude-code.js:8841,8861
No eval/new Function, no atob, no base64 blob longer than 300 chars, no embedded ciphertext outside the documented credential store. The static 'obfuscation' and 'system impersonation' hints are AES-GCM base64 fields, a base64url validator, and Claude Code plugin template placeholders (${CLAUDE_PROJECT_DIR}, $PLUGIN_ROOT). A grep for instruction-override phrases found only a UI label 'System prompt' in the trace viewer.

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