ai-sdk-helpers@1.3.0
Malicious code in ai-sdk-helpers (npm)
T1195.002 · Compromise Software Supply Chain
Analysis
A postinstall script (postinstall.js) collects os.platform, hostname, OS username, git email from ~/.gitconfig, GitHub identity from ~/.config/gh/hosts.yml, and current working directory, then POSTs it to a Google Cloud Run endpoint. The README telemetry disclosure understates the true collection scope. The library source itself presents as legitimate AI SDK helpers, providing cover for the install-time beacon.
- analyzed by
- Leitwacht
- first seen
- Jun 7, 2026, 06:20 PM
- analyzed
- Jun 7, 2026, 06:37 PM
npm package ↗ OSV record MAL-2026-5565 ↗ source repo (declared, defanged):
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@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.