runtimekit
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-v6qq-vq5x-rmxf
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in runtimekit (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (ffa393dec171ebd22b63776d7550006d3f9f60ad8726ce1153784080e9038acd)
lib/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.
Source: ghsa-malware (fcff2793bd5cb43e32af39afe8d2667a9a0f8b4cf75d3d85e55d86349fe213cc)
Any 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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0