mal-2026-10163
Vulnerability from ossf_malicious_packages
Published
2026-07-10 17:50
Modified
2026-07-27 09:45
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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "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": "index.js",
              "sha256": "914f69aba38d297e899de806f15abc5f6110cadd0bae2d0f4414b70135faca71",
              "tlsh": "7451219331e1606c0b3bd4ee1a0b9526955a8a02335de4d0fb9c8e586fc26a4b5b16cc"
            },
            {
              "path": "package.json",
              "sha256": "e9fd9a359ca9ff8ab43fddbbb874b7b61b9d2e100d80bf337793f4ec7f8415ad",
              "tlsh": "16d0a9988466252300c4bf98a8720e429a820f3b90487c08038be028dcd83ef0dff30e"
            }
          ],
          "package_integrity": [
            {
              "filename": "llama-tokenizer-1.2.2.tgz",
              "hashes": {
                "sha1": "e06cd5992431a41543c12c138a0447f365d59ecc",
                "sha512_sri": "sha512-JAAU1Pk18MDt5atGmLq8wKGSkiPx3vT6X8tfu/L7iK1b9fHsklrEW2I+IZOst/TCMY7RiybHTIpCsmTeoq7ClQ=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "llama-tokenizer"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.2.2"
      ]
    }
  ],
  "aliases": [
    "GHSA-q4hv-j85h-9h7j"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-009690",
        "import_time": "2026-07-10T18:05:59.686576007Z",
        "modified_time": "2026-07-10T17:50:28Z",
        "sha256": "b22305b1026f27be6d5b78dc19f7db7a05cc9d1818b7ebc7cda0fce92431aa02",
        "source": "amazon-inspector",
        "versions": [
          "1.2.2"
        ]
      },
      {
        "id": "GHSA-q4hv-j85h-9h7j",
        "import_time": "2026-07-27T09:43:03.831942816Z",
        "modified_time": "2026-07-27T00:59:05Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "557ad09a95c6d61276d45553c17d5dfce525b3b29c38c29f15f4128dea66ab92",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b22305b1026f27be6d5b78dc19f7db7a05cc9d1818b7ebc7cda0fce92431aa02)\nThis 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.\n\n## Source: ghsa-malware (557ad09a95c6d61276d45553c17d5dfce525b3b29c38c29f15f4128dea66ab92)\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-10163",
  "modified": "2026-07-27T09:45:41Z",
  "published": "2026-07-10T17:50:28Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/llama-tokenizer/v/1.2.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-q4hv-j85h-9h7j"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in llama-tokenizer (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…