LWA-2026-6044 MAL-2026-5704 ↗ confirmed malware

friendly-greeter-demo@1.0.10

Malicious code in friendly-greeter-demo (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059 · Command and Scripting InterpreterT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 Channel

Analysis

friendly-greeter-demo@1.0.10 is a trojanized clone of a benign greeting library that contains a C2 implant in both its postinstall.js and index.js files. On npm install, the postinstall hook spawns a detached background Node.js process that: (1) generates a unique machine ID via crypto.randomUUID(), collects the hostname and platform, and POSTs them to hxxp://98[.]86[.]244[.]177:8080/register; (2) enters an infinite loop polling hxxp://98[.]86[.]244[.]177:8080/beacon?uuid=<MACHINE_ID> every 60-120 seconds; (3) if the C2 response contains a 'command' field, executes it via child_process.exec() and POSTs the output to hxxp://98[.]86[.]244[.]177:8080/results. The index.js entry point contains a duplicate C2 block that fires the same registration and command-fetch logic when the module is required. The C2 host is 98[.]86[.]244[.]177:8080, with endpoints /register, /beacon, and /results.

analyzed by
Leitwacht
first seen
Jun 15, 2026, 11:32 AM
analyzed
Jun 27, 2026, 09:22 PM
weekly installs
1,816

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.