friendly-greeter-demo@1.0.10
Malicious code in friendly-greeter-demo (npm)
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
- friendly-greeter-demo@1.0.1 same package
- free-anthropic-claude@5.3.0
- ts-ankle@1.1.0
- gptmini@4.0.2
- leo-config@1.1.1
- chai-as-operated@6.0.3
- pino-zod@1.0.121
- web3-token-helper@1.1.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.