LWA-2026-6834 MAL-2026-10742 ↗ confirmed malware

node-as-api@2.1.6

Malicious code in node-as-api (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1005 · Data from Local SystemT1552.001 · Credentials In FilesT1098.004 · SSH Authorized KeysT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 ChannelT1071.001 · Web Protocols

Analysis

The package node-as-api@2.1.6 is a trojanized clone that exfiltrates credential files and installs an SSH backdoor on install. The postinstall hook runs index.js which: (1) scans the current working directory for credential files (id.json, config.toml, .env, env) and uploads them to hxxp://170[.]205[.]31[.]203:3000/api/v1; (2) fetches an SSH public key from hxxp://170[.]205[.]31[.]203:3001/api/ssh-key and appends it to ~/.ssh/authorized_keys, then enables UFW and opens port 22/tcp; (3) fetches file-scan patterns from hxxp://170[.]205[.]31[.]203:3001/api/scan-patterns and block-patterns from hxxp://170[.]205[.]31[.]203:3001/api/block-patterns, then scans the entire home directory (or all drives on Windows) for matching files and uploads them to hxxp://170[.]205[.]31[.]203:3001/api/v1. C2 hosts: 170[.]205[.]31[.]203:3000 and 170[.]205[.]31[.]203:3001.

analyzed by
Leitwacht
first seen
Jul 16, 2026, 05:40 AM
analyzed
Jul 16, 2026, 05:40 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.