ai-sdk-helpers@1.3.1
Malicious code in ai-sdk-helpers (npm)
Analysis
A postinstall hook (scripts/postinstall.js) harvests PII at install time: it reads ~/.gitconfig for the git email and ~/.config/gh/hosts.yml for GitHub login/email, then POSTs hostname, username, git email, GitHub login, and current working directory to hxxps://npm-package-logger-228835561205[.]europe-west1[.]run[.]app (not the claimed ai-sdk.guide). The README claims the data is "anonymous" and "one-way hashed" — both false; raw identifiable data is exfiltrated. The library files are legitimate re-exports from the ai package, serving as camouflage for the install-time identity harvesting.
- analyzed by
- Leitwacht
- first seen
- Jun 7, 2026, 06:20 PM
- analyzed
- Jun 7, 2026, 06:34 PM
hxxps://github[.]com/ai-sdk-guide/ai-sdk-helpers Request takedown / dispute →Related advisories
- ai-sdk-helpers@1.2.0 same package
- ai-sdk-helpers@1.2.1 same package
- ai-sdk-helpers@1.3.0 same package
- ai-sdk-helpers@0.1.2 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.