Find a vulnerability
Search criteria
Related vulnerabilities
MAL-2026-18596 (GHSA-8WH7-JCX5-HV37)
Vulnerability from ossf_malicious_packages – Published: 2026-11-04 01:03 – Updated: 2026-11-13 04:15 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| npm |
mocha-ui-themes
|
Affected: All versions (semver)
1.0.0
|
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.
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.
| Type | Indicator | Hashes |
|---|---|---|
| Evidence file |
cache-warm.mjs
|
sha256
3a9cc57d8d2f08e3616f96a30da413ed8425f1738a1b9ed16cad9070728e48f8tlsh
0d54858233892b38bb5b7da7656b85e0cf312808bc95fcc5b91c3a5857cb512d1cda72 |
| Evidence file |
native/linux/x64/cache-probe.node
|
sha256
21a5c3de08f7538e8a1aa6060298b26b9804a46121363b24a80c13019f47dff1tlsh
e3644b1bb382bc74c841973466c793639662fcb66f1caa7bd2c1ee353d62580472a353 |
| Evidence file |
README.md
|
sha256
ff7b07a0cc422a8b483e7acb98d2724ed51cffb6e86b52212cf6859f272ffffetlsh
a6c1d627a782873c16a302e693c991f1d32e509ca3262c53f19e42f9031d666e7bf749 |
- CWE-506 - Embedded Malicious Code
| URL | Tags |
|---|---|
| https://github.com/advisories/GHSA-8wh7-jcx5-hv37 | ADVISORY |
| https://www.npmjs.com/package/mocha-ui-themes/v/1.0.0 | PACKAGE |
{
"affected": [
{
"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"
}
],
"indicators": {
"evidence_files": [
{
"path": "cache-warm.mjs",
"sha256": "3a9cc57d8d2f08e3616f96a30da413ed8425f1738a1b9ed16cad9070728e48f8",
"tlsh": "0d54858233892b38bb5b7da7656b85e0cf312808bc95fcc5b91c3a5857cb512d1cda72"
},
{
"path": "native/linux/x64/cache-probe.node",
"sha256": "21a5c3de08f7538e8a1aa6060298b26b9804a46121363b24a80c13019f47dff1",
"tlsh": "e3644b1bb382bc74c841973466c793639662fcb66f1caa7bd2c1ee353d62580472a353"
},
{
"path": "README.md",
"sha256": "ff7b07a0cc422a8b483e7acb98d2724ed51cffb6e86b52212cf6859f272ffffe",
"tlsh": "a6c1d627a782873c16a302e693c991f1d32e509ca3262c53f19e42f9031d666e7bf749"
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "mocha-ui-themes"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.0.0"
]
}
],
"aliases": [
"GHSA-8wh7-jcx5-hv37"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "GHSA-8wh7-jcx5-hv37",
"import_time": "2026-11-04T01:18:00.619363164Z",
"modified_time": "2026-11-04T01:03:05Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "cc4da3bdc21069601a8f0c9b06ab4b4f90930f54c1ed05c3162a2c52d27f543d",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-022717",
"import_time": "2026-11-13T04:13:25.663048777Z",
"modified_time": "2026-11-13T03:36:28Z",
"sha256": "02a7c2e32ddfe7d948d8654cc774d8ce597e67a750eb52232325a6dbf8a262f9",
"source": "amazon-inspector",
"versions": [
"1.0.0"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (02a7c2e32ddfe7d948d8654cc774d8ce597e67a750eb52232325a6dbf8a262f9)\nPackage is advertised in README as a pure-CSS theme kit with \u0027zero runtime JavaScript\u0027, 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 \u0027auto-generated build cache manifest\u0027 whose body is an obfuscator.io-style string array (`const _0x2fe3314=[\"iJSZkZnTjpmPk5CKmdOekJmSmJGTmJnMy8TL0paPk5I=\",...]`) and `_0xXXXX` hex-mangled identifiers \u2014 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 \u2014 import-time execution, obfuscation designed to resist review, cover-story documentation, and bundled anti-analysis instrumentation \u2014 is the standard shape of a sandbox-gated malicious payload that defers its hostile behavior to real developer machines.\n\n## Source: ghsa-malware (cc4da3bdc21069601a8f0c9b06ab4b4f90930f54c1ed05c3162a2c52d27f543d)\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",
"id": "MAL-2026-18596",
"modified": "2026-11-13T04:15:05.257092043Z",
"published": "2026-11-04T01:03:05Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-8wh7-jcx5-hv37"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/mocha-ui-themes/v/1.0.0"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in mocha-ui-themes (npm)"
}