Skip to content
Heist/ feed
Unrated

Malicious code in @mep-exp/api-tools (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (322089c1a58142401c82621aa778cdb7221086196cce6c879a703625b7013555) preinstall.js, registered as scripts.preinstall and also required from the main module and every bin entry, collects os.hostname(), os.userInfo().username, os.platform(), process.cwd(), and a timestamp and POSTs them as JSON to https://webhook.site/1ba25769-0f80-4429-a7d2-409af5fa5adc. The request runs unconditionally during `npm install` (preinstall lifecycle) and on every require/CLI invocation, with errors silently swallowed. The package scope (@mep-exp) and bin names (mesh-swagger-cli, mesh-exp-entitlements, mesh-exp-routes, mesh-exp-api-clients, etc.) impersonate an internal Westpac 'MEP Experience Platform' toolchain, and the exfil payload includes a `note: "Westpac CT"` marker — consistent with a dependency-confusion attack against that organization's internal namespace published on public npm. The package provides no legitimate functionality beyond the beacon. ## Source: ghsa-malware (842cc685b064b1d62740918a231d9201d08633de96c0bb7155889e9c7073d48d) 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 ma

Announced Source revision 1
Original source ↗

MAL-2026-6183

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-6183

@mep-exp/api-tools

Source reference: /affected/0/package/name

Affected versions
2.0.3

Source reference: /affected/0/versions

0.0.1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "@mep-exp/api-tools",
      "purl": "pkg:npm/%40mep-exp/api-tools",
      "ecosystem": "npm"
    },
    "versions": [
      "2.0.3",
      "0.0.1"
    ],
    "database_specific": {
      "cwes": [
        {
          "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."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mep-exp/api-tools/MAL-2026-6183.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "preinstall.js",
            "tlsh": "bd0110c9aaab97742bf4f3c0b180940593b2d308bc0315a776ba63ed2745ee44361f70",
            "sha256": "262b16adf1bace2120413f6a3025270b078db5dc743e40ea771aff18c8b5b623"
          },
          {
            "path": "package.json",
            "tlsh": "0ff0123387e14eb725b8bb51b4936902b3f34e7f2151880ab3b9240d9ab059207cfb16",
            "sha256": "04e781ef8158e77b2a810790fe85b2fb2c9dc1b4923b8773c8f0b57f577ccfbb"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "3e9864b9a7b6fe48f06ba8a2739989a77e8e71e0",
              "sha512_sri": "sha512-dD0OZMMpWFgrUrsjPNosWo1KXqh6GqcALX4GI29BwA41zvBnh3BijVonCn+CQF6Cq65lsSfj3cB1JTy4/Ti4CQ=="
            },
            "filename": "api-tools-2.0.3.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#6154 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement