Skip to content
Heist/ feed
Unrated

Malicious code in wallet-connect-adapter (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4135dd91724bdca6fc36f3a49906d219acc67afde7802cb1bd114d128984ca3d) The package's postinstall hook runs `node./loader.js`, which base64-decodes an ~8 KB embedded blob, XOR-decrypts it with a hardcoded 32-byte key, and pipes the resulting bytes into a detached, window-hidden `python -c -` child process via stdin. The loader also silently `pip install`s `requests` if missing. The advertised library surface in `index.js` is an explicit stub whose `connect()` throws, and `package.json` restricts installation to `os: ["win32"]`, so the tarball has no functional wallet-adapter behavior — its only effect on install is to execute the obfuscated Python payload on a Windows developer's machine. The combination of a hidden opaque payload, XOR-obfuscated delivery, detached hidden Python execution at `npm install` time, an inert cover-story main module, and OS pinning to Windows is a targeted install-time dropper.

Announced Source revision 1
Original source ↗

MAL-2026-17179

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-17179

wallet-connect-adapter

Source reference: /affected/0/package/name

Affected versions
1.4.2

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": "wallet-connect-adapter",
      "purl": "pkg:npm/wallet-connect-adapter",
      "ecosystem": "npm"
    },
    "versions": [
      "1.4.2"
    ],
    "database_specific": {
      "cwes": [
        {
          "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/wallet-connect-adapter/MAL-2026-17179.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "loader.js",
            "tlsh": "a1429fa53c3ae839223186fc1a7716e8125fc454566ee0c0b6cd8af6ed95cf85e770c1",
            "sha256": "659956d8936ad347f41c1af3831d301e90f743eaf49596e3aa223defcf82c945"
          },
          {
            "path": "index.js",
            "tlsh": "0ad0722d927693b0030b2140880adc50e7f84030a22196800a84c2989024e8ccaa27ca",
            "sha256": "dd8bd3467ca1c7cb2e9c8beebbd5f89255af044dc54cf2054db1add7f35b38a3"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "dfd8d0539f7adb0500f6b4ac3f03aafb956766ab",
              "sha512_sri": "sha512-wLZ9LvWp03ifk0O4tv5Js+VU/JsButlHGIMbpaiXTu8RRGoalIsJyK2W/gI4Yr1GS6h0pV7zLirhEMSAY+pxow=="
            },
            "filename": "wallet-connect-adapter-1.4.2.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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