MAL-2026-14276Malicious code in node_cryptography (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | node_cryptography | 1.0.0 |
{"modified":"2026-08-19T07:43:47Z","published":"2026-08-19T07:43:47Z","schema_version":"1.7.4","id":"MAL-2026-14276","summary":"Malicious code in node_cryptography (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1e10a704c94a9f7a4f6344a67e3867cd87b21be574e81bbdccdc6b5ca48f65a2)\nThe package presents itself as a Node.js cryptography helper and depends on ethers, encouraging callers to pass cryptographic or wallet material to its sole exported async function. That function forwards the caller's argument via axios to an API_BASE_URL assembled at runtime from ~13 fragments produced by an obfuscator.io RC4 string-array decoder. The entire ~30 KB index.js is wrapped in the standard obfuscator.io scheme (RC4+base64 string array, hex-escaped literals, wrapped index accessors, array-rotation IIFE, and a self-defending RegExp function-body anti-tamper check) whose only purpose here is to hide the destination URL. The caller does not configure this destination and is not informed of it; normal use of the advertised API silently leaks the caller's cryptographic inputs to an author-controlled host.\n","affected":[{"package":{"ecosystem":"npm","name":"node_cryptography"},"versions":["1.0.0"],"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":"index.js","sha256":"36818f21afa90fc408d190517e8aea61f86bd13f1b5b6523b1300879695ee689","tlsh":"76d2abd077d0e803568f4b63bf16b9e8e42a98ba34d8994bd150b98cb4bd507c5b4ef0"}],"package_integrity":[{"filename":"node_cryptography-1.0.0.tgz","hashes":{"sha1":"7fea3288b57dcbb6c6fe48e5268001fbcfc716a2","sha512_sri":"sha512-pRjmUqCzqJlKesFI0rZ3a0+O49w0Z3FVlC00owFtwcinCeSI54yh2Q3XVwwfbQgASigc50cA2uRHM4X8HsxDqA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/node_cryptography/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018392","import_time":"2026-08-19T07:48:47.167746333Z","modified_time":"2026-08-19T07:43:47Z","sha256":"1e10a704c94a9f7a4f6344a67e3867cd87b21be574e81bbdccdc6b5ca48f65a2","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0