MAL-2026-13629Malicious code in @coralxyz/anchor (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @coralxyz/anchor | 0.30.2 |
{"modified":"2026-08-08T00:52:09Z","published":"2026-08-08T00:52:09Z","schema_version":"1.7.4","id":"MAL-2026-13629","summary":"Malicious code in @coralxyz/anchor (npm)","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'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.\n","affected":[{"package":{"ecosystem":"npm","name":"@coralxyz/anchor"},"versions":["0.30.2"],"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=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@coralxyz/anchor/v/0.30.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"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"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0