mal-2026-13629
Vulnerability from ossf_malicious_packages
Published
2026-08-08 00:52
Modified
2026-08-08 00:52
Summary
Malicious code in @coralxyz/anchor (npm)
Details

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

Source: amazon-inspector (1475ce579e5b1ce9d7597187d091b29b70cbe1a563ed70946517673c29683763)

Package @coralxyz/anchor impersonates the legitimate Solana Anchor framework package @coral-xyz/anchor (hyphen removed). The npm postinstall hook, implemented in scripts/postinstall.js, hides all string literals behind a hex-escaped string-array decoder (_0x5a2f / _0xf). On Windows (win32), the decoded logic downloads a zip archive from the anonymous file host https://files.catbox.moe/9bppy2.zip, extracts it via PowerShell Expand-Archive to a temporary directory, walks the extracted tree, and spawns any.exe file it finds detached with windowsHide. index.js is a minimal stub; the package's advertised Anchor framework functionality is not present, and the postinstall dropper is the sole meaningful behavior. The delivery vector is name confusion with the widely used @coral-xyz/anchor package.

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": "scripts/postinstall.js",
              "sha256": "718ba416b1eee8338c932bbdc6b58822f6cceca43f8a24ddd057e524e524cad3",
              "tlsh": "7f51fd8573e5e32b67ec0ad7fd105ea081f38a2571c6b403c39cf94d049e24fd6aa880"
            },
            {
              "path": "package.json",
              "sha256": "9a0c22436f8e8880b0f99c2bb972bb953e3bf442a43573ad4d6e32d4bc7e197b",
              "tlsh": "c0012015d4749db31bd42bc4983f0952a551cd17c8487c1a37c3902c4b9e57b51fe75e"
            }
          ],
          "package_integrity": [
            {
              "filename": "anchor-0.30.2.tgz",
              "hashes": {
                "sha1": "3fe10db9ca072615cca48b561a11bca59fb526f1",
                "sha512_sri": "sha512-dxVXJNSGH33AjGF97LbDZDAslVRw2bezWov69E5id7l3awbNm+fVMrBeyPLcvVN2tOpZFytl9MdClGiEd8b7lA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "@coralxyz/anchor"
      },
      "versions": [
        "0.30.2"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-017197",
        "import_time": "2026-08-08T00:53:10.045779473Z",
        "modified_time": "2026-08-08T00:52:09Z",
        "sha256": "1475ce579e5b1ce9d7597187d091b29b70cbe1a563ed70946517673c29683763",
        "source": "amazon-inspector",
        "versions": [
          "0.30.2"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1475ce579e5b1ce9d7597187d091b29b70cbe1a563ed70946517673c29683763)\nPackage @coralxyz/anchor impersonates the legitimate Solana Anchor framework package @coral-xyz/anchor (hyphen removed). The npm postinstall hook, implemented in scripts/postinstall.js, hides all string literals behind a hex-escaped string-array decoder (_0x5a2f / _0xf). On Windows (win32), the decoded logic downloads a zip archive from the anonymous file host https://files.catbox.moe/9bppy2.zip, extracts it via PowerShell Expand-Archive to a temporary directory, walks the extracted tree, and spawns any.exe file it finds detached with windowsHide. index.js is a minimal stub; the package\u0027s advertised Anchor framework functionality is not present, and the postinstall dropper is the sole meaningful behavior. The delivery vector is name confusion with the widely used @coral-xyz/anchor package.\n",
  "id": "MAL-2026-13629",
  "modified": "2026-08-08T00:52:09Z",
  "published": "2026-08-08T00:52:09Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@coralxyz/anchor/v/0.30.2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in @coralxyz/anchor (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…