Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of poe-code

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 17:29 UTC by yolo in 25 tool calls, with lab detonation

Summary

The package is a large, heavily-bundled AI-agent-orchestration tool. Its postinstall hook runs scripts/postinstall-sync-skills.mjs which spawns tsx scripts/sync-skills.ts — the script is absent from the published tarball, so the hook skips. The runtime code reads provider API keys (ANTHROPIC_API_KEY, OPENAI_API_KEY, POE_API_KEY) from the environment and writes encrypted credential stores to ~/.poe-code/credentials.enc. It also reads/writes AGENTS.md and configures hooks into Claude Code (~/.claude/settings.json), Codex (~/.codex/hooks.json), Cursor, and other agents. No unexpected network egress was observed in the lab.

Intent

CLI orchestrator for AI coding agents (Claude Code, Codex, Cursor, Gemini CLI, etc.) that manages provider API keys, configures agent hooks, and synchronizes skills. Install hook attempts to run a missing sync-skills script (skipped in the tarball).

credential_access agent_config_tamper code_execution persistence

Findings

Install hook spawns sync-skills.ts (missing from tarball) low scripts/postinstall-sync-skills.mjs:23
scripts/postinstall-sync-skills.mjs line 23: checks for scripts/sync-skills.ts; absent → action=skip. In a full build environment this would run arbitrary TS code.
Reads provider API keys from process.env medium dist/agent.js:4376
dist/agent.js:4376,13351,17252,17487: reads ANTHROPIC_API_KEY, OPENAI_API_KEY, POE_API_KEY from environment to pass to AI SDKs. Legitimate for the tool's purpose but broad env access.
Encrypted credential store at ~/.poe-code/credentials.enc medium dist/credentials.js:100
dist/credentials.js:100,106: creates directory and writes encrypted credential file in user home. Salt is 'poe-code:encrypted-file-auth-store:v1'.
Configures hooks into AI coding agents medium dist/providers/claude-code.js:8820
dist/providers/claude-code.js:8820-8843: writes to ~/.claude/settings.json; dist/providers/cursor.js:139: binaryName 'cursor-agent'. Manages hooks for Claude Code, Codex, Cursor, Gemini CLI, Opencode, Goose, Pi.
Reads/writes AGENTS.md files low dist/agent.js:6667
dist/agent.js:6667: var AGENTS_FILE = 'AGENTS.md'; reads project-local AGENTS.md for memory/context injection into AI agent prompts.
Workspace file download (not remote binary execution) info dist/providers/claude-code.js:525
dist/providers/claude-code.js:525: downloadWorkspace syncs remote FS to local cwd. 'download_execute' static hit is a false positive — this is workspace sync, not remote code download.

Lab evidence

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