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)"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.