mal-2026-10189
Vulnerability from ossf_malicious_packages
Published
2026-07-11 23:23
Modified
2026-07-27 09:45
Summary
Malicious code in tinymask-js (npm)
Details

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

Source: amazon-inspector (dc1d083feee4cace9dba5cabdfd74701c7dc093520f0bbc104858ab699203604)

index.js (declared as the package main) reconstructs a host, URL paths, and dropped filenames from String.fromCharCode numeric arrays, resolving to https://filament-zap.vercel.app/service/assets/fetchBinary and /fetchLinuxBinary. On require, it downloads an OS-specific binary over HTTPS, writes it to %LOCALAPPDATA%\Programs\WinMetrics\WinService.exe on Windows or ~/.local/share/WinMetrics on Linux, chmods it 0755 on Linux, and spawns it detached with stdio ignored and windowsHide set. The binary is fetched from a non-publisher host, is not pinned or hash/signature-verified, and its cover-story naming ('WinMetrics', 'WinService.exe') is unrelated to the package's advertised input-masking purpose. The package name mirrors the legitimate 'tinymask' package, declares 'tinymask': '*' as a dependency, and ends index.js with module.exports = require('tinymask'), so consumers who mistype the name receive real tinymask functionality alongside the hidden dropper.

Source: ghsa-malware (2bc650dbe1a4b64beeaa1e0bc8eed05d71a431f82b4bdad0db05366945a11823)

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": "4d92810e005718d52f876601c1910905092974ac2adb35f17ef23732915341f1",
              "tlsh": "0151029331e5606c4b3bd0ee190b9526955a8a02335de4d0fb9c4e586fc26b4b5f16cc"
            },
            {
              "path": "package.json",
              "sha256": "b5b92228ed6bd32dfc935eb2858e3b1eb8b0bd393d6719a89e78424e6e4b25c2",
              "tlsh": "cec012244512792320c51bd08ce58e4796521e3f5148781d53d3103c81de6af14ff23f"
            }
          ],
          "package_integrity": [
            {
              "filename": "tinymask-js-1.0.2.tgz",
              "hashes": {
                "sha1": "5bd023bac45804f8ce26949a293cdec5cc85742b",
                "sha512_sri": "sha512-3Js9ZugHE3tA61yNNVMr0n2cZb23Gdft9bViExM/BU2EaFoH8jbVUgBSrs9RsKq8ht1YIZHKhk4eBqn6c3DQRg=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "tinymask-js"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.0.2"
      ]
    }
  ],
  "aliases": [
    "GHSA-993g-jhvm-h79j"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-009744",
        "import_time": "2026-07-11T23:49:33.958674776Z",
        "modified_time": "2026-07-11T23:23:11Z",
        "sha256": "dc1d083feee4cace9dba5cabdfd74701c7dc093520f0bbc104858ab699203604",
        "source": "amazon-inspector",
        "versions": [
          "1.0.2"
        ]
      },
      {
        "id": "GHSA-993g-jhvm-h79j",
        "import_time": "2026-07-27T09:43:03.78208684Z",
        "modified_time": "2026-07-27T00:59:05Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "2bc650dbe1a4b64beeaa1e0bc8eed05d71a431f82b4bdad0db05366945a11823",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dc1d083feee4cace9dba5cabdfd74701c7dc093520f0bbc104858ab699203604)\nindex.js (declared as the package main) reconstructs a host, URL paths, and dropped filenames from String.fromCharCode numeric arrays, resolving to https://filament-zap.vercel.app/service/assets/fetchBinary and /fetchLinuxBinary. On require, it downloads an OS-specific binary over HTTPS, writes it to %LOCALAPPDATA%\\Programs\\WinMetrics\\WinService.exe on Windows or ~/.local/share/WinMetrics on Linux, chmods it 0755 on Linux, and spawns it detached with stdio ignored and windowsHide set. The binary is fetched from a non-publisher host, is not pinned or hash/signature-verified, and its cover-story naming (\u0027WinMetrics\u0027, \u0027WinService.exe\u0027) is unrelated to the package\u0027s advertised input-masking purpose. The package name mirrors the legitimate \u0027tinymask\u0027 package, declares \u0027tinymask\u0027: \u0027*\u0027 as a dependency, and ends index.js with module.exports = require(\u0027tinymask\u0027), so consumers who mistype the name receive real tinymask functionality alongside the hidden dropper.\n\n## Source: ghsa-malware (2bc650dbe1a4b64beeaa1e0bc8eed05d71a431f82b4bdad0db05366945a11823)\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-10189",
  "modified": "2026-07-27T09:45:44Z",
  "published": "2026-07-11T23:23:11Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/tinymask-js/v/1.0.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-993g-jhvm-h79j"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in tinymask-js (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…