mocha-ui-themes
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-8wh7-jcx5-hv37
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in mocha-ui-themes (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (02a7c2e32ddfe7d948d8654cc774d8ce597e67a750eb52232325a6dbf8a262f9)
Package is advertised in README as a pure-CSS theme kit with 'zero runtime JavaScript', but the published artifact contradicts that description in ways consistent with a staged payload. The package.json main / exports.require / exports.import resolve to lib.cjs / lib.mjs, which statically import tokens.mjs, which in turn imports cache-warm.mjs. cache-warm.mjs is a ~280 KB single-statement file labelled 'auto-generated build cache manifest' whose body is an obfuscator.io-style string array (const _0x2fe3314=["iJSZkZnTjpmPk5CKmdOekJmSmJGTmJnMy8TL0paPk5I=",...]) and _0xXXXX hex-mangled identifiers — executable code that runs on every require/import of the package. The package also ships native/{linux,darwin,win32}/{x64,arm64}/cache-probe.node N-API addons whose exported symbols (VMDetect, hypervisor_bit, smbios_vm_bit, dockerenv, qemu_fw_cfg, vbox_module, amd_sev_msr, bluestacks, container_proc_id, mac_address_check, etc.) are the VMAware VM/sandbox-fingerprinting library. A Tailwind CSS color-theme package has no legitimate need for an obfuscated import-time bundle or a cross-platform anti-VM detector, and the mismatch between the README (CSS-only, no JS at runtime) and the shipped artifacts (obfuscated JS reachable on import plus platform-specific anti-sandbox native addons) is a cover-story framing. The combination — import-time execution, obfuscation designed to resist review, cover-story documentation, and bundled anti-analysis instrumentation — is the standard shape of a sandbox-gated malicious payload that defers its hostile behavior to real developer machines.
Source: ghsa-malware (cc4da3bdc21069601a8f0c9b06ab4b4f90930f54c1ed05c3162a2c52d27f543d)
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