kampodra
Affected
- Versions:
0.8.16
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-57xg-9jqp-97gm
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in kampodra (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (e59e87b3925fa01357d5d678a7c0e024df78d9961a2fa93c32a9a0d8cf6d4ef4)
bin/kampodra.js, the published CLI entry point for the kampodra package, appends roughly 13KB of opaque text that is reassembled at runtime by a hand-rolled PRNG-based Fisher-Yates shuffle (functions spin/peel) and then passed to the Function constructor (reached indirectly via peel.constructor, where the property name 'constructor' is produced by reversing and shuffling the string 'cnotsnturtpicokfzrogmybjdcawvulxsreqh' and taking the first seven characters). The resulting code is invoked with (global, require) on every CLI invocation, between the spawnSync of the native binary and process.exit, giving the decoded blob full Node.js privileges including require, filesystem, child_process, and network access under the installer's user account. The shim further hides its structure with XOR-constant array indexing (e.g. c[648486^648486]), \uXXXX-escaped built-in method names (charAt, length, join, fromCharCode, substring), and tab padding that moves the payload off-screen in editors. This obfuscation shape — PRNG unshuffle plus a disguised Function-constructor lookup plus unicode-escaped builtins — is not produced by legitimate build tooling (bundlers, minifiers, platform-binary shims such as esbuild's) and exists only to prevent static review of the executed second-stage code. The decoded payload's behavior cannot be audited from the shipped source, and it runs automatically whenever a user invokes the kampodra CLI.
Source: ghsa-malware (92db23fff21ab5c252dd2bda64ec925ac53b0111485accc0b2572d22b624f49d)
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.8.16None 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