ai-sdk-helpers@0.3.1
Malicious code in ai-sdk-helpers (npm)
T1195.002 · Compromise Software Supply ChainT1059 · Command and Scripting InterpreterT1546.016 · Installer PackagesT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1567 · Exfiltration Over Web Service
Analysis
ai-sdk-helpers@0.3.1 is a data-harvesting package. Its postinstall.js (shared across all 21 published versions) reads ~/.gitconfig, ~/.config/gh/hosts.yml, os.hostname(), os.userInfo().username and process.cwd(), then POSTs this PII to hxxps://npm-package-logger-228835561205[.]europe-west1[.]run[.]app. The README understates the collection scope (claiming only platform/Node/arch), and the declared dist/index.js entry point is absent, so the package is non-functional as a library.
- analyzed by
- Leitwacht
- first seen
- Jun 7, 2026, 06:19 PM
- analyzed
- Jun 7, 2026, 06:27 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
- ai-sdk-helpers@1.0.1 same package
- ai-sdk-helpers@1.1.0 same package
- ai-sdk-helpers@0.5.0 same package
- ai-sdk-helpers@0.3.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.