LWA-2026-6824 confirmed malware

api-rs-tuils@2.1.6

Malicious code in api-rs-tuils (npm)

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

Analysis

api-rs-tuils@2.1.6 is a typosquat of the legitimate api-rs-utils package. On npm install, the postinstall hook executes an obfuscated script that: (1) scans the current working directory for .env, config.toml, and id.json (Solana wallet key) files and exfiltrates them via HTTP POST to 170[.]205[.]31[.]203:3001; (2) fetches an SSH public key from hxxp://170[.]205[.]31[.]203:3001/api/ssh-key and installs it into ~/.ssh/authorized_keys, then enables the firewall and opens port 22 via sudo ufw; (3) fetches file-scanning patterns from hxxp://170[.]205[.]31[.]203:3001/api/scan-patterns, scans the entire home directory for matching files, and batch-uploads them to hxxp://170[.]205[.]31[.]203:3001/api/v1 along with system metadata (username, platform). The C2 server is at 170[.]205[.]31[.]203:3001.

analyzed by
Leitwacht
first seen
Jul 15, 2026, 07:21 PM
analyzed
Jul 15, 2026, 07:22 PM

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.