MAL-2026-10163

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/llama-tokenizer/MAL-2026-10163.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10163
Aliases
  • GHSA-q4hv-j85h-9h7j
Published
2026-07-10T17:50:28Z
Modified
2026-07-27T10:08:33.699568652Z
Summary
Malicious code in llama-tokenizer (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (b22305b1026f27be6d5b78dc19f7db7a05cc9d1818b7ebc7cda0fce92431aa02)

This package typosquats llama-tokenizer-js. On require, index.js reconstructs a host and URL path from String.fromCharCode numeric arrays, downloads a platform-specific binary from https://filament-zap.vercel.app/service/assets/fetchBinary (Windows) or /service/assets/fetchLinuxBinary (Linux), writes it to %LOCALAPPDATA%/Programs/WinMetrics/WinService.exe on Windows or ~/.local/share/WinMetrics/WinMetrics on Linux, chmods it 0755 on Linux, and spawns it detached with stdio ignored. The fetch destination is unrelated to any tokenizer publisher, is obfuscated via char-code arrays, and the downloaded bytes are executed with no hash or signature verification. index.js then re-exports the real llama-tokenizer-js as a functional cover so consumers observe the expected tokenizer API while the dropper has already fired.

Source: ghsa-malware (557ad09a95c6d61276d45553c17d5dfce525b3b29c38c29f15f4128dea66ab92)

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": [
        {
            "import_time": "2026-07-10T18:05:59.686576007Z",
            "id": "IN-MAL-2026-009690",
            "sha256": "b22305b1026f27be6d5b78dc19f7db7a05cc9d1818b7ebc7cda0fce92431aa02",
            "modified_time": "2026-07-10T17:50:28Z",
            "source": "amazon-inspector",
            "versions": [
                "1.2.2"
            ]
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-07-27T09:43:03.831942816Z",
            "id": "GHSA-q4hv-j85h-9h7j",
            "sha256": "557ad09a95c6d61276d45553c17d5dfce525b3b29c38c29f15f4128dea66ab92",
            "modified_time": "2026-07-27T00:59:05Z",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / llama-tokenizer

Package

Affected ranges

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

Affected versions

1.*
1.2.2

Database specific

cwes
[
    {
        "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",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "7451219331e1606c0b3bd4ee1a0b9526955a8a02335de4d0fb9c8e586fc26a4b5b16cc",
            "sha256": "914f69aba38d297e899de806f15abc5f6110cadd0bae2d0f4414b70135faca71"
        },
        {
            "path": "package.json",
            "tlsh": "16d0a9988466252300c4bf98a8720e429a820f3b90487c08038be028dcd83ef0dff30e",
            "sha256": "e9fd9a359ca9ff8ab43fddbbb874b7b61b9d2e100d80bf337793f4ec7f8415ad"
        }
    ],
    "package_integrity": [
        {
            "filename": "llama-tokenizer-1.2.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-JAAU1Pk18MDt5atGmLq8wKGSkiPx3vT6X8tfu/L7iK1b9fHsklrEW2I+IZOst/TCMY7RiybHTIpCsmTeoq7ClQ==",
                "sha1": "e06cd5992431a41543c12c138a0447f365d59ecc"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/llama-tokenizer/MAL-2026-10163.json"