MAL-2026-4336
Vulnerability from ossf_malicious_packages
-= 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.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"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": [
{
"path": "index.js",
"sha256": "6574ee5f3717a0c3611c4ceb060b3a67ef034452a5584faafc21db905bdfca3f",
"tlsh": "a513a6195136261586b1f7fb9a435825fb376263224286c83eec4b446fb316891e2ffc"
},
{
"path": "package.json",
"sha256": "d89c20c7ad09d41bf5d73a148fcd0f8195a3cc0e42fb679999dcd5939cf9ebb1",
"tlsh": "7a11c433daf06f631078d952b92b0a15f0f3473f2060881bb1bd211e8bf299745dda58"
}
],
"package_integrity": [
{
"filename": "webservices.rest-utils-1.0.7.tgz",
"hashes": {
"sha1": "671ca5757a65f4c88b848b40a0d36bd7e5d0b655",
"sha512_sri": "sha512-tY3rL5x1GCjyvLGckXlTtUJCsp9n7Ng9RP3TqWvdPxG77bIMtolv5i5tFshR/KajhQqeSSXmLH59GHaFA4y1Lw=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "webservices.rest-utils"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.0.7",
"1.0.8",
"1.0.5"
]
}
],
"aliases": [
"GHSA-v62r-4vqp-f32g"
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "GHSA-v62r-4vqp-f32g",
"import_time": "2026-05-25T09:37:28.990855593Z",
"modified_time": "2026-05-25T08:55:04Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-004318",
"import_time": "2026-05-26T05:52:22.022557423Z",
"modified_time": "2026-05-23T12:26:02Z",
"sha256": "0d25f7c8217b81bf2828e77cef685d9eee97525bc2167a0a1a2a119175c6758b",
"source": "amazon-inspector",
"versions": [
"1.0.7"
]
},
{
"id": "IN-MAL-2026-004316",
"import_time": "2026-05-26T05:52:21.80088416Z",
"modified_time": "2026-05-23T12:24:08Z",
"sha256": "2f8ef56f73ada635926e20b0ebf86b75f70c1ec9bf2d286215fda07b97fc1ac4",
"source": "amazon-inspector",
"versions": [
"1.0.7"
]
},
{
"id": "IN-MAL-2026-004324",
"import_time": "2026-05-26T05:52:22.793320537Z",
"modified_time": "2026-05-23T12:48:09Z",
"sha256": "5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c",
"source": "amazon-inspector",
"versions": [
"1.0.8"
]
},
{
"id": "IN-MAL-2026-003774",
"import_time": "2026-05-26T05:51:17.352341354Z",
"modified_time": "2026-05-21T08:12:18Z",
"sha256": "a2b3da3aed8465edc2b6c2623096d4016bd40ee97924e18b6dea55217a779dad",
"source": "amazon-inspector",
"versions": [
"1.0.5"
]
},
{
"id": "IN-MAL-2026-003775",
"import_time": "2026-05-26T05:51:17.477483587Z",
"modified_time": "2026-05-21T08:13:49Z",
"sha256": "a9020c5c218d700533f51d34ebe5a362406f52ea266dce586773eff853174e42",
"source": "amazon-inspector",
"versions": [
"1.0.5"
]
},
{
"id": "IN-MAL-2026-004326",
"import_time": "2026-05-26T05:52:23.043539724Z",
"modified_time": "2026-05-23T12:49:53Z",
"sha256": "c4f05896466268d5527bbd39c4fda96220baec1f82fab67727545f0fb528018f",
"source": "amazon-inspector",
"versions": [
"1.0.8"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c)\npackage.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 \u2014 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 \u2014 `webpack`, `vite`, `tsc`, `eslint`, `jest`, `gulp`, `next`, `turbo`, `prettier`, `tsnode` \u2014 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.\n\n## Source: ghsa-malware (0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d)\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",
"id": "MAL-2026-4336",
"modified": "2026-05-26T05:55:05Z",
"published": "2026-05-21T08:12:18Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-v62r-4vqp-f32g"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/webservices.rest-utils/v/1.0.7"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/webservices.rest-utils/v/1.0.8"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/webservices.rest-utils/v/1.0.5"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in webservices.rest-utils (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.