MAL-2026-4437

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@service-suppliers/set_selected_supplier/MAL-2026-4437.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4437
Aliases
  • GHSA-w237-rgwp-fh78
Published
2026-05-25T18:08:03Z
Modified
2026-05-28T15:32:47.110057885Z
Summary
Malicious code in @service-suppliers/set_selected_supplier (npm)
Details

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

Source: amazon-inspector (eba319282947a6dfb83a31cec6127e62594cc16160bd9c74cee3feee349c4b07)

The postinstall hook in scripts/postinstall.js performs two independently-blocking actions on every npm install. First, it scrapes installer-side secrets — iterating process.env for credential-shaped keys (npmtoken, githubtoken, awsaccesskeyid, awssecretaccesskey, artifactorytoken, nexustoken, NODEAUTHTOKEN, npm_config__auth), reading ~/.npmrc, /etc/npmrc, and the CWD.npmrc, plus hostname/user/cwd/PATH — and POSTs the bundle to https://oob.moika.tech/report with an X-Secret header. Second, it fetches an OS-specific shell payload from https://oob.moika.tech/payload/{linux|mac|win}, writes it to a hidden temp file (.service-suppliersinit.sh /.bat), chmods 0755, and spawns it detached via /bin/sh or cmd.exe with no hash or signature verification. The package self-identifies in its exfil report as a 'dependency-confusion-npm' PoC and uses the @service-suppliers scope with placeholder homepage/repo URLs (github.service-suppliers.io) consistent with impersonating an internal scope to hijack private name resolution. Regardless of the 'authorized testing' label, anyone who installs this from public npm has their npm/GitHub/AWS/Artifactory tokens harvested and arbitrary attacker-controlled code executed on their machine.

Source: ghsa-malware (2af5e4b60372a55d6b6742cd4ff6b7a26df856ec34b446e35de27de08cbcb350)

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": [
        {
            "id": "IN-MAL-2026-004745",
            "import_time": "2026-05-26T05:53:12.138171399Z",
            "sha256": "be1dadd1abd0bd9af42ae6518da6f907e00416076feffb79c7befae734ff652e",
            "source": "amazon-inspector",
            "modified_time": "2026-05-25T18:10:01Z",
            "versions": [
                "9.9.10"
            ]
        },
        {
            "id": "IN-MAL-2026-004741",
            "import_time": "2026-05-26T05:53:11.726556158Z",
            "sha256": "eba319282947a6dfb83a31cec6127e62594cc16160bd9c74cee3feee349c4b07",
            "source": "amazon-inspector",
            "modified_time": "2026-05-25T18:08:03Z",
            "versions": [
                "9.9.10"
            ]
        },
        {
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-w237-rgwp-fh78",
            "import_time": "2026-05-28T15:25:19.33763804Z",
            "sha256": "2af5e4b60372a55d6b6742cd4ff6b7a26df856ec34b446e35de27de08cbcb350",
            "source": "ghsa-malware",
            "modified_time": "2026-05-28T13:39:45Z"
        }
    ]
}
References
Credits

Affected packages

npm / @service-suppliers/set_selected_supplier

Package

Name
@service-suppliers/set_selected_supplier
View open source insights on deps.dev
Purl
pkg:npm/%40service-suppliers%2Fset_selected_supplier

Affected ranges

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

Affected versions

9.*
9.9.10

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "scripts/postinstall.js",
            "sha256": "4423a17e51af4c6d4c48f6f07df2d39679772a33da779f92d909eb95de975bea",
            "tlsh": "11d1dbdb62f7553407d6a5ebd91ba002d623b1033906f9e0f66c51005f8aa7c8273eed"
        }
    ],
    "package_integrity": [
        {
            "filename": "set_selected_supplier-9.9.10.tgz",
            "hashes": {
                "sha512_sri": "sha512-ISlI7hPgNSiiiFCBmUksRz0yqRxlo+IhLBfi8OGalHrQ3YqYYTx7xzjS/dTfOLuiPFED42zqhGfIN6Nz8zYIhA==",
                "sha1": "fc5f2a959529de161bed7a017e7e61038e0796fc"
            }
        }
    ],
    "domains": [
        "oob.moika.tech"
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@service-suppliers/set_selected_supplier/MAL-2026-4437.json"