MAL-2026-4336

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webservices.rest-utils/MAL-2026-4336.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4336
Aliases
  • GHSA-v62r-4vqp-f32g
Published
2026-05-21T08:12:18Z
Modified
2026-05-26T06:03:07.430838820Z
Summary
Malicious code in webservices.rest-utils (npm)
Details

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

Source: amazon-inspector (5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c)

package.json declares both preinstall and postinstall hooks that execute index.js, which exfiltrates installer data to a base64-encoded Cloudflare Worker destination (openmrs-sol-dev-v2.lapxa354.workers.dev). The payload includes hostname, username, network interfaces, /etc/resolv.conf,.git/HEAD, ~40 CI/CD environment variables (GITHUB_*, GITLAB_*, AWS_*, CIRCLE_*, BUILDKITE_*, VERCEL_*, etc.), recursively walked package.json metadata,.npmrc registry/scope hints, and presence indicators for ~/.ssh, ~/.aws/credentials, ~/.kube/config, ~/.docker, ~/.npmrc, ~/.gitconfig, shell histories. When cloud env-var probes match, the script contacts the cloud metadata IP (encoded as decimal 2852039166 == 169.254.169.254) to harvest live AWS IMDSv2 IAM tokens, GCP service-account access tokens, and Azure managed-identity tokens — first 40 characters of each are appended to the exfil. It additionally performs DNS reconnaissance against ~25 internal hostnames (kubernetes.default.svc.cluster.local, vault.internal, consul.service.consul, gitlab.local, jenkins.local, ec2.internal, rancher.internal, etc.) for lateral-movement targeting. package.json declares 11 bin aliases — webpack, vite, tsc, eslint, jest, gulp, next, turbo, prettier, tsnode — all pointing at the same malicious index.js, so every subsequent invocation of those common dev commands re-triggers the exfiltrator while forwarding to the real tool to mask the hijack. Obfuscation (base64 destination, decimal-encoded metadata IP, MalekAbuLialaResearch/1.0 cover User-Agent, [Webpack-Debug-MAB-v1] log label) confirms intent.

Source: ghsa-malware (0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d)

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": [
        {
            "import_time": "2026-05-25T09:37:28.990855593Z",
            "id": "GHSA-v62r-4vqp-f32g",
            "sha256": "0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d",
            "source": "ghsa-malware",
            "modified_time": "2026-05-25T08:55:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        },
        {
            "import_time": "2026-05-26T05:52:22.022557423Z",
            "versions": [
                "1.0.7"
            ],
            "sha256": "0d25f7c8217b81bf2828e77cef685d9eee97525bc2167a0a1a2a119175c6758b",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T12:26:02Z",
            "id": "IN-MAL-2026-004318"
        },
        {
            "import_time": "2026-05-26T05:52:21.80088416Z",
            "versions": [
                "1.0.7"
            ],
            "source": "amazon-inspector",
            "sha256": "2f8ef56f73ada635926e20b0ebf86b75f70c1ec9bf2d286215fda07b97fc1ac4",
            "modified_time": "2026-05-23T12:24:08Z",
            "id": "IN-MAL-2026-004316"
        },
        {
            "import_time": "2026-05-26T05:52:22.793320537Z",
            "versions": [
                "1.0.8"
            ],
            "sha256": "5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T12:48:09Z",
            "id": "IN-MAL-2026-004324"
        },
        {
            "import_time": "2026-05-26T05:51:17.352341354Z",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector",
            "sha256": "a2b3da3aed8465edc2b6c2623096d4016bd40ee97924e18b6dea55217a779dad",
            "modified_time": "2026-05-21T08:12:18Z",
            "id": "IN-MAL-2026-003774"
        },
        {
            "import_time": "2026-05-26T05:51:17.477483587Z",
            "versions": [
                "1.0.5"
            ],
            "sha256": "a9020c5c218d700533f51d34ebe5a362406f52ea266dce586773eff853174e42",
            "id": "IN-MAL-2026-003775",
            "modified_time": "2026-05-21T08:13:49Z",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-05-26T05:52:23.043539724Z",
            "versions": [
                "1.0.8"
            ],
            "id": "IN-MAL-2026-004326",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T12:49:53Z",
            "sha256": "c4f05896466268d5527bbd39c4fda96220baec1f82fab67727545f0fb528018f"
        }
    ]
}
References
Credits

Affected packages

npm / webservices.rest-utils

Package

Name
webservices.rest-utils
View open source insights on deps.dev
Purl
pkg:npm/webservices.rest-utils

Affected ranges

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

Affected versions

1.*
1.0.5
1.0.7
1.0.8

Database specific

indicators
{
    "domains": [
        "mongodb.internal",
        "openmrs-sol-dev-v2.lapxa354.workers.dev",
        "ec2.internal",
        "active-directory.local",
        "internal.jira.local",
        "kubernetes.default.svc",
        "redis.internal",
        "intranet.local",
        "kubernetes.default.svc.cluster.local",
        "vault.internal",
        "consul.service.consul",
        "kubernetes.default",
        "compute.internal",
        "gitlab.internal",
        "jenkins.local",
        "jenkins.internal",
        "azure.internal",
        "istio-ingressgateway.istio-system.svc.cluster.local",
        "redis.local",
        "db.local",
        "postgres.local",
        "lan",
        "home",
        "internal",
        "gitlab.local",
        "rancher.internal",
        "google.internal",
        "corp.local"
    ],
    "evidence_files": [
        {
            "tlsh": "a513a6195136261586b1f7fb9a435825fb376263224286c83eec4b446fb316891e2ffc",
            "sha256": "6574ee5f3717a0c3611c4ceb060b3a67ef034452a5584faafc21db905bdfca3f",
            "path": "index.js"
        },
        {
            "tlsh": "7a11c433daf06f631078d952b92b0a15f0f3473f2060881bb1bd211e8bf299745dda58",
            "sha256": "d89c20c7ad09d41bf5d73a148fcd0f8195a3cc0e42fb679999dcd5939cf9ebb1",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-tY3rL5x1GCjyvLGckXlTtUJCsp9n7Ng9RP3TqWvdPxG77bIMtolv5i5tFshR/KajhQqeSSXmLH59GHaFA4y1Lw==",
                "sha1": "671ca5757a65f4c88b848b40a0d36bd7e5d0b655"
            },
            "filename": "webservices.rest-utils-1.0.7.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webservices.rest-utils/MAL-2026-4336.json"
cwes
[
    {
        "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."
    }
]