{"id":"GHSA-47h6-x596-wmmx","revision":null,"records":[{"revision":"1ddedc5dc1c74b6885f6af4fb10874ac","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5704","aliases":["GHSA-47h6-x596-wmmx"],"title":"Malicious code in friendly-greeter-demo (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ab72d8364f58d27c6ba37063af62500b494b2fcb8961c1a2b40ed1d2feabdcfe)\nfriendly-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.\n\n## Source: ghsa-malware (248e16545792d6f5381f20d82fc36275f4bf77f2b69c5d1d1e825c0688e6c2c9)\nAny 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.\n","state":0,"publishedAt":"2026-06-12T19:15:47+00:00","modifiedAt":"2026-07-15T09:19:31.8072075+00:00","affected":[{"ecosystem":"npm","name":"friendly-greeter-demo","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.4","1.0.6","1.0.2","1.0.3","1.0.1","1.0.10","1.0.11","1.0.9","1.0.13","1.0.14","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.4","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.6","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.2","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.3","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.1","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.11","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.10","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.9","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.13","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.14","https://github.com/advisories/GHSA-47h6-x596-wmmx","https://www.npmjs.com/package/friendly-greeter-demo/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5704","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5704","identifiers":["MAL-2026-5704","GHSA-47h6-x596-wmmx"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T18:03:58.2680075+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T18:03:58.2680075+00:00","lastSuccessAt":"2026-11-24T18:03:58.4721014+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.4721041+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-1daa7f1b67108fe35131620b8b0a5746e6fe20269a757846341bc45ffc7235c2","complete":true,"records":431554,"lastAttemptAt":"2026-11-24T19:02:03.7322381+00:00","lastSuccessAt":"2026-11-24T19:02:03.5417608+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.7322381+00:00","snapshotPublishedAt":"2026-11-24T18:24:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a224a34e53e24fc2a863093eb432b25b","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T18:05:33.4572737+00:00","lastSuccessAt":"2026-11-24T18:05:33.453+00:00","error":"148 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T18:05:33.453+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13823,"expectedIdentifiers":13982,"failedIdentifiers":148},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T18:03:58.2680075+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T18:03:58.2680075+00:00","lastSuccessAt":"2026-11-24T18:03:58.4728852+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.4728855+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-bc8e32d596c6412ca582826ccb1acd05","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T18:04:23.8035112+00:00","lastSuccessAt":"2026-11-24T18:04:23.8+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:04:23.8+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-4929b8b852ac0d08034af08eb3f8801ac97c81d230bedb3a3a0710d6b4e692b2","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T18:03:58.2136163+00:00","lastSuccessAt":"2026-11-24T18:03:57.9682362+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.2136163+00:00","snapshotPublishedAt":"2026-11-24T17:33:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T19:02:03.8828812+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.8828812+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T18:03:58.2272002+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.2272002+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-37671c121c811e5de1293d6fa4c4e127296f3d3616c57f59031fe11caf2bad40","complete":true,"records":233030,"lastAttemptAt":"2026-11-24T19:02:10.3255203+00:00","lastSuccessAt":"2026-11-24T18:03:48.5439124+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:49.6957772+00:00","snapshotPublishedAt":"2026-11-24T17:33:49+00:00","importing":true,"stagedRecords":208000,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}