Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

tinymask-jsnpm

Advisory published Updated

tinymask-js is a confirmed malicious npm package (MAL-2026-10189) that executes malicious code on install (malicious version 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in tinymask-js (npm)

MAL-2026-10189
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall tinymask-js

What this malware does

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.

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.

Malicious versions

1 flagged
1.0.2

Indicators of compromise (SHA-256)

dc1d083feee4cace9dba5cabdfd74701c7dc093520f0bbc104858ab699203604
2bc650dbe1a4b64beeaa1e0bc8eed05d71a431f82b4bdad0db05366945a11823

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for tinymask-js (version 1.0.2).

  2. If you installed it — respond

    Remove tinymask-js from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If tinymask-js was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. tinymask-js on npm has been identified as a malicious package (version 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-009744GHSA-993g-jhvm-h79j

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks tinymask-js-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

tinymask-js (npm) malicious package — MAL-2026-10189 | O3 Security