MAL-2026-4336 (GHSA-V62R-4VQP-F32G)

Vulnerability from ossf_malicious_packages – Published: 2026-05-21 08:12 – Updated: 2026-11-25 10:14 – Source website
Malicious package
Summary
Malicious code in webservices.rest-utils (npm)
Affected package
Ecosystem Package Versions
npm webservices.rest-utils
Affected: All versions (semver)
1.0.71.0.81.0.5
Details
Amazon Inspector IN-MAL-2026-004324 Reported 2026-05-23 12:48

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.

GitHub Advisory Database GHSA-v62r-4vqp-f32g Reported 2026-05-25 08:55

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.

Amazon Inspector IN-MAL-2026-004318 Reported 2026-05-23 12:26

No description from this source.

Amazon Inspector IN-MAL-2026-004316 Reported 2026-05-23 12:24

No description from this source.

Amazon Inspector IN-MAL-2026-003774 Reported 2026-05-21 08:12

No description from this source.

Amazon Inspector IN-MAL-2026-003775 Reported 2026-05-21 08:13

No description from this source.

Amazon Inspector IN-MAL-2026-004326 Reported 2026-05-23 12:49

No description from this source.

ReversingLabs RLMA-2026-05363 Reported 2026-07-07 13:16

No description from this source.

ReversingLabs RLUA-2026-15216 Reported 2026-11-24 12:20

No description from this source.

Indicators
Type Indicator Hashes
Evidence file index.js
sha256 6574ee5f3717a0c3611c4ceb060b3a67ef034452a5584faafc21db905bdfca3f
tlsh a513a6195136261586b1f7fb9a435825fb376263224286c83eec4b446fb316891e2ffc
Evidence file package.json
sha256 d89c20c7ad09d41bf5d73a148fcd0f8195a3cc0e42fb679999dcd5939cf9ebb1
tlsh 7a11c433daf06f631078d952b92b0a15f0f3473f2060881bb1bd211e8bf299745dda58
Package archive webservices.rest-utils-1.0.7.tgz
sha1 671ca5757a65f4c88b848b40a0d36bd7e5d0b655
sha512_sri sha512-tY3rL5x1GCjyvLGckXlTtUJCsp9n7Ng9RP3TqWvdPxG77bIMtolv5i5tFshR/KajhQqeSSXmLH59GHaFA4y1Lw==
CWE
  • CWE-506 - Embedded Malicious Code

{
  "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"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "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.800884160Z",
        "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"
        ]
      },
      {
        "id": "RLMA-2026-05363",
        "import_time": "2026-07-09T09:16:58.459486632Z",
        "modified_time": "2026-07-07T13:16:40Z",
        "sha256": "a974f40c017f23ad6e546e5d52e75aa1ba218e1d4bbbd8e9471e614f7e29b4ba",
        "source": "reversing-labs",
        "versions": [
          "1.0.5"
        ]
      },
      {
        "id": "RLUA-2026-15216",
        "import_time": "2026-11-25T10:13:16.392298321Z",
        "modified_time": "2026-11-24T12:20:39Z",
        "sha256": "340887b940ed3071cfe7f1a833d1c6796a25f84a5401cd4f7d69e1927271d32c",
        "source": "reversing-labs",
        "versions": [
          "1.0.8",
          "1.0.7"
        ]
      }
    ]
  },
  "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-11-25T10:14:48.810026063Z",
  "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)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.