ai-sdk-helpers@1.1.1
Malicious code in ai-sdk-helpers (npm)
T1059 · Command and Scripting InterpreterT1546.016 · Installer Packages
Analysis
A postinstall script in this package collects system PII — hostname, OS username, git email from ~/.gitconfig, GitHub identity from ~/.config/gh/hosts.yml, and current working directory — and POSTs it to hxxps://npm-package-logger-228835561205[.]europe-west1[.]run[.]app. The package presents as legitimate AI SDK utilities, but the install-time beacon collects far more than the README discloses (which claims only platform, Node version, and architecture). This is a trojan with an install-time PII-exfiltration beacon.
- analyzed by
- Leitwacht
- first seen
- Jun 7, 2026, 06:19 PM
- analyzed
- Jun 7, 2026, 06:44 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@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.