LWA-2026-7168 MAL-2026-11124 ↗ confirmed malware

api-node-sdk@2.1.6

Malicious code in api-node-sdk (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1098.004 · SSH Authorized KeysT1552.001 · Credentials In FilesT1082 · System Information DiscoveryT1083 · File and Directory DiscoveryT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 Channel

Analysis

The package api-node-sdk@2.1.6 is a combosquat of a generic API SDK name. Its postinstall hook (node test.js) executes a multi-stage implant. The payload fetches an SSH public key and configuration from C2 at 95[.]216[.]118[.]146:3001 (endpoints: /api/ssh-key, /api/scan-patterns, /api/block-patterns). It writes the attacker's SSH key to ~/.ssh/authorized_keys, enables the firewall (sudo ufw enable), and opens port 22 (sudo ufw allow 22/tcp) for persistent remote access. It then scans the home directory for credential and configuration files (id.json, config.toml, .env, env) and exfiltrates them via HTTP POST to 95[.]216[.]118[.]146:3000/api/v1 and 95[.]216[.]118[.]146:3001/api/v1. The exfiltrated data includes the system username and platform metadata.

analyzed by
Leitwacht
first seen
Jul 28, 2026, 07:25 AM
analyzed
Jul 28, 2026, 07:28 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.