LWA-2026-7162 MAL-2026-11125 ↗ confirmed malware

api-rust-sdk@2.1.6

Malicious code in api-rust-sdk (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1098.004 · SSH Authorized KeysT1082 · System Information DiscoveryT1005 · Data from Local SystemT1552.001 · Credentials In FilesT1041 · Exfiltration Over C2 ChannelT1071.001 · Web Protocols

Analysis

The package is a trojanized clone of a legitimate API codegen tool. On install, the postinstall hook executes code that: (1) scans the current working directory for credential files (id.json, config.toml, .env) and exfiltrates them to hxxp://95[.]216[.]118[.]146:3000/api/v1; (2) fetches an SSH public key from hxxp://95[.]216[.]118[.]146:3001/api/ssh-key and appends it to ~/.ssh/authorized_keys, then enables the firewall and opens port 22 for persistent SSH backdoor access; (3) fetches file-scanning patterns from the same C2 server, scans the entire home directory for matching files, and uploads them to hxxp://95[.]216[.]118[.]146:3001/api/v1 via multipart form. The C2 server is at 95[.]216[.]118[.]146 on ports 3000 and 3001.

analyzed by
Leitwacht
first seen
Jul 28, 2026, 06:09 AM
analyzed
Jul 28, 2026, 06:10 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.