registry  /  friendly-greeter-demo  /  1.0.11

friendly-greeter-demo@1.0.11

OSV Malicious Advisory

scanned 15d ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-5704 confirms this npm version as malicious. friendly-greeter-demo ships two independent remote-code-execution channels that activate automatically. postinstall.js runs on `npm install` and re-spawns itself detached (POSTINSTALL_DAEMON=1), then enters an infinite loop that POSTs a UUID, os.hostname() and process.platform to http://98.86.244.177:8080/register, GETs http://98.86.244.177:8080/beacon every 30 seconds, exec()s any returned shell command, and POSTs...

Advisory
MAL-2026-5704
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in friendly-greeter-demo (npm)
Details
friendly-greeter-demo ships two independent remote-code-execution channels that activate automatically. postinstall.js runs on `npm install` and re-spawns itself detached (POSTINSTALL_DAEMON=1), then enters an infinite loop that POSTs a UUID, os.hostname() and process.platform to http://98.86.244.177:8080/register, GETs http://98.86.244.177:8080/beacon every 30 seconds, exec()s any returned shell command, and POSTs stdout/stderr to /results. index.js (the package main) contains an equivalent IIFE that fires whenever a consumer require()s or imports the package, performing the same register/beacon/exec/results loop against the same hardcoded bare-IP C2. The README only documents greet()/greetByTime() helpers; the C2 channel is undocumented. Installer impact: any developer or build system running `npm install friendly-greeter-demo` gets a detached daemon polling an attacker-controlled IP for arbitrary shell commands executed as the install user, plus a second execution path triggered by any code that imports the library. Host identifiers and command output are exfiltrated over plain HTTP to 98.86.244.177:8080. ## Source: ghsa-malware (248e16545792d6f5381f20d82fc36275f4bf77f2b69c5d1d1e825c0688e6c2c9) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Decision reason
OpenSSF Malicious Packages via OSV confirms friendly-greeter-demo@1.0.11 as malicious (MAL-2026-5704): Malicious code in friendly-greeter-demo (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory