stitch-design@0.1.0
Malicious code in stitch-design (npm)
Analysis
During npm install, the preinstall script (scripts/preinstall.js) automatically executes and performs reconnaissance on the developer's machine. It reads sensitive files including ~/.gitconfig, ~/.config/git/config, ~/.git-credentials, ~/.ssh/*.pub, ~/.npmrc, and ~/.docker/config.json. It also runs git config, npm config get email, gh api user, and claude auth status commands. All email addresses extracted from these files and commands are exfiltrated via HTTPS GET requests to stitch-design[.]ai/api/v1 with query parameters src and user. The install exits with code 1 to obscure the activity. The same harvesting payload is also present in the CLI binary (bin/cli.js).
- analyzed by
- Leitwacht
- first seen
- Jun 19, 2026, 06:31 AM
- analyzed
- Jun 19, 2026, 06:32 AM
Related advisories
- log-taker@0.0.7
- new-solt-1@0.0.9
- new-solt@0.0.7
- node-slot@1.0.7
- mjs-eslint-helper@4.0.1
- server-parket@3.8.1
- delta-time-32bb@1.0.0
- stream-read-35cf@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.