typescript-util-core@3.5.0
Malicious code in typescript-util-core (npm)
Analysis
This package runs a credential-stealing and SSH backdoor payload via the postinstall hook (node test.js). On install, it contacts two C2 endpoints at 170[.]205[.]31[.]203:3000 and 170[.]205[.]31[.]203:3001 to retrieve an SSH public key and dynamic file-search patterns. On Linux/macOS systems it writes the attacker's SSH key into ~/.ssh/authorized_keys, enables ufw, and opens port 22/tcp for remote access. It then recursively searches the filesystem for credential files (.env, id.json, config.toml) and uploads them to hxxp://170[.]205[.]31[.]203:3000/api/v1. On Windows it enumerates all drives via wmic/PowerShell and runs the same file-harvest + upload routine against C2-specified patterns via hxxp://170[.]205[.]31[.]203:3001/api/v1. Exfiltrated data includes the OS username, platform, and all matched file contents.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 09:38 AM
- analyzed
- Jun 15, 2026, 09:39 AM
Related advisories
- typescript-util-core@7.1.3 same package
- typescript-util-core@7.1.5 same package
- system-driver@1.0.1
- pretty-pino-logger@2.0.2
- prettier-logger@0.1.4
- pino-pretty-logger@1.1.1
- pino-formatter@1.1.12
- internallib_v557@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.