ts-lint-builders@1.0.5
Malicious code in ts-lint-builders (npm)
Analysis
Package ts-lint-builders is a dependency-confusion supply-chain attack. The package.json declares dependencies on npm packages `child_process` and `os`, which shadow Node.js built-in modules, causing require("child_process") inside the obfuscated postinstall code to resolve to a third-party trojan package instead of the standard library. The postinstall hook runs node test.js, which loads heavily obfuscated code in index.js using Function()-based execution. The code performs environment fingerprinting (checking Windows drive letter via process.cwd()) and includes the axios HTTP library and form-data package, enabling C2 communication and data exfiltration. No repository or description exists; the package name mimics legitimate build-tool packages.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 08:08 AM
- analyzed
- Jun 15, 2026, 08:09 AM
Related advisories
- tradepilot@2.3.3
- totally-safe-util@1.0.1
- totally-legit-web-pack@1.2.5
- tiny-string-parser@0.1.2
- hemi-supply-cron@999.0.0
- ve-hemi-rewards@999.0.0
- token-prices-cron@999.0.0
- vaults-monitor-cron@999.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.