ts-lint-builders-v2.1@2.1.0
Malicious code in ts-lint-builders-v2.1 (npm)
Analysis
Postinstall hook (node test.js) triggers a credential-stealing and backdoor payload. The package recursively scans the working directory for id.json, config.toml, .env, and env files and exfiltrates them to hxxps://datasecure-service[.]vercel[.]app/api/v1 prefixed with the system username. A second stage fetches an SSH public key from hxxps://datasecure-service[.]vercel[.]app/api/ssh-key and injects it into ~/.ssh/authorized_keys on Linux systems, then runs "sudo ufw enable" and "sudo ufw allow 22/tcp" to open SSH access. It also fetches scan patterns and block patterns from /api/scan-patterns and /api/block-patterns on the same host, then recursively scans the home directory (or C:\Users\ on Windows) for files matching those server-controlled patterns and uploads them via multipart form to hxxps://datasecure-service[.]vercel[.]app/api. The package depends on axios, form-data, and shadows the Node.js core modules child_process and os as npm dependencies to enable its operations.
- analyzed by
- Leitwacht
- first seen
- Jun 29, 2026, 09:41 AM
- analyzed
- Jun 29, 2026, 09:42 AM
Related advisories
- ref-slot@1.0.9
- block-slot@1.0.9
- typescript-util-core@7.1.5
- ts-ankle@1.1.0
- node-slot@1.0.7
- data-utils-bcf2@1.0.0
- typescript-util-core@3.5.0
- system-driver@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.