MAL-2026-4553
Vulnerability from ossf_malicious_packages
Published
2026-05-20 18:24
Modified
2026-05-20 18:24
Summary
Malicious code in ethers-wallet-package (npm)
Details

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

Source: amazon-inspector (c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec)

Package name impersonates the official @ethersproject/wallet, and package.json spoofs the ethers.js maintainer identity (author 'Richard Moore me@ricmoo.com'). The compiled lib/index.js wraps the Wallet constructor with an obfuscated VM-based interpreter whose base64-encoded op-array contains the plaintext target URL https://api.telegram.org/bot/sendMessage and chat_id 7959381237. On every new Wallet(privateKey) call, the constructor POSTs the private key as JSON to that Telegram bot, giving the attacker full control over the victim's Ethereum funds. The Wallet class is the package's only advertised API, so any caller that imports the package and constructs a wallet leaks the key on first use.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits
Amazon Inspector actran@amazon.com

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "lib/index.js",
              "sha256": "e55dc8e38a487b0cbfb8a526c07240f04070062a26a459a604195b81317a456a",
              "tlsh": "e9d3b8029386747b0176d1b44bebece5f27a9c53121434eef50d8ea07f813a9067aadc"
            },
            {
              "path": "package.json",
              "sha256": "e044635eb121d847ec7212b5f1445692843fa75b52eb3afd25f75bb9c8a160e5",
              "tlsh": "5d315981c93dcee757cc1a94441d68cab13a48174844b85d339a492a4f8f32f2efd94f"
            }
          ],
          "package_integrity": [
            {
              "filename": "ethers-wallet-package-5.8.0.tgz",
              "hashes": {
                "sha1": "e3cd06a43482b9f48fe222129d551d032fa1e30f",
                "sha512_sri": "sha512-z3a4ECBBTeWN6UcdO8zzp3d527LW1CBEuTYs3qiPHGu7SqCpMvmx8Qi+urBmqYDV8hL7HTSup2KbZ//b0ylVdw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "ethers-wallet-package"
      },
      "versions": [
        "5.8.0"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-003584",
        "import_time": "2026-05-26T05:50:54.450531163Z",
        "modified_time": "2026-05-20T18:24:59Z",
        "sha256": "c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec",
        "source": "amazon-inspector",
        "versions": [
          "5.8.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec)\nPackage name impersonates the official @ethersproject/wallet, and package.json spoofs the ethers.js maintainer identity (author \u0027Richard Moore \u003cme@ricmoo.com\u003e\u0027). The compiled lib/index.js wraps the Wallet constructor with an obfuscated VM-based interpreter whose base64-encoded op-array contains the plaintext target URL https://api.telegram.org/bot\u003credacted\u003e/sendMessage and chat_id 7959381237. On every `new Wallet(privateKey)` call, the constructor POSTs the private key as JSON to that Telegram bot, giving the attacker full control over the victim\u0027s Ethereum funds. The Wallet class is the package\u0027s only advertised API, so any caller that imports the package and constructs a wallet leaks the key on first use.\n",
  "id": "MAL-2026-4553",
  "modified": "2026-05-20T18:24:59Z",
  "published": "2026-05-20T18:24:59Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/ethers-wallet-package/v/5.8.0"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in ethers-wallet-package (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…