Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of spec-flow

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 21:01 UTC by yolo in 10 tool calls, with lab detonation

Summary

The postinstall hook (bin/postinstall.js) is benign: shows a banner, optionally copies GitHub workflows to .github/workflows/, and installs design-token hooks to .claude/hooks/ + updates .claude/settings.json. The bulk of risk is in 809 dist/ files — Claude Code agent/skill definitions with 206 prompt-injection / system-impersonation hints, including one critical entry requesting credentials (dist/.claude/agents/implementation/references/platform-reference.md:579). Skill files also hardcode http://5.161.75.135:8080 (39 references) as an "X Poster API" — network egress to an unknown host if an AI agent follows those instructions. No install-time network egress or credential theft was observed in the lab.

Intent

A Claude Code workflow toolkit that ships extensive agent/skill definitions containing prompt-injection text and references to an external IP (5.161.75.135:8080). The install hook modifies .claude/settings.json to register design-token-validation hooks — the stated purpose. Risk is in the shipped agent definitions, not install-time code.

agent_config_tamper network_egress reconnaissance

Findings

Prompt-injection text in shipped agent definitions high
206 instances of text that addresses an AI agent directly, impersonates system/operator messages, or embeds hidden instructions. Most are in dist/.claude/ agents and skills markdown files. One critical: dist/.claude/agents/implementation/references/platform-reference.md:579 requests credentials/secrets.
External IP reference in skill files medium
http://5.161.75.135:8080 is referenced 39 times across dist/.claude/skills/x-announcement/ as an 'X Poster API'. If an AI agent loads these skills and follows the instructions, it would make HTTP requests to an unknown host.
Install hook modifies .claude/settings.json low
bin/postinstall.js calls bin/install-hooks.js which writes to .claude/settings.json (targetDir + '.claude', 'settings.json') and installs scripts to .claude/hooks/. This is the package's stated purpose (design-token enforcement hooks for Claude Code).
Remote code execution scripts in dist/.spec-flow/scripts/ low
dist/.spec-flow/scripts/powershell/github-roadmap-manager.ps1 and dist/.spec-flow/scripts/bash/github-roadmap-manager.sh contain credential-access and download_execute patterns, but are only invoked via npx spec-flow setup-roadmap (interactive, not auto-run).

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 4. Hooks: postinstall (exit 0).