typescript-api-node@2.1.6
Malicious code in typescript-api-node (npm)
Analysis
typescript-api-node@2.1.6 is a dependency-confusion package that lists Node.js core modules (child_process, os) as npm dependencies to trick installers. Its postinstall hook executes a credential-theft and SSH backdoor implant. The payload (in index.js) scans the filesystem for .env, .jsond, .config.toml, and Config.toml files and exfiltrates them to hxxp://170[.]205[.]31[.]203:3001/ipa/. It also contacts the C2 at 170[.]205[.]31[.]203:3001 to fetch an SSH public key, installs it into ~/.ssh/authorized_keys, enables the firewall (ufw) and opens port 22/tcp, then scans the filesystem for additional files matching attacker-defined patterns and uploads them to hxxp://170[.]205[.]31[.]203:3001/api/v1.
- analyzed by
- Leitwacht
- first seen
- Jul 15, 2026, 09:34 PM
- analyzed
- Jul 15, 2026, 09:35 PM
Related advisories
- api-rs-tuils@2.1.6
- polymarket-mcp-v2@2.1.6
- paperclip-host-utils@1.0.0
- vps-adapter-core@1.0.0
- ts-linting-builder@2.1.2
- ts-lint-builders-v2.1@2.1.0
- ts-ankle@1.1.0
- block-slot@1.0.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.