mal-2026-6704
Vulnerability from ossf_malicious_packages
Published
2026-07-01 18:34
Modified
2026-07-01 18:34
Summary
Malicious code in base65-85x (npm)
Details

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

Source: amazon-inspector (d94610a3e8258b4f3f141cda2ade7a2bdeafbf9f8c1a9251d72c8b0c6dd4cff0)

Package name base65-85x impersonates the widely-used base-x encoding library, with package.json copying base-x's homepage, bugs.url, and repository.url (github.com/cryptocoinjs/base-x) to appear as the legitimate publisher. The exported decode(string) API silently POSTs the caller-supplied input to http://168.231.81.80:3001/api/log over plain HTTP via fetch before returning a decoded result. The exfiltration is concealed inside a custom bytecode VM in decode() (opcode dispatcher, base64-encoded bytecode blob, reconstructed function msgLog) with an anti-debug timing check (process.hrtime.bigint() delta) that suppresses the behavior when instrumentation is detected. Because base-x is commonly used to decode wallet keys, private keys, and other base-encoded cryptographic material, any consumer that uses this drop-in replacement as advertised leaks that material to the attacker-controlled host.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "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": "src/cjs/index.cjs",
              "sha256": "b9196913222886e67e5002f7ab12f12bbf2bba656c92a53433d3a0bbd80cfb65",
              "tlsh": "9ad3b593a74b70bc516791794e87fc18a635cca3133489ebc64cee841e0a29f46bf9d1"
            },
            {
              "path": "package.json",
              "sha256": "79c520b94da1915d20633224c0c4caeebce7b88177a0647be9b7049fc2959829",
              "tlsh": "ef312fa6d8a84c2317c4a16199b85503e5315c9b4808fc4e73af422c4b4d17f11fe6ee"
            }
          ],
          "package_integrity": [
            {
              "filename": "base65-85x-5.0.1.tgz",
              "hashes": {
                "sha1": "516ef297e3d29a20ede7c5765b2e8944c5274328",
                "sha512_sri": "sha512-69zch+Ge/BU7hD7uwoLXdoRRe8vIML0TKv4lWASmk6r5OuBgtwv+RXGAhrJg6FCKnVjQgwrAqQQ5D6RUJ2bgfA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "base65-85x"
      },
      "versions": [
        "5.0.1"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-007839",
        "import_time": "2026-07-01T19:11:22.398830836Z",
        "modified_time": "2026-07-01T18:34:02Z",
        "sha256": "d94610a3e8258b4f3f141cda2ade7a2bdeafbf9f8c1a9251d72c8b0c6dd4cff0",
        "source": "amazon-inspector",
        "versions": [
          "5.0.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d94610a3e8258b4f3f141cda2ade7a2bdeafbf9f8c1a9251d72c8b0c6dd4cff0)\nPackage name `base65-85x` impersonates the widely-used `base-x` encoding library, with `package.json` copying base-x\u0027s `homepage`, `bugs.url`, and `repository.url` (github.com/cryptocoinjs/base-x) to appear as the legitimate publisher. The exported `decode(string)` API silently POSTs the caller-supplied input to `http://168.231.81.80:3001/api/log` over plain HTTP via `fetch` before returning a decoded result. The exfiltration is concealed inside a custom bytecode VM in `decode()` (opcode dispatcher, base64-encoded bytecode blob, reconstructed function `msgLog`) with an anti-debug timing check (`process.hrtime.bigint()` delta) that suppresses the behavior when instrumentation is detected. Because base-x is commonly used to decode wallet keys, private keys, and other base-encoded cryptographic material, any consumer that uses this drop-in replacement as advertised leaks that material to the attacker-controlled host.\n",
  "id": "MAL-2026-6704",
  "modified": "2026-07-01T18:34:02Z",
  "published": "2026-07-01T18:34:02Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/base65-85x/v/5.0.1"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in base65-85x (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…