ai-sdk-helpers@1.2.1
Malicious code in ai-sdk-helpers (npm)
Analysis
Install-time reconnaissance harvester: ai-sdk-helpers@1.2.1 runs a postinstall script that collects os.hostname(), os.userInfo().username, the git email from ~/.gitconfig, the GitHub login/email from ~/.config/gh/hosts.yml, the current working directory, and CI environment variables, then sends all of it to the Cloud Run endpoint npm-package-logger-228835561205[.]europe-west1[.]run[.]app. The package also ships scripts/publish-versions.sh, which (by its own comment) bulk-publishes fake version history to "create the appearance of an active, maintained package." No token-theft markers in this version; the recon stage stages credentials/identifiers for follow-on theft.
- analyzed by
- Leitwacht
- first seen
- Jun 7, 2026, 06:19 PM
- analyzed
- Jun 7, 2026, 06:39 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.3.0 same package
- ai-sdk-helpers@0.1.2 same package
- ai-sdk-helpers@0.1.0 same package
- ai-sdk-helpers@0.1.1 same package
- ai-sdk-helpers@0.2.0 same package
- ai-sdk-helpers@0.2.1 same package
- ai-sdk-helpers@0.3.1 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.