MAL-2026-5704

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/friendly-greeter-demo/MAL-2026-5704.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5704
Aliases
  • GHSA-47h6-x596-wmmx
Published
2026-06-12T19:15:47Z
Modified
2026-07-15T09:19:31.807207538Z
Summary
Malicious code in friendly-greeter-demo (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (ab72d8364f58d27c6ba37063af62500b494b2fcb8961c1a2b40ed1d2feabdcfe)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-06-12T19:16:32Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-12T19:44:20.15234419Z",
            "versions": [
                "1.0.4"
            ],
            "id": "IN-MAL-2026-006209",
            "sha256": "296efda061a9a7286225d84524e63a37f5d4b655352f579db38e6ab244911f1b"
        },
        {
            "modified_time": "2026-06-12T19:16:36Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-12T19:44:20.470285031Z",
            "id": "IN-MAL-2026-006212",
            "versions": [
                "1.0.6"
            ],
            "sha256": "3d7aae6052d68219fd3611f6c4faf98ebaa10c81bb2190be2ba9fc8c21414ca8"
        },
        {
            "modified_time": "2026-06-12T19:16:33Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-12T19:44:20.250199272Z",
            "versions": [
                "1.0.2"
            ],
            "id": "IN-MAL-2026-006210",
            "sha256": "6abf509238a817b53302533e1df0b744115e5814c7cf707a5d86d9bc0414d8c4"
        },
        {
            "modified_time": "2026-06-12T19:15:47Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-12T19:44:20.065373665Z",
            "id": "IN-MAL-2026-006208",
            "versions": [
                "1.0.3"
            ],
            "sha256": "cf7bb5ffaaf1b751fff6564106d0f381be58f3c9541e571f9e1f580a2358d99f"
        },
        {
            "modified_time": "2026-06-12T19:16:36Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-12T19:44:20.384109941Z",
            "versions": [
                "1.0.1"
            ],
            "id": "IN-MAL-2026-006211",
            "sha256": "e42b62d2ce224204686eadc2dd79e8059a3f21a3fd407b84e7e0a8434af594af"
        },
        {
            "modified_time": "2026-06-15T16:39:45Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.437525837Z",
            "versions": [
                "1.0.10"
            ],
            "id": "IN-MAL-2026-006530",
            "sha256": "ff9f9052d78a099cd482037ffbb9954baa99fa363b38484d637a9db6687244bc"
        },
        {
            "modified_time": "2026-06-15T16:39:49Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.600232225Z",
            "id": "IN-MAL-2026-006531",
            "versions": [
                "1.0.11"
            ],
            "sha256": "4dbd27651f09ff06e5f802c140545d3f2186ee3ebd09d30b739d51c27001f029"
        },
        {
            "modified_time": "2026-06-15T16:39:44Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.25642595Z",
            "id": "IN-MAL-2026-006528",
            "versions": [
                "1.0.10"
            ],
            "sha256": "9b881e279b0b93ea759ec1f1a2265382a01778725a1c563a5ea4eb168e03ca5d"
        },
        {
            "modified_time": "2026-06-15T16:39:50Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.646437563Z",
            "id": "IN-MAL-2026-006532",
            "versions": [
                "1.0.11"
            ],
            "sha256": "a892934681dbc18da71ce68cf61938eee9fe0124b55411a64a1ae16ca26e280a"
        },
        {
            "modified_time": "2026-06-15T16:39:45Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.347978267Z",
            "id": "IN-MAL-2026-006529",
            "versions": [
                "1.0.9"
            ],
            "sha256": "d9028b74840b2ad4dff23e3300e1c5824dde753af8ab0afd18904547795718c1"
        },
        {
            "modified_time": "2026-06-15T16:39:43Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T17:22:48.211870608Z",
            "versions": [
                "1.0.9"
            ],
            "id": "IN-MAL-2026-006527",
            "sha256": "f7264281ec802d8a2676bfd0dace239716156a5d070b90beb851dfd4b4bdbfa2"
        },
        {
            "modified_time": "2026-06-16T16:02:29Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-16T16:06:35.594192604Z",
            "id": "IN-MAL-2026-006776",
            "versions": [
                "1.0.13"
            ],
            "sha256": "ab72d8364f58d27c6ba37063af62500b494b2fcb8961c1a2b40ed1d2feabdcfe"
        },
        {
            "modified_time": "2026-06-16T16:02:33Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-16T16:06:35.65822173Z",
            "versions": [
                "1.0.14"
            ],
            "id": "IN-MAL-2026-006777",
            "sha256": "f1e7f6d307fef5fc271a73ae4bda0c75fe7479f683672e42ad396affe1f5f593"
        },
        {
            "modified_time": "2026-07-14T23:23:59Z",
            "source": "ghsa-malware",
            "import_time": "2026-07-15T05:00:56.779787483Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-47h6-x596-wmmx",
            "sha256": "248e16545792d6f5381f20d82fc36275f4bf77f2b69c5d1d1e825c0688e6c2c9"
        },
        {
            "modified_time": "2026-07-15T08:07:21Z",
            "source": "amazon-inspector",
            "import_time": "2026-07-15T08:51:05.429544542Z",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-010638",
            "sha256": "4d4b349677ede4302cf396d9a7f25d2052685fcd3b46617a4201374479966bb1"
        }
    ]
}
References
Credits

Affected packages

npm / friendly-greeter-demo

Package

Name
friendly-greeter-demo
View open source insights on deps.dev
Purl
pkg:npm/friendly-greeter-demo

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.6
1.0.9
1.0.10
1.0.11
1.0.13
1.0.14

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "friendly-greeter-demo-1.0.4.tgz",
            "hashes": {
                "sha512_sri": "sha512-UbYQFL1mPETCpOuuStniNaDCUZuUH/jC3h9jIfT7cnkGJAh9Rsve6CCq2L9xhSHvCG4zzmCBVY/r3GAmJGlLEQ==",
                "sha1": "2654f7260acfac7ec4f162770aae176298dafd1a"
            }
        }
    ],
    "ips": [
        "98.86.244.177"
    ],
    "evidence_files": [
        {
            "tlsh": "8e41418628f62634a273e6cdea5794276112e0177547cdb1fa4c41602fd732cd4a37ee",
            "path": "postinstall.js",
            "sha256": "fb87e8a90951215f81a9bf45197387e4211d24103da368cf4eceb7ac217c9211"
        },
        {
            "tlsh": "9341e44654f6656287a39ba9f74f740a6323d0273117cd51f88c42606fd363c54f2be9",
            "path": "index.js",
            "sha256": "03a6f199b8f9b9946d61fab0a950196c243a68b1ccbcdce8ddef6610dba52c76"
        },
        {
            "sha256": "5d7198391de1fbeb3ca9cd427162d1378f00ad949e1baa1e20e7f5009a22266a",
            "path": "package.json",
            "tlsh": "71e02b518d551a331ac10e962856a20df9364d2b02887c4db76b404c4f9e76b58ff74f"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/friendly-greeter-demo/MAL-2026-5704.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]