MAL-2026-13629

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@coralxyz/anchor/MAL-2026-13629.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13629
Published
2026-08-08T00:52:09Z
Modified
2026-08-08T01:04:56.907694211Z
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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-08T00:52:09Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-017197",
            "versions": [
                "0.30.2"
            ],
            "sha256": "1475ce579e5b1ce9d7597187d091b29b70cbe1a563ed70946517673c29683763",
            "import_time": "2026-08-08T00:53:10.045779473Z"
        }
    ]
}
References
Credits

Affected packages

npm / @coralxyz/anchor

Package

Name
@coralxyz/anchor
View open source insights on deps.dev
Purl
pkg:npm/%40coralxyz/anchor

Affected ranges

Affected versions

0.*
0.30.2

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "anchor-0.30.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-dxVXJNSGH33AjGF97LbDZDAslVRw2bezWov69E5id7l3awbNm+fVMrBeyPLcvVN2tOpZFytl9MdClGiEd8b7lA==",
                "sha1": "3fe10db9ca072615cca48b561a11bca59fb526f1"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "7f51fd8573e5e32b67ec0ad7fd105ea081f38a2571c6b403c39cf94d049e24fd6aa880",
            "sha256": "718ba416b1eee8338c932bbdc6b58822f6cceca43f8a24ddd057e524e524cad3",
            "path": "scripts/postinstall.js"
        },
        {
            "tlsh": "c0012015d4749db31bd42bc4983f0952a551cd17c8487c1a37c3902c4b9e57b51fe75e",
            "sha256": "9a0c22436f8e8880b0f99c2bb972bb953e3bf442a43573ad4d6e32d4bc7e197b",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@coralxyz/anchor/MAL-2026-13629.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]