MAL-2026-18596

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mocha-ui-themes/MAL-2026-18596.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18596
Aliases
  • GHSA-8wh7-jcx5-hv37
Published
2026-11-04T01:03:05Z
Modified
2026-11-13T04:30:05Z
Summary
Malicious code in mocha-ui-themes (npm)
Details

-= 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.

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"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / mocha-ui-themes

Package

Name
mocha-ui-themes
View open source insights on deps.dev
Purl
pkg:npm/mocha-ui-themes

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0

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"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mocha-ui-themes/MAL-2026-18596.json"