MAL-2026-6477Malicious code in runtimekit (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.1 | unavailable | — | — | — |
1.0.5 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | runtimekit | * |
| npm | runtimekit | 1.0.1 |
| npm | runtimekit | 1.0.2 |
| npm | runtimekit | 1.0.3 |
| npm | runtimekit | 1.0.5 |
| npm | runtimekit | 1.1.0 |
{"schema_version":"1.7.4","id":"MAL-2026-6477","published":"2026-06-25T21:55:52Z","modified":"2026-08-11T12:24:58.810048520Z","aliases":["GHSA-v6qq-vq5x-rmxf"],"summary":"Malicious code in runtimekit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ffa393dec171ebd22b63776d7550006d3f9f60ad8726ce1153784080e9038acd)\nlib/index.cjs and lib/index.mjs (re-required from lib/readonly.cjs) contain a self-executing IIFE that decodes two opaque strings via a custom shuffle routine (`YWG`), recovers the identifier `constructor` from one of them, retrieves the Function constructor via property access, then builds and invokes nested Function-constructor calls — `Function('', Function('', decoded1))(decoded2)(7942)` — executing arbitrary decoded JavaScript at module load. Before the synthesis, the loader assigns `global.r = require` and `global.m = module`, deliberately smuggling Node's require and module bindings into the global scope so the dynamically constructed function (which does not inherit the module's closure) can reach them. A marker `global._V = \"A6-Shadow-16\"` is also set. The package advertises itself as a validation/runtime utility but ships an obfuscated self-injecting loader with no legitimate purpose for hiding code from Function constructors. Any consumer that does `require('runtimekit')` or `require('runtimekit/readonly')` runs the decoded payload in-process with full Node privileges.\n\n## Source: ghsa-malware (fcff2793bd5cb43e32af39afe8d2667a9a0f8b4cf75d3d85e55d86349fe213cc)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"runtimekit","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.5","1.0.1","1.0.3","1.1.0","1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/index.cjs","sha256":"b3622316b4508bba0279115217b3ea5ee1443c34db672bec7de7077829f29e21","tlsh":"e903a59632e674644213e0bd170bc42ab539280b288cfd547a5c43629f9e63de7b6fcd"},{"path":"lib/index.mjs","sha256":"dc79dd9ffb504ea317f9005bfcd1d280fb07c94d5043b2f980dd734e0511267f","tlsh":"5cf2948535e674748213e0bd161bc46af139280b288df944799c4262afce63de7b6fcd"}],"package_integrity":[{"filename":"runtimekit-1.0.5.tgz","hashes":{"sha1":"0cd9751b95672c8189e797c42ab08d8556285218","sha512_sri":"sha512-gRSoXVHSe8ADWaqfzhcYoYQDRjk71nbtUX9x2oftTD5pdqGvFhA1igAQKwoR4NFUGaA5+n0Z2pGfyZ3sU9C8GQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/runtimekit/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/runtimekit/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v6qq-vq5x-rmxf"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/runtimekit/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/runtimekit/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/runtimekit/v/1.0.2"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007537","import_time":"2026-06-25T22:03:17.982685021Z","modified_time":"2026-06-25T21:55:52Z","sha256":"d52981221e2907355a06d5d2ba981b377ba2aa468401bbaadb3621fab01ac0de","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-007538","import_time":"2026-06-25T22:03:18.011223475Z","modified_time":"2026-06-25T21:55:55Z","sha256":"ffa393dec171ebd22b63776d7550006d3f9f60ad8726ce1153784080e9038acd","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-v6qq-vq5x-rmxf","import_time":"2026-08-11T00:38:01.350221342Z","modified_time":"2026-08-10T16:24:52Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"fcff2793bd5cb43e32af39afe8d2667a9a0f8b4cf75d3d85e55d86349fe213cc","source":"ghsa-malware"},{"id":"IN-MAL-2026-017307","import_time":"2026-08-11T12:23:06.883812338Z","modified_time":"2026-08-11T12:01:24Z","sha256":"a1d716d5fe9bc855cc7d86d2466b5126aad715df52b4ff72b07e06c308b280db","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-017306","import_time":"2026-08-11T12:23:06.756745245Z","modified_time":"2026-08-11T12:01:15Z","sha256":"49459cc1315985d513c51dc6b73d10bf7fd5b3dc0734cc91a94a0e4d88581cfe","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-017308","import_time":"2026-08-11T12:23:07.049240206Z","modified_time":"2026-08-11T12:01:32Z","sha256":"a15533d75c92639b0c557fd9f471640b60d672dbfb6d9e6ed9aa501d0738e650","source":"amazon-inspector","versions":["1.0.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0